> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Resolve Model Output • AI Agent SDK

> resolve_model_output: Return a tool result's own compact, model-facing view, or ``None``.

# resolve\_model\_output

<div className="flex items-center gap-2">
  <Badge color="teal">Function</Badge>
</div>

> This function is defined in the [**base**](../modules/base) module.

Return a tool result's own compact, model-facing view, or `None`.

This reads `result.model_output` (e.g. a `ToolResult` that carries its
own compact view). It does **not** invoke any `to_model_output()` hook on
the producing tool; the executor resolves that hook separately after this
result-carried view misses.

`None` means "no compact view carried on the result"; callers then fall
back to today's full stringification, so behaviour is unchanged for tools
that opt out.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def resolve_model_output(result: Any) -> Optional[Any]
```

## Parameters

<ParamField query="result" type="Any" required={true}>
  No description available.
</ParamField>

### Returns

<ResponseField name="Returns" type="Optional[Any]">
  The result of the operation.
</ResponseField>

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/tools/base.py#L112">
  `praisonaiagents/tools/base.py` at line 112
</Card>

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Output Concept" icon="file-export" href="/docs/docs/concepts/output" />

  <Card title="Output Configuration" icon="gear" href="/docs/docs/configuration/output-config" />

  <Card title="Save Output" icon="floppy-disk" href="/docs/docs/features/save-output" />
</CardGroup>
