Skip to main content

Generate Agent Edit

POST 

/api/agents/generate-edit

This endpoint generates an updated agent configuration based on a description of desired changes and the current agent configuration. 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 changes to be made to the agent.

    currentAgent

    object

    required

    The current configuration of the agent to be modified.

    rootAgentName string

    The name of the agent.

    displayprompt string

    User-facing prompt template with parameter placeholders.

    inputparameters object

    Parameters that can be passed to the agent.

    goal string

    The primary goal of the agent.

    description string

    Detailed description of what the agent does.

    stepsBreakdown object[]

Responses

Successfully generated updated agent configuration.

Schema

    agentDetails

    object

    rootAgentName string

    The name of the updated 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...