@combycode/llm-sdk 2.0.1 → 2.1.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/CHANGELOG.md +180 -3
- package/dist/agent/context-registry/layers.d.ts +19 -0
- package/dist/agent/lazy-tools.d.ts +85 -0
- package/dist/agent/loop-config.d.ts +9 -0
- package/dist/agent/loop.d.ts +27 -1
- package/dist/agent/types.d.ts +15 -0
- package/dist/bus/hook-map.d.ts +14 -0
- package/dist/helpers/define-tool.d.ts +15 -6
- package/dist/helpers/engine.d.ts +17 -1
- package/dist/helpers/mcp.d.ts +9 -0
- package/dist/helpers/moderate.d.ts +13 -1
- package/dist/helpers/one-shot.d.ts +19 -0
- package/dist/index.browser.js +416 -29
- package/dist/index.d.ts +10 -3
- package/dist/index.js +416 -29
- package/dist/llm/types/schema-utils.d.ts +19 -0
- package/dist/network/engine.d.ts +10 -2
- package/dist/network/queue-state-config.d.ts +10 -2
- package/dist/plugins/cost-collector/collector.d.ts +12 -0
- package/dist/plugins/cost-collector/cost-collector-types.d.ts +8 -0
- package/dist/plugins/mcp/result-cache.d.ts +8 -1
- package/dist/plugins/mcp/tools.d.ts +2 -0
- package/dist/plugins/mcp/types.d.ts +43 -0
- package/package.json +5 -2
package/dist/index.d.ts
CHANGED
|
@@ -40,7 +40,7 @@ export type { QueueConfig, QueueEntry } from './network/request-queue';
|
|
|
40
40
|
export { parseSSEStream } from './network/sse';
|
|
41
41
|
export { QueueState } from './network/queue-state';
|
|
42
42
|
export { DEFAULT_RETRY, Priority } from './network/queue-state-config';
|
|
43
|
-
export type { BackoffConfig, ErrorRetryConfig, QueueStateConfig, RetryConfig } from './network/queue-state-config';
|
|
43
|
+
export type { BackoffConfig, ErrorRetryConfig, QueueStateConfig, RetryConfig, RetryPolicyOverride } from './network/queue-state-config';
|
|
44
44
|
export { NetworkEngine } from './network/engine';
|
|
45
45
|
export type { FetchOptions, NetworkEngineConfig, QueueSettings } from './network/engine';
|
|
46
46
|
export type { AudioFormat, AudioOptions, AudioInput, TranscriptLanguage, TranscriptSegment, TranscriptWord, } from './llm/types/audio';
|
|
@@ -55,7 +55,7 @@ export type { NormalizedRequest, ReasoningContext, ThinkingConfig, CacheConfig }
|
|
|
55
55
|
export type { MediaStreamType, StreamEvent } from './llm/types/stream';
|
|
56
56
|
export type { ExecuteOptions } from './llm/types/options';
|
|
57
57
|
export type { ProviderName, ApiType, ProviderConfig, ProviderHttpRequest, ProviderAdapter } from './llm/types/provider';
|
|
58
|
-
export { ensureAdditionalProperties } from './llm/types/schema-utils';
|
|
58
|
+
export { ensureAdditionalProperties, strictSupport, type StrictDialect } from './llm/types/schema-utils';
|
|
59
59
|
export { LLMClient } from './llm/client';
|
|
60
60
|
export type { LLMClientConfig, AdapterFactory } from './llm/client-config';
|
|
61
61
|
export { AnthropicBatchAdapter } from './llm/providers/anthropic/batch';
|
|
@@ -100,6 +100,13 @@ export type { ConversationHistoryConfig, HistoryEntry, HistorySnapshot } from '.
|
|
|
100
100
|
export { AgentLoop } from './agent/loop';
|
|
101
101
|
export type { AgentLoopConfig } from './agent/loop-config';
|
|
102
102
|
export type { AgentLoopSnapshot, AgentRunReport, AgentStreamEvent, AgentTool, ContentClass, LearnInput, StepReport, TokenCountContext, TokenCounter, ToolCallReport, ToolExecutionContext } from './agent/types';
|
|
103
|
+
export { LAZY_CALL_TOOL, LAZY_SEARCH_TOOL, rankTools, type LazyToolsConfig } from './agent/lazy-tools';
|
|
104
|
+
/** Read a tool's key/label without narrowing `Tool` by hand: `definition` is a
|
|
105
|
+
* union (function tool or builtin), so `.name` does not exist on it. */
|
|
106
|
+
export { toolKey, describeTool } from './agent/tool-key';
|
|
107
|
+
/** The adapter class was exported without its config type, so a consumer could
|
|
108
|
+
* construct one but not name the argument. */
|
|
109
|
+
export type { OpenAIProvenanceAdapterConfig } from './llm/providers/openai/provenance';
|
|
103
110
|
export type { Guardrail, GuardrailDecision, GuardrailPass, GuardrailTrip, GuardrailCheckContext, InputGuardrailContext, OutputGuardrailContext, GuardrailTriggeredContext, ToolInputGuardrail, ToolInputGuardrailContext, ToolInputGuardrailDecision } from './agent/guardrail-types';
|
|
104
111
|
export { BearerKeyAuth } from './server/auth';
|
|
105
112
|
export type { AuthPlugin, AuthVerifyResult } from './server/auth';
|
|
@@ -227,7 +234,7 @@ export type { McpSamplingConfig, McpSamplingHandler, McpSamplingViaLLM } from '.
|
|
|
227
234
|
export type { McpCreateMessageParams, McpCreateMessageResult, McpElicitRequestParams, McpElicitResult, McpRoot, McpSamplingMessage, McpTask, McpTaskMetadata, McpTaskStatus, } from './plugins/mcp/types';
|
|
228
235
|
export type { IncomingMcpHandlers } from './plugins/mcp/transport';
|
|
229
236
|
export { MCP_PROTOCOL_VERSION, isHttpConfig } from './plugins/mcp/types';
|
|
230
|
-
export type { McpCallResult, McpCompletionRef, McpCompletionResult, McpContentBlock, McpDiscoverResult, McpGetPromptResult, McpCacheHints, McpInputRequest, McpInputRequiredFields, McpHttpConfig, McpInitializeResult, McpLogLevel, McpPrompt, McpPromptArg, McpPromptMessage, McpResource, McpResourceContent, McpResourceTemplate, McpServerConfig, McpStdioConfig, McpToolDef } from './plugins/mcp/types';
|
|
237
|
+
export type { McpCallResult, McpCompletionRef, McpCompletionResult, McpContentBlock, McpDiscoverResult, McpGetPromptResult, McpCacheHints, McpInputRequest, McpInputRequiredFields, McpHttpConfig, McpInitializeResult, McpLogLevel, McpPrompt, McpPromptArg, McpPromptMessage, McpResource, McpResourceContent, McpResourceTemplate, McpServerConfig, McpStdioConfig, McpToolDef, McpToolAnnotations, McpToolIcon, McpToolExecution } from './plugins/mcp/types';
|
|
231
238
|
export { MCP_HANDSHAKE_PROTOCOL_VERSIONS, MCP_KNOWN_PROTOCOL_VERSIONS, MCP_LATEST_HANDSHAKE_VERSION, MCP_LATEST_MODERN_VERSION, MCP_MODERN_PROTOCOL_VERSIONS, isHandshakeMcpVersion, isModernMcpVersion, mcpEraOf, } from './plugins/mcp/protocol-version';
|
|
232
239
|
export type { McpEra } from './plugins/mcp/protocol-version';
|
|
233
240
|
export { McpResultCache } from './plugins/mcp/result-cache';
|