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

Agents can be configured with default streaming options for memory usage, output format, and iteration steps. The `.getDefaultStreamOptions()` method returns these defaults, resolving them if they are functions. These options apply to all `stream()` calls unless overridden and are useful for inspecting an agent’s unknown defaults.

## Usage example

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

## Parameters

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

## Returns

<PropertiesTable
  content={[
    {
      name: "defaultOptions",
      type: "AgentExecutionOptions<Output> | Promise<AgentExecutionOptions<Output>>",
      description:
        "The default vNext streaming options configured for the agent, either as a direct object or a promise that resolves to the options.",
    },
  ]}
/>

## Extended usage example

```typescript copy
await agent.getDefaultStreamOptions({
  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

- [Streaming with agents](/docs/streaming/overview#streaming-with-agents)
- [Runtime Context](/docs/server-db/runtime-context)


---
title: "Reference: Agent.getDescription() | Agents"
description: "Documentation for the `Agent.getDescription()` method in Mastra agents, which retrieves the agent's description."
---