@omnicross/core 0.1.0 → 0.1.1
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/ApiConverter.cjs +799 -0
- package/dist/ApiConverter.d.cts +82 -0
- package/dist/ApiConverter.d.ts +82 -0
- package/dist/ApiConverter.js +763 -0
- package/dist/BuiltinToolExecutor-BluWyeob.d.ts +81 -0
- package/dist/BuiltinToolExecutor-CS2WpXhM.d.cts +81 -0
- package/dist/CompletionService-7fCmKAP3.d.ts +212 -0
- package/dist/CompletionService-DtOF_War.d.cts +212 -0
- package/dist/{ProviderProxy-f_8ziIhW.d.cts → ProviderProxy-C-xqrkKi.d.ts} +7 -2
- package/dist/{ProviderProxy-vjt8sQQk.d.ts → ProviderProxy-CnMQYN59.d.cts} +7 -2
- package/dist/completion/BuiltinToolExecutor.cjs +327 -0
- package/dist/completion/BuiltinToolExecutor.d.cts +4 -0
- package/dist/completion/BuiltinToolExecutor.d.ts +4 -0
- package/dist/completion/BuiltinToolExecutor.js +296 -0
- package/dist/completion/CompletionService.cjs +3487 -0
- package/dist/completion/CompletionService.d.cts +21 -0
- package/dist/completion/CompletionService.d.ts +21 -0
- package/dist/completion/CompletionService.js +3461 -0
- package/dist/completion/NativeSearchInjector.cjs +196 -0
- package/dist/completion/NativeSearchInjector.d.cts +42 -0
- package/dist/completion/NativeSearchInjector.d.ts +42 -0
- package/dist/completion/NativeSearchInjector.js +167 -0
- package/dist/completion/ProviderSearchInjector.cjs +87 -0
- package/dist/completion/ProviderSearchInjector.d.cts +47 -0
- package/dist/completion/ProviderSearchInjector.d.ts +47 -0
- package/dist/completion/ProviderSearchInjector.js +60 -0
- package/dist/completion/native-search-types.cjs +67 -0
- package/dist/completion/native-search-types.d.cts +3 -0
- package/dist/completion/native-search-types.d.ts +3 -0
- package/dist/completion/native-search-types.js +38 -0
- package/dist/completion/openrouter-headers.cjs +72 -0
- package/dist/completion/openrouter-headers.d.cts +44 -0
- package/dist/completion/openrouter-headers.d.ts +44 -0
- package/dist/completion/openrouter-headers.js +42 -0
- package/dist/completion/openrouter-models.cjs +86 -0
- package/dist/completion/openrouter-models.d.cts +27 -0
- package/dist/completion/openrouter-models.d.ts +27 -0
- package/dist/completion/openrouter-models.js +59 -0
- package/dist/completion/types.cjs +18 -0
- package/dist/completion/types.d.cts +3 -0
- package/dist/completion/types.d.ts +3 -0
- package/dist/completion/types.js +0 -0
- package/dist/completion/url-builder.cjs +138 -0
- package/dist/completion/url-builder.d.cts +87 -0
- package/dist/completion/url-builder.d.ts +87 -0
- package/dist/completion/url-builder.js +104 -0
- package/dist/completion.d.cts +148 -7
- package/dist/completion.d.ts +148 -7
- package/dist/index.cjs +1 -0
- package/dist/index.d.cts +27 -90
- package/dist/index.d.ts +27 -90
- package/dist/index.js +1 -0
- package/dist/outbound-api/routeResolver.cjs +221 -0
- package/dist/outbound-api/routeResolver.d.cts +18 -0
- package/dist/outbound-api/routeResolver.d.ts +18 -0
- package/dist/outbound-api/routeResolver.js +192 -0
- package/dist/outbound-api/subscriptionRegistryPort.d.cts +5 -2
- package/dist/outbound-api/subscriptionRegistryPort.d.ts +5 -2
- package/dist/outbound-api/types.cjs +18 -0
- package/dist/{types-CbCN2NQP.d.ts → outbound-api/types.d.cts} +17 -3
- package/dist/{types-CGGrKqC_.d.cts → outbound-api/types.d.ts} +17 -3
- package/dist/outbound-api/types.js +0 -0
- package/dist/outbound-api.cjs +1 -0
- package/dist/outbound-api.d.cts +14 -87
- package/dist/outbound-api.d.ts +14 -87
- package/dist/outbound-api.js +1 -0
- package/dist/pipeline/AuthSource.cjs +18 -0
- package/dist/pipeline/AuthSource.d.cts +101 -0
- package/dist/pipeline/AuthSource.d.ts +101 -0
- package/dist/pipeline/AuthSource.js +0 -0
- package/dist/pipeline/LlmConfigProviderAuth.cjs +169 -0
- package/dist/pipeline/LlmConfigProviderAuth.d.cts +86 -0
- package/dist/pipeline/LlmConfigProviderAuth.d.ts +86 -0
- package/dist/pipeline/LlmConfigProviderAuth.js +142 -0
- package/dist/pipeline/SubscriptionAuthSource.d.cts +165 -3
- package/dist/pipeline/SubscriptionAuthSource.d.ts +165 -3
- package/dist/pipeline/executeProviderCall.cjs +70 -0
- package/dist/pipeline/executeProviderCall.d.cts +149 -0
- package/dist/pipeline/executeProviderCall.d.ts +149 -0
- package/dist/pipeline/executeProviderCall.js +45 -0
- package/dist/pipeline/resolveProviderChain.cjs +47 -0
- package/dist/pipeline/resolveProviderChain.d.cts +58 -0
- package/dist/pipeline/resolveProviderChain.d.ts +58 -0
- package/dist/pipeline/resolveProviderChain.js +22 -0
- package/dist/pipeline/resolveSubscriptionChain.cjs +68 -0
- package/dist/pipeline/resolveSubscriptionChain.d.cts +68 -0
- package/dist/pipeline/resolveSubscriptionChain.d.ts +68 -0
- package/dist/pipeline/resolveSubscriptionChain.js +43 -0
- package/dist/ports/provider-config-source.cjs +18 -0
- package/dist/ports/provider-config-source.d.cts +51 -0
- package/dist/ports/provider-config-source.d.ts +51 -0
- package/dist/ports/provider-config-source.js +0 -0
- package/dist/ports/web-search-backend.cjs +18 -0
- package/dist/ports/web-search-backend.d.cts +29 -0
- package/dist/ports/web-search-backend.d.ts +29 -0
- package/dist/ports/web-search-backend.js +0 -0
- package/dist/ports.d.cts +10 -7
- package/dist/ports.d.ts +10 -7
- package/dist/provider-proxy/ProviderProxy.cjs +4643 -0
- package/dist/provider-proxy/ProviderProxy.d.cts +16 -0
- package/dist/provider-proxy/ProviderProxy.d.ts +16 -0
- package/dist/provider-proxy/ProviderProxy.js +4618 -0
- package/dist/provider-proxy/ingress/providerProxyShared.d.cts +5 -2
- package/dist/provider-proxy/ingress/providerProxyShared.d.ts +5 -2
- package/dist/provider-proxy/types.d.cts +406 -8
- package/dist/provider-proxy/types.d.ts +406 -8
- package/dist/provider-proxy.cjs +1 -0
- package/dist/provider-proxy.d.cts +8 -5
- package/dist/provider-proxy.d.ts +8 -5
- package/dist/provider-proxy.js +1 -0
- package/dist/routeResolver-BrbK6ja9.d.cts +88 -0
- package/dist/routeResolver-HE-ZO0fO.d.ts +88 -0
- package/dist/transformer/anthropicBetaInject.cjs +51 -0
- package/dist/transformer/anthropicBetaInject.d.cts +20 -0
- package/dist/transformer/anthropicBetaInject.d.ts +20 -0
- package/dist/transformer/anthropicBetaInject.js +25 -0
- package/dist/transformer/transformers/AnthropicTransformer.cjs +1017 -0
- package/dist/transformer/transformers/AnthropicTransformer.d.cts +148 -0
- package/dist/transformer/transformers/AnthropicTransformer.d.ts +148 -0
- package/dist/transformer/transformers/AnthropicTransformer.js +990 -0
- package/dist/transformer/transformers/ReasoningTransformer.cjs +273 -0
- package/dist/transformer/transformers/ReasoningTransformer.d.cts +47 -0
- package/dist/transformer/transformers/ReasoningTransformer.d.ts +47 -0
- package/dist/transformer/transformers/ReasoningTransformer.js +253 -0
- package/dist/transformer/transformers.cjs +3206 -0
- package/dist/transformer/transformers.d.cts +100 -0
- package/dist/transformer/transformers.d.ts +100 -0
- package/dist/transformer/transformers.js +3174 -0
- package/dist/transformer.d.cts +8 -31
- package/dist/transformer.d.ts +8 -31
- package/dist/types-BScIHmPr.d.cts +153 -0
- package/dist/types-BScIHmPr.d.ts +153 -0
- package/package.json +3 -3
- package/dist/SubscriptionAuthSource-Cr4fVEYY.d.cts +0 -264
- package/dist/SubscriptionAuthSource-D89zmiSS.d.ts +0 -264
- package/dist/index-BTSmc9Sm.d.ts +0 -645
- package/dist/index-DXazdTzZ.d.cts +0 -645
- package/dist/types-DCzHkhJt.d.ts +0 -467
- package/dist/types-DZIQbgp0.d.cts +0 -467
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
import { Transformer, TransformerLogger, TransformerOptions, LLMProvider, TransformerContext, UnifiedChatRequest } from '../types.cjs';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* AnthropicTypes - Shared types & helpers used by AnthropicTransformer split modules.
|
|
5
|
+
*
|
|
6
|
+
* Internal to the AnthropicTransformer facade — siblings
|
|
7
|
+
* (`AnthropicConversion`, `AnthropicStreaming`, `AnthropicToolHandling`) import
|
|
8
|
+
* from here. Do not import the facade from this file.
|
|
9
|
+
*
|
|
10
|
+
* @module transformer/transformers/AnthropicTypes
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Anthropic content types
|
|
15
|
+
*/
|
|
16
|
+
interface AnthropicTextContent {
|
|
17
|
+
type: 'text';
|
|
18
|
+
text: string;
|
|
19
|
+
cache_control?: {
|
|
20
|
+
type?: string;
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
interface AnthropicImageContent {
|
|
24
|
+
type: 'image';
|
|
25
|
+
source: {
|
|
26
|
+
type: 'base64' | 'url';
|
|
27
|
+
media_type?: string;
|
|
28
|
+
data?: string;
|
|
29
|
+
url?: string;
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
interface AnthropicToolUseContent {
|
|
33
|
+
type: 'tool_use';
|
|
34
|
+
id: string;
|
|
35
|
+
name: string;
|
|
36
|
+
input: Record<string, unknown>;
|
|
37
|
+
}
|
|
38
|
+
interface AnthropicToolResultContent {
|
|
39
|
+
type: 'tool_result';
|
|
40
|
+
tool_use_id: string;
|
|
41
|
+
content: string | unknown[];
|
|
42
|
+
cache_control?: {
|
|
43
|
+
type?: string;
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
interface AnthropicThinkingContent {
|
|
47
|
+
type: 'thinking';
|
|
48
|
+
thinking: string;
|
|
49
|
+
signature?: string;
|
|
50
|
+
}
|
|
51
|
+
type AnthropicContent = AnthropicTextContent | AnthropicImageContent | AnthropicToolUseContent | AnthropicToolResultContent | AnthropicThinkingContent;
|
|
52
|
+
interface AnthropicMessage {
|
|
53
|
+
role: 'user' | 'assistant';
|
|
54
|
+
content: string | AnthropicContent[];
|
|
55
|
+
}
|
|
56
|
+
interface AnthropicRequest {
|
|
57
|
+
model: string;
|
|
58
|
+
messages: AnthropicMessage[];
|
|
59
|
+
max_tokens: number;
|
|
60
|
+
system?: string | Array<{
|
|
61
|
+
type: 'text';
|
|
62
|
+
text: string;
|
|
63
|
+
cache_control?: unknown;
|
|
64
|
+
}>;
|
|
65
|
+
temperature?: number;
|
|
66
|
+
stream?: boolean;
|
|
67
|
+
tools?: Array<{
|
|
68
|
+
name: string;
|
|
69
|
+
description?: string;
|
|
70
|
+
input_schema: Record<string, unknown>;
|
|
71
|
+
}>;
|
|
72
|
+
tool_choice?: {
|
|
73
|
+
type: 'auto' | 'any' | 'tool';
|
|
74
|
+
name?: string;
|
|
75
|
+
};
|
|
76
|
+
thinking?: {
|
|
77
|
+
type: 'enabled' | 'disabled';
|
|
78
|
+
budget_tokens?: number;
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* AnthropicTransformer - Bidirectional transformer for Anthropic Messages API.
|
|
84
|
+
*
|
|
85
|
+
* This file is a thin facade that delegates to sibling modules in this
|
|
86
|
+
* directory:
|
|
87
|
+
* - `./AnthropicTypes` - shared types + small helpers
|
|
88
|
+
* - `./AnthropicConversion` - non-streaming request/response conversion
|
|
89
|
+
* (re-exports response converters from
|
|
90
|
+
* `./AnthropicResponseConversion`)
|
|
91
|
+
* - `./AnthropicStreaming` - SSE stream conversion (both directions)
|
|
92
|
+
* - `./AnthropicToolHandling` - tool_use / server-tool conversion
|
|
93
|
+
*
|
|
94
|
+
* Public API (class name, constructor signature, method signatures) is
|
|
95
|
+
* preserved exactly so existing import sites (proxy servers, engine
|
|
96
|
+
* adapters, `TransformerHandler`, etc.) require no changes.
|
|
97
|
+
*
|
|
98
|
+
* @module transformer/transformers/AnthropicTransformer
|
|
99
|
+
*/
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* AnthropicTransformer handles Anthropic Messages API format conversion.
|
|
103
|
+
*
|
|
104
|
+
* Features:
|
|
105
|
+
* - Converts Anthropic Messages API requests to unified format
|
|
106
|
+
* - Converts responses back to Anthropic format
|
|
107
|
+
* - Supports both x-api-key and Bearer authentication
|
|
108
|
+
* - Handles thinking/reasoning blocks
|
|
109
|
+
*/
|
|
110
|
+
declare class AnthropicTransformer implements Transformer {
|
|
111
|
+
static TransformerName: string;
|
|
112
|
+
name: string;
|
|
113
|
+
logger?: TransformerLogger;
|
|
114
|
+
endPoint: string;
|
|
115
|
+
private useBearer;
|
|
116
|
+
constructor(options?: TransformerOptions);
|
|
117
|
+
/**
|
|
118
|
+
* Handle authentication - Anthropic uses x-api-key header
|
|
119
|
+
*/
|
|
120
|
+
auth(request: unknown, provider: LLMProvider, _context: TransformerContext): Promise<{
|
|
121
|
+
body: unknown;
|
|
122
|
+
config: {
|
|
123
|
+
headers: Record<string, string | undefined>;
|
|
124
|
+
};
|
|
125
|
+
}>;
|
|
126
|
+
/**
|
|
127
|
+
* Transform Anthropic request to unified format.
|
|
128
|
+
*/
|
|
129
|
+
transformRequestOut(request: unknown, _context: TransformerContext): Promise<UnifiedChatRequest>;
|
|
130
|
+
/**
|
|
131
|
+
* Transform OpenAI/unified response back to Anthropic format
|
|
132
|
+
* (auto-detects stream vs JSON via Content-Type).
|
|
133
|
+
*/
|
|
134
|
+
transformResponseIn(response: Response, context?: TransformerContext): Promise<Response>;
|
|
135
|
+
/**
|
|
136
|
+
* Transform unified request to Anthropic Messages API format.
|
|
137
|
+
* This is the reverse of transformRequestOut — converts OpenAI/unified format
|
|
138
|
+
* to Anthropic's expected request body structure.
|
|
139
|
+
*/
|
|
140
|
+
transformRequestIn(request: UnifiedChatRequest, _provider: LLMProvider, _context: TransformerContext): Promise<Record<string, unknown>>;
|
|
141
|
+
/**
|
|
142
|
+
* Transform Anthropic response to OpenAI/unified format
|
|
143
|
+
* (auto-detects stream vs JSON via Content-Type).
|
|
144
|
+
*/
|
|
145
|
+
transformResponseOut(response: Response, _context: TransformerContext): Promise<Response>;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
export { type AnthropicContent, type AnthropicImageContent, type AnthropicMessage, type AnthropicRequest, type AnthropicTextContent, type AnthropicThinkingContent, type AnthropicToolResultContent, type AnthropicToolUseContent, AnthropicTransformer };
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
import { Transformer, TransformerLogger, TransformerOptions, LLMProvider, TransformerContext, UnifiedChatRequest } from '../types.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* AnthropicTypes - Shared types & helpers used by AnthropicTransformer split modules.
|
|
5
|
+
*
|
|
6
|
+
* Internal to the AnthropicTransformer facade — siblings
|
|
7
|
+
* (`AnthropicConversion`, `AnthropicStreaming`, `AnthropicToolHandling`) import
|
|
8
|
+
* from here. Do not import the facade from this file.
|
|
9
|
+
*
|
|
10
|
+
* @module transformer/transformers/AnthropicTypes
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Anthropic content types
|
|
15
|
+
*/
|
|
16
|
+
interface AnthropicTextContent {
|
|
17
|
+
type: 'text';
|
|
18
|
+
text: string;
|
|
19
|
+
cache_control?: {
|
|
20
|
+
type?: string;
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
interface AnthropicImageContent {
|
|
24
|
+
type: 'image';
|
|
25
|
+
source: {
|
|
26
|
+
type: 'base64' | 'url';
|
|
27
|
+
media_type?: string;
|
|
28
|
+
data?: string;
|
|
29
|
+
url?: string;
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
interface AnthropicToolUseContent {
|
|
33
|
+
type: 'tool_use';
|
|
34
|
+
id: string;
|
|
35
|
+
name: string;
|
|
36
|
+
input: Record<string, unknown>;
|
|
37
|
+
}
|
|
38
|
+
interface AnthropicToolResultContent {
|
|
39
|
+
type: 'tool_result';
|
|
40
|
+
tool_use_id: string;
|
|
41
|
+
content: string | unknown[];
|
|
42
|
+
cache_control?: {
|
|
43
|
+
type?: string;
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
interface AnthropicThinkingContent {
|
|
47
|
+
type: 'thinking';
|
|
48
|
+
thinking: string;
|
|
49
|
+
signature?: string;
|
|
50
|
+
}
|
|
51
|
+
type AnthropicContent = AnthropicTextContent | AnthropicImageContent | AnthropicToolUseContent | AnthropicToolResultContent | AnthropicThinkingContent;
|
|
52
|
+
interface AnthropicMessage {
|
|
53
|
+
role: 'user' | 'assistant';
|
|
54
|
+
content: string | AnthropicContent[];
|
|
55
|
+
}
|
|
56
|
+
interface AnthropicRequest {
|
|
57
|
+
model: string;
|
|
58
|
+
messages: AnthropicMessage[];
|
|
59
|
+
max_tokens: number;
|
|
60
|
+
system?: string | Array<{
|
|
61
|
+
type: 'text';
|
|
62
|
+
text: string;
|
|
63
|
+
cache_control?: unknown;
|
|
64
|
+
}>;
|
|
65
|
+
temperature?: number;
|
|
66
|
+
stream?: boolean;
|
|
67
|
+
tools?: Array<{
|
|
68
|
+
name: string;
|
|
69
|
+
description?: string;
|
|
70
|
+
input_schema: Record<string, unknown>;
|
|
71
|
+
}>;
|
|
72
|
+
tool_choice?: {
|
|
73
|
+
type: 'auto' | 'any' | 'tool';
|
|
74
|
+
name?: string;
|
|
75
|
+
};
|
|
76
|
+
thinking?: {
|
|
77
|
+
type: 'enabled' | 'disabled';
|
|
78
|
+
budget_tokens?: number;
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* AnthropicTransformer - Bidirectional transformer for Anthropic Messages API.
|
|
84
|
+
*
|
|
85
|
+
* This file is a thin facade that delegates to sibling modules in this
|
|
86
|
+
* directory:
|
|
87
|
+
* - `./AnthropicTypes` - shared types + small helpers
|
|
88
|
+
* - `./AnthropicConversion` - non-streaming request/response conversion
|
|
89
|
+
* (re-exports response converters from
|
|
90
|
+
* `./AnthropicResponseConversion`)
|
|
91
|
+
* - `./AnthropicStreaming` - SSE stream conversion (both directions)
|
|
92
|
+
* - `./AnthropicToolHandling` - tool_use / server-tool conversion
|
|
93
|
+
*
|
|
94
|
+
* Public API (class name, constructor signature, method signatures) is
|
|
95
|
+
* preserved exactly so existing import sites (proxy servers, engine
|
|
96
|
+
* adapters, `TransformerHandler`, etc.) require no changes.
|
|
97
|
+
*
|
|
98
|
+
* @module transformer/transformers/AnthropicTransformer
|
|
99
|
+
*/
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* AnthropicTransformer handles Anthropic Messages API format conversion.
|
|
103
|
+
*
|
|
104
|
+
* Features:
|
|
105
|
+
* - Converts Anthropic Messages API requests to unified format
|
|
106
|
+
* - Converts responses back to Anthropic format
|
|
107
|
+
* - Supports both x-api-key and Bearer authentication
|
|
108
|
+
* - Handles thinking/reasoning blocks
|
|
109
|
+
*/
|
|
110
|
+
declare class AnthropicTransformer implements Transformer {
|
|
111
|
+
static TransformerName: string;
|
|
112
|
+
name: string;
|
|
113
|
+
logger?: TransformerLogger;
|
|
114
|
+
endPoint: string;
|
|
115
|
+
private useBearer;
|
|
116
|
+
constructor(options?: TransformerOptions);
|
|
117
|
+
/**
|
|
118
|
+
* Handle authentication - Anthropic uses x-api-key header
|
|
119
|
+
*/
|
|
120
|
+
auth(request: unknown, provider: LLMProvider, _context: TransformerContext): Promise<{
|
|
121
|
+
body: unknown;
|
|
122
|
+
config: {
|
|
123
|
+
headers: Record<string, string | undefined>;
|
|
124
|
+
};
|
|
125
|
+
}>;
|
|
126
|
+
/**
|
|
127
|
+
* Transform Anthropic request to unified format.
|
|
128
|
+
*/
|
|
129
|
+
transformRequestOut(request: unknown, _context: TransformerContext): Promise<UnifiedChatRequest>;
|
|
130
|
+
/**
|
|
131
|
+
* Transform OpenAI/unified response back to Anthropic format
|
|
132
|
+
* (auto-detects stream vs JSON via Content-Type).
|
|
133
|
+
*/
|
|
134
|
+
transformResponseIn(response: Response, context?: TransformerContext): Promise<Response>;
|
|
135
|
+
/**
|
|
136
|
+
* Transform unified request to Anthropic Messages API format.
|
|
137
|
+
* This is the reverse of transformRequestOut — converts OpenAI/unified format
|
|
138
|
+
* to Anthropic's expected request body structure.
|
|
139
|
+
*/
|
|
140
|
+
transformRequestIn(request: UnifiedChatRequest, _provider: LLMProvider, _context: TransformerContext): Promise<Record<string, unknown>>;
|
|
141
|
+
/**
|
|
142
|
+
* Transform Anthropic response to OpenAI/unified format
|
|
143
|
+
* (auto-detects stream vs JSON via Content-Type).
|
|
144
|
+
*/
|
|
145
|
+
transformResponseOut(response: Response, _context: TransformerContext): Promise<Response>;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
export { type AnthropicContent, type AnthropicImageContent, type AnthropicMessage, type AnthropicRequest, type AnthropicTextContent, type AnthropicThinkingContent, type AnthropicToolResultContent, type AnthropicToolUseContent, AnthropicTransformer };
|