@xenosystem/agent-sdk 0.10.35 → 0.10.37
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 +1 -1
- package/dist/agents/index.cjs +9 -9
- package/dist/agents/index.d.cts +4 -1
- package/dist/agents/index.d.ts +4 -1
- package/dist/agents/index.js +16 -16
- package/dist/agents/metafile-cjs.json +1 -1
- package/dist/agents/metafile-esm.json +1 -1
- package/dist/artifacts/index.cjs +1 -1
- package/dist/artifacts/index.js +1 -1
- package/dist/artifacts/metafile-cjs.json +1 -1
- package/dist/artifacts/metafile-esm.json +1 -1
- package/dist/automation/index.cjs +35 -24
- package/dist/automation/index.d.cts +194 -12
- package/dist/automation/index.d.ts +194 -12
- package/dist/automation/index.js +35 -24
- package/dist/automation/metafile-cjs.json +1 -1
- package/dist/automation/metafile-esm.json +1 -1
- package/dist/control-plane/index.cjs +8 -8
- package/dist/control-plane/index.js +8 -8
- package/dist/control-plane/metafile-cjs.json +1 -1
- package/dist/control-plane/metafile-esm.json +1 -1
- package/dist/coordination/index.cjs +2 -2
- package/dist/coordination/index.js +2 -2
- package/dist/coordination/metafile-cjs.json +1 -1
- package/dist/coordination/metafile-esm.json +1 -1
- package/dist/electron/index.cjs +243 -223
- package/dist/electron/index.d.cts +198 -1
- package/dist/electron/index.d.ts +198 -1
- package/dist/electron/index.js +243 -223
- package/dist/electron/metafile-cjs.json +1 -1
- package/dist/electron/metafile-esm.json +1 -1
- package/dist/hosted/metafile-cjs.json +1 -1
- package/dist/hosted/metafile-esm.json +1 -1
- package/dist/index.cjs +406 -395
- package/dist/index.d.cts +325 -172
- package/dist/index.d.ts +325 -172
- package/dist/index.js +406 -395
- package/dist/intelligence/index.cjs +4 -4
- package/dist/intelligence/index.js +4 -4
- package/dist/intelligence/metafile-cjs.json +1 -1
- package/dist/intelligence/metafile-esm.json +1 -1
- package/dist/mcp/index.cjs +20 -20
- package/dist/mcp/index.d.cts +146 -0
- package/dist/mcp/index.d.ts +146 -0
- package/dist/mcp/index.js +17 -17
- package/dist/mcp/metafile-cjs.json +1 -1
- package/dist/mcp/metafile-esm.json +1 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/providers/index.cjs +10 -10
- package/dist/providers/index.d.cts +49 -5
- package/dist/providers/index.d.ts +49 -5
- package/dist/providers/index.js +10 -10
- package/dist/providers/metafile-cjs.json +1 -1
- package/dist/providers/metafile-esm.json +1 -1
- package/dist/recipes/metafile-cjs.json +1 -1
- package/dist/recipes/metafile-esm.json +1 -1
- package/dist/research/metafile-cjs.json +1 -1
- package/dist/research/metafile-esm.json +1 -1
- package/dist/session/index.cjs +24 -24
- package/dist/session/index.js +16 -16
- package/dist/session/metafile-cjs.json +1 -1
- package/dist/session/metafile-esm.json +1 -1
- package/dist/sharing/index.cjs +1 -1
- package/dist/sharing/index.js +3 -3
- package/dist/sharing/metafile-cjs.json +1 -1
- package/dist/sharing/metafile-esm.json +1 -1
- package/dist/skills/index.d.cts +6 -0
- package/dist/skills/index.d.ts +6 -0
- package/dist/utils/index.cjs +24 -24
- package/dist/utils/index.d.cts +14 -2
- package/dist/utils/index.d.ts +14 -2
- package/dist/utils/index.js +24 -24
- package/dist/utils/metafile-cjs.json +1 -1
- package/dist/utils/metafile-esm.json +1 -1
- package/ownership/evidence/PROPRIETARY-PTY-1/implementation-record.md +1 -1
- package/ownership/ownership-policy.json +14 -3
- package/package.json +1 -1
|
@@ -52,6 +52,12 @@ interface ToolDefinition {
|
|
|
52
52
|
additionalProperties?: boolean | Record<string, unknown>;
|
|
53
53
|
[keyword: string]: unknown;
|
|
54
54
|
};
|
|
55
|
+
grammar?: ToolInputGrammar;
|
|
56
|
+
}
|
|
57
|
+
interface ToolInputGrammar {
|
|
58
|
+
syntax: "gbnf";
|
|
59
|
+
definition: string;
|
|
60
|
+
inputField: string;
|
|
55
61
|
}
|
|
56
62
|
interface ImageUrlBlock {
|
|
57
63
|
type: "image_url";
|
|
@@ -128,6 +134,7 @@ type ApiMessage = {
|
|
|
128
134
|
};
|
|
129
135
|
interface StreamResult {
|
|
130
136
|
content: ContentBlock[];
|
|
137
|
+
reasoningContent?: string;
|
|
131
138
|
stopReason: "end_turn" | "tool_use" | "max_tokens" | "stop_sequence";
|
|
132
139
|
inputTokens: number;
|
|
133
140
|
outputTokens: number;
|
|
@@ -188,6 +195,9 @@ interface LLMProviderRequestContext {
|
|
|
188
195
|
systemPrompt: string;
|
|
189
196
|
attemptId?: string;
|
|
190
197
|
quotaRemainingTokens?: number;
|
|
198
|
+
toolChoice?: "auto" | "none" | "required" | {
|
|
199
|
+
name: string;
|
|
200
|
+
};
|
|
191
201
|
onEvent?: (event: ProviderStreamEvent) => void | Promise<void>;
|
|
192
202
|
}
|
|
193
203
|
interface LLMProviderCapabilities {
|
|
@@ -203,6 +213,8 @@ interface LLMProviderCapabilities {
|
|
|
203
213
|
readonly cancellation?: boolean;
|
|
204
214
|
readonly retryAfter?: boolean;
|
|
205
215
|
readonly promptCaching?: boolean;
|
|
216
|
+
readonly customToolGrammarsGbnf?: boolean;
|
|
217
|
+
readonly customToolGrammarsGbnfStreaming?: boolean;
|
|
206
218
|
readonly [capability: string]: boolean | undefined;
|
|
207
219
|
}
|
|
208
220
|
interface LLMProvider {
|
|
@@ -291,14 +303,22 @@ declare class DualLLMProvider {
|
|
|
291
303
|
private chatCloud;
|
|
292
304
|
}
|
|
293
305
|
type DirectProviderKind = "anthropic" | "openai-responses" | "google" | "openai-compatible";
|
|
294
|
-
type DirectProviderCapabilityProfile = Pick<LLMProviderCapabilities, "streaming" | "textInput" | "imageInput" | "tools" | "parallelToolCalls" | "structuredOutput" | "reasoningMetadata" | "usageAccounting" | "cancellation" | "retryAfter" | "promptCaching">;
|
|
306
|
+
type DirectProviderCapabilityProfile = Pick<LLMProviderCapabilities, "streaming" | "textInput" | "imageInput" | "tools" | "parallelToolCalls" | "structuredOutput" | "reasoningMetadata" | "usageAccounting" | "cancellation" | "retryAfter" | "promptCaching" | "customToolGrammarsGbnf" | "customToolGrammarsGbnfStreaming">;
|
|
307
|
+
interface DirectProviderSamplingOptions {
|
|
308
|
+
temperature?: number;
|
|
309
|
+
topP?: number;
|
|
310
|
+
seed?: number;
|
|
311
|
+
}
|
|
295
312
|
interface DirectProviderConfig {
|
|
296
313
|
kind: DirectProviderKind;
|
|
297
314
|
apiKey: string;
|
|
298
315
|
baseURL?: string;
|
|
299
316
|
anthropicVersion?: string;
|
|
300
317
|
maxTokens?: number;
|
|
318
|
+
sampling?: DirectProviderSamplingOptions;
|
|
301
319
|
xenoPromptTokenCeiling?: number;
|
|
320
|
+
xenoEnableThinking?: boolean;
|
|
321
|
+
xenoToolFormat?: "qwen_native";
|
|
302
322
|
streaming?: boolean;
|
|
303
323
|
capabilityProfile?: DirectProviderCapabilityProfile;
|
|
304
324
|
endpointProfile?: DirectEndpointProfile;
|
|
@@ -316,10 +336,18 @@ interface DirectProviderConfig {
|
|
|
316
336
|
type: "none";
|
|
317
337
|
};
|
|
318
338
|
}
|
|
339
|
+
interface LocalToolGrammarSupport {
|
|
340
|
+
gbnf: boolean;
|
|
341
|
+
streaming: boolean;
|
|
342
|
+
}
|
|
343
|
+
declare function probeLocalToolGrammarSupport(baseURL: string, options?: {
|
|
344
|
+
signal?: AbortSignal;
|
|
345
|
+
limits?: ProviderTransportLimits;
|
|
346
|
+
}): Promise<LocalToolGrammarSupport>;
|
|
319
347
|
declare function createDirectProvider(config: DirectProviderConfig): LLMProvider;
|
|
320
|
-
type OllamaNativeProviderConfig = Omit<DirectProviderConfig, "kind" | "streaming" | "capabilityProfile" | "chatCompletionsPath">;
|
|
348
|
+
type OllamaNativeProviderConfig = Omit<DirectProviderConfig, "kind" | "streaming" | "capabilityProfile" | "chatCompletionsPath" | "sampling">;
|
|
321
349
|
declare function createOllamaNativeProvider(config: OllamaNativeProviderConfig): LLMProvider;
|
|
322
|
-
type ToolSchemaProviderDialect = "xeno" | "anthropic" | "openai-responses" | "openai-chat" | "google";
|
|
350
|
+
type ToolSchemaProviderDialect = "xeno" | "anthropic" | "openai-responses" | "openai-chat" | "google" | "google-json-schema";
|
|
323
351
|
interface ToolSchemaProjectionChange {
|
|
324
352
|
path: string;
|
|
325
353
|
keyword: string;
|
|
@@ -407,12 +435,28 @@ interface XenoProviderModelDescriptor {
|
|
|
407
435
|
id: string;
|
|
408
436
|
displayName?: string;
|
|
409
437
|
ownedBy?: string;
|
|
438
|
+
type?: string;
|
|
439
|
+
supportedInputModalities?: string[];
|
|
440
|
+
supportedOutputModalities?: string[];
|
|
441
|
+
supportedParameters?: string[];
|
|
442
|
+
supportedGenerationMethods?: string[];
|
|
443
|
+
execution?: XenoProviderModelExecution;
|
|
444
|
+
available?: boolean;
|
|
445
|
+
availability?: string;
|
|
410
446
|
contextTokens?: number;
|
|
411
447
|
inputCostPerMillion?: number;
|
|
412
448
|
outputCostPerMillion?: number;
|
|
413
449
|
capabilities?: Partial<XenoProviderCapabilities>;
|
|
414
450
|
metadataSource: "provider" | "configuration" | "catalog";
|
|
415
451
|
}
|
|
452
|
+
interface XenoProviderModelExecution {
|
|
453
|
+
sync?: boolean;
|
|
454
|
+
stream?: boolean;
|
|
455
|
+
async?: boolean;
|
|
456
|
+
batch?: boolean;
|
|
457
|
+
maxBatchItems?: number;
|
|
458
|
+
endpoint?: string;
|
|
459
|
+
}
|
|
416
460
|
interface XenoProviderProbeResult {
|
|
417
461
|
schemaVersion: 1;
|
|
418
462
|
connectionId: string;
|
|
@@ -460,7 +504,7 @@ declare class XenoProviderCatalog {
|
|
|
460
504
|
}
|
|
461
505
|
declare function probeXenoProvider(options: ProbeXenoProviderOptions): Promise<XenoProviderProbeResult>;
|
|
462
506
|
declare function selectXenoProviderRoute(candidates: XenoProviderRouteCandidate[], policy?: XenoProviderRoutingPolicy): XenoProviderRouteCandidate[];
|
|
463
|
-
declare function directProviderConfigFromConnection(view: XenoProviderConnectionView, secret: string | undefined): DirectProviderConfig;
|
|
507
|
+
declare function directProviderConfigFromConnection(view: XenoProviderConnectionView, secret: string | undefined, model?: XenoProviderModelDescriptor): DirectProviderConfig;
|
|
464
508
|
declare const XENO_PROVIDER_CONNECTION_STORE_SCHEMA_VERSION: 1;
|
|
465
509
|
interface XenoProviderConnectionSnapshot {
|
|
466
510
|
schemaVersion: typeof XENO_PROVIDER_CONNECTION_STORE_SCHEMA_VERSION;
|
|
@@ -580,4 +624,4 @@ declare class FileQuotaAuthority implements QuotaAuthority {
|
|
|
580
624
|
private load;
|
|
581
625
|
private append;
|
|
582
626
|
}
|
|
583
|
-
export { BUILT_IN_XENO_PROVIDER_PRESETS, type ChatParams, type ChatResponse, type DirectEndpointPolicy, type DirectEndpointProfile, type DirectProviderCapabilityProfile, type DirectProviderConfig, type DirectProviderKind, type DualLLMMode, DualLLMProvider, type DualLLMProviderConfig, type DualLLMStatus, FileQuotaAuthority, FileXenoProviderConnectionStore, type FileXenoProviderConnectionStoreOptions, type OllamaNativeProviderConfig, PROVIDER_TOOL_NAME_PATTERN, type ProbeXenoProviderOptions, ProviderError, type ProviderErrorCategory, type ProviderErrorCode, type ProviderErrorOptions, type ProviderTransportLimits, QuotaAcknowledgementError, type QuotaAcknowledgementPhase, type QuotaAuthority, type QuotaEntity, QuotaError, type QuotaGovernorOptions, type QuotaLimits, type QuotaReservation, type QuotaScope, type ToolNameCodec, type ToolSchemaProjectionChange, ToolSchemaProjectionError, type ToolSchemaProjectionResult, type ToolSchemaProviderDialect, XENO_PROVIDER_CATALOG_SCHEMA_VERSION, XENO_PROVIDER_CONNECTION_STORE_SCHEMA_VERSION, type XenoProviderAdapterKind, type XenoProviderAuthPreset, type XenoProviderCapabilities, XenoProviderCatalog, type XenoProviderConnection, type XenoProviderConnectionSnapshot, type XenoProviderConnectionView, type XenoProviderCredentialMode, type XenoProviderModelDescriptor, type XenoProviderPreset, type XenoProviderProbeResult, type XenoProviderReadiness, type XenoProviderRouteCandidate, type XenoProviderRoutingPolicy, assertDirectEndpointResolution, classifyProviderHttpError, classifyProviderStreamError, createDirectProvider, createOllamaNativeProvider, createQuotaGovernedProvider, createToolNameCodec, directProviderConfigFromConnection, isQuotaControlError, normalizeQuotaScope, parseRetryAfter, probeXenoProvider, projectToolDefinitionsForProvider, projectToolSchemaForProvider, providerCapabilityError, providerProtocolError, quotaAncestors, quotaInteger, quotaScopeKey, quotaText, selectXenoProviderRoute, validateDirectEndpoint };
|
|
627
|
+
export { BUILT_IN_XENO_PROVIDER_PRESETS, type ChatParams, type ChatResponse, type DirectEndpointPolicy, type DirectEndpointProfile, type DirectProviderCapabilityProfile, type DirectProviderConfig, type DirectProviderKind, type DirectProviderSamplingOptions, type DualLLMMode, DualLLMProvider, type DualLLMProviderConfig, type DualLLMStatus, FileQuotaAuthority, FileXenoProviderConnectionStore, type FileXenoProviderConnectionStoreOptions, type LocalToolGrammarSupport, type OllamaNativeProviderConfig, PROVIDER_TOOL_NAME_PATTERN, type ProbeXenoProviderOptions, ProviderError, type ProviderErrorCategory, type ProviderErrorCode, type ProviderErrorOptions, type ProviderTransportLimits, QuotaAcknowledgementError, type QuotaAcknowledgementPhase, type QuotaAuthority, type QuotaEntity, QuotaError, type QuotaGovernorOptions, type QuotaLimits, type QuotaReservation, type QuotaScope, type ToolNameCodec, type ToolSchemaProjectionChange, ToolSchemaProjectionError, type ToolSchemaProjectionResult, type ToolSchemaProviderDialect, XENO_PROVIDER_CATALOG_SCHEMA_VERSION, XENO_PROVIDER_CONNECTION_STORE_SCHEMA_VERSION, type XenoProviderAdapterKind, type XenoProviderAuthPreset, type XenoProviderCapabilities, XenoProviderCatalog, type XenoProviderConnection, type XenoProviderConnectionSnapshot, type XenoProviderConnectionView, type XenoProviderCredentialMode, type XenoProviderModelDescriptor, type XenoProviderModelExecution, type XenoProviderPreset, type XenoProviderProbeResult, type XenoProviderReadiness, type XenoProviderRouteCandidate, type XenoProviderRoutingPolicy, assertDirectEndpointResolution, classifyProviderHttpError, classifyProviderStreamError, createDirectProvider, createOllamaNativeProvider, createQuotaGovernedProvider, createToolNameCodec, directProviderConfigFromConnection, isQuotaControlError, normalizeQuotaScope, parseRetryAfter, probeLocalToolGrammarSupport, probeXenoProvider, projectToolDefinitionsForProvider, projectToolSchemaForProvider, providerCapabilityError, providerProtocolError, quotaAncestors, quotaInteger, quotaScopeKey, quotaText, selectXenoProviderRoute, validateDirectEndpoint };
|
|
@@ -52,6 +52,12 @@ interface ToolDefinition {
|
|
|
52
52
|
additionalProperties?: boolean | Record<string, unknown>;
|
|
53
53
|
[keyword: string]: unknown;
|
|
54
54
|
};
|
|
55
|
+
grammar?: ToolInputGrammar;
|
|
56
|
+
}
|
|
57
|
+
interface ToolInputGrammar {
|
|
58
|
+
syntax: "gbnf";
|
|
59
|
+
definition: string;
|
|
60
|
+
inputField: string;
|
|
55
61
|
}
|
|
56
62
|
interface ImageUrlBlock {
|
|
57
63
|
type: "image_url";
|
|
@@ -128,6 +134,7 @@ type ApiMessage = {
|
|
|
128
134
|
};
|
|
129
135
|
interface StreamResult {
|
|
130
136
|
content: ContentBlock[];
|
|
137
|
+
reasoningContent?: string;
|
|
131
138
|
stopReason: "end_turn" | "tool_use" | "max_tokens" | "stop_sequence";
|
|
132
139
|
inputTokens: number;
|
|
133
140
|
outputTokens: number;
|
|
@@ -188,6 +195,9 @@ interface LLMProviderRequestContext {
|
|
|
188
195
|
systemPrompt: string;
|
|
189
196
|
attemptId?: string;
|
|
190
197
|
quotaRemainingTokens?: number;
|
|
198
|
+
toolChoice?: "auto" | "none" | "required" | {
|
|
199
|
+
name: string;
|
|
200
|
+
};
|
|
191
201
|
onEvent?: (event: ProviderStreamEvent) => void | Promise<void>;
|
|
192
202
|
}
|
|
193
203
|
interface LLMProviderCapabilities {
|
|
@@ -203,6 +213,8 @@ interface LLMProviderCapabilities {
|
|
|
203
213
|
readonly cancellation?: boolean;
|
|
204
214
|
readonly retryAfter?: boolean;
|
|
205
215
|
readonly promptCaching?: boolean;
|
|
216
|
+
readonly customToolGrammarsGbnf?: boolean;
|
|
217
|
+
readonly customToolGrammarsGbnfStreaming?: boolean;
|
|
206
218
|
readonly [capability: string]: boolean | undefined;
|
|
207
219
|
}
|
|
208
220
|
interface LLMProvider {
|
|
@@ -291,14 +303,22 @@ declare class DualLLMProvider {
|
|
|
291
303
|
private chatCloud;
|
|
292
304
|
}
|
|
293
305
|
type DirectProviderKind = "anthropic" | "openai-responses" | "google" | "openai-compatible";
|
|
294
|
-
type DirectProviderCapabilityProfile = Pick<LLMProviderCapabilities, "streaming" | "textInput" | "imageInput" | "tools" | "parallelToolCalls" | "structuredOutput" | "reasoningMetadata" | "usageAccounting" | "cancellation" | "retryAfter" | "promptCaching">;
|
|
306
|
+
type DirectProviderCapabilityProfile = Pick<LLMProviderCapabilities, "streaming" | "textInput" | "imageInput" | "tools" | "parallelToolCalls" | "structuredOutput" | "reasoningMetadata" | "usageAccounting" | "cancellation" | "retryAfter" | "promptCaching" | "customToolGrammarsGbnf" | "customToolGrammarsGbnfStreaming">;
|
|
307
|
+
interface DirectProviderSamplingOptions {
|
|
308
|
+
temperature?: number;
|
|
309
|
+
topP?: number;
|
|
310
|
+
seed?: number;
|
|
311
|
+
}
|
|
295
312
|
interface DirectProviderConfig {
|
|
296
313
|
kind: DirectProviderKind;
|
|
297
314
|
apiKey: string;
|
|
298
315
|
baseURL?: string;
|
|
299
316
|
anthropicVersion?: string;
|
|
300
317
|
maxTokens?: number;
|
|
318
|
+
sampling?: DirectProviderSamplingOptions;
|
|
301
319
|
xenoPromptTokenCeiling?: number;
|
|
320
|
+
xenoEnableThinking?: boolean;
|
|
321
|
+
xenoToolFormat?: "qwen_native";
|
|
302
322
|
streaming?: boolean;
|
|
303
323
|
capabilityProfile?: DirectProviderCapabilityProfile;
|
|
304
324
|
endpointProfile?: DirectEndpointProfile;
|
|
@@ -316,10 +336,18 @@ interface DirectProviderConfig {
|
|
|
316
336
|
type: "none";
|
|
317
337
|
};
|
|
318
338
|
}
|
|
339
|
+
interface LocalToolGrammarSupport {
|
|
340
|
+
gbnf: boolean;
|
|
341
|
+
streaming: boolean;
|
|
342
|
+
}
|
|
343
|
+
declare function probeLocalToolGrammarSupport(baseURL: string, options?: {
|
|
344
|
+
signal?: AbortSignal;
|
|
345
|
+
limits?: ProviderTransportLimits;
|
|
346
|
+
}): Promise<LocalToolGrammarSupport>;
|
|
319
347
|
declare function createDirectProvider(config: DirectProviderConfig): LLMProvider;
|
|
320
|
-
type OllamaNativeProviderConfig = Omit<DirectProviderConfig, "kind" | "streaming" | "capabilityProfile" | "chatCompletionsPath">;
|
|
348
|
+
type OllamaNativeProviderConfig = Omit<DirectProviderConfig, "kind" | "streaming" | "capabilityProfile" | "chatCompletionsPath" | "sampling">;
|
|
321
349
|
declare function createOllamaNativeProvider(config: OllamaNativeProviderConfig): LLMProvider;
|
|
322
|
-
type ToolSchemaProviderDialect = "xeno" | "anthropic" | "openai-responses" | "openai-chat" | "google";
|
|
350
|
+
type ToolSchemaProviderDialect = "xeno" | "anthropic" | "openai-responses" | "openai-chat" | "google" | "google-json-schema";
|
|
323
351
|
interface ToolSchemaProjectionChange {
|
|
324
352
|
path: string;
|
|
325
353
|
keyword: string;
|
|
@@ -407,12 +435,28 @@ interface XenoProviderModelDescriptor {
|
|
|
407
435
|
id: string;
|
|
408
436
|
displayName?: string;
|
|
409
437
|
ownedBy?: string;
|
|
438
|
+
type?: string;
|
|
439
|
+
supportedInputModalities?: string[];
|
|
440
|
+
supportedOutputModalities?: string[];
|
|
441
|
+
supportedParameters?: string[];
|
|
442
|
+
supportedGenerationMethods?: string[];
|
|
443
|
+
execution?: XenoProviderModelExecution;
|
|
444
|
+
available?: boolean;
|
|
445
|
+
availability?: string;
|
|
410
446
|
contextTokens?: number;
|
|
411
447
|
inputCostPerMillion?: number;
|
|
412
448
|
outputCostPerMillion?: number;
|
|
413
449
|
capabilities?: Partial<XenoProviderCapabilities>;
|
|
414
450
|
metadataSource: "provider" | "configuration" | "catalog";
|
|
415
451
|
}
|
|
452
|
+
interface XenoProviderModelExecution {
|
|
453
|
+
sync?: boolean;
|
|
454
|
+
stream?: boolean;
|
|
455
|
+
async?: boolean;
|
|
456
|
+
batch?: boolean;
|
|
457
|
+
maxBatchItems?: number;
|
|
458
|
+
endpoint?: string;
|
|
459
|
+
}
|
|
416
460
|
interface XenoProviderProbeResult {
|
|
417
461
|
schemaVersion: 1;
|
|
418
462
|
connectionId: string;
|
|
@@ -460,7 +504,7 @@ declare class XenoProviderCatalog {
|
|
|
460
504
|
}
|
|
461
505
|
declare function probeXenoProvider(options: ProbeXenoProviderOptions): Promise<XenoProviderProbeResult>;
|
|
462
506
|
declare function selectXenoProviderRoute(candidates: XenoProviderRouteCandidate[], policy?: XenoProviderRoutingPolicy): XenoProviderRouteCandidate[];
|
|
463
|
-
declare function directProviderConfigFromConnection(view: XenoProviderConnectionView, secret: string | undefined): DirectProviderConfig;
|
|
507
|
+
declare function directProviderConfigFromConnection(view: XenoProviderConnectionView, secret: string | undefined, model?: XenoProviderModelDescriptor): DirectProviderConfig;
|
|
464
508
|
declare const XENO_PROVIDER_CONNECTION_STORE_SCHEMA_VERSION: 1;
|
|
465
509
|
interface XenoProviderConnectionSnapshot {
|
|
466
510
|
schemaVersion: typeof XENO_PROVIDER_CONNECTION_STORE_SCHEMA_VERSION;
|
|
@@ -580,4 +624,4 @@ declare class FileQuotaAuthority implements QuotaAuthority {
|
|
|
580
624
|
private load;
|
|
581
625
|
private append;
|
|
582
626
|
}
|
|
583
|
-
export { BUILT_IN_XENO_PROVIDER_PRESETS, type ChatParams, type ChatResponse, type DirectEndpointPolicy, type DirectEndpointProfile, type DirectProviderCapabilityProfile, type DirectProviderConfig, type DirectProviderKind, type DualLLMMode, DualLLMProvider, type DualLLMProviderConfig, type DualLLMStatus, FileQuotaAuthority, FileXenoProviderConnectionStore, type FileXenoProviderConnectionStoreOptions, type OllamaNativeProviderConfig, PROVIDER_TOOL_NAME_PATTERN, type ProbeXenoProviderOptions, ProviderError, type ProviderErrorCategory, type ProviderErrorCode, type ProviderErrorOptions, type ProviderTransportLimits, QuotaAcknowledgementError, type QuotaAcknowledgementPhase, type QuotaAuthority, type QuotaEntity, QuotaError, type QuotaGovernorOptions, type QuotaLimits, type QuotaReservation, type QuotaScope, type ToolNameCodec, type ToolSchemaProjectionChange, ToolSchemaProjectionError, type ToolSchemaProjectionResult, type ToolSchemaProviderDialect, XENO_PROVIDER_CATALOG_SCHEMA_VERSION, XENO_PROVIDER_CONNECTION_STORE_SCHEMA_VERSION, type XenoProviderAdapterKind, type XenoProviderAuthPreset, type XenoProviderCapabilities, XenoProviderCatalog, type XenoProviderConnection, type XenoProviderConnectionSnapshot, type XenoProviderConnectionView, type XenoProviderCredentialMode, type XenoProviderModelDescriptor, type XenoProviderPreset, type XenoProviderProbeResult, type XenoProviderReadiness, type XenoProviderRouteCandidate, type XenoProviderRoutingPolicy, assertDirectEndpointResolution, classifyProviderHttpError, classifyProviderStreamError, createDirectProvider, createOllamaNativeProvider, createQuotaGovernedProvider, createToolNameCodec, directProviderConfigFromConnection, isQuotaControlError, normalizeQuotaScope, parseRetryAfter, probeXenoProvider, projectToolDefinitionsForProvider, projectToolSchemaForProvider, providerCapabilityError, providerProtocolError, quotaAncestors, quotaInteger, quotaScopeKey, quotaText, selectXenoProviderRoute, validateDirectEndpoint };
|
|
627
|
+
export { BUILT_IN_XENO_PROVIDER_PRESETS, type ChatParams, type ChatResponse, type DirectEndpointPolicy, type DirectEndpointProfile, type DirectProviderCapabilityProfile, type DirectProviderConfig, type DirectProviderKind, type DirectProviderSamplingOptions, type DualLLMMode, DualLLMProvider, type DualLLMProviderConfig, type DualLLMStatus, FileQuotaAuthority, FileXenoProviderConnectionStore, type FileXenoProviderConnectionStoreOptions, type LocalToolGrammarSupport, type OllamaNativeProviderConfig, PROVIDER_TOOL_NAME_PATTERN, type ProbeXenoProviderOptions, ProviderError, type ProviderErrorCategory, type ProviderErrorCode, type ProviderErrorOptions, type ProviderTransportLimits, QuotaAcknowledgementError, type QuotaAcknowledgementPhase, type QuotaAuthority, type QuotaEntity, QuotaError, type QuotaGovernorOptions, type QuotaLimits, type QuotaReservation, type QuotaScope, type ToolNameCodec, type ToolSchemaProjectionChange, ToolSchemaProjectionError, type ToolSchemaProjectionResult, type ToolSchemaProviderDialect, XENO_PROVIDER_CATALOG_SCHEMA_VERSION, XENO_PROVIDER_CONNECTION_STORE_SCHEMA_VERSION, type XenoProviderAdapterKind, type XenoProviderAuthPreset, type XenoProviderCapabilities, XenoProviderCatalog, type XenoProviderConnection, type XenoProviderConnectionSnapshot, type XenoProviderConnectionView, type XenoProviderCredentialMode, type XenoProviderModelDescriptor, type XenoProviderModelExecution, type XenoProviderPreset, type XenoProviderProbeResult, type XenoProviderReadiness, type XenoProviderRouteCandidate, type XenoProviderRoutingPolicy, assertDirectEndpointResolution, classifyProviderHttpError, classifyProviderStreamError, createDirectProvider, createOllamaNativeProvider, createQuotaGovernedProvider, createToolNameCodec, directProviderConfigFromConnection, isQuotaControlError, normalizeQuotaScope, parseRetryAfter, probeLocalToolGrammarSupport, probeXenoProvider, projectToolDefinitionsForProvider, projectToolSchemaForProvider, providerCapabilityError, providerProtocolError, quotaAncestors, quotaInteger, quotaScopeKey, quotaText, selectXenoProviderRoute, validateDirectEndpoint };
|