@combycode/llm-sdk 2.0.0 → 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/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';