@meetkai/mka1 0.54.93 → 0.54.95
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +332 -332
- package/bin/mcp-server.js +4882 -3799
- package/bin/mcp-server.js.map +43 -21
- package/dist/commonjs/funcs/agentRunsListAgentRuns.js +1 -0
- package/dist/commonjs/funcs/agentRunsListAgentRuns.js.map +1 -1
- package/dist/commonjs/funcs/agentVersionsListAgentVersions.js +1 -0
- package/dist/commonjs/funcs/agentVersionsListAgentVersions.js.map +1 -1
- package/dist/commonjs/funcs/agentsCreateFunctionTool.d.ts +17 -0
- package/dist/commonjs/funcs/agentsCreateFunctionTool.d.ts.map +1 -0
- package/dist/commonjs/funcs/agentsCreateFunctionTool.js +128 -0
- package/dist/commonjs/funcs/agentsCreateFunctionTool.js.map +1 -0
- package/dist/commonjs/funcs/agentsDeleteAgent.d.ts +4 -1
- package/dist/commonjs/funcs/agentsDeleteAgent.d.ts.map +1 -1
- package/dist/commonjs/funcs/agentsDeleteAgent.js +4 -1
- package/dist/commonjs/funcs/agentsDeleteAgent.js.map +1 -1
- package/dist/commonjs/funcs/agentsDeleteFunctionTool.d.ts +19 -0
- package/dist/commonjs/funcs/agentsDeleteFunctionTool.d.ts.map +1 -0
- package/dist/commonjs/funcs/agentsDeleteFunctionTool.js +133 -0
- package/dist/commonjs/funcs/agentsDeleteFunctionTool.js.map +1 -0
- package/dist/commonjs/funcs/agentsGetFunctionTool.d.ts +17 -0
- package/dist/commonjs/funcs/agentsGetFunctionTool.d.ts.map +1 -0
- package/dist/commonjs/funcs/agentsGetFunctionTool.js +131 -0
- package/dist/commonjs/funcs/agentsGetFunctionTool.js.map +1 -0
- package/dist/commonjs/funcs/agentsListAgents.js +2 -0
- package/dist/commonjs/funcs/agentsListAgents.js.map +1 -1
- package/dist/commonjs/funcs/agentsListFunctionTools.d.ts +17 -0
- package/dist/commonjs/funcs/agentsListFunctionTools.d.ts.map +1 -0
- package/dist/commonjs/funcs/agentsListFunctionTools.js +131 -0
- package/dist/commonjs/funcs/agentsListFunctionTools.js.map +1 -0
- package/dist/commonjs/funcs/agentsRestoreAgent.d.ts +21 -0
- package/dist/commonjs/funcs/agentsRestoreAgent.d.ts.map +1 -0
- package/dist/commonjs/funcs/agentsRestoreAgent.js +138 -0
- package/dist/commonjs/funcs/agentsRestoreAgent.js.map +1 -0
- package/dist/commonjs/funcs/agentsUpdateFunctionTool.d.ts +20 -0
- package/dist/commonjs/funcs/agentsUpdateFunctionTool.d.ts.map +1 -0
- package/dist/commonjs/funcs/agentsUpdateFunctionTool.js +137 -0
- package/dist/commonjs/funcs/agentsUpdateFunctionTool.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/server.js +13 -1
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/agentsCreateFunctionTool.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/agentsCreateFunctionTool.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/agentsCreateFunctionTool.js +62 -0
- package/dist/commonjs/mcp-server/tools/agentsCreateFunctionTool.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/agentsDeleteAgent.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/agentsDeleteAgent.js +3 -1
- package/dist/commonjs/mcp-server/tools/agentsDeleteAgent.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/agentsDeleteFunctionTool.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/agentsDeleteFunctionTool.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/agentsDeleteFunctionTool.js +64 -0
- package/dist/commonjs/mcp-server/tools/agentsDeleteFunctionTool.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/agentsGetFunctionTool.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/agentsGetFunctionTool.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/agentsGetFunctionTool.js +62 -0
- package/dist/commonjs/mcp-server/tools/agentsGetFunctionTool.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/agentsListFunctionTools.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/agentsListFunctionTools.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/agentsListFunctionTools.js +62 -0
- package/dist/commonjs/mcp-server/tools/agentsListFunctionTools.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/agentsRestoreAgent.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/agentsRestoreAgent.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/agentsRestoreAgent.js +64 -0
- package/dist/commonjs/mcp-server/tools/agentsRestoreAgent.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/agentsUpdateFunctionTool.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/agentsUpdateFunctionTool.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/agentsUpdateFunctionTool.js +64 -0
- package/dist/commonjs/mcp-server/tools/agentsUpdateFunctionTool.js.map +1 -0
- package/dist/commonjs/models/components/agent.d.ts +12 -0
- package/dist/commonjs/models/components/agent.d.ts.map +1 -1
- package/dist/commonjs/models/components/agent.js +12 -0
- package/dist/commonjs/models/components/agent.js.map +1 -1
- package/dist/commonjs/models/components/agentsfunctiontooldefinition.d.ts +40 -0
- package/dist/commonjs/models/components/agentsfunctiontooldefinition.d.ts.map +1 -0
- package/dist/commonjs/models/components/agentsfunctiontooldefinition.js +84 -0
- package/dist/commonjs/models/components/agentsfunctiontooldefinition.js.map +1 -0
- package/dist/commonjs/models/components/functiontool.d.ts +35 -0
- package/dist/commonjs/models/components/functiontool.d.ts.map +1 -0
- package/dist/commonjs/models/components/functiontool.js +85 -0
- package/dist/commonjs/models/components/functiontool.js.map +1 -0
- package/dist/commonjs/models/components/functiontoollist.d.ts +35 -0
- package/dist/commonjs/models/components/functiontoollist.d.ts.map +1 -0
- package/dist/commonjs/models/components/functiontoollist.js +87 -0
- package/dist/commonjs/models/components/functiontoollist.js.map +1 -0
- package/dist/commonjs/models/components/functiontoolreference.d.ts +28 -0
- package/dist/commonjs/models/components/functiontoolreference.d.ts.map +1 -0
- package/dist/commonjs/models/components/functiontoolreference.js +76 -0
- package/dist/commonjs/models/components/functiontoolreference.js.map +1 -0
- package/dist/commonjs/models/components/index.d.ts +4 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +4 -0
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/openaichatcompletion.d.ts +10 -0
- package/dist/commonjs/models/components/openaichatcompletion.d.ts.map +1 -1
- package/dist/commonjs/models/components/openaichatcompletion.js +8 -0
- package/dist/commonjs/models/components/openaichatcompletion.js.map +1 -1
- package/dist/commonjs/models/components/openaichatcompletionchunk.d.ts +10 -0
- package/dist/commonjs/models/components/openaichatcompletionchunk.d.ts.map +1 -1
- package/dist/commonjs/models/components/openaichatcompletionchunk.js +8 -0
- package/dist/commonjs/models/components/openaichatcompletionchunk.js.map +1 -1
- package/dist/commonjs/models/components/responseobject.d.ts +5 -0
- package/dist/commonjs/models/components/responseobject.d.ts.map +1 -1
- package/dist/commonjs/models/components/responseobject.js +4 -0
- package/dist/commonjs/models/components/responseobject.js.map +1 -1
- package/dist/commonjs/models/components/tooldefinition.d.ts +115 -114
- package/dist/commonjs/models/components/tooldefinition.d.ts.map +1 -1
- package/dist/commonjs/models/components/tooldefinition.js +151 -147
- package/dist/commonjs/models/components/tooldefinition.js.map +1 -1
- package/dist/commonjs/models/operations/createfunctiontool.d.ts +23 -0
- package/dist/commonjs/models/operations/createfunctiontool.d.ts.map +1 -0
- package/dist/commonjs/models/operations/createfunctiontool.js +72 -0
- package/dist/commonjs/models/operations/createfunctiontool.js.map +1 -0
- package/dist/commonjs/models/operations/deletefunctiontool.d.ts +51 -0
- package/dist/commonjs/models/operations/deletefunctiontool.d.ts.map +1 -0
- package/dist/commonjs/models/operations/deletefunctiontool.js +98 -0
- package/dist/commonjs/models/operations/deletefunctiontool.js.map +1 -0
- package/dist/commonjs/models/operations/getfunctiontool.d.ts +22 -0
- package/dist/commonjs/models/operations/getfunctiontool.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getfunctiontool.js +71 -0
- package/dist/commonjs/models/operations/getfunctiontool.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +6 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +6 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/listagentruns.d.ts +5 -0
- package/dist/commonjs/models/operations/listagentruns.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listagentruns.js +2 -0
- package/dist/commonjs/models/operations/listagentruns.js.map +1 -1
- package/dist/commonjs/models/operations/listagents.d.ts +10 -0
- package/dist/commonjs/models/operations/listagents.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listagents.js +4 -0
- package/dist/commonjs/models/operations/listagents.js.map +1 -1
- package/dist/commonjs/models/operations/listagentversions.d.ts +5 -0
- package/dist/commonjs/models/operations/listagentversions.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listagentversions.js +2 -0
- package/dist/commonjs/models/operations/listagentversions.js.map +1 -1
- package/dist/commonjs/models/operations/listfunctiontools.d.ts +39 -0
- package/dist/commonjs/models/operations/listfunctiontools.d.ts.map +1 -0
- package/dist/commonjs/models/operations/listfunctiontools.js +81 -0
- package/dist/commonjs/models/operations/listfunctiontools.js.map +1 -0
- package/dist/commonjs/models/operations/restoreagent.d.ts +22 -0
- package/dist/commonjs/models/operations/restoreagent.d.ts.map +1 -0
- package/dist/commonjs/models/operations/restoreagent.js +71 -0
- package/dist/commonjs/models/operations/restoreagent.js.map +1 -0
- package/dist/commonjs/models/operations/updatefunctiontool.d.ts +25 -0
- package/dist/commonjs/models/operations/updatefunctiontool.d.ts.map +1 -0
- package/dist/commonjs/models/operations/updatefunctiontool.js +76 -0
- package/dist/commonjs/models/operations/updatefunctiontool.js.map +1 -0
- package/dist/commonjs/react-query/agentRunsListAgentRuns.core.d.ts +1 -0
- package/dist/commonjs/react-query/agentRunsListAgentRuns.core.d.ts.map +1 -1
- package/dist/commonjs/react-query/agentRunsListAgentRuns.core.js +1 -0
- package/dist/commonjs/react-query/agentRunsListAgentRuns.core.js.map +1 -1
- package/dist/commonjs/react-query/agentRunsListAgentRuns.d.ts +2 -0
- package/dist/commonjs/react-query/agentRunsListAgentRuns.d.ts.map +1 -1
- package/dist/commonjs/react-query/agentRunsListAgentRuns.js.map +1 -1
- package/dist/commonjs/react-query/agentVersionsListAgentVersions.core.d.ts +1 -0
- package/dist/commonjs/react-query/agentVersionsListAgentVersions.core.d.ts.map +1 -1
- package/dist/commonjs/react-query/agentVersionsListAgentVersions.core.js +1 -0
- package/dist/commonjs/react-query/agentVersionsListAgentVersions.core.js.map +1 -1
- package/dist/commonjs/react-query/agentVersionsListAgentVersions.d.ts +2 -0
- package/dist/commonjs/react-query/agentVersionsListAgentVersions.d.ts.map +1 -1
- package/dist/commonjs/react-query/agentVersionsListAgentVersions.js.map +1 -1
- package/dist/commonjs/react-query/agentsCreateFunctionTool.d.ts +26 -0
- package/dist/commonjs/react-query/agentsCreateFunctionTool.d.ts.map +1 -0
- package/dist/commonjs/react-query/agentsCreateFunctionTool.js +44 -0
- package/dist/commonjs/react-query/agentsCreateFunctionTool.js.map +1 -0
- package/dist/commonjs/react-query/agentsDeleteAgent.d.ts +4 -1
- package/dist/commonjs/react-query/agentsDeleteAgent.d.ts.map +1 -1
- package/dist/commonjs/react-query/agentsDeleteAgent.js +4 -1
- package/dist/commonjs/react-query/agentsDeleteAgent.js.map +1 -1
- package/dist/commonjs/react-query/agentsDeleteFunctionTool.d.ts +28 -0
- package/dist/commonjs/react-query/agentsDeleteFunctionTool.d.ts.map +1 -0
- package/dist/commonjs/react-query/agentsDeleteFunctionTool.js +47 -0
- package/dist/commonjs/react-query/agentsDeleteFunctionTool.js.map +1 -0
- package/dist/commonjs/react-query/agentsGetFunctionTool.core.d.ts +15 -0
- package/dist/commonjs/react-query/agentsGetFunctionTool.core.d.ts.map +1 -0
- package/dist/commonjs/react-query/agentsGetFunctionTool.core.js +36 -0
- package/dist/commonjs/react-query/agentsGetFunctionTool.core.js.map +1 -0
- package/dist/commonjs/react-query/agentsGetFunctionTool.d.ts +32 -0
- package/dist/commonjs/react-query/agentsGetFunctionTool.d.ts.map +1 -0
- package/dist/commonjs/react-query/agentsGetFunctionTool.js +54 -0
- package/dist/commonjs/react-query/agentsGetFunctionTool.js.map +1 -0
- package/dist/commonjs/react-query/agentsListAgents.core.d.ts +2 -0
- package/dist/commonjs/react-query/agentsListAgents.core.d.ts.map +1 -1
- package/dist/commonjs/react-query/agentsListAgents.core.js +2 -0
- package/dist/commonjs/react-query/agentsListAgents.core.js.map +1 -1
- package/dist/commonjs/react-query/agentsListAgents.d.ts +4 -0
- package/dist/commonjs/react-query/agentsListAgents.d.ts.map +1 -1
- package/dist/commonjs/react-query/agentsListAgents.js.map +1 -1
- package/dist/commonjs/react-query/agentsListFunctionTools.core.d.ts +18 -0
- package/dist/commonjs/react-query/agentsListFunctionTools.core.d.ts.map +1 -0
- package/dist/commonjs/react-query/agentsListFunctionTools.core.js +39 -0
- package/dist/commonjs/react-query/agentsListFunctionTools.core.js.map +1 -0
- package/dist/commonjs/react-query/agentsListFunctionTools.d.ts +36 -0
- package/dist/commonjs/react-query/agentsListFunctionTools.d.ts.map +1 -0
- package/dist/commonjs/react-query/agentsListFunctionTools.js +54 -0
- package/dist/commonjs/react-query/agentsListFunctionTools.js.map +1 -0
- package/dist/commonjs/react-query/agentsRestoreAgent.d.ts +30 -0
- package/dist/commonjs/react-query/agentsRestoreAgent.d.ts.map +1 -0
- package/dist/commonjs/react-query/agentsRestoreAgent.js +47 -0
- package/dist/commonjs/react-query/agentsRestoreAgent.js.map +1 -0
- package/dist/commonjs/react-query/agentsUpdateFunctionTool.d.ts +29 -0
- package/dist/commonjs/react-query/agentsUpdateFunctionTool.d.ts.map +1 -0
- package/dist/commonjs/react-query/agentsUpdateFunctionTool.js +47 -0
- package/dist/commonjs/react-query/agentsUpdateFunctionTool.js.map +1 -0
- package/dist/commonjs/react-query/index.d.ts +6 -0
- package/dist/commonjs/react-query/index.d.ts.map +1 -1
- package/dist/commonjs/react-query/index.js +6 -0
- package/dist/commonjs/react-query/index.js.map +1 -1
- package/dist/commonjs/sdk/agents.d.ts +37 -1
- package/dist/commonjs/sdk/agents.d.ts.map +1 -1
- package/dist/commonjs/sdk/agents.js +55 -1
- package/dist/commonjs/sdk/agents.js.map +1 -1
- package/dist/esm/funcs/agentRunsListAgentRuns.js +1 -0
- package/dist/esm/funcs/agentRunsListAgentRuns.js.map +1 -1
- package/dist/esm/funcs/agentVersionsListAgentVersions.js +1 -0
- package/dist/esm/funcs/agentVersionsListAgentVersions.js.map +1 -1
- package/dist/esm/funcs/agentsCreateFunctionTool.d.ts +17 -0
- package/dist/esm/funcs/agentsCreateFunctionTool.d.ts.map +1 -0
- package/dist/esm/funcs/agentsCreateFunctionTool.js +92 -0
- package/dist/esm/funcs/agentsCreateFunctionTool.js.map +1 -0
- package/dist/esm/funcs/agentsDeleteAgent.d.ts +4 -1
- package/dist/esm/funcs/agentsDeleteAgent.d.ts.map +1 -1
- package/dist/esm/funcs/agentsDeleteAgent.js +4 -1
- package/dist/esm/funcs/agentsDeleteAgent.js.map +1 -1
- package/dist/esm/funcs/agentsDeleteFunctionTool.d.ts +19 -0
- package/dist/esm/funcs/agentsDeleteFunctionTool.d.ts.map +1 -0
- package/dist/esm/funcs/agentsDeleteFunctionTool.js +97 -0
- package/dist/esm/funcs/agentsDeleteFunctionTool.js.map +1 -0
- package/dist/esm/funcs/agentsGetFunctionTool.d.ts +17 -0
- package/dist/esm/funcs/agentsGetFunctionTool.d.ts.map +1 -0
- package/dist/esm/funcs/agentsGetFunctionTool.js +95 -0
- package/dist/esm/funcs/agentsGetFunctionTool.js.map +1 -0
- package/dist/esm/funcs/agentsListAgents.js +2 -0
- package/dist/esm/funcs/agentsListAgents.js.map +1 -1
- package/dist/esm/funcs/agentsListFunctionTools.d.ts +17 -0
- package/dist/esm/funcs/agentsListFunctionTools.d.ts.map +1 -0
- package/dist/esm/funcs/agentsListFunctionTools.js +95 -0
- package/dist/esm/funcs/agentsListFunctionTools.js.map +1 -0
- package/dist/esm/funcs/agentsRestoreAgent.d.ts +21 -0
- package/dist/esm/funcs/agentsRestoreAgent.d.ts.map +1 -0
- package/dist/esm/funcs/agentsRestoreAgent.js +102 -0
- package/dist/esm/funcs/agentsRestoreAgent.js.map +1 -0
- package/dist/esm/funcs/agentsUpdateFunctionTool.d.ts +20 -0
- package/dist/esm/funcs/agentsUpdateFunctionTool.d.ts.map +1 -0
- package/dist/esm/funcs/agentsUpdateFunctionTool.js +101 -0
- package/dist/esm/funcs/agentsUpdateFunctionTool.js.map +1 -0
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.d.ts.map +1 -1
- package/dist/esm/mcp-server/server.js +13 -1
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/mcp-server/tools/agentsCreateFunctionTool.d.ts +8 -0
- package/dist/esm/mcp-server/tools/agentsCreateFunctionTool.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/agentsCreateFunctionTool.js +26 -0
- package/dist/esm/mcp-server/tools/agentsCreateFunctionTool.js.map +1 -0
- package/dist/esm/mcp-server/tools/agentsDeleteAgent.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/agentsDeleteAgent.js +3 -1
- package/dist/esm/mcp-server/tools/agentsDeleteAgent.js.map +1 -1
- package/dist/esm/mcp-server/tools/agentsDeleteFunctionTool.d.ts +8 -0
- package/dist/esm/mcp-server/tools/agentsDeleteFunctionTool.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/agentsDeleteFunctionTool.js +28 -0
- package/dist/esm/mcp-server/tools/agentsDeleteFunctionTool.js.map +1 -0
- package/dist/esm/mcp-server/tools/agentsGetFunctionTool.d.ts +8 -0
- package/dist/esm/mcp-server/tools/agentsGetFunctionTool.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/agentsGetFunctionTool.js +26 -0
- package/dist/esm/mcp-server/tools/agentsGetFunctionTool.js.map +1 -0
- package/dist/esm/mcp-server/tools/agentsListFunctionTools.d.ts +8 -0
- package/dist/esm/mcp-server/tools/agentsListFunctionTools.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/agentsListFunctionTools.js +26 -0
- package/dist/esm/mcp-server/tools/agentsListFunctionTools.js.map +1 -0
- package/dist/esm/mcp-server/tools/agentsRestoreAgent.d.ts +8 -0
- package/dist/esm/mcp-server/tools/agentsRestoreAgent.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/agentsRestoreAgent.js +28 -0
- package/dist/esm/mcp-server/tools/agentsRestoreAgent.js.map +1 -0
- package/dist/esm/mcp-server/tools/agentsUpdateFunctionTool.d.ts +8 -0
- package/dist/esm/mcp-server/tools/agentsUpdateFunctionTool.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/agentsUpdateFunctionTool.js +28 -0
- package/dist/esm/mcp-server/tools/agentsUpdateFunctionTool.js.map +1 -0
- package/dist/esm/models/components/agent.d.ts +12 -0
- package/dist/esm/models/components/agent.d.ts.map +1 -1
- package/dist/esm/models/components/agent.js +12 -0
- package/dist/esm/models/components/agent.js.map +1 -1
- package/dist/esm/models/components/agentsfunctiontooldefinition.d.ts +40 -0
- package/dist/esm/models/components/agentsfunctiontooldefinition.d.ts.map +1 -0
- package/dist/esm/models/components/agentsfunctiontooldefinition.js +46 -0
- package/dist/esm/models/components/agentsfunctiontooldefinition.js.map +1 -0
- package/dist/esm/models/components/functiontool.d.ts +35 -0
- package/dist/esm/models/components/functiontool.d.ts.map +1 -0
- package/dist/esm/models/components/functiontool.js +47 -0
- package/dist/esm/models/components/functiontool.js.map +1 -0
- package/dist/esm/models/components/functiontoollist.d.ts +35 -0
- package/dist/esm/models/components/functiontoollist.d.ts.map +1 -0
- package/dist/esm/models/components/functiontoollist.js +49 -0
- package/dist/esm/models/components/functiontoollist.js.map +1 -0
- package/dist/esm/models/components/functiontoolreference.d.ts +28 -0
- package/dist/esm/models/components/functiontoolreference.d.ts.map +1 -0
- package/dist/esm/models/components/functiontoolreference.js +38 -0
- package/dist/esm/models/components/functiontoolreference.js.map +1 -0
- package/dist/esm/models/components/index.d.ts +4 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +4 -0
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/openaichatcompletion.d.ts +10 -0
- package/dist/esm/models/components/openaichatcompletion.d.ts.map +1 -1
- package/dist/esm/models/components/openaichatcompletion.js +8 -0
- package/dist/esm/models/components/openaichatcompletion.js.map +1 -1
- package/dist/esm/models/components/openaichatcompletionchunk.d.ts +10 -0
- package/dist/esm/models/components/openaichatcompletionchunk.d.ts.map +1 -1
- package/dist/esm/models/components/openaichatcompletionchunk.js +8 -0
- package/dist/esm/models/components/openaichatcompletionchunk.js.map +1 -1
- package/dist/esm/models/components/responseobject.d.ts +5 -0
- package/dist/esm/models/components/responseobject.d.ts.map +1 -1
- package/dist/esm/models/components/responseobject.js +4 -0
- package/dist/esm/models/components/responseobject.js.map +1 -1
- package/dist/esm/models/components/tooldefinition.d.ts +115 -114
- package/dist/esm/models/components/tooldefinition.d.ts.map +1 -1
- package/dist/esm/models/components/tooldefinition.js +129 -125
- package/dist/esm/models/components/tooldefinition.js.map +1 -1
- package/dist/esm/models/operations/createfunctiontool.d.ts +23 -0
- package/dist/esm/models/operations/createfunctiontool.d.ts.map +1 -0
- package/dist/esm/models/operations/createfunctiontool.js +34 -0
- package/dist/esm/models/operations/createfunctiontool.js.map +1 -0
- package/dist/esm/models/operations/deletefunctiontool.d.ts +51 -0
- package/dist/esm/models/operations/deletefunctiontool.d.ts.map +1 -0
- package/dist/esm/models/operations/deletefunctiontool.js +58 -0
- package/dist/esm/models/operations/deletefunctiontool.js.map +1 -0
- package/dist/esm/models/operations/getfunctiontool.d.ts +22 -0
- package/dist/esm/models/operations/getfunctiontool.d.ts.map +1 -0
- package/dist/esm/models/operations/getfunctiontool.js +33 -0
- package/dist/esm/models/operations/getfunctiontool.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +6 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +6 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/listagentruns.d.ts +5 -0
- package/dist/esm/models/operations/listagentruns.d.ts.map +1 -1
- package/dist/esm/models/operations/listagentruns.js +2 -0
- package/dist/esm/models/operations/listagentruns.js.map +1 -1
- package/dist/esm/models/operations/listagents.d.ts +10 -0
- package/dist/esm/models/operations/listagents.d.ts.map +1 -1
- package/dist/esm/models/operations/listagents.js +4 -0
- package/dist/esm/models/operations/listagents.js.map +1 -1
- package/dist/esm/models/operations/listagentversions.d.ts +5 -0
- package/dist/esm/models/operations/listagentversions.d.ts.map +1 -1
- package/dist/esm/models/operations/listagentversions.js +2 -0
- package/dist/esm/models/operations/listagentversions.js.map +1 -1
- package/dist/esm/models/operations/listfunctiontools.d.ts +39 -0
- package/dist/esm/models/operations/listfunctiontools.d.ts.map +1 -0
- package/dist/esm/models/operations/listfunctiontools.js +43 -0
- package/dist/esm/models/operations/listfunctiontools.js.map +1 -0
- package/dist/esm/models/operations/restoreagent.d.ts +22 -0
- package/dist/esm/models/operations/restoreagent.d.ts.map +1 -0
- package/dist/esm/models/operations/restoreagent.js +33 -0
- package/dist/esm/models/operations/restoreagent.js.map +1 -0
- package/dist/esm/models/operations/updatefunctiontool.d.ts +25 -0
- package/dist/esm/models/operations/updatefunctiontool.d.ts.map +1 -0
- package/dist/esm/models/operations/updatefunctiontool.js +38 -0
- package/dist/esm/models/operations/updatefunctiontool.js.map +1 -0
- package/dist/esm/react-query/agentRunsListAgentRuns.core.d.ts +1 -0
- package/dist/esm/react-query/agentRunsListAgentRuns.core.d.ts.map +1 -1
- package/dist/esm/react-query/agentRunsListAgentRuns.core.js +1 -0
- package/dist/esm/react-query/agentRunsListAgentRuns.core.js.map +1 -1
- package/dist/esm/react-query/agentRunsListAgentRuns.d.ts +2 -0
- package/dist/esm/react-query/agentRunsListAgentRuns.d.ts.map +1 -1
- package/dist/esm/react-query/agentRunsListAgentRuns.js.map +1 -1
- package/dist/esm/react-query/agentVersionsListAgentVersions.core.d.ts +1 -0
- package/dist/esm/react-query/agentVersionsListAgentVersions.core.d.ts.map +1 -1
- package/dist/esm/react-query/agentVersionsListAgentVersions.core.js +1 -0
- package/dist/esm/react-query/agentVersionsListAgentVersions.core.js.map +1 -1
- package/dist/esm/react-query/agentVersionsListAgentVersions.d.ts +2 -0
- package/dist/esm/react-query/agentVersionsListAgentVersions.d.ts.map +1 -1
- package/dist/esm/react-query/agentVersionsListAgentVersions.js.map +1 -1
- package/dist/esm/react-query/agentsCreateFunctionTool.d.ts +26 -0
- package/dist/esm/react-query/agentsCreateFunctionTool.d.ts.map +1 -0
- package/dist/esm/react-query/agentsCreateFunctionTool.js +39 -0
- package/dist/esm/react-query/agentsCreateFunctionTool.js.map +1 -0
- package/dist/esm/react-query/agentsDeleteAgent.d.ts +4 -1
- package/dist/esm/react-query/agentsDeleteAgent.d.ts.map +1 -1
- package/dist/esm/react-query/agentsDeleteAgent.js +4 -1
- package/dist/esm/react-query/agentsDeleteAgent.js.map +1 -1
- package/dist/esm/react-query/agentsDeleteFunctionTool.d.ts +28 -0
- package/dist/esm/react-query/agentsDeleteFunctionTool.d.ts.map +1 -0
- package/dist/esm/react-query/agentsDeleteFunctionTool.js +42 -0
- package/dist/esm/react-query/agentsDeleteFunctionTool.js.map +1 -0
- package/dist/esm/react-query/agentsGetFunctionTool.core.d.ts +15 -0
- package/dist/esm/react-query/agentsGetFunctionTool.core.d.ts.map +1 -0
- package/dist/esm/react-query/agentsGetFunctionTool.core.js +31 -0
- package/dist/esm/react-query/agentsGetFunctionTool.core.js.map +1 -0
- package/dist/esm/react-query/agentsGetFunctionTool.d.ts +32 -0
- package/dist/esm/react-query/agentsGetFunctionTool.d.ts.map +1 -0
- package/dist/esm/react-query/agentsGetFunctionTool.js +44 -0
- package/dist/esm/react-query/agentsGetFunctionTool.js.map +1 -0
- package/dist/esm/react-query/agentsListAgents.core.d.ts +2 -0
- package/dist/esm/react-query/agentsListAgents.core.d.ts.map +1 -1
- package/dist/esm/react-query/agentsListAgents.core.js +2 -0
- package/dist/esm/react-query/agentsListAgents.core.js.map +1 -1
- package/dist/esm/react-query/agentsListAgents.d.ts +4 -0
- package/dist/esm/react-query/agentsListAgents.d.ts.map +1 -1
- package/dist/esm/react-query/agentsListAgents.js.map +1 -1
- package/dist/esm/react-query/agentsListFunctionTools.core.d.ts +18 -0
- package/dist/esm/react-query/agentsListFunctionTools.core.d.ts.map +1 -0
- package/dist/esm/react-query/agentsListFunctionTools.core.js +34 -0
- package/dist/esm/react-query/agentsListFunctionTools.core.js.map +1 -0
- package/dist/esm/react-query/agentsListFunctionTools.d.ts +36 -0
- package/dist/esm/react-query/agentsListFunctionTools.d.ts.map +1 -0
- package/dist/esm/react-query/agentsListFunctionTools.js +44 -0
- package/dist/esm/react-query/agentsListFunctionTools.js.map +1 -0
- package/dist/esm/react-query/agentsRestoreAgent.d.ts +30 -0
- package/dist/esm/react-query/agentsRestoreAgent.d.ts.map +1 -0
- package/dist/esm/react-query/agentsRestoreAgent.js +42 -0
- package/dist/esm/react-query/agentsRestoreAgent.js.map +1 -0
- package/dist/esm/react-query/agentsUpdateFunctionTool.d.ts +29 -0
- package/dist/esm/react-query/agentsUpdateFunctionTool.d.ts.map +1 -0
- package/dist/esm/react-query/agentsUpdateFunctionTool.js +42 -0
- package/dist/esm/react-query/agentsUpdateFunctionTool.js.map +1 -0
- package/dist/esm/react-query/index.d.ts +6 -0
- package/dist/esm/react-query/index.d.ts.map +1 -1
- package/dist/esm/react-query/index.js +6 -0
- package/dist/esm/react-query/index.js.map +1 -1
- package/dist/esm/sdk/agents.d.ts +37 -1
- package/dist/esm/sdk/agents.d.ts.map +1 -1
- package/dist/esm/sdk/agents.js +55 -1
- package/dist/esm/sdk/agents.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/agentRunsListAgentRuns.ts +1 -0
- package/src/funcs/agentVersionsListAgentVersions.ts +1 -0
- package/src/funcs/agentsCreateFunctionTool.ts +179 -0
- package/src/funcs/agentsDeleteAgent.ts +4 -1
- package/src/funcs/agentsDeleteFunctionTool.ts +186 -0
- package/src/funcs/agentsGetFunctionTool.ts +184 -0
- package/src/funcs/agentsListAgents.ts +2 -0
- package/src/funcs/agentsListFunctionTools.ts +183 -0
- package/src/funcs/agentsRestoreAgent.ts +194 -0
- package/src/funcs/agentsUpdateFunctionTool.ts +190 -0
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +13 -1
- package/src/mcp-server/tools/agentsCreateFunctionTool.ts +35 -0
- package/src/mcp-server/tools/agentsDeleteAgent.ts +3 -1
- package/src/mcp-server/tools/agentsDeleteFunctionTool.ts +37 -0
- package/src/mcp-server/tools/agentsGetFunctionTool.ts +35 -0
- package/src/mcp-server/tools/agentsListFunctionTools.ts +35 -0
- package/src/mcp-server/tools/agentsRestoreAgent.ts +37 -0
- package/src/mcp-server/tools/agentsUpdateFunctionTool.ts +37 -0
- package/src/models/components/agent.ts +26 -0
- package/src/models/components/agentsfunctiontooldefinition.ts +99 -0
- package/src/models/components/functiontool.ts +95 -0
- package/src/models/components/functiontoollist.ts +101 -0
- package/src/models/components/functiontoolreference.ts +81 -0
- package/src/models/components/index.ts +4 -0
- package/src/models/components/openaichatcompletion.ts +18 -0
- package/src/models/components/openaichatcompletionchunk.ts +18 -0
- package/src/models/components/responseobject.ts +9 -0
- package/src/models/components/tooldefinition.ts +284 -279
- package/src/models/operations/createfunctiontool.ts +73 -0
- package/src/models/operations/deletefunctiontool.ts +142 -0
- package/src/models/operations/getfunctiontool.ts +69 -0
- package/src/models/operations/index.ts +6 -0
- package/src/models/operations/listagentruns.ts +7 -0
- package/src/models/operations/listagents.ts +14 -0
- package/src/models/operations/listagentversions.ts +7 -0
- package/src/models/operations/listfunctiontools.ts +96 -0
- package/src/models/operations/restoreagent.ts +69 -0
- package/src/models/operations/updatefunctiontool.ts +79 -0
- package/src/react-query/agentRunsListAgentRuns.core.ts +2 -0
- package/src/react-query/agentRunsListAgentRuns.ts +2 -0
- package/src/react-query/agentVersionsListAgentVersions.core.ts +2 -0
- package/src/react-query/agentVersionsListAgentVersions.ts +2 -0
- package/src/react-query/agentsCreateFunctionTool.ts +106 -0
- package/src/react-query/agentsDeleteAgent.ts +4 -1
- package/src/react-query/agentsDeleteFunctionTool.ts +109 -0
- package/src/react-query/agentsGetFunctionTool.core.ts +76 -0
- package/src/react-query/agentsGetFunctionTool.ts +135 -0
- package/src/react-query/agentsListAgents.core.ts +4 -0
- package/src/react-query/agentsListAgents.ts +4 -0
- package/src/react-query/agentsListFunctionTools.core.ts +83 -0
- package/src/react-query/agentsListFunctionTools.ts +144 -0
- package/src/react-query/agentsRestoreAgent.ts +111 -0
- package/src/react-query/agentsUpdateFunctionTool.ts +109 -0
- package/src/react-query/index.ts +6 -0
- package/src/sdk/agents.ts +103 -1
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import {
|
|
6
|
+
InvalidateQueryFilters,
|
|
7
|
+
QueryClient,
|
|
8
|
+
useQuery,
|
|
9
|
+
UseQueryResult,
|
|
10
|
+
useSuspenseQuery,
|
|
11
|
+
UseSuspenseQueryResult,
|
|
12
|
+
} from "@tanstack/react-query";
|
|
13
|
+
import {
|
|
14
|
+
ConnectionError,
|
|
15
|
+
InvalidRequestError,
|
|
16
|
+
RequestAbortedError,
|
|
17
|
+
RequestTimeoutError,
|
|
18
|
+
UnexpectedClientError,
|
|
19
|
+
} from "../models/errors/httpclienterrors.js";
|
|
20
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
21
|
+
import { SDKError } from "../models/errors/sdkerror.js";
|
|
22
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
23
|
+
import * as operations from "../models/operations/index.js";
|
|
24
|
+
import { useSDKContext } from "./_context.js";
|
|
25
|
+
import {
|
|
26
|
+
QueryHookOptions,
|
|
27
|
+
SuspenseQueryHookOptions,
|
|
28
|
+
TupleToPrefixes,
|
|
29
|
+
} from "./_types.js";
|
|
30
|
+
import {
|
|
31
|
+
AgentsListFunctionToolsQueryData,
|
|
32
|
+
buildAgentsListFunctionToolsQuery,
|
|
33
|
+
prefetchAgentsListFunctionTools,
|
|
34
|
+
queryKeyAgentsListFunctionTools,
|
|
35
|
+
} from "./agentsListFunctionTools.core.js";
|
|
36
|
+
export {
|
|
37
|
+
type AgentsListFunctionToolsQueryData,
|
|
38
|
+
buildAgentsListFunctionToolsQuery,
|
|
39
|
+
prefetchAgentsListFunctionTools,
|
|
40
|
+
queryKeyAgentsListFunctionTools,
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
export type AgentsListFunctionToolsQueryError =
|
|
44
|
+
| SDKError
|
|
45
|
+
| ResponseValidationError
|
|
46
|
+
| ConnectionError
|
|
47
|
+
| RequestAbortedError
|
|
48
|
+
| RequestTimeoutError
|
|
49
|
+
| InvalidRequestError
|
|
50
|
+
| UnexpectedClientError
|
|
51
|
+
| SDKValidationError;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* List reusable function tools
|
|
55
|
+
*/
|
|
56
|
+
export function useAgentsListFunctionTools(
|
|
57
|
+
request: operations.ListFunctionToolsRequest,
|
|
58
|
+
options?: QueryHookOptions<
|
|
59
|
+
AgentsListFunctionToolsQueryData,
|
|
60
|
+
AgentsListFunctionToolsQueryError
|
|
61
|
+
>,
|
|
62
|
+
): UseQueryResult<
|
|
63
|
+
AgentsListFunctionToolsQueryData,
|
|
64
|
+
AgentsListFunctionToolsQueryError
|
|
65
|
+
> {
|
|
66
|
+
const client = useSDKContext();
|
|
67
|
+
return useQuery({
|
|
68
|
+
...buildAgentsListFunctionToolsQuery(
|
|
69
|
+
client,
|
|
70
|
+
request,
|
|
71
|
+
options,
|
|
72
|
+
),
|
|
73
|
+
...options,
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* List reusable function tools
|
|
79
|
+
*/
|
|
80
|
+
export function useAgentsListFunctionToolsSuspense(
|
|
81
|
+
request: operations.ListFunctionToolsRequest,
|
|
82
|
+
options?: SuspenseQueryHookOptions<
|
|
83
|
+
AgentsListFunctionToolsQueryData,
|
|
84
|
+
AgentsListFunctionToolsQueryError
|
|
85
|
+
>,
|
|
86
|
+
): UseSuspenseQueryResult<
|
|
87
|
+
AgentsListFunctionToolsQueryData,
|
|
88
|
+
AgentsListFunctionToolsQueryError
|
|
89
|
+
> {
|
|
90
|
+
const client = useSDKContext();
|
|
91
|
+
return useSuspenseQuery({
|
|
92
|
+
...buildAgentsListFunctionToolsQuery(
|
|
93
|
+
client,
|
|
94
|
+
request,
|
|
95
|
+
options,
|
|
96
|
+
),
|
|
97
|
+
...options,
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export function setAgentsListFunctionToolsData(
|
|
102
|
+
client: QueryClient,
|
|
103
|
+
queryKeyBase: [
|
|
104
|
+
parameters: {
|
|
105
|
+
after?: string | undefined;
|
|
106
|
+
limit?: number | undefined;
|
|
107
|
+
order?: operations.ListFunctionToolsQueryParamOrder | undefined;
|
|
108
|
+
xOnBehalfOf?: string | undefined;
|
|
109
|
+
},
|
|
110
|
+
],
|
|
111
|
+
data: AgentsListFunctionToolsQueryData,
|
|
112
|
+
): AgentsListFunctionToolsQueryData | undefined {
|
|
113
|
+
const key = queryKeyAgentsListFunctionTools(...queryKeyBase);
|
|
114
|
+
|
|
115
|
+
return client.setQueryData<AgentsListFunctionToolsQueryData>(key, data);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
export function invalidateAgentsListFunctionTools(
|
|
119
|
+
client: QueryClient,
|
|
120
|
+
queryKeyBase: TupleToPrefixes<
|
|
121
|
+
[parameters: {
|
|
122
|
+
after?: string | undefined;
|
|
123
|
+
limit?: number | undefined;
|
|
124
|
+
order?: operations.ListFunctionToolsQueryParamOrder | undefined;
|
|
125
|
+
xOnBehalfOf?: string | undefined;
|
|
126
|
+
}]
|
|
127
|
+
>,
|
|
128
|
+
filters?: Omit<InvalidateQueryFilters, "queryKey" | "predicate" | "exact">,
|
|
129
|
+
): Promise<void> {
|
|
130
|
+
return client.invalidateQueries({
|
|
131
|
+
...filters,
|
|
132
|
+
queryKey: ["@meetkai/mka1", "Agents", "listFunctionTools", ...queryKeyBase],
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
export function invalidateAllAgentsListFunctionTools(
|
|
137
|
+
client: QueryClient,
|
|
138
|
+
filters?: Omit<InvalidateQueryFilters, "queryKey" | "predicate" | "exact">,
|
|
139
|
+
): Promise<void> {
|
|
140
|
+
return client.invalidateQueries({
|
|
141
|
+
...filters,
|
|
142
|
+
queryKey: ["@meetkai/mka1", "Agents", "listFunctionTools"],
|
|
143
|
+
});
|
|
144
|
+
}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import {
|
|
6
|
+
MutationKey,
|
|
7
|
+
useMutation,
|
|
8
|
+
UseMutationResult,
|
|
9
|
+
} from "@tanstack/react-query";
|
|
10
|
+
import { SDKCore } from "../core.js";
|
|
11
|
+
import { agentsRestoreAgent } from "../funcs/agentsRestoreAgent.js";
|
|
12
|
+
import { combineSignals } from "../lib/primitives.js";
|
|
13
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
14
|
+
import * as components from "../models/components/index.js";
|
|
15
|
+
import {
|
|
16
|
+
ConnectionError,
|
|
17
|
+
InvalidRequestError,
|
|
18
|
+
RequestAbortedError,
|
|
19
|
+
RequestTimeoutError,
|
|
20
|
+
UnexpectedClientError,
|
|
21
|
+
} from "../models/errors/httpclienterrors.js";
|
|
22
|
+
import * as errors from "../models/errors/index.js";
|
|
23
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
24
|
+
import { SDKError } from "../models/errors/sdkerror.js";
|
|
25
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
26
|
+
import * as operations from "../models/operations/index.js";
|
|
27
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
28
|
+
import { useSDKContext } from "./_context.js";
|
|
29
|
+
import { MutationHookOptions } from "./_types.js";
|
|
30
|
+
|
|
31
|
+
export type AgentsRestoreAgentMutationVariables = {
|
|
32
|
+
request: operations.RestoreAgentRequest;
|
|
33
|
+
options?: RequestOptions;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
export type AgentsRestoreAgentMutationData = components.Agent;
|
|
37
|
+
|
|
38
|
+
export type AgentsRestoreAgentMutationError =
|
|
39
|
+
| errors.ErrorEnvelope
|
|
40
|
+
| SDKError
|
|
41
|
+
| ResponseValidationError
|
|
42
|
+
| ConnectionError
|
|
43
|
+
| RequestAbortedError
|
|
44
|
+
| RequestTimeoutError
|
|
45
|
+
| InvalidRequestError
|
|
46
|
+
| UnexpectedClientError
|
|
47
|
+
| SDKValidationError;
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Restore a soft-deleted agent
|
|
51
|
+
*
|
|
52
|
+
* @remarks
|
|
53
|
+
* Restores the original configuration and history before retention_expires_at. Requires write:agents in the original mutation tenancy. Schedules remain paused.
|
|
54
|
+
*/
|
|
55
|
+
export function useAgentsRestoreAgentMutation(
|
|
56
|
+
options?: MutationHookOptions<
|
|
57
|
+
AgentsRestoreAgentMutationData,
|
|
58
|
+
AgentsRestoreAgentMutationError,
|
|
59
|
+
AgentsRestoreAgentMutationVariables
|
|
60
|
+
>,
|
|
61
|
+
): UseMutationResult<
|
|
62
|
+
AgentsRestoreAgentMutationData,
|
|
63
|
+
AgentsRestoreAgentMutationError,
|
|
64
|
+
AgentsRestoreAgentMutationVariables
|
|
65
|
+
> {
|
|
66
|
+
const client = useSDKContext();
|
|
67
|
+
return useMutation({
|
|
68
|
+
...buildAgentsRestoreAgentMutation(client, options),
|
|
69
|
+
...options,
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function mutationKeyAgentsRestoreAgent(): MutationKey {
|
|
74
|
+
return ["@meetkai/mka1", "Agents", "restoreAgent"];
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function buildAgentsRestoreAgentMutation(
|
|
78
|
+
client$: SDKCore,
|
|
79
|
+
hookOptions?: RequestOptions,
|
|
80
|
+
): {
|
|
81
|
+
mutationKey: MutationKey;
|
|
82
|
+
mutationFn: (
|
|
83
|
+
variables: AgentsRestoreAgentMutationVariables,
|
|
84
|
+
) => Promise<AgentsRestoreAgentMutationData>;
|
|
85
|
+
} {
|
|
86
|
+
return {
|
|
87
|
+
mutationKey: mutationKeyAgentsRestoreAgent(),
|
|
88
|
+
mutationFn: function agentsRestoreAgentMutationFn({
|
|
89
|
+
request,
|
|
90
|
+
options,
|
|
91
|
+
}): Promise<AgentsRestoreAgentMutationData> {
|
|
92
|
+
const mergedOptions = {
|
|
93
|
+
...hookOptions,
|
|
94
|
+
...options,
|
|
95
|
+
fetchOptions: {
|
|
96
|
+
...hookOptions?.fetchOptions,
|
|
97
|
+
...options?.fetchOptions,
|
|
98
|
+
signal: combineSignals(
|
|
99
|
+
hookOptions?.fetchOptions?.signal,
|
|
100
|
+
options?.fetchOptions?.signal,
|
|
101
|
+
),
|
|
102
|
+
},
|
|
103
|
+
};
|
|
104
|
+
return unwrapAsync(agentsRestoreAgent(
|
|
105
|
+
client$,
|
|
106
|
+
request,
|
|
107
|
+
mergedOptions,
|
|
108
|
+
));
|
|
109
|
+
},
|
|
110
|
+
};
|
|
111
|
+
}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import {
|
|
6
|
+
MutationKey,
|
|
7
|
+
useMutation,
|
|
8
|
+
UseMutationResult,
|
|
9
|
+
} from "@tanstack/react-query";
|
|
10
|
+
import { SDKCore } from "../core.js";
|
|
11
|
+
import { agentsUpdateFunctionTool } from "../funcs/agentsUpdateFunctionTool.js";
|
|
12
|
+
import { combineSignals } from "../lib/primitives.js";
|
|
13
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
14
|
+
import * as components from "../models/components/index.js";
|
|
15
|
+
import {
|
|
16
|
+
ConnectionError,
|
|
17
|
+
InvalidRequestError,
|
|
18
|
+
RequestAbortedError,
|
|
19
|
+
RequestTimeoutError,
|
|
20
|
+
UnexpectedClientError,
|
|
21
|
+
} from "../models/errors/httpclienterrors.js";
|
|
22
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
23
|
+
import { SDKError } from "../models/errors/sdkerror.js";
|
|
24
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
25
|
+
import * as operations from "../models/operations/index.js";
|
|
26
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
27
|
+
import { useSDKContext } from "./_context.js";
|
|
28
|
+
import { MutationHookOptions } from "./_types.js";
|
|
29
|
+
|
|
30
|
+
export type AgentsUpdateFunctionToolMutationVariables = {
|
|
31
|
+
request: operations.UpdateFunctionToolRequest;
|
|
32
|
+
options?: RequestOptions;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
export type AgentsUpdateFunctionToolMutationData = components.FunctionTool;
|
|
36
|
+
|
|
37
|
+
export type AgentsUpdateFunctionToolMutationError =
|
|
38
|
+
| SDKError
|
|
39
|
+
| ResponseValidationError
|
|
40
|
+
| ConnectionError
|
|
41
|
+
| RequestAbortedError
|
|
42
|
+
| RequestTimeoutError
|
|
43
|
+
| InvalidRequestError
|
|
44
|
+
| UnexpectedClientError
|
|
45
|
+
| SDKValidationError;
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Replace a reusable function definition
|
|
49
|
+
*
|
|
50
|
+
* @remarks
|
|
51
|
+
* Updates apply to every attached agent on its next run. Existing run snapshots are immutable.
|
|
52
|
+
*/
|
|
53
|
+
export function useAgentsUpdateFunctionToolMutation(
|
|
54
|
+
options?: MutationHookOptions<
|
|
55
|
+
AgentsUpdateFunctionToolMutationData,
|
|
56
|
+
AgentsUpdateFunctionToolMutationError,
|
|
57
|
+
AgentsUpdateFunctionToolMutationVariables
|
|
58
|
+
>,
|
|
59
|
+
): UseMutationResult<
|
|
60
|
+
AgentsUpdateFunctionToolMutationData,
|
|
61
|
+
AgentsUpdateFunctionToolMutationError,
|
|
62
|
+
AgentsUpdateFunctionToolMutationVariables
|
|
63
|
+
> {
|
|
64
|
+
const client = useSDKContext();
|
|
65
|
+
return useMutation({
|
|
66
|
+
...buildAgentsUpdateFunctionToolMutation(client, options),
|
|
67
|
+
...options,
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function mutationKeyAgentsUpdateFunctionTool(): MutationKey {
|
|
72
|
+
return ["@meetkai/mka1", "Agents", "updateFunctionTool"];
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function buildAgentsUpdateFunctionToolMutation(
|
|
76
|
+
client$: SDKCore,
|
|
77
|
+
hookOptions?: RequestOptions,
|
|
78
|
+
): {
|
|
79
|
+
mutationKey: MutationKey;
|
|
80
|
+
mutationFn: (
|
|
81
|
+
variables: AgentsUpdateFunctionToolMutationVariables,
|
|
82
|
+
) => Promise<AgentsUpdateFunctionToolMutationData>;
|
|
83
|
+
} {
|
|
84
|
+
return {
|
|
85
|
+
mutationKey: mutationKeyAgentsUpdateFunctionTool(),
|
|
86
|
+
mutationFn: function agentsUpdateFunctionToolMutationFn({
|
|
87
|
+
request,
|
|
88
|
+
options,
|
|
89
|
+
}): Promise<AgentsUpdateFunctionToolMutationData> {
|
|
90
|
+
const mergedOptions = {
|
|
91
|
+
...hookOptions,
|
|
92
|
+
...options,
|
|
93
|
+
fetchOptions: {
|
|
94
|
+
...hookOptions?.fetchOptions,
|
|
95
|
+
...options?.fetchOptions,
|
|
96
|
+
signal: combineSignals(
|
|
97
|
+
hookOptions?.fetchOptions?.signal,
|
|
98
|
+
options?.fetchOptions?.signal,
|
|
99
|
+
),
|
|
100
|
+
},
|
|
101
|
+
};
|
|
102
|
+
return unwrapAsync(agentsUpdateFunctionTool(
|
|
103
|
+
client$,
|
|
104
|
+
request,
|
|
105
|
+
mergedOptions,
|
|
106
|
+
));
|
|
107
|
+
},
|
|
108
|
+
};
|
|
109
|
+
}
|
package/src/react-query/index.ts
CHANGED
|
@@ -25,10 +25,16 @@ export * from "./agentSchedulesPauseAgentSchedule.js";
|
|
|
25
25
|
export * from "./agentSchedulesResumeAgentSchedule.js";
|
|
26
26
|
export * from "./agentSchedulesUpdateAgentSchedule.js";
|
|
27
27
|
export * from "./agentsCreateAgent.js";
|
|
28
|
+
export * from "./agentsCreateFunctionTool.js";
|
|
28
29
|
export * from "./agentsDeleteAgent.js";
|
|
30
|
+
export * from "./agentsDeleteFunctionTool.js";
|
|
29
31
|
export * from "./agentsGetAgent.js";
|
|
32
|
+
export * from "./agentsGetFunctionTool.js";
|
|
30
33
|
export * from "./agentsListAgents.js";
|
|
34
|
+
export * from "./agentsListFunctionTools.js";
|
|
35
|
+
export * from "./agentsRestoreAgent.js";
|
|
31
36
|
export * from "./agentsUpdateAgent.js";
|
|
37
|
+
export * from "./agentsUpdateFunctionTool.js";
|
|
32
38
|
export * from "./agentVersionsGetAgentVersion.js";
|
|
33
39
|
export * from "./agentVersionsListAgentVersions.js";
|
|
34
40
|
export * from "./agentVersionsRollbackAgentVersion.js";
|
package/src/sdk/agents.ts
CHANGED
|
@@ -3,16 +3,98 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import { agentsCreateAgent } from "../funcs/agentsCreateAgent.js";
|
|
6
|
+
import { agentsCreateFunctionTool } from "../funcs/agentsCreateFunctionTool.js";
|
|
6
7
|
import { agentsDeleteAgent } from "../funcs/agentsDeleteAgent.js";
|
|
8
|
+
import { agentsDeleteFunctionTool } from "../funcs/agentsDeleteFunctionTool.js";
|
|
7
9
|
import { agentsGetAgent } from "../funcs/agentsGetAgent.js";
|
|
10
|
+
import { agentsGetFunctionTool } from "../funcs/agentsGetFunctionTool.js";
|
|
8
11
|
import { agentsListAgents } from "../funcs/agentsListAgents.js";
|
|
12
|
+
import { agentsListFunctionTools } from "../funcs/agentsListFunctionTools.js";
|
|
13
|
+
import { agentsRestoreAgent } from "../funcs/agentsRestoreAgent.js";
|
|
9
14
|
import { agentsUpdateAgent } from "../funcs/agentsUpdateAgent.js";
|
|
15
|
+
import { agentsUpdateFunctionTool } from "../funcs/agentsUpdateFunctionTool.js";
|
|
10
16
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
11
17
|
import * as components from "../models/components/index.js";
|
|
12
18
|
import * as operations from "../models/operations/index.js";
|
|
13
19
|
import { unwrapAsync } from "../types/fp.js";
|
|
14
20
|
|
|
15
21
|
export class Agents extends ClientSDK {
|
|
22
|
+
/**
|
|
23
|
+
* List reusable function tools
|
|
24
|
+
*/
|
|
25
|
+
async listFunctionTools(
|
|
26
|
+
request: operations.ListFunctionToolsRequest,
|
|
27
|
+
options?: RequestOptions,
|
|
28
|
+
): Promise<components.FunctionToolList> {
|
|
29
|
+
return unwrapAsync(agentsListFunctionTools(
|
|
30
|
+
this,
|
|
31
|
+
request,
|
|
32
|
+
options,
|
|
33
|
+
));
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Create a reusable function tool
|
|
38
|
+
*/
|
|
39
|
+
async createFunctionTool(
|
|
40
|
+
request: operations.CreateFunctionToolRequest,
|
|
41
|
+
options?: RequestOptions,
|
|
42
|
+
): Promise<components.FunctionTool> {
|
|
43
|
+
return unwrapAsync(agentsCreateFunctionTool(
|
|
44
|
+
this,
|
|
45
|
+
request,
|
|
46
|
+
options,
|
|
47
|
+
));
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Get a reusable function tool
|
|
52
|
+
*/
|
|
53
|
+
async getFunctionTool(
|
|
54
|
+
request: operations.GetFunctionToolRequest,
|
|
55
|
+
options?: RequestOptions,
|
|
56
|
+
): Promise<components.FunctionTool> {
|
|
57
|
+
return unwrapAsync(agentsGetFunctionTool(
|
|
58
|
+
this,
|
|
59
|
+
request,
|
|
60
|
+
options,
|
|
61
|
+
));
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Replace a reusable function definition
|
|
66
|
+
*
|
|
67
|
+
* @remarks
|
|
68
|
+
* Updates apply to every attached agent on its next run. Existing run snapshots are immutable.
|
|
69
|
+
*/
|
|
70
|
+
async updateFunctionTool(
|
|
71
|
+
request: operations.UpdateFunctionToolRequest,
|
|
72
|
+
options?: RequestOptions,
|
|
73
|
+
): Promise<components.FunctionTool> {
|
|
74
|
+
return unwrapAsync(agentsUpdateFunctionTool(
|
|
75
|
+
this,
|
|
76
|
+
request,
|
|
77
|
+
options,
|
|
78
|
+
));
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Delete a reusable function tool
|
|
83
|
+
*
|
|
84
|
+
* @remarks
|
|
85
|
+
* Attached agents fail until the unavailable reference is removed. Existing run snapshots remain usable.
|
|
86
|
+
*/
|
|
87
|
+
async deleteFunctionTool(
|
|
88
|
+
request: operations.DeleteFunctionToolRequest,
|
|
89
|
+
options?: RequestOptions,
|
|
90
|
+
): Promise<operations.DeleteFunctionToolResponseBody> {
|
|
91
|
+
return unwrapAsync(agentsDeleteFunctionTool(
|
|
92
|
+
this,
|
|
93
|
+
request,
|
|
94
|
+
options,
|
|
95
|
+
));
|
|
96
|
+
}
|
|
97
|
+
|
|
16
98
|
/**
|
|
17
99
|
* List agents
|
|
18
100
|
*/
|
|
@@ -70,7 +152,10 @@ export class Agents extends ClientSDK {
|
|
|
70
152
|
}
|
|
71
153
|
|
|
72
154
|
/**
|
|
73
|
-
*
|
|
155
|
+
* Soft-delete an agent
|
|
156
|
+
*
|
|
157
|
+
* @remarks
|
|
158
|
+
* Preserves configuration versions and run history for audit. The restore deadline is pinned using AGENT_RETENTION_DAYS at deletion.
|
|
74
159
|
*/
|
|
75
160
|
async deleteAgent(
|
|
76
161
|
request: operations.DeleteAgentRequest,
|
|
@@ -82,4 +167,21 @@ export class Agents extends ClientSDK {
|
|
|
82
167
|
options,
|
|
83
168
|
));
|
|
84
169
|
}
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* Restore a soft-deleted agent
|
|
173
|
+
*
|
|
174
|
+
* @remarks
|
|
175
|
+
* Restores the original configuration and history before retention_expires_at. Requires write:agents in the original mutation tenancy. Schedules remain paused.
|
|
176
|
+
*/
|
|
177
|
+
async restoreAgent(
|
|
178
|
+
request: operations.RestoreAgentRequest,
|
|
179
|
+
options?: RequestOptions,
|
|
180
|
+
): Promise<components.Agent> {
|
|
181
|
+
return unwrapAsync(agentsRestoreAgent(
|
|
182
|
+
this,
|
|
183
|
+
request,
|
|
184
|
+
options,
|
|
185
|
+
));
|
|
186
|
+
}
|
|
85
187
|
}
|