Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Evincere/klisk/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Create an agent and register it in the global AgentRegistry. This is a thin wrapper over the OpenAI Agents SDKAgent class that also registers the agent so the Studio and CLI can discover it.
Signature
Parameters
The name of the agent. Used for identification in the registry and UI.
System instructions that define the agent’s behavior and personality. These instructions guide how the agent responds to user inputs.
The language model to use. Defaults to
"gpt-5.2" if not specified.Supports:- OpenAI model names:
"gpt-5.2","gpt-4.1","o3-mini" - OpenAI with prefix:
"openai/gpt-4o" - LiteLLM provider/model format:
"anthropic/claude-3-5-sonnet-20240620","gemini/gemini-2.5-flash","mistral/mistral-large-latest"
- API keys are auto-detected from environment variables (e.g.,
ANTHROPIC_API_KEY,GEMINI_API_KEY) - Requires
pip install litellm
Controls randomness in the model’s output. Lower values (e.g., 0.2) make output more deterministic, higher values (e.g., 0.8) make it more creative. Valid range is typically 0.0 to 2.0.
Controls how much reasoning the model uses. Only supported for o-series models (o1, o3, o4-mini) and gpt-5+ (gpt-5.1, gpt-5.2).Supported values:
"none"- No additional reasoning"minimal"- Minimal reasoning effort"low"- Low reasoning effort"medium"- Medium reasoning effort"high"- High reasoning effort"xhigh"- Extra high reasoning effort
List of custom tools the agent can use. Tools can be:
- Functions decorated with
@tool FunctionToolinstances from the OpenAI Agents SDK- Tools retrieved with
get_tools()
List of provider-hosted tools to enable. Only supported with OpenAI models.Can be specified as:
- String shortcuts:
["web_search"],["code_interpreter"],["file_search"],["image_generation"] - Configured objects:
[WebSearch(search_context_size="high")],[CodeInterpreter()]
Additional keyword arguments passed directly to the underlying OpenAI Agents SDK
Agent constructor. This allows access to advanced SDK features like model_settings, handoffs, memory, etc.Returns
An OpenAI Agents SDK
Agent instance that is also registered in the global AgentRegistry.Example
See Also
- @tool decorator - Define custom tools for agents
- get_tools() - Retrieve registered tools by name