Get the prompt of an agent
GET/agents/:agent_id/prompt
Returns the prompt template and the placeholders of an agent as stored, without substitution, and input_variables: the names of the query placeholders whose values each execution supplies in prompt.
Permissions. Read on the agent.
Agents and prompt templates describes the tools for testing an agent.
Request
Responses
- 200
- 401
- 404
The prompt template, the placeholders and the input variables of the agent.
The authentication headers are missing or invalid, or the API key is inactive or expired. Errors lists the messages.
No agent with this identifier exists, or the key lacks read permission on the agent (Agent not found). details.id holds the identifier.