@everworker/oneringai 0.4.0 → 0.4.2
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 +5 -1
- package/dist/{IProvider-BUbU5UwV.d.ts → IProvider-B6hqVVq8.d.ts} +1 -1
- package/dist/{IProvider-Br817mKc.d.cts → IProvider-CNJqZItJ.d.cts} +1 -1
- package/dist/{ImageModel-zh19LiVM.d.cts → ImageModel-B64HX3lN.d.cts} +1 -1
- package/dist/{ImageModel-B2KUs-ps.d.ts → ImageModel-DU-y_WOb.d.ts} +1 -1
- package/dist/capabilities/agents/index.d.cts +2 -2
- package/dist/capabilities/agents/index.d.ts +2 -2
- package/dist/capabilities/images/index.d.cts +2 -2
- package/dist/capabilities/images/index.d.ts +2 -2
- package/dist/{index-CR5PHkck.d.cts → index-9VOnAX17.d.ts} +47 -7
- package/dist/{index-Cb7N9QIj.d.ts → index-BMjyFNJQ.d.cts} +47 -7
- package/dist/index.cjs +854 -54
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +214 -12
- package/dist/index.d.ts +214 -12
- package/dist/index.js +852 -55
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -69,6 +69,10 @@ Or read the more detailed installation / setup instructions [here](https://githu
|
|
|
69
69
|
|
|
70
70
|
Better to see once and then dig in the code! :)
|
|
71
71
|
|
|
72
|
+
## YOUetal
|
|
73
|
+
|
|
74
|
+
Showcasing another amazing "built with oneringai": ["no saas" agentic business team](https://youetal.ai)
|
|
75
|
+
|
|
72
76
|
## Features
|
|
73
77
|
|
|
74
78
|
- ✨ **Unified API** - One interface for 10+ AI providers (OpenAI, Anthropic, Google, Groq, DeepSeek, and more)
|
|
@@ -1704,4 +1708,4 @@ MIT License - See [LICENSE](./LICENSE) file.
|
|
|
1704
1708
|
|
|
1705
1709
|
---
|
|
1706
1710
|
|
|
1707
|
-
**Version:** 0.
|
|
1711
|
+
**Version:** 0.4.2 | **Last Updated:** 2026-02-22 | **[User Guide](./USER_GUIDE.md)** | **[API Reference](./API_REFERENCE.md)** | **[Changelog](./CHANGELOG.md)**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { y as AfterToolContext, z as AgentEventName, A as AgentEvents, B as AgenticLoopEventName, D as AgenticLoopEvents, G as ApprovalResult, J as ApproveToolContext, m as AuditEntry, K as BeforeToolContext,
|
|
2
|
-
import '../../IProvider-
|
|
1
|
+
export { y as AfterToolContext, z as AgentEventName, A as AgentEvents, B as AgenticLoopEventName, D as AgenticLoopEvents, G as ApprovalResult, J as ApproveToolContext, m as AuditEntry, K as BeforeToolContext, aM as ExecutionCompleteEvent, X as ExecutionConfig, E as ExecutionContext, l as ExecutionMetrics, aN as ExecutionStartEvent, j as HistoryMode, Y as Hook, H as HookConfig, Z as HookManager, n as HookName, aO as LLMRequestEvent, aP as LLMResponseEvent, a6 as ModifyingHook, aQ as ToolCompleteEvent, aq as ToolModification, aR as ToolStartEvent } from '../../index-BMjyFNJQ.cjs';
|
|
2
|
+
import '../../IProvider-CNJqZItJ.cjs';
|
|
3
3
|
import '../../Vendor-DYh_bzwo.cjs';
|
|
4
4
|
import 'eventemitter3';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { y as AfterToolContext, z as AgentEventName, A as AgentEvents, B as AgenticLoopEventName, D as AgenticLoopEvents, G as ApprovalResult, J as ApproveToolContext, m as AuditEntry, K as BeforeToolContext,
|
|
2
|
-
import '../../IProvider-
|
|
1
|
+
export { y as AfterToolContext, z as AgentEventName, A as AgentEvents, B as AgenticLoopEventName, D as AgenticLoopEvents, G as ApprovalResult, J as ApproveToolContext, m as AuditEntry, K as BeforeToolContext, aM as ExecutionCompleteEvent, X as ExecutionConfig, E as ExecutionContext, l as ExecutionMetrics, aN as ExecutionStartEvent, j as HistoryMode, Y as Hook, H as HookConfig, Z as HookManager, n as HookName, aO as LLMRequestEvent, aP as LLMResponseEvent, a6 as ModifyingHook, aQ as ToolCompleteEvent, aq as ToolModification, aR as ToolStartEvent } from '../../index-9VOnAX17.js';
|
|
2
|
+
import '../../IProvider-B6hqVVq8.js';
|
|
3
3
|
import '../../Vendor-DYh_bzwo.js';
|
|
4
4
|
import 'eventemitter3';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { g as ImageEditOptions, h as ImageGenerateOptions, i as ImageGeneration, j as ImageGenerationCreateOptions, m as ImageResponse, n as ImageVariationOptions, S as SimpleGenerateOptions } from '../../ImageModel-
|
|
2
|
-
import '../../IProvider-
|
|
1
|
+
export { g as ImageEditOptions, h as ImageGenerateOptions, i as ImageGeneration, j as ImageGenerationCreateOptions, m as ImageResponse, n as ImageVariationOptions, S as SimpleGenerateOptions } from '../../ImageModel-B64HX3lN.cjs';
|
|
2
|
+
import '../../IProvider-CNJqZItJ.cjs';
|
|
3
3
|
import '../../Vendor-DYh_bzwo.cjs';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { g as ImageEditOptions, h as ImageGenerateOptions, i as ImageGeneration, j as ImageGenerationCreateOptions, m as ImageResponse, n as ImageVariationOptions, S as SimpleGenerateOptions } from '../../ImageModel-
|
|
2
|
-
import '../../IProvider-
|
|
1
|
+
export { g as ImageEditOptions, h as ImageGenerateOptions, i as ImageGeneration, j as ImageGenerationCreateOptions, m as ImageResponse, n as ImageVariationOptions, S as SimpleGenerateOptions } from '../../ImageModel-DU-y_WOb.js';
|
|
2
|
+
import '../../IProvider-B6hqVVq8.js';
|
|
3
3
|
import '../../Vendor-DYh_bzwo.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I as IConnectorRegistry, e as IProvider } from './IProvider-
|
|
1
|
+
import { I as IConnectorRegistry, e as IProvider } from './IProvider-B6hqVVq8.js';
|
|
2
2
|
import { EventEmitter } from 'eventemitter3';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -10,7 +10,8 @@ declare enum ContentType {
|
|
|
10
10
|
INPUT_FILE = "input_file",
|
|
11
11
|
OUTPUT_TEXT = "output_text",
|
|
12
12
|
TOOL_USE = "tool_use",
|
|
13
|
-
TOOL_RESULT = "tool_result"
|
|
13
|
+
TOOL_RESULT = "tool_result",
|
|
14
|
+
THINKING = "thinking"
|
|
14
15
|
}
|
|
15
16
|
interface BaseContent {
|
|
16
17
|
type: ContentType;
|
|
@@ -56,7 +57,16 @@ interface ToolResultContent extends BaseContent {
|
|
|
56
57
|
mediaType: string;
|
|
57
58
|
}>;
|
|
58
59
|
}
|
|
59
|
-
|
|
60
|
+
interface ThinkingContent extends BaseContent {
|
|
61
|
+
type: ContentType.THINKING;
|
|
62
|
+
thinking: string;
|
|
63
|
+
/** Anthropic's opaque signature for round-tripping thinking blocks */
|
|
64
|
+
signature?: string;
|
|
65
|
+
/** Whether this thinking block should be persisted in conversation history.
|
|
66
|
+
* Anthropic requires it (true), OpenAI/Google do not (false). */
|
|
67
|
+
persistInHistory: boolean;
|
|
68
|
+
}
|
|
69
|
+
type Content = InputTextContent | InputImageContent | InputFileContent | OutputTextContent | ToolUseContent | ToolResultContent | ThinkingContent;
|
|
60
70
|
|
|
61
71
|
/**
|
|
62
72
|
* Message entity based on OpenAI Responses API format
|
|
@@ -590,6 +600,7 @@ interface LLMResponse {
|
|
|
590
600
|
model: string;
|
|
591
601
|
output: OutputItem[];
|
|
592
602
|
output_text?: string;
|
|
603
|
+
thinking?: string;
|
|
593
604
|
usage: TokenUsage;
|
|
594
605
|
error?: {
|
|
595
606
|
type: string;
|
|
@@ -618,6 +629,8 @@ declare enum StreamEventType {
|
|
|
618
629
|
TOOL_EXECUTION_START = "response.tool_execution.start",
|
|
619
630
|
TOOL_EXECUTION_DONE = "response.tool_execution.done",
|
|
620
631
|
ITERATION_COMPLETE = "response.iteration.complete",
|
|
632
|
+
REASONING_DELTA = "response.reasoning.delta",
|
|
633
|
+
REASONING_DONE = "response.reasoning.done",
|
|
621
634
|
RESPONSE_COMPLETE = "response.complete",
|
|
622
635
|
ERROR = "response.error"
|
|
623
636
|
}
|
|
@@ -731,6 +744,23 @@ interface ResponseCompleteEvent extends BaseStreamEvent {
|
|
|
731
744
|
iterations: number;
|
|
732
745
|
duration_ms?: number;
|
|
733
746
|
}
|
|
747
|
+
/**
|
|
748
|
+
* Reasoning/thinking delta - incremental reasoning output
|
|
749
|
+
*/
|
|
750
|
+
interface ReasoningDeltaEvent extends BaseStreamEvent {
|
|
751
|
+
type: StreamEventType.REASONING_DELTA;
|
|
752
|
+
item_id: string;
|
|
753
|
+
delta: string;
|
|
754
|
+
sequence_number: number;
|
|
755
|
+
}
|
|
756
|
+
/**
|
|
757
|
+
* Reasoning/thinking complete for this item
|
|
758
|
+
*/
|
|
759
|
+
interface ReasoningDoneEvent extends BaseStreamEvent {
|
|
760
|
+
type: StreamEventType.REASONING_DONE;
|
|
761
|
+
item_id: string;
|
|
762
|
+
thinking: string;
|
|
763
|
+
}
|
|
734
764
|
/**
|
|
735
765
|
* Error event
|
|
736
766
|
*/
|
|
@@ -747,7 +777,7 @@ interface ErrorEvent extends BaseStreamEvent {
|
|
|
747
777
|
* Union type of all stream events
|
|
748
778
|
* Discriminated by 'type' field for type narrowing
|
|
749
779
|
*/
|
|
750
|
-
type StreamEvent = ResponseCreatedEvent | ResponseInProgressEvent | OutputTextDeltaEvent | OutputTextDoneEvent | ToolCallStartEvent | ToolCallArgumentsDeltaEvent | ToolCallArgumentsDoneEvent | ToolExecutionStartEvent | ToolExecutionDoneEvent | IterationCompleteEvent$1 | ResponseCompleteEvent | ErrorEvent;
|
|
780
|
+
type StreamEvent = ResponseCreatedEvent | ResponseInProgressEvent | OutputTextDeltaEvent | OutputTextDoneEvent | ReasoningDeltaEvent | ReasoningDoneEvent | ToolCallStartEvent | ToolCallArgumentsDeltaEvent | ToolCallArgumentsDoneEvent | ToolExecutionStartEvent | ToolExecutionDoneEvent | IterationCompleteEvent$1 | ResponseCompleteEvent | ErrorEvent;
|
|
751
781
|
/**
|
|
752
782
|
* Type guard to check if event is a specific type
|
|
753
783
|
*/
|
|
@@ -759,6 +789,8 @@ declare function isOutputTextDelta(event: StreamEvent): event is OutputTextDelta
|
|
|
759
789
|
declare function isToolCallStart(event: StreamEvent): event is ToolCallStartEvent;
|
|
760
790
|
declare function isToolCallArgumentsDelta(event: StreamEvent): event is ToolCallArgumentsDeltaEvent;
|
|
761
791
|
declare function isToolCallArgumentsDone(event: StreamEvent): event is ToolCallArgumentsDoneEvent;
|
|
792
|
+
declare function isReasoningDelta(event: StreamEvent): event is ReasoningDeltaEvent;
|
|
793
|
+
declare function isReasoningDone(event: StreamEvent): event is ReasoningDoneEvent;
|
|
762
794
|
declare function isResponseComplete(event: StreamEvent): event is ResponseCompleteEvent;
|
|
763
795
|
declare function isErrorEvent(event: StreamEvent): event is ErrorEvent;
|
|
764
796
|
|
|
@@ -786,6 +818,14 @@ interface TextGenerateOptions {
|
|
|
786
818
|
parallel_tool_calls?: boolean;
|
|
787
819
|
previous_response_id?: string;
|
|
788
820
|
metadata?: Record<string, string>;
|
|
821
|
+
/** Vendor-agnostic thinking/reasoning configuration */
|
|
822
|
+
thinking?: {
|
|
823
|
+
enabled: boolean;
|
|
824
|
+
/** Budget in tokens for thinking (Anthropic & Google) */
|
|
825
|
+
budgetTokens?: number;
|
|
826
|
+
/** Reasoning effort level (OpenAI) */
|
|
827
|
+
effort?: 'low' | 'medium' | 'high';
|
|
828
|
+
};
|
|
789
829
|
/** Vendor-specific options (e.g., Google's thinkingLevel, OpenAI's reasoning_effort) */
|
|
790
830
|
vendorOptions?: Record<string, any>;
|
|
791
831
|
}
|
|
@@ -813,9 +853,9 @@ interface ITextProvider extends IProvider {
|
|
|
813
853
|
*/
|
|
814
854
|
getModelCapabilities(model: string): ModelCapabilities;
|
|
815
855
|
/**
|
|
816
|
-
* List available models
|
|
856
|
+
* List available models from the provider's API
|
|
817
857
|
*/
|
|
818
|
-
listModels
|
|
858
|
+
listModels(): Promise<string[]>;
|
|
819
859
|
}
|
|
820
860
|
|
|
821
861
|
/**
|
|
@@ -1354,4 +1394,4 @@ declare class HookManager {
|
|
|
1354
1394
|
getDisabledHooks(): string[];
|
|
1355
1395
|
}
|
|
1356
1396
|
|
|
1357
|
-
export { type InputTextContent as $, type AgentEvents as A, type AgenticLoopEventName as B, type Content as C, type AgenticLoopEvents as D, ExecutionContext as E, type FunctionToolDefinition as F, type ApprovalResult as G, type HookConfig as H, type InputItem as I, type ApproveToolContext as J, type BeforeToolContext as K, type LLMResponse as L, type MemoryEntry as M, type BuiltInTool as N, type OutputItem as O, type PriorityCalculator as P, type CompactionItem as Q, ContentType as R, type StreamEvent as S, type ToolFunction as T, DEFAULT_MEMORY_CONFIG as U, type ErrorEvent as V, type WorkingMemoryConfig as W, type ExecutionConfig as X, type Hook as Y, HookManager as Z, type InputImageContent as _, type MemoryScope as a, type IterationCompleteEvent$1 as a0, type JSONSchema as a1, MEMORY_PRIORITY_VALUES as a2, type MemoryEntryInput as a3, type MemoryIndexEntry as a4, type Message as a5, type ModifyingHook as a6, type OutputTextContent as a7, type OutputTextDeltaEvent as a8, type OutputTextDoneEvent as a9,
|
|
1397
|
+
export { type InputTextContent as $, type AgentEvents as A, type AgenticLoopEventName as B, type Content as C, type AgenticLoopEvents as D, ExecutionContext as E, type FunctionToolDefinition as F, type ApprovalResult as G, type HookConfig as H, type InputItem as I, type ApproveToolContext as J, type BeforeToolContext as K, type LLMResponse as L, type MemoryEntry as M, type BuiltInTool as N, type OutputItem as O, type PriorityCalculator as P, type CompactionItem as Q, ContentType as R, type StreamEvent as S, type ToolFunction as T, DEFAULT_MEMORY_CONFIG as U, type ErrorEvent as V, type WorkingMemoryConfig as W, type ExecutionConfig as X, type Hook as Y, HookManager as Z, type InputImageContent as _, type MemoryScope as a, type IterationCompleteEvent$1 as a0, type JSONSchema as a1, MEMORY_PRIORITY_VALUES as a2, type MemoryEntryInput as a3, type MemoryIndexEntry as a4, type Message as a5, type ModifyingHook as a6, type OutputTextContent as a7, type OutputTextDeltaEvent as a8, type OutputTextDoneEvent as a9, isReasoningDelta as aA, isReasoningDone as aB, isResponseComplete as aC, isSimpleScope as aD, isStreamEvent as aE, isTaskAwareScope as aF, isTerminalMemoryStatus as aG, isToolCallArgumentsDelta as aH, isToolCallArgumentsDone as aI, isToolCallStart as aJ, scopeEquals as aK, scopeMatches as aL, type ExecutionCompleteEvent as aM, type ExecutionStartEvent as aN, type LLMRequestEvent as aO, type LLMResponseEvent as aP, type ToolCompleteEvent as aQ, type ToolStartEvent as aR, type ReasoningDeltaEvent as aa, type ReasoningDoneEvent as ab, type ReasoningItem as ac, type ResponseCompleteEvent as ad, type ResponseCreatedEvent as ae, type ResponseInProgressEvent as af, type SimpleScope as ag, type TaskAwareScope as ah, type ThinkingContent as ai, type ToolCallArgumentsDeltaEvent as aj, type ToolCallArgumentsDoneEvent as ak, type ToolCallStartEvent as al, ToolCallState as am, type ToolExecutionContext as an, type ToolExecutionDoneEvent as ao, type ToolExecutionStartEvent as ap, type ToolModification as aq, type ToolResultContent as ar, type ToolUseContent as as, calculateEntrySize as at, defaultDescribeCall as au, forPlan as av, forTasks as aw, getToolCallDescription as ax, isErrorEvent as ay, isOutputTextDelta as az, type Tool as b, type ToolContext as c, type ToolPermissionConfig as d, type ToolCall as e, type MemoryPriority as f, type MemoryTier as g, type ToolResult as h, type ITextProvider as i, type HistoryMode as j, type AgentResponse as k, type ExecutionMetrics as l, type AuditEntry as m, type HookName as n, type StaleEntryInfo as o, type PriorityContext as p, type MemoryIndex as q, type TaskStatusForMemory as r, type WorkingMemoryAccess as s, type TokenUsage as t, StreamEventType as u, type TextGenerateOptions as v, type ModelCapabilities as w, MessageRole as x, type AfterToolContext as y, type AgentEventName as z };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I as IConnectorRegistry, e as IProvider } from './IProvider-
|
|
1
|
+
import { I as IConnectorRegistry, e as IProvider } from './IProvider-CNJqZItJ.cjs';
|
|
2
2
|
import { EventEmitter } from 'eventemitter3';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -10,7 +10,8 @@ declare enum ContentType {
|
|
|
10
10
|
INPUT_FILE = "input_file",
|
|
11
11
|
OUTPUT_TEXT = "output_text",
|
|
12
12
|
TOOL_USE = "tool_use",
|
|
13
|
-
TOOL_RESULT = "tool_result"
|
|
13
|
+
TOOL_RESULT = "tool_result",
|
|
14
|
+
THINKING = "thinking"
|
|
14
15
|
}
|
|
15
16
|
interface BaseContent {
|
|
16
17
|
type: ContentType;
|
|
@@ -56,7 +57,16 @@ interface ToolResultContent extends BaseContent {
|
|
|
56
57
|
mediaType: string;
|
|
57
58
|
}>;
|
|
58
59
|
}
|
|
59
|
-
|
|
60
|
+
interface ThinkingContent extends BaseContent {
|
|
61
|
+
type: ContentType.THINKING;
|
|
62
|
+
thinking: string;
|
|
63
|
+
/** Anthropic's opaque signature for round-tripping thinking blocks */
|
|
64
|
+
signature?: string;
|
|
65
|
+
/** Whether this thinking block should be persisted in conversation history.
|
|
66
|
+
* Anthropic requires it (true), OpenAI/Google do not (false). */
|
|
67
|
+
persistInHistory: boolean;
|
|
68
|
+
}
|
|
69
|
+
type Content = InputTextContent | InputImageContent | InputFileContent | OutputTextContent | ToolUseContent | ToolResultContent | ThinkingContent;
|
|
60
70
|
|
|
61
71
|
/**
|
|
62
72
|
* Message entity based on OpenAI Responses API format
|
|
@@ -590,6 +600,7 @@ interface LLMResponse {
|
|
|
590
600
|
model: string;
|
|
591
601
|
output: OutputItem[];
|
|
592
602
|
output_text?: string;
|
|
603
|
+
thinking?: string;
|
|
593
604
|
usage: TokenUsage;
|
|
594
605
|
error?: {
|
|
595
606
|
type: string;
|
|
@@ -618,6 +629,8 @@ declare enum StreamEventType {
|
|
|
618
629
|
TOOL_EXECUTION_START = "response.tool_execution.start",
|
|
619
630
|
TOOL_EXECUTION_DONE = "response.tool_execution.done",
|
|
620
631
|
ITERATION_COMPLETE = "response.iteration.complete",
|
|
632
|
+
REASONING_DELTA = "response.reasoning.delta",
|
|
633
|
+
REASONING_DONE = "response.reasoning.done",
|
|
621
634
|
RESPONSE_COMPLETE = "response.complete",
|
|
622
635
|
ERROR = "response.error"
|
|
623
636
|
}
|
|
@@ -731,6 +744,23 @@ interface ResponseCompleteEvent extends BaseStreamEvent {
|
|
|
731
744
|
iterations: number;
|
|
732
745
|
duration_ms?: number;
|
|
733
746
|
}
|
|
747
|
+
/**
|
|
748
|
+
* Reasoning/thinking delta - incremental reasoning output
|
|
749
|
+
*/
|
|
750
|
+
interface ReasoningDeltaEvent extends BaseStreamEvent {
|
|
751
|
+
type: StreamEventType.REASONING_DELTA;
|
|
752
|
+
item_id: string;
|
|
753
|
+
delta: string;
|
|
754
|
+
sequence_number: number;
|
|
755
|
+
}
|
|
756
|
+
/**
|
|
757
|
+
* Reasoning/thinking complete for this item
|
|
758
|
+
*/
|
|
759
|
+
interface ReasoningDoneEvent extends BaseStreamEvent {
|
|
760
|
+
type: StreamEventType.REASONING_DONE;
|
|
761
|
+
item_id: string;
|
|
762
|
+
thinking: string;
|
|
763
|
+
}
|
|
734
764
|
/**
|
|
735
765
|
* Error event
|
|
736
766
|
*/
|
|
@@ -747,7 +777,7 @@ interface ErrorEvent extends BaseStreamEvent {
|
|
|
747
777
|
* Union type of all stream events
|
|
748
778
|
* Discriminated by 'type' field for type narrowing
|
|
749
779
|
*/
|
|
750
|
-
type StreamEvent = ResponseCreatedEvent | ResponseInProgressEvent | OutputTextDeltaEvent | OutputTextDoneEvent | ToolCallStartEvent | ToolCallArgumentsDeltaEvent | ToolCallArgumentsDoneEvent | ToolExecutionStartEvent | ToolExecutionDoneEvent | IterationCompleteEvent$1 | ResponseCompleteEvent | ErrorEvent;
|
|
780
|
+
type StreamEvent = ResponseCreatedEvent | ResponseInProgressEvent | OutputTextDeltaEvent | OutputTextDoneEvent | ReasoningDeltaEvent | ReasoningDoneEvent | ToolCallStartEvent | ToolCallArgumentsDeltaEvent | ToolCallArgumentsDoneEvent | ToolExecutionStartEvent | ToolExecutionDoneEvent | IterationCompleteEvent$1 | ResponseCompleteEvent | ErrorEvent;
|
|
751
781
|
/**
|
|
752
782
|
* Type guard to check if event is a specific type
|
|
753
783
|
*/
|
|
@@ -759,6 +789,8 @@ declare function isOutputTextDelta(event: StreamEvent): event is OutputTextDelta
|
|
|
759
789
|
declare function isToolCallStart(event: StreamEvent): event is ToolCallStartEvent;
|
|
760
790
|
declare function isToolCallArgumentsDelta(event: StreamEvent): event is ToolCallArgumentsDeltaEvent;
|
|
761
791
|
declare function isToolCallArgumentsDone(event: StreamEvent): event is ToolCallArgumentsDoneEvent;
|
|
792
|
+
declare function isReasoningDelta(event: StreamEvent): event is ReasoningDeltaEvent;
|
|
793
|
+
declare function isReasoningDone(event: StreamEvent): event is ReasoningDoneEvent;
|
|
762
794
|
declare function isResponseComplete(event: StreamEvent): event is ResponseCompleteEvent;
|
|
763
795
|
declare function isErrorEvent(event: StreamEvent): event is ErrorEvent;
|
|
764
796
|
|
|
@@ -786,6 +818,14 @@ interface TextGenerateOptions {
|
|
|
786
818
|
parallel_tool_calls?: boolean;
|
|
787
819
|
previous_response_id?: string;
|
|
788
820
|
metadata?: Record<string, string>;
|
|
821
|
+
/** Vendor-agnostic thinking/reasoning configuration */
|
|
822
|
+
thinking?: {
|
|
823
|
+
enabled: boolean;
|
|
824
|
+
/** Budget in tokens for thinking (Anthropic & Google) */
|
|
825
|
+
budgetTokens?: number;
|
|
826
|
+
/** Reasoning effort level (OpenAI) */
|
|
827
|
+
effort?: 'low' | 'medium' | 'high';
|
|
828
|
+
};
|
|
789
829
|
/** Vendor-specific options (e.g., Google's thinkingLevel, OpenAI's reasoning_effort) */
|
|
790
830
|
vendorOptions?: Record<string, any>;
|
|
791
831
|
}
|
|
@@ -813,9 +853,9 @@ interface ITextProvider extends IProvider {
|
|
|
813
853
|
*/
|
|
814
854
|
getModelCapabilities(model: string): ModelCapabilities;
|
|
815
855
|
/**
|
|
816
|
-
* List available models
|
|
856
|
+
* List available models from the provider's API
|
|
817
857
|
*/
|
|
818
|
-
listModels
|
|
858
|
+
listModels(): Promise<string[]>;
|
|
819
859
|
}
|
|
820
860
|
|
|
821
861
|
/**
|
|
@@ -1354,4 +1394,4 @@ declare class HookManager {
|
|
|
1354
1394
|
getDisabledHooks(): string[];
|
|
1355
1395
|
}
|
|
1356
1396
|
|
|
1357
|
-
export { type InputTextContent as $, type AgentEvents as A, type AgenticLoopEventName as B, type Content as C, type AgenticLoopEvents as D, ExecutionContext as E, type FunctionToolDefinition as F, type ApprovalResult as G, type HookConfig as H, type InputItem as I, type ApproveToolContext as J, type BeforeToolContext as K, type LLMResponse as L, type MemoryEntry as M, type BuiltInTool as N, type OutputItem as O, type PriorityCalculator as P, type CompactionItem as Q, ContentType as R, type StreamEvent as S, type ToolFunction as T, DEFAULT_MEMORY_CONFIG as U, type ErrorEvent as V, type WorkingMemoryConfig as W, type ExecutionConfig as X, type Hook as Y, HookManager as Z, type InputImageContent as _, type MemoryScope as a, type IterationCompleteEvent$1 as a0, type JSONSchema as a1, MEMORY_PRIORITY_VALUES as a2, type MemoryEntryInput as a3, type MemoryIndexEntry as a4, type Message as a5, type ModifyingHook as a6, type OutputTextContent as a7, type OutputTextDeltaEvent as a8, type OutputTextDoneEvent as a9,
|
|
1397
|
+
export { type InputTextContent as $, type AgentEvents as A, type AgenticLoopEventName as B, type Content as C, type AgenticLoopEvents as D, ExecutionContext as E, type FunctionToolDefinition as F, type ApprovalResult as G, type HookConfig as H, type InputItem as I, type ApproveToolContext as J, type BeforeToolContext as K, type LLMResponse as L, type MemoryEntry as M, type BuiltInTool as N, type OutputItem as O, type PriorityCalculator as P, type CompactionItem as Q, ContentType as R, type StreamEvent as S, type ToolFunction as T, DEFAULT_MEMORY_CONFIG as U, type ErrorEvent as V, type WorkingMemoryConfig as W, type ExecutionConfig as X, type Hook as Y, HookManager as Z, type InputImageContent as _, type MemoryScope as a, type IterationCompleteEvent$1 as a0, type JSONSchema as a1, MEMORY_PRIORITY_VALUES as a2, type MemoryEntryInput as a3, type MemoryIndexEntry as a4, type Message as a5, type ModifyingHook as a6, type OutputTextContent as a7, type OutputTextDeltaEvent as a8, type OutputTextDoneEvent as a9, isReasoningDelta as aA, isReasoningDone as aB, isResponseComplete as aC, isSimpleScope as aD, isStreamEvent as aE, isTaskAwareScope as aF, isTerminalMemoryStatus as aG, isToolCallArgumentsDelta as aH, isToolCallArgumentsDone as aI, isToolCallStart as aJ, scopeEquals as aK, scopeMatches as aL, type ExecutionCompleteEvent as aM, type ExecutionStartEvent as aN, type LLMRequestEvent as aO, type LLMResponseEvent as aP, type ToolCompleteEvent as aQ, type ToolStartEvent as aR, type ReasoningDeltaEvent as aa, type ReasoningDoneEvent as ab, type ReasoningItem as ac, type ResponseCompleteEvent as ad, type ResponseCreatedEvent as ae, type ResponseInProgressEvent as af, type SimpleScope as ag, type TaskAwareScope as ah, type ThinkingContent as ai, type ToolCallArgumentsDeltaEvent as aj, type ToolCallArgumentsDoneEvent as ak, type ToolCallStartEvent as al, ToolCallState as am, type ToolExecutionContext as an, type ToolExecutionDoneEvent as ao, type ToolExecutionStartEvent as ap, type ToolModification as aq, type ToolResultContent as ar, type ToolUseContent as as, calculateEntrySize as at, defaultDescribeCall as au, forPlan as av, forTasks as aw, getToolCallDescription as ax, isErrorEvent as ay, isOutputTextDelta as az, type Tool as b, type ToolContext as c, type ToolPermissionConfig as d, type ToolCall as e, type MemoryPriority as f, type MemoryTier as g, type ToolResult as h, type ITextProvider as i, type HistoryMode as j, type AgentResponse as k, type ExecutionMetrics as l, type AuditEntry as m, type HookName as n, type StaleEntryInfo as o, type PriorityContext as p, type MemoryIndex as q, type TaskStatusForMemory as r, type WorkingMemoryAccess as s, type TokenUsage as t, StreamEventType as u, type TextGenerateOptions as v, type ModelCapabilities as w, MessageRole as x, type AfterToolContext as y, type AgentEventName as z };
|