Regenerate tasks API search agent
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
Generated A2APack agent for Tasks API.
|
||||
|
||||
- Source OpenAPI: https://tasks.a2acloud.io/openapi.json
|
||||
- Generated operations: 33
|
||||
- Generated operations: 34
|
||||
- Main skill: `auto`
|
||||
|
||||
The generated code is intentionally editable. Tune prompts, operation
|
||||
|
||||
231
openapi.json
231
openapi.json
@@ -1609,6 +1609,54 @@
|
||||
"title": "TaskOut",
|
||||
"type": "object"
|
||||
},
|
||||
"TaskSearchOut": {
|
||||
"properties": {
|
||||
"limit": {
|
||||
"title": "Limit",
|
||||
"type": "integer"
|
||||
},
|
||||
"offset": {
|
||||
"title": "Offset",
|
||||
"type": "integer"
|
||||
},
|
||||
"query": {
|
||||
"title": "Query",
|
||||
"type": "string"
|
||||
},
|
||||
"results": {
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/TaskSearchResultOut"
|
||||
},
|
||||
"title": "Results",
|
||||
"type": "array"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"query",
|
||||
"results",
|
||||
"limit",
|
||||
"offset"
|
||||
],
|
||||
"title": "TaskSearchOut",
|
||||
"type": "object"
|
||||
},
|
||||
"TaskSearchResultOut": {
|
||||
"properties": {
|
||||
"score": {
|
||||
"title": "Score",
|
||||
"type": "number"
|
||||
},
|
||||
"task": {
|
||||
"$ref": "#/components/schemas/TaskOut"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"task",
|
||||
"score"
|
||||
],
|
||||
"title": "TaskSearchResultOut",
|
||||
"type": "object"
|
||||
},
|
||||
"TaskUpdate": {
|
||||
"properties": {
|
||||
"crm_entity_id": {
|
||||
@@ -3717,6 +3765,189 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"/api/tasks/search": {
|
||||
"get": {
|
||||
"operationId": "searchTasks",
|
||||
"parameters": [
|
||||
{
|
||||
"in": "query",
|
||||
"name": "query",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"maxLength": 500,
|
||||
"minLength": 1,
|
||||
"title": "Query",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
{
|
||||
"in": "query",
|
||||
"name": "status",
|
||||
"required": false,
|
||||
"schema": {
|
||||
"anyOf": [
|
||||
{
|
||||
"enum": [
|
||||
"todo",
|
||||
"in_progress",
|
||||
"done",
|
||||
"canceled"
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
],
|
||||
"title": "Status"
|
||||
}
|
||||
},
|
||||
{
|
||||
"in": "query",
|
||||
"name": "due_before",
|
||||
"required": false,
|
||||
"schema": {
|
||||
"anyOf": [
|
||||
{
|
||||
"format": "date-time",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
],
|
||||
"title": "Due Before"
|
||||
}
|
||||
},
|
||||
{
|
||||
"in": "query",
|
||||
"name": "epic_id",
|
||||
"required": false,
|
||||
"schema": {
|
||||
"anyOf": [
|
||||
{
|
||||
"maxLength": 36,
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
],
|
||||
"title": "Epic Id"
|
||||
}
|
||||
},
|
||||
{
|
||||
"in": "query",
|
||||
"name": "crm_entity_id",
|
||||
"required": false,
|
||||
"schema": {
|
||||
"anyOf": [
|
||||
{
|
||||
"maxLength": 36,
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
],
|
||||
"title": "Crm Entity Id"
|
||||
}
|
||||
},
|
||||
{
|
||||
"in": "query",
|
||||
"name": "crm_pipeline_entry_id",
|
||||
"required": false,
|
||||
"schema": {
|
||||
"anyOf": [
|
||||
{
|
||||
"maxLength": 36,
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
],
|
||||
"title": "Crm Pipeline Entry Id"
|
||||
}
|
||||
},
|
||||
{
|
||||
"in": "query",
|
||||
"name": "limit",
|
||||
"required": false,
|
||||
"schema": {
|
||||
"default": 10,
|
||||
"maximum": 50,
|
||||
"minimum": 1,
|
||||
"title": "Limit",
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
{
|
||||
"in": "query",
|
||||
"name": "offset",
|
||||
"required": false,
|
||||
"schema": {
|
||||
"default": 0,
|
||||
"minimum": 0,
|
||||
"title": "Offset",
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
{
|
||||
"in": "query",
|
||||
"name": "score_threshold",
|
||||
"required": false,
|
||||
"schema": {
|
||||
"anyOf": [
|
||||
{
|
||||
"maximum": 1,
|
||||
"minimum": 0,
|
||||
"type": "number"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
],
|
||||
"title": "Score Threshold"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/TaskSearchOut"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
},
|
||||
"422": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/HTTPValidationError"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Validation Error"
|
||||
}
|
||||
},
|
||||
"security": [
|
||||
{
|
||||
"bearerAuth": []
|
||||
},
|
||||
{
|
||||
"apiKeyAuth": []
|
||||
}
|
||||
],
|
||||
"summary": "Search Tasks",
|
||||
"tags": [
|
||||
"Tasks"
|
||||
]
|
||||
}
|
||||
},
|
||||
"/api/tasks/{task_id}": {
|
||||
"delete": {
|
||||
"operationId": "deleteTask",
|
||||
|
||||
Reference in New Issue
Block a user