Skip to main content

Generate Agent Configuration

POST 

/api/agents/generate

This endpoint generates an agent configuration based on a provided description. The request must include a valid API key and user ID.

Request

Header Parameters

    x-api-key stringrequired

    API key to authorize the request.

    userId stringrequired

    ID of the user making the request.

Body

required

    description stringrequired

    A detailed description of the agent's purpose and functionality.

Responses

Successfully generated agent configuration.

Schema

    agentDetails

    object

    rootAgentName string

    The name of the generated agent.

    displayPrompt string

    User-facing prompt template with parameter placeholders.

    goal string

    The primary goal of the agent.

    description string

    Detailed description of what the agent does.

    stepsBreakdown

    object[]

  • Array [

  • type string

    The type of step (rag, compile, or structure).

    prompt string

    Detailed instructions for this step.

  • ]

Loading...