prebuilt.gtla.models¶
Classes¶
Model representing an agent's action decision. |
|
Model representing the output from an agent's action. |
Module Contents¶
- class prebuilt.gtla.models.AgentAction(/, **data: Any)¶
Bases:
pydantic.BaseModelModel representing an agent’s action decision.
- action_input¶
Input parameters for the action
- Type:
Optional[Dict]
Examples
>>> action = AgentAction( ... action="search_calendar", ... thought="Need to check schedule conflicts", ... tool="calendar_search", ... action_input={"date_range": "next_week"} ... )
- class prebuilt.gtla.models.AgentOutput(/, **data: Any)¶
Bases:
pydantic.BaseModelModel representing the output from an agent’s action.
- output¶
Structured output data from the action
- Type:
Dict
Examples
>>> output = AgentOutput( ... observation="Found 3 free time slots next week", ... output={ ... "free_slots": ["Mon 2PM", "Wed 10AM", "Fri 3PM"], ... "conflicts": [] ... } ... )