Skip to content

Update agent prompt details

PUT
/api/v1/gen_agents/prompt

Update prompt details (personality, knowledge, backstory) for an agent.

agent_id
required
Agent Id
string
UpdateAgentPromptRequest
object
type
required
Type
string
Allowed values: personality backstory knowledge
content
required
Content

The content of the prompt node

string
>= 1 characters

Successful Response

AgentPromptNodeResponse
object
id
required
Id
integer
node_type
required
Node Type
string
Allowed values: personality backstory knowledge
data
Any of:
string
key
additional properties
any

Bad Request

ErrorResponse
object
detail
Any of:
string
error
Any of:
string
error_code
Any of:
string

Not Found

ErrorResponse
object
detail
Any of:
string
error
Any of:
string
error_code
Any of:
string

Validation Error

HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string

Internal Server Error

ErrorResponse
object
detail
Any of:
string
error
Any of:
string
error_code
Any of:
string