Module atomic_agents.lib.utils.format_tool_message
Functions
def format_tool_message(tool_call: Type[pydantic.main.BaseModel], tool_id: Optional[str] = None) ‑> Dict
-
Formats a message for a tool call.
Args
tool_call
:Type[BaseModel]
- The Pydantic model instance representing the tool call.
tool_id
:str
, optional- The unique identifier for the tool call. If not provided, a random UUID will be generated.
Returns
Dict
- A formatted message dictionary for the tool call.