System prompt
The system prompt for agents is defined in terms of templating variables, shown below.System
User prompt
The user prompt for agents is defined in terms of templating variables, shown below.User
Templating variables
Initial context defining the agent’s role.Note:
premise: Thepremiseprovided on instantiating the agent.uses_tool_calls:Trueif the agent uses tool calls,Falseotherwise.
STARTER
Core constraints defining available resources, code execution rules, and output requirements.Note:
uses_tool_calls:Trueif the agent uses tool calls,Falseotherwise.available_modules: A list of the names of all available modules in the REPL.is_python_sdk:Trueif request made from the Python SDK,Falseotherwise.has_global_resources:Trueifscopeon instantiation is not empty,Falseotherwise.global_resources_stub: Formatted stubs of all defined resources provided viascopeon instantiation.
OBJECTIVES
Formatted task description, expected return type, and additional tools.Note:
task: Thetaskprovided on calling the agent.return_type: Formatted expected return type for the agent’s task.has_local_resources:Trueifscopeon calling the agent is not empty,Falseotherwise.local_resources_stub: Formatted stubs of all defined resources provided viascopeon calling the agent.
USER_PROMPT