Create Single-Task Agent
lyzr_agent_create_single_taskCreate a single-task template agent by specifying provider, model, sampling parameters, and task instructions. Configure role and goal to address a specific use case.
Instructions
Create a single-task template agent.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Agent name | |
| model | Yes | Model name, e.g. "gpt-4o" | |
| top_p | Yes | Nucleus sampling probability | |
| agent_goal | No | The agent's goal | |
| agent_role | No | System/role prompt for the agent | |
| description | No | ||
| provider_id | Yes | LLM provider id, e.g. "openai" | |
| temperature | Yes | Sampling temperature | |
| extra_fields | No | Additional SingleTaskAgentConfig fields to merge into the body | |
| llm_credential_id | No | Credential id for the LLM provider | |
| agent_instructions | No | Task instructions for the agent |