# tinker_cookbook.tool_use.ToolResult

## _class_ [**tinker_cookbook.tool_use.ToolResult**](https://github.com/thinking-machines-lab/tinker-cookbook/blob/main/tinker_cookbook/tool_use/types.py#L20)()

Result from a tool invocation.

**Fields:**

- [**messages**](https://github.com/thinking-machines-lab/tinker-cookbook/blob/main/tinker_cookbook/tool_use/types.py#L23) ( _list[ [Message](https://tinker-docs.thinkingmachines.ai/cookbook/api-reference/renderers/message/)]_)  
- [**should_stop**](https://github.com/thinking-machines-lab/tinker-cookbook/blob/main/tinker_cookbook/tool_use/types.py#L24) ( _bool_, default: `False`)  
- [**metrics**](https://github.com/thinking-machines-lab/tinker-cookbook/blob/main/tinker_cookbook/tool_use/types.py#L25) ( _dict[str, float]_, default: `field(default_factory=dict)`)  
- [**metadata**](https://github.com/thinking-machines-lab/tinker-cookbook/blob/main/tinker_cookbook/tool_use/types.py#L26) ( _dict[str, Any]_, default: `field(default_factory=dict)`)

## Referenced by

- [tinker_cookbook.tool_use.FunctionTool.run](https://tinker-docs.thinkingmachines.ai/cookbook/api-reference/tool_use/functiontool/#functiontool-run)  
- [tinker_cookbook.tool_use.handle_tool_call](https://tinker-docs.thinking-machines.ai/cookbook/api-reference/tool_use/handle_tool_call/)  
- [tinker_cookbook.tool_use.types.Tool.run](https://tinker-docs.thinking-machines.ai/cookbook/api-reference/tool_use/types_tool/#tool-run)
