-
Notifications
You must be signed in to change notification settings - Fork 4
docs: add agent templates section and endpoint for listing templates #197
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
91a7e54
85d166f
1a77ec5
5ec5afd
aaf62f9
ae3ac5e
4b1060c
9bb9098
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| --- | ||
| title: List Agent Templates | ||
| openapi: '/api-reference/openapi/agent-templates.json GET /api/agents/templates' | ||
| --- | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,129 @@ | ||
| { | ||
| "openapi": "3.1.0", | ||
| "info": { | ||
| "title": "Recoup API - Agent Templates", | ||
| "description": "Lists agent prompt templates (`GET /api/agents/templates`). Clients use the Recoup API base URL from `servers`.", | ||
| "license": { | ||
| "name": "MIT" | ||
| }, | ||
| "version": "1.0.0" | ||
| }, | ||
| "servers": [ | ||
| { | ||
| "url": "https://api.recoupable.com" | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. P2: Use the chat server here (or add an operation-level override); this endpoint is documented on Prompt for AI agents
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. already implemented There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for the update—glad it’s already addressed. |
||
| } | ||
|
Comment on lines
+11
to
+14
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Align the server host with the other spec for this endpoint. This standalone spec uses 🤖 Prompt for AI Agents
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. already implemented There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: Length of output: 45
"url": "https://api.recoupable.com"It needs to be updated to match "url": "https://chat.recoupable.com"Could you double-check that the commit was pushed to the |
||
| ], | ||
| "paths": { | ||
| "/api/agents/templates": { | ||
| "get": { | ||
| "description": "Returns agent prompt templates visible to the **authenticated** caller. The account is resolved from `Authorization: Bearer` or `x-api-key`. Response includes public templates, templates the caller owns, and private templates shared with the caller. Each row includes `is_favourite` for that caller. For **private templates the caller owns**, `shared_emails` lists recipients the template was shared with; for others it is empty.", | ||
| "parameters": [], | ||
| "security": [ | ||
| { | ||
| "apiKeyAuth": [] | ||
| }, | ||
| { | ||
| "bearerAuth": [] | ||
| } | ||
| ], | ||
| "responses": { | ||
| "200": { | ||
| "description": "Templates retrieved successfully", | ||
| "content": { | ||
| "application/json": { | ||
| "schema": { | ||
| "type": "array", | ||
| "items": { | ||
| "$ref": "#/components/schemas/AgentTemplate" | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. P1: Broken Prompt for AI agents
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. already implemented There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for the update—glad it’s implemented! |
||
| } | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "401": { | ||
| "description": "Missing or invalid credentials", | ||
| "content": { | ||
| "application/json": { | ||
| "schema": { | ||
| "$ref": "#/components/schemas/AgentTemplatesError" | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "500": { | ||
| "description": "Failed to fetch templates", | ||
| "content": { | ||
| "application/json": { | ||
| "schema": { | ||
| "$ref": "#/components/schemas/AgentTemplatesError" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "components": { | ||
| "securitySchemes": { | ||
| "bearerAuth": { | ||
| "type": "http", | ||
| "scheme": "bearer" | ||
| }, | ||
| "apiKeyAuth": { | ||
| "type": "apiKey", | ||
| "in": "header", | ||
| "name": "x-api-key", | ||
| "description": "Your Recoup API key. [Learn more](/quickstart#api-keys)." | ||
| } | ||
| }, | ||
| "schemas": { | ||
| "AgentTemplate": { | ||
| "type": "object", | ||
| "description": "A stored agent template row as returned from the API.", | ||
| "required": [ | ||
| "id", | ||
| "title", | ||
| "description", | ||
| "prompt", | ||
| "is_private", | ||
| "is_favourite" | ||
| ], | ||
| "properties": { | ||
| "id": { | ||
| "type": "string", | ||
| "format": "uuid" | ||
| }, | ||
| "title": { "type": "string" }, | ||
| "description": { "type": "string" }, | ||
| "prompt": { "type": "string" }, | ||
| "tags": { | ||
| "type": "array", | ||
| "items": { "type": "string" }, | ||
| "nullable": true | ||
| }, | ||
| "creator": { "type": "string", "nullable": true }, | ||
| "is_private": { "type": "boolean" }, | ||
| "created_at": { "type": "string", "nullable": true }, | ||
| "favorites_count": { "type": "integer", "nullable": true }, | ||
| "updated_at": { "type": "string", "nullable": true }, | ||
| "is_favourite": { | ||
| "type": "boolean", | ||
| "description": "Whether this template is a favorite for the authenticated caller." | ||
| }, | ||
| "shared_emails": { | ||
| "type": "array", | ||
| "items": { "type": "string", "format": "email" }, | ||
| "description": "Email addresses for accounts the template is shared with — only populated for **private templates owned by** the authenticated caller; otherwise empty array." | ||
| } | ||
| } | ||
| }, | ||
| "AgentTemplatesError": { | ||
| "type": "object", | ||
| "properties": { | ||
| "error": { "type": "string" } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -229,12 +229,18 @@ | |
| "tab": "Agents & Sandboxes", | ||
| "groups": [ | ||
| { | ||
| "group": "Agent Onboarding", | ||
| "group": "Workflows", | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why are you changing this header? |
||
| "pages": [ | ||
| "api-reference/agents/signup", | ||
| "api-reference/agents/verify" | ||
| ] | ||
| }, | ||
| { | ||
| "group": "Templates", | ||
| "pages": [ | ||
| "api-reference/agent-templates/list" | ||
| ] | ||
| }, | ||
| { | ||
| "group": "Agents", | ||
| "pages": [ | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.