# Agent.getScorers()
[EN] Source: https://mastra.ai/reference/agents/getScorers

The `.getScorers()` method retrieves the scoring configuration configured for an agent, resolving it if it's a function. This method provides access to the scoring system used for evaluating agent responses and performance.

## Usage example

```typescript copy
await agent.getScorers();
```

## Parameters

<PropertiesTable
  content={[
    {
      name: "options",
      type: "{ runtimeContext?: RuntimeContext }",
      isOptional: true,
      defaultValue: "{}",
      description: "Optional configuration object containing runtime context.",
    },
  ]}
/>

## Returns

<PropertiesTable
  content={[
    {
      name: "scorers",
      type: "MastraScorers | Promise<MastraScorers>",
      description:
        "The scoring configuration configured for the agent, either as a direct object or a promise that resolves to the scorers.",
    },
  ]}
/>

## Extended usage example

```typescript copy
await agent.getScorers({
  runtimeContext: new RuntimeContext(),
});
```

### Options parameters

<PropertiesTable
  content={[
    {
      name: "runtimeContext",
      type: "RuntimeContext",
      isOptional: true,
      defaultValue: "new RuntimeContext()",
      description:
        "Runtime context for dependency injection and contextual information.",
    },
  ]}
/>

## Related

- [Agents overview](/docs/agents/overview)
- [Runtime Context](/docs/server-db/runtime-context)


---
title: "Reference: Agent.getTools() | Agents"
description: "Documentation for the `Agent.getTools()` method in Mastra agents, which retrieves the tools that the agent can use."
---