This method initiates the agent execution with the provided configuration. The agent will begin processing the task immediately after starting.

Parameters

task
str
required
The task description to execute (required).
url
str | None
Optional URL to process, defaults to None.
response_format
type[pydantic.main.BaseModel] | None
The response format to use for the agent answer. You can use a Pydantic model or a JSON Schema dict.

Returns

AgentResponse: The initial response from starting the agent.