Method
generateAgentCode POST
Copy POST

Generates the code for defining an AI Agent

Arguments:

REQUIRED KEY TYPE DESCRIPTION
Yes projectId str The unique ID associated with the project.
Yes prompt str A natural language prompt which describes agent specification. Describe what the agent will do, what inputs it will expect, and what outputs it will give out
No fastMode bool If True, runs a faster but slightly less accurate code generation pipeline
Note: The arguments for the API methods follow camelCase but for Python SDK underscore_case is followed.

Response:

KEY TYPE DESCRIPTION
success Boolean true if the call succeeded, false if there was an error
type
description

Exceptions:

TYPE WHEN
DataNotFoundError

projectId is not found.

Language: