Example questions
Question and SQL pairs the agent learns from.
Base URL https://futuresmart.ai/database-agent/api · every request sends X-API-Key. Samples read the key from DATABASE_AGENT_API_KEY. All endpoints
Get All Few Shot Examples For Db
GET
/v1/agents/{agent_id}/databases/{db_id}/few-shot-examplesGet all few-shot examples for an agent scoped to a specific database
Credential Database Agent API key for this agent (X-API-Key)
Path parameters
| Name | Type | Description |
|---|---|---|
agent_idrequired | string | Agent ID |
db_idrequired | string | Database ID |
Other responses
422Validation Error
Create Few Shot Examples For Db
POST
/v1/agents/{agent_id}/databases/{db_id}/few-shot-examplesUpload/Create few-shot examples for an agent scoped to a specific database (bulk)
Credential Database Agent API key for this agent (X-API-Key)
Path parameters
| Name | Type | Description |
|---|---|---|
agent_idrequired | string | Agent ID |
db_idrequired | string | Database ID |
Request body · multipart/form-data (optional)
| Name | Type | Description |
|---|---|---|
file | string | null | |
few_shot_examples | string | null |
Other responses
422Validation Error
Update Few Shot Examples For Db
PUT
/v1/agents/{agent_id}/databases/{db_id}/few-shot-examplesUpdate few-shot examples for an agent scoped to a specific database (bulk)
Credential Database Agent API key for this agent (X-API-Key)
Path parameters
| Name | Type | Description |
|---|---|---|
agent_idrequired | string | Agent ID |
db_idrequired | string | Database ID |
Request body · multipart/form-data (optional)
| Name | Type | Description |
|---|---|---|
file | string | null | |
few_shot_examples | string | null |
Other responses
422Validation Error
Delete Few Shot Examples For Db
DELETE
/v1/agents/{agent_id}/databases/{db_id}/few-shot-examplesDelete few-shot examples for an agent scoped to a specific database.
- One or many:
{"nl_queries": ["...", "..."]} - All:
{"delete_all": true}
Credential Database Agent API key for this agent (X-API-Key)
Path parameters
| Name | Type | Description |
|---|---|---|
agent_idrequired | string | Agent ID |
db_idrequired | string | Database ID |
Request body · application/json
| Name | Type | Description |
|---|---|---|
nl_queries | array<string> | null | Natural-language queries of the examples to delete |
delete_all | boolean | Delete ALL few-shot examples for this database |
Other responses
422Validation Error
Example request body
JSON
{
"delete_all": false
}