Has Tools • AI Agent SDK

has_tools: Check if any tools are available for this turn.

has_tools

Method

</div>

This is a method of the PreparedTurnContext class in the turn_context module.

Check if any tools are available for this turn.

Diagram

uses

returns

Agent

Tool: has_tools

Result

Signature

python
def has_tools() -> bool

Returns

ResponseField bool

The result of the operation.

Source

View on GitHub

praisonaiagents/runtime/turn_context.py at line 239


Related Documentation