> ## 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.

# To Model Output • AI Agent SDK

> to_model_output: Build the compact model-facing view via the ``to_model_output`` fn.

# to\_model\_output

Method

> This is a method of the [**FunctionTool**](https://praison.ai/docs/sdk/reference/praisonaiagents/classes/FunctionTool.md) class in the [**decorator**](https://praison.ai/docs/sdk/reference/praisonaiagents/modules/decorator.md) module.

Build the compact model-facing view via the `to_model_output` fn.

Returns `None` when no builder was supplied so the executor falls back
to the full output (unchanged behaviour).

## Signature

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

## Parameters

**result** `Any` *required*

No description available.

### Returns

**Returns** `Optional[Any]`

The result of the operation.

## Uses

* `logging.warning`

## Source

> [card] [View on GitHub](https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/tools/decorator.py#L218)
>
> `praisonaiagents/tools/decorator.py` at line 218

***

## Related Documentation

> [card] [Output Concept](https://praison.ai/docs/docs/concepts/output)

> [card] [Output Configuration](https://praison.ai/docs/docs/configuration/output-config)

> [card] [Save Output](https://praison.ai/docs/docs/features/save-output)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.