|
1688 | 1688 | } ] |
1689 | 1689 | } |
1690 | 1690 | }, |
1691 | | - "/tool/name" : { |
1692 | | - "get" : { |
1693 | | - "description" : "Get all tool names within a project", |
1694 | | - "responses" : { |
1695 | | - "200" : { |
1696 | | - "content" : { |
1697 | | - "application/json" : { |
1698 | | - "schema" : { |
1699 | | - "$ref" : "#/components/schemas/_tool_name_get_200_response" |
1700 | | - } |
1701 | | - } |
1702 | | - }, |
1703 | | - "description" : "OK" |
1704 | | - } |
1705 | | - }, |
1706 | | - "security" : [ { |
1707 | | - "BearerAuth" : [ ] |
1708 | | - } ], |
1709 | | - "summary" : "Get tool names", |
1710 | | - "tags" : [ "tool" ], |
1711 | | - "x-code-samples" : [ { |
1712 | | - "label" : "Python", |
1713 | | - "lang" : "python", |
1714 | | - "source" : "from acontext import AcontextClient\n\nclient = AcontextClient(api_key='sk_project_token')\n\n# Get all tool names\ntools = client.tools.list()\nfor tool in tools:\n print(f\"{tool.name}: {tool.sop_count} SOPs\")\n" |
1715 | | - }, { |
1716 | | - "label" : "JavaScript", |
1717 | | - "lang" : "javascript", |
1718 | | - "source" : "import { AcontextClient } from '@acontext/acontext';\n\nconst client = new AcontextClient({ apiKey: 'sk_project_token' });\n\n// Get all tool names\nconst tools = await client.tools.list();\nfor (const tool of tools) {\n console.log(`${tool.name}: ${tool.sop_count} SOPs`);\n}\n" |
1719 | | - } ] |
1720 | | - }, |
1721 | | - "put" : { |
1722 | | - "description" : "Rename one or more tool names within a project", |
1723 | | - "requestBody" : { |
1724 | | - "content" : { |
1725 | | - "application/json" : { |
1726 | | - "schema" : { |
1727 | | - "$ref" : "#/components/schemas/handler.RenameToolNameReq" |
1728 | | - } |
1729 | | - } |
1730 | | - }, |
1731 | | - "description" : "Tool rename request", |
1732 | | - "required" : true |
1733 | | - }, |
1734 | | - "responses" : { |
1735 | | - "200" : { |
1736 | | - "content" : { |
1737 | | - "application/json" : { |
1738 | | - "schema" : { |
1739 | | - "$ref" : "#/components/schemas/_sandbox__sandbox_id__delete_200_response" |
1740 | | - } |
1741 | | - } |
1742 | | - }, |
1743 | | - "description" : "OK" |
1744 | | - } |
1745 | | - }, |
1746 | | - "security" : [ { |
1747 | | - "BearerAuth" : [ ] |
1748 | | - } ], |
1749 | | - "summary" : "Rename tool names", |
1750 | | - "tags" : [ "tool" ], |
1751 | | - "x-code-samples" : [ { |
1752 | | - "label" : "Python", |
1753 | | - "lang" : "python", |
1754 | | - "source" : "from acontext import AcontextClient\n\nclient = AcontextClient(api_key='sk_project_token')\n\n# Rename tool names\nresult = client.tools.rename([\n {\"old_name\": \"old_tool_name\", \"new_name\": \"new_tool_name\"}\n])\nprint(result.status)\n" |
1755 | | - }, { |
1756 | | - "label" : "JavaScript", |
1757 | | - "lang" : "javascript", |
1758 | | - "source" : "import { AcontextClient } from '@acontext/acontext';\n\nconst client = new AcontextClient({ apiKey: 'sk_project_token' });\n\n// Rename tool names\nconst result = await client.tools.rename([\n { oldName: 'old_tool_name', newName: 'new_tool_name' }\n]);\nconsole.log(result.status);\n" |
1759 | | - } ], |
1760 | | - "x-codegen-request-body-name" : "payload" |
1761 | | - } |
1762 | | - }, |
1763 | 1691 | "/user/ls" : { |
1764 | 1692 | "get" : { |
1765 | 1693 | "description" : "Get all users under a project. If limit is not provided or 0, all users will be returned.", |
|
2040 | 1968 | }, |
2041 | 1969 | "type" : "object" |
2042 | 1970 | }, |
2043 | | - "handler.RenameToolNameReq" : { |
2044 | | - "properties" : { |
2045 | | - "rename" : { |
2046 | | - "items" : { |
2047 | | - "$ref" : "#/components/schemas/handler.ToolRenameItem" |
2048 | | - }, |
2049 | | - "minItems" : 1, |
2050 | | - "type" : "array" |
2051 | | - } |
2052 | | - }, |
2053 | | - "required" : [ "rename" ], |
2054 | | - "type" : "object" |
2055 | | - }, |
2056 | 1971 | "handler.StoreMessageReq" : { |
2057 | 1972 | "properties" : { |
2058 | 1973 | "blob" : { |
|
2075 | 1990 | }, |
2076 | 1991 | "type" : "object" |
2077 | 1992 | }, |
2078 | | - "handler.ToolRenameItem" : { |
2079 | | - "properties" : { |
2080 | | - "new_name" : { |
2081 | | - "type" : "string" |
2082 | | - }, |
2083 | | - "old_name" : { |
2084 | | - "type" : "string" |
2085 | | - } |
2086 | | - }, |
2087 | | - "required" : [ "new_name", "old_name" ], |
2088 | | - "type" : "object" |
2089 | | - }, |
2090 | 1993 | "handler.UpdateArtifactReq" : { |
2091 | 1994 | "properties" : { |
2092 | 1995 | "file_path" : { |
|
2182 | 2085 | }, |
2183 | 2086 | "type" : "object" |
2184 | 2087 | }, |
2185 | | - "httpclient.ToolReferenceData" : { |
2186 | | - "properties" : { |
2187 | | - "name" : { |
2188 | | - "type" : "string" |
2189 | | - }, |
2190 | | - "sop_count" : { |
2191 | | - "type" : "integer" |
2192 | | - } |
2193 | | - }, |
2194 | | - "type" : "object" |
2195 | | - }, |
2196 | 2088 | "model.AgentSkills" : { |
2197 | 2089 | "properties" : { |
2198 | 2090 | "created_at" : { |
|
3025 | 2917 | "type" : "object" |
3026 | 2918 | } ] |
3027 | 2919 | }, |
3028 | | - "_tool_name_get_200_response" : { |
3029 | | - "allOf" : [ { |
3030 | | - "$ref" : "#/components/schemas/serializer.Response" |
3031 | | - }, { |
3032 | | - "properties" : { |
3033 | | - "data" : { |
3034 | | - "items" : { |
3035 | | - "$ref" : "#/components/schemas/httpclient.ToolReferenceData" |
3036 | | - }, |
3037 | | - "type" : "array" |
3038 | | - } |
3039 | | - }, |
3040 | | - "type" : "object" |
3041 | | - } ] |
3042 | | - }, |
3043 | 2920 | "_user_ls_get_200_response" : { |
3044 | 2921 | "allOf" : [ { |
3045 | 2922 | "$ref" : "#/components/schemas/serializer.Response" |
|
0 commit comments