@archships/dim-agent-sdk 0.0.3 → 0.0.5
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 +27 -5
- package/dist/dim-agent-sdk/src/agent-core/agent-types.d.ts +3 -2
- package/dist/dim-agent-sdk/src/agent-core/{Agent.d.ts → agent.d.ts} +2 -2
- package/dist/dim-agent-sdk/src/agent-core/index.d.ts +10 -10
- package/dist/dim-agent-sdk/src/agent-core/{LoopRunner.d.ts → loop-runner.d.ts} +6 -5
- package/dist/dim-agent-sdk/src/agent-core/notifications.d.ts +1 -1
- package/dist/dim-agent-sdk/src/agent-core/session-state.d.ts +3 -2
- package/dist/dim-agent-sdk/src/agent-core/{Session.d.ts → session.d.ts} +48 -9
- package/dist/dim-agent-sdk/src/agent-core/{ToolExecutor.d.ts → tool-executor.d.ts} +2 -2
- package/dist/dim-agent-sdk/src/context/{AutoContextManager.d.ts → auto-context-manager.d.ts} +1 -1
- package/dist/dim-agent-sdk/src/context/index.d.ts +2 -2
- package/dist/dim-agent-sdk/src/contracts/event.d.ts +13 -7
- package/dist/dim-agent-sdk/src/contracts/state.d.ts +32 -1
- package/dist/dim-agent-sdk/src/index.d.ts +7 -6
- package/dist/dim-agent-sdk/src/persistence/index.d.ts +5 -5
- package/dist/dim-agent-sdk/src/persistence/{SnapshotCodec.d.ts → snapshot-codec.d.ts} +2 -1
- package/dist/dim-agent-sdk/src/plugin-host/index.d.ts +2 -2
- package/dist/dim-agent-sdk/src/plugin-host/{PluginHost.d.ts → plugin-host.d.ts} +4 -4
- package/dist/dim-agent-sdk/src/providers/aihubmix/adapter.d.ts +17 -0
- package/dist/dim-agent-sdk/src/providers/aihubmix/driver.d.ts +3 -0
- package/dist/dim-agent-sdk/src/providers/aihubmix/index.d.ts +2 -0
- package/dist/dim-agent-sdk/src/providers/aihubmix-responses/adapter.d.ts +17 -0
- package/dist/dim-agent-sdk/src/providers/aihubmix-responses/driver.d.ts +12 -0
- package/dist/dim-agent-sdk/src/providers/aihubmix-responses/index.d.ts +2 -0
- package/dist/dim-agent-sdk/src/providers/aihubmix-responses/state.d.ts +7 -0
- package/dist/dim-agent-sdk/src/providers/anthropic/adapter.d.ts +15 -4
- package/dist/dim-agent-sdk/src/providers/anthropic/driver.d.ts +3 -0
- package/dist/dim-agent-sdk/src/providers/anthropic/index.d.ts +2 -0
- package/dist/dim-agent-sdk/src/providers/anthropic/state.d.ts +6 -0
- package/dist/dim-agent-sdk/src/providers/core/create-provider-factory.d.ts +39 -0
- package/dist/dim-agent-sdk/src/providers/core/index.d.ts +2 -0
- package/dist/dim-agent-sdk/src/providers/deepseek/adapter.d.ts +11 -0
- package/dist/dim-agent-sdk/src/providers/deepseek/driver.d.ts +3 -0
- package/dist/dim-agent-sdk/src/providers/deepseek/index.d.ts +2 -0
- package/dist/dim-agent-sdk/src/providers/gemini/adapter.d.ts +3 -4
- package/dist/dim-agent-sdk/src/providers/gemini/driver.d.ts +3 -0
- package/dist/dim-agent-sdk/src/providers/gemini/index.d.ts +2 -0
- package/dist/dim-agent-sdk/src/providers/gemini/state.d.ts +5 -0
- package/dist/dim-agent-sdk/src/providers/index.d.ts +22 -8
- package/dist/dim-agent-sdk/src/providers/moonshotai/adapter.d.ts +11 -0
- package/dist/dim-agent-sdk/src/providers/moonshotai/driver.d.ts +3 -0
- package/dist/dim-agent-sdk/src/providers/moonshotai/index.d.ts +2 -0
- package/dist/dim-agent-sdk/src/providers/openai/adapter.d.ts +3 -4
- package/dist/dim-agent-sdk/src/providers/openai/driver.d.ts +3 -0
- package/dist/dim-agent-sdk/src/providers/openai/index.d.ts +2 -0
- package/dist/dim-agent-sdk/src/providers/openai-responses/adapter.d.ts +3 -4
- package/dist/dim-agent-sdk/src/providers/openai-responses/driver.d.ts +3 -0
- package/dist/dim-agent-sdk/src/providers/openai-responses/index.d.ts +2 -0
- package/dist/dim-agent-sdk/src/providers/openai-responses/state.d.ts +7 -0
- package/dist/dim-agent-sdk/src/providers/shared/ai-sdk-driver.d.ts +7 -0
- package/dist/dim-agent-sdk/src/providers/shared/auth-warning.d.ts +6 -0
- package/dist/dim-agent-sdk/src/providers/shared/fetch.d.ts +8 -0
- package/dist/dim-agent-sdk/src/providers/shared/http-error.d.ts +10 -0
- package/dist/dim-agent-sdk/src/providers/shared/prompt.d.ts +14 -0
- package/dist/dim-agent-sdk/src/providers/shared/reasoning.d.ts +30 -7
- package/dist/dim-agent-sdk/src/providers/shared/responses-state.d.ts +11 -0
- package/dist/dim-agent-sdk/src/providers/shared/usage.d.ts +4 -2
- package/dist/dim-agent-sdk/src/providers/xai/adapter.d.ts +11 -0
- package/dist/dim-agent-sdk/src/providers/xai/driver.d.ts +3 -0
- package/dist/dim-agent-sdk/src/providers/xai/index.d.ts +2 -0
- package/dist/dim-agent-sdk/src/providers/xai-responses/adapter.d.ts +11 -0
- package/dist/dim-agent-sdk/src/providers/xai-responses/driver.d.ts +3 -0
- package/dist/dim-agent-sdk/src/providers/xai-responses/index.d.ts +2 -0
- package/dist/dim-agent-sdk/src/providers/xai-responses/state.d.ts +7 -0
- package/dist/dim-agent-sdk/src/providers/zenmux/adapter.d.ts +13 -0
- package/dist/dim-agent-sdk/src/providers/zenmux/driver.d.ts +3 -0
- package/dist/dim-agent-sdk/src/providers/zenmux/index.d.ts +2 -0
- package/dist/dim-agent-sdk/src/services/index.d.ts +6 -6
- package/dist/dim-agent-sdk/src/tools/builtins/{EditTool.d.ts → edit-tool.d.ts} +1 -1
- package/dist/dim-agent-sdk/src/tools/builtins/{ExecTool.d.ts → exec-tool.d.ts} +1 -1
- package/dist/dim-agent-sdk/src/tools/builtins/index.d.ts +4 -4
- package/dist/dim-agent-sdk/src/tools/builtins/{ReadTool.d.ts → read-tool.d.ts} +1 -1
- package/dist/dim-agent-sdk/src/tools/builtins/{WriteTool.d.ts → write-tool.d.ts} +1 -1
- package/dist/dim-agent-sdk/src/tools/index.d.ts +2 -2
- package/dist/dim-plugin-api/src/index.d.ts +18 -1
- package/dist/{index.js → src/index.js} +4422 -3627
- package/dist/src/providers/aihubmix/index.js +636 -0
- package/dist/src/providers/aihubmix-responses/index.js +759 -0
- package/dist/src/providers/anthropic/index.js +743 -0
- package/dist/src/providers/core/index.js +92 -0
- package/dist/src/providers/deepseek/index.js +639 -0
- package/dist/src/providers/gemini/index.js +756 -0
- package/dist/src/providers/moonshotai/index.js +639 -0
- package/dist/src/providers/openai/index.js +499 -0
- package/dist/src/providers/openai-responses/index.js +727 -0
- package/dist/src/providers/xai/index.js +639 -0
- package/dist/src/providers/xai-responses/index.js +728 -0
- package/dist/src/providers/zenmux/index.js +642 -0
- package/package.json +74 -5
- package/dist/dim-agent-sdk/src/providers/anthropic/mapper.d.ts +0 -28
- package/dist/dim-agent-sdk/src/providers/gemini/mapper.d.ts +0 -30
- package/dist/dim-agent-sdk/src/providers/openai/mapper.d.ts +0 -15
- package/dist/dim-agent-sdk/src/providers/openai-responses/mapper.d.ts +0 -40
- /package/dist/dim-agent-sdk/src/agent-core/{createModel.d.ts → create-model.d.ts} +0 -0
- /package/dist/dim-agent-sdk/src/agent-core/{MessageFactory.d.ts → message-factory.d.ts} +0 -0
- /package/dist/dim-agent-sdk/src/agent-core/{ModelTurnCollector.d.ts → model-turn-collector.d.ts} +0 -0
- /package/dist/dim-agent-sdk/src/agent-core/{TerminationPolicy.d.ts → termination-policy.d.ts} +0 -0
- /package/dist/dim-agent-sdk/src/persistence/{FileStateStore.d.ts → file-state-store.d.ts} +0 -0
- /package/dist/dim-agent-sdk/src/persistence/{InMemoryStateStore.d.ts → in-memory-state-store.d.ts} +0 -0
- /package/dist/dim-agent-sdk/src/plugin-host/{HookPipeline.d.ts → hook-pipeline.d.ts} +0 -0
- /package/dist/dim-agent-sdk/src/services/{ExecGateway.d.ts → exec-gateway.d.ts} +0 -0
- /package/dist/dim-agent-sdk/src/services/{FileSystemGateway.d.ts → file-system-gateway.d.ts} +0 -0
- /package/dist/dim-agent-sdk/src/services/{GitGateway.d.ts → git-gateway.d.ts} +0 -0
- /package/dist/dim-agent-sdk/src/services/{ModelGateway.d.ts → model-gateway.d.ts} +0 -0
- /package/dist/dim-agent-sdk/src/services/{NetworkGateway.d.ts → network-gateway.d.ts} +0 -0
- /package/dist/dim-agent-sdk/src/services/{PermissionGateway.d.ts → permission-gateway.d.ts} +0 -0
- /package/dist/dim-agent-sdk/src/tools/{BaseTool.d.ts → base-tool.d.ts} +0 -0
- /package/dist/dim-agent-sdk/src/tools/{ToolRegistry.d.ts → tool-registry.d.ts} +0 -0
package/package.json
CHANGED
|
@@ -1,17 +1,77 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@archships/dim-agent-sdk",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5",
|
|
4
4
|
"description": "An agent-first TypeScript SDK with provider adapters, sessions, hooks, plugins, and runtime gateways.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
7
7
|
".": {
|
|
8
8
|
"bun": "./src/index.ts",
|
|
9
|
-
"types": "./dist/index.d.ts",
|
|
9
|
+
"types": "./dist/dim-agent-sdk/src/index.d.ts",
|
|
10
10
|
"import": "./dist/index.js"
|
|
11
|
+
},
|
|
12
|
+
"./providers/core": {
|
|
13
|
+
"bun": "./src/providers/core/index.ts",
|
|
14
|
+
"types": "./dist/dim-agent-sdk/src/providers/core/index.d.ts",
|
|
15
|
+
"import": "./dist/providers/core/index.js"
|
|
16
|
+
},
|
|
17
|
+
"./providers/zenmux": {
|
|
18
|
+
"bun": "./src/providers/zenmux/index.ts",
|
|
19
|
+
"types": "./dist/dim-agent-sdk/src/providers/zenmux/index.d.ts",
|
|
20
|
+
"import": "./dist/providers/zenmux/index.js"
|
|
21
|
+
},
|
|
22
|
+
"./providers/aihubmix": {
|
|
23
|
+
"bun": "./src/providers/aihubmix/index.ts",
|
|
24
|
+
"types": "./dist/dim-agent-sdk/src/providers/aihubmix/index.d.ts",
|
|
25
|
+
"import": "./dist/providers/aihubmix/index.js"
|
|
26
|
+
},
|
|
27
|
+
"./providers/aihubmix-responses": {
|
|
28
|
+
"bun": "./src/providers/aihubmix-responses/index.ts",
|
|
29
|
+
"types": "./dist/dim-agent-sdk/src/providers/aihubmix-responses/index.d.ts",
|
|
30
|
+
"import": "./dist/providers/aihubmix-responses/index.js"
|
|
31
|
+
},
|
|
32
|
+
"./providers/moonshotai": {
|
|
33
|
+
"bun": "./src/providers/moonshotai/index.ts",
|
|
34
|
+
"types": "./dist/dim-agent-sdk/src/providers/moonshotai/index.d.ts",
|
|
35
|
+
"import": "./dist/providers/moonshotai/index.js"
|
|
36
|
+
},
|
|
37
|
+
"./providers/deepseek": {
|
|
38
|
+
"bun": "./src/providers/deepseek/index.ts",
|
|
39
|
+
"types": "./dist/dim-agent-sdk/src/providers/deepseek/index.d.ts",
|
|
40
|
+
"import": "./dist/providers/deepseek/index.js"
|
|
41
|
+
},
|
|
42
|
+
"./providers/xai": {
|
|
43
|
+
"bun": "./src/providers/xai/index.ts",
|
|
44
|
+
"types": "./dist/dim-agent-sdk/src/providers/xai/index.d.ts",
|
|
45
|
+
"import": "./dist/providers/xai/index.js"
|
|
46
|
+
},
|
|
47
|
+
"./providers/xai-responses": {
|
|
48
|
+
"bun": "./src/providers/xai-responses/index.ts",
|
|
49
|
+
"types": "./dist/dim-agent-sdk/src/providers/xai-responses/index.d.ts",
|
|
50
|
+
"import": "./dist/providers/xai-responses/index.js"
|
|
51
|
+
},
|
|
52
|
+
"./providers/openai": {
|
|
53
|
+
"bun": "./src/providers/openai/index.ts",
|
|
54
|
+
"types": "./dist/dim-agent-sdk/src/providers/openai/index.d.ts",
|
|
55
|
+
"import": "./dist/providers/openai/index.js"
|
|
56
|
+
},
|
|
57
|
+
"./providers/openai-responses": {
|
|
58
|
+
"bun": "./src/providers/openai-responses/index.ts",
|
|
59
|
+
"types": "./dist/dim-agent-sdk/src/providers/openai-responses/index.d.ts",
|
|
60
|
+
"import": "./dist/providers/openai-responses/index.js"
|
|
61
|
+
},
|
|
62
|
+
"./providers/anthropic": {
|
|
63
|
+
"bun": "./src/providers/anthropic/index.ts",
|
|
64
|
+
"types": "./dist/dim-agent-sdk/src/providers/anthropic/index.d.ts",
|
|
65
|
+
"import": "./dist/providers/anthropic/index.js"
|
|
66
|
+
},
|
|
67
|
+
"./providers/gemini": {
|
|
68
|
+
"bun": "./src/providers/gemini/index.ts",
|
|
69
|
+
"types": "./dist/dim-agent-sdk/src/providers/gemini/index.d.ts",
|
|
70
|
+
"import": "./dist/providers/gemini/index.js"
|
|
11
71
|
}
|
|
12
72
|
},
|
|
13
73
|
"main": "./dist/index.js",
|
|
14
|
-
"types": "./dist/index.d.ts",
|
|
74
|
+
"types": "./dist/dim-agent-sdk/src/index.d.ts",
|
|
15
75
|
"files": [
|
|
16
76
|
"dist/**/*"
|
|
17
77
|
],
|
|
@@ -19,7 +79,7 @@
|
|
|
19
79
|
"node": ">=18"
|
|
20
80
|
},
|
|
21
81
|
"scripts": {
|
|
22
|
-
"build": "rm -rf dist && bun build ./src/index.ts --outdir dist --target node --format esm && bun x tsc --project tsconfig.build.json",
|
|
82
|
+
"build": "rm -rf dist && bun build ./src/index.ts ./src/providers/core/index.ts ./src/providers/zenmux/index.ts ./src/providers/aihubmix/index.ts ./src/providers/aihubmix-responses/index.ts ./src/providers/moonshotai/index.ts ./src/providers/deepseek/index.ts ./src/providers/xai/index.ts ./src/providers/xai-responses/index.ts ./src/providers/openai/index.ts ./src/providers/openai-responses/index.ts ./src/providers/anthropic/index.ts ./src/providers/gemini/index.ts --outdir dist --target node --format esm --external @ai-sdk/provider --external @ai-sdk/openai --external @ai-sdk/anthropic --external @ai-sdk/google --external @ai-sdk/moonshotai --external @ai-sdk/deepseek --external @ai-sdk/xai --external @aihubmix/ai-sdk-provider --external @zenmux/ai-sdk-provider && bun x tsc --project tsconfig.build.json",
|
|
23
83
|
"typecheck": "bun x tsc --noEmit",
|
|
24
84
|
"test": "bun test",
|
|
25
85
|
"test:e2e": "bun test test/e2e",
|
|
@@ -49,6 +109,15 @@
|
|
|
49
109
|
"access": "public"
|
|
50
110
|
},
|
|
51
111
|
"dependencies": {
|
|
52
|
-
"@
|
|
112
|
+
"@ai-sdk/anthropic": "^3.0.58",
|
|
113
|
+
"@ai-sdk/deepseek": "^2.0.24",
|
|
114
|
+
"@ai-sdk/google": "^3.0.43",
|
|
115
|
+
"@ai-sdk/moonshotai": "^2.0.10",
|
|
116
|
+
"@ai-sdk/openai": "^3.0.41",
|
|
117
|
+
"@ai-sdk/provider": "^3.0.8",
|
|
118
|
+
"@ai-sdk/xai": "^3.0.67",
|
|
119
|
+
"@aihubmix/ai-sdk-provider": "^2.0.4",
|
|
120
|
+
"@archships/dim-plugin-api": "^0.0.2",
|
|
121
|
+
"@zenmux/ai-sdk-provider": "1.0.0-beta.1"
|
|
53
122
|
}
|
|
54
123
|
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import type { Message, ModelStopReason, ToolDefinition } from '../../contracts';
|
|
2
|
-
import type { RawToolCallPayload } from '../shared/tool-call';
|
|
3
|
-
export type AnthropicThinkingBlock = {
|
|
4
|
-
type: 'thinking';
|
|
5
|
-
thinking?: string;
|
|
6
|
-
signature?: string;
|
|
7
|
-
} | {
|
|
8
|
-
type: 'redacted_thinking';
|
|
9
|
-
data?: string;
|
|
10
|
-
};
|
|
11
|
-
export type AnthropicContentBlock = {
|
|
12
|
-
type: 'text';
|
|
13
|
-
text?: string;
|
|
14
|
-
} | AnthropicThinkingBlock | {
|
|
15
|
-
type: 'tool_use';
|
|
16
|
-
id?: string;
|
|
17
|
-
name?: string;
|
|
18
|
-
input?: Record<string, unknown>;
|
|
19
|
-
};
|
|
20
|
-
export declare function mapToolDefinitionsToAnthropic(tools: ToolDefinition[] | undefined): unknown[] | undefined;
|
|
21
|
-
export declare function mapAnthropicStopReason(reason: unknown, toolCallCount: number): ModelStopReason;
|
|
22
|
-
export declare function messagesToAnthropic(messages: Message[]): {
|
|
23
|
-
system?: string;
|
|
24
|
-
messages: unknown[];
|
|
25
|
-
};
|
|
26
|
-
export declare function normalizeAnthropicToolCalls(value: AnthropicContentBlock[] | undefined): RawToolCallPayload[];
|
|
27
|
-
export declare function extractAnthropicThinking(value: AnthropicContentBlock[] | undefined): string[];
|
|
28
|
-
export declare function createAnthropicThinkingState(value: AnthropicContentBlock[] | undefined): Record<string, unknown> | undefined;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import type { Message, ModelStopReason, ToolDefinition } from '../../contracts';
|
|
2
|
-
import type { RawToolCallPayload } from '../shared/tool-call';
|
|
3
|
-
export type GeminiPart = {
|
|
4
|
-
text?: string;
|
|
5
|
-
thought?: boolean;
|
|
6
|
-
thoughtSignature?: string;
|
|
7
|
-
} | {
|
|
8
|
-
functionCall?: {
|
|
9
|
-
name?: string;
|
|
10
|
-
args?: Record<string, unknown>;
|
|
11
|
-
};
|
|
12
|
-
thought?: boolean;
|
|
13
|
-
thoughtSignature?: string;
|
|
14
|
-
};
|
|
15
|
-
export declare function mapToolDefinitionsToGemini(tools: ToolDefinition[] | undefined): {
|
|
16
|
-
tools?: unknown[];
|
|
17
|
-
toolConfig?: unknown;
|
|
18
|
-
};
|
|
19
|
-
export declare function mapGeminiStopReason(reason: unknown, toolCallCount: number): ModelStopReason;
|
|
20
|
-
export declare function messagesToGemini(messages: Message[]): {
|
|
21
|
-
contents: unknown[];
|
|
22
|
-
systemInstruction?: {
|
|
23
|
-
parts: Array<{
|
|
24
|
-
text: string;
|
|
25
|
-
}>;
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
export declare function normalizeGeminiToolCalls(value: GeminiPart[] | undefined): RawToolCallPayload[];
|
|
29
|
-
export declare function extractGeminiThinking(value: GeminiPart[] | undefined): string[];
|
|
30
|
-
export declare function createGeminiThoughtState(value: GeminiPart[] | undefined): Record<string, unknown> | undefined;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { ContentBlock, Message, ModelStopReason, ToolDefinition } from '../../contracts';
|
|
2
|
-
import type { RawToolCallPayload } from '../shared/tool-call';
|
|
3
|
-
export declare function mapToolDefinitionsToOpenAI(tools: ToolDefinition[] | undefined): unknown[] | undefined;
|
|
4
|
-
export declare function mapOpenAIStopReason(reason: unknown, toolCallCount: number): ModelStopReason;
|
|
5
|
-
export declare function messageContentToOpenAI(content: ContentBlock[]): string | Array<Record<string, unknown>>;
|
|
6
|
-
export declare function messagesToOpenAI(messages: Message[]): unknown[];
|
|
7
|
-
type OpenAIToolCallPayload = {
|
|
8
|
-
id?: string;
|
|
9
|
-
function?: {
|
|
10
|
-
name?: string;
|
|
11
|
-
arguments?: string;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
export declare function normalizeOpenAIToolCalls(value: OpenAIToolCallPayload[] | undefined): RawToolCallPayload[];
|
|
15
|
-
export {};
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import type { Message, ModelStopReason } from '../../contracts';
|
|
2
|
-
import type { RawToolCallPayload } from '../shared/tool-call';
|
|
3
|
-
export interface OpenAIResponsesRequestPayload {
|
|
4
|
-
instructions?: string;
|
|
5
|
-
input: unknown[];
|
|
6
|
-
previousResponseId?: string;
|
|
7
|
-
}
|
|
8
|
-
export interface OpenAIResponsesTextPart {
|
|
9
|
-
type?: string;
|
|
10
|
-
text?: string;
|
|
11
|
-
}
|
|
12
|
-
export interface OpenAIResponsesOutputItem {
|
|
13
|
-
type?: string;
|
|
14
|
-
id?: string;
|
|
15
|
-
call_id?: string;
|
|
16
|
-
name?: string;
|
|
17
|
-
arguments?: string | Record<string, unknown>;
|
|
18
|
-
role?: string;
|
|
19
|
-
encrypted_content?: string | null;
|
|
20
|
-
summary?: Array<{
|
|
21
|
-
type?: string;
|
|
22
|
-
text?: string;
|
|
23
|
-
}>;
|
|
24
|
-
content?: OpenAIResponsesTextPart[];
|
|
25
|
-
}
|
|
26
|
-
export type OpenAIResponsesState = Record<string, unknown> & {
|
|
27
|
-
responseId: string;
|
|
28
|
-
};
|
|
29
|
-
export declare function mapToolDefinitionsToOpenAIResponses(tools: import('../../contracts').ToolDefinition[] | undefined): unknown[] | undefined;
|
|
30
|
-
export declare function mapOpenAIResponsesStopReason(response: {
|
|
31
|
-
status?: string;
|
|
32
|
-
incomplete_details?: {
|
|
33
|
-
reason?: string | null;
|
|
34
|
-
};
|
|
35
|
-
} | undefined, toolCallCount: number): ModelStopReason;
|
|
36
|
-
export declare function messagesToOpenAIResponses(messages: Message[]): OpenAIResponsesRequestPayload;
|
|
37
|
-
export declare function normalizeOpenAIResponsesToolCalls(output: OpenAIResponsesOutputItem[] | undefined): RawToolCallPayload[];
|
|
38
|
-
export declare function extractOpenAIResponsesText(output: OpenAIResponsesOutputItem[] | undefined): string[];
|
|
39
|
-
export declare function extractOpenAIResponsesThinking(output: OpenAIResponsesOutputItem[] | undefined): string[];
|
|
40
|
-
export declare function createOpenAIResponsesState(responseId: string | undefined): OpenAIResponsesState | undefined;
|
|
File without changes
|
|
File without changes
|
/package/dist/dim-agent-sdk/src/agent-core/{ModelTurnCollector.d.ts → model-turn-collector.d.ts}
RENAMED
|
File without changes
|
/package/dist/dim-agent-sdk/src/agent-core/{TerminationPolicy.d.ts → termination-policy.d.ts}
RENAMED
|
File without changes
|
|
File without changes
|
/package/dist/dim-agent-sdk/src/persistence/{InMemoryStateStore.d.ts → in-memory-state-store.d.ts}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/dim-agent-sdk/src/services/{FileSystemGateway.d.ts → file-system-gateway.d.ts}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|