Skip to content

Get agent prompt details

GET
/api/v1/gen_agents/prompt

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

agent_id
required
Agent Id
string

Successful Response

Response Get Agent Prompt Api V1 Gen Agents Prompt Get
Array<object>
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