@agent-commons/sdk 0.1.13 → 0.2.0

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/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- type ModelProvider = 'openai' | 'anthropic' | 'google' | 'mistral' | 'groq' | 'ollama';
1
+ type ModelProvider = 'openai' | 'anthropic' | 'google' | 'mistral' | 'groq' | 'ollama' | 'openrouter' | 'xai' | 'custom';
2
2
  interface ModelConfig {
3
3
  provider: ModelProvider;
4
4
  modelId: string;
@@ -61,8 +61,15 @@ interface RunParams {
61
61
  agentId: string;
62
62
  messages: ChatMessage[];
63
63
  sessionId?: string;
64
+ initiatorId?: string;
64
65
  /** Extra text injected into the agent's system prompt. Used by the CLI to deliver the local tools manifest. */
65
66
  cliContext?: string;
67
+ /** Caller-owned function catalog executed through cli_tool_request events. */
68
+ cliTools?: Array<{
69
+ name: string;
70
+ description: string;
71
+ parameters: Record<string, unknown>;
72
+ }>;
66
73
  }
67
74
  interface ChatMessage {
68
75
  role: 'user' | 'assistant' | 'system' | 'tool';
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- type ModelProvider = 'openai' | 'anthropic' | 'google' | 'mistral' | 'groq' | 'ollama';
1
+ type ModelProvider = 'openai' | 'anthropic' | 'google' | 'mistral' | 'groq' | 'ollama' | 'openrouter' | 'xai' | 'custom';
2
2
  interface ModelConfig {
3
3
  provider: ModelProvider;
4
4
  modelId: string;
@@ -61,8 +61,15 @@ interface RunParams {
61
61
  agentId: string;
62
62
  messages: ChatMessage[];
63
63
  sessionId?: string;
64
+ initiatorId?: string;
64
65
  /** Extra text injected into the agent's system prompt. Used by the CLI to deliver the local tools manifest. */
65
66
  cliContext?: string;
67
+ /** Caller-owned function catalog executed through cli_tool_request events. */
68
+ cliTools?: Array<{
69
+ name: string;
70
+ description: string;
71
+ parameters: Record<string, unknown>;
72
+ }>;
66
73
  }
67
74
  interface ChatMessage {
68
75
  role: 'user' | 'assistant' | 'system' | 'tool';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agent-commons/sdk",
3
- "version": "0.1.13",
3
+ "version": "0.2.0",
4
4
  "description": "Typed client SDK for the Agent Commons API",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",