@crewai-ts/core 0.1.1 → 0.1.3

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.
Files changed (90) hide show
  1. package/dist/a2a.d.ts +1684 -0
  2. package/dist/a2ui-schemas.d.ts +3312 -0
  3. package/dist/a2ui.d.ts +379 -0
  4. package/dist/agent-adapters.d.ts +178 -0
  5. package/dist/agent-executors.d.ts +508 -0
  6. package/dist/agent-parser.d.ts +44 -0
  7. package/dist/agent-planning.d.ts +358 -0
  8. package/dist/agent-utils.d.ts +210 -0
  9. package/dist/agent.d.ts +444 -0
  10. package/dist/auth.d.ts +179 -0
  11. package/dist/config-utils.d.ts +5 -0
  12. package/dist/content-processor.d.ts +12 -0
  13. package/dist/context.d.ts +157 -0
  14. package/dist/converter.d.ts +97 -0
  15. package/dist/crew-chat.d.ts +97 -0
  16. package/dist/crew.d.ts +424 -0
  17. package/dist/decorators.d.ts +20 -0
  18. package/dist/env.d.ts +13 -0
  19. package/dist/errors.d.ts +27 -0
  20. package/dist/evaluators.d.ts +477 -0
  21. package/dist/events.d.ts +2657 -0
  22. package/dist/execution-utils.d.ts +85 -0
  23. package/dist/experimental-conversational.d.ts +181 -0
  24. package/dist/file-handler.d.ts +36 -0
  25. package/dist/file-store.d.ts +37 -0
  26. package/dist/files.d.ts +554 -0
  27. package/dist/flow-conversation.d.ts +90 -0
  28. package/dist/flow-definition.d.ts +195 -0
  29. package/dist/flow-persistence.d.ts +107 -0
  30. package/dist/flow-visualization.d.ts +77 -0
  31. package/dist/flow.d.ts +927 -0
  32. package/dist/formatter.d.ts +7 -0
  33. package/dist/guardrail.d.ts +95 -0
  34. package/dist/hooks.d.ts +241 -0
  35. package/dist/human-input.d.ts +74 -0
  36. package/dist/i18n.d.ts +26 -0
  37. package/dist/index.d.ts +99 -13004
  38. package/dist/input-files.d.ts +24 -0
  39. package/dist/input-provider.d.ts +22 -0
  40. package/dist/knowledge.d.ts +353 -0
  41. package/dist/lite-agent-output.d.ts +69 -0
  42. package/dist/lite-agent.d.ts +154 -0
  43. package/dist/llm.d.ts +630 -0
  44. package/dist/llms-hooks-transport.d.ts +1 -2
  45. package/dist/lock-store.d.ts +14 -0
  46. package/dist/logger.d.ts +55 -0
  47. package/dist/mcp.d.ts +315 -0
  48. package/dist/memory.d.ts +915 -0
  49. package/dist/metadata.d.ts +9 -0
  50. package/dist/misc-compat.d.ts +125 -0
  51. package/dist/openai-completion.d.ts +324 -0
  52. package/dist/outputs.d.ts +69 -0
  53. package/dist/planning.d.ts +60 -0
  54. package/dist/plus-api.d.ts +194 -0
  55. package/dist/project-compat.d.ts +133 -0
  56. package/dist/project.d.ts +221 -0
  57. package/dist/prompts.d.ts +66 -0
  58. package/dist/provider-completions.d.ts +593 -0
  59. package/dist/rag.d.ts +1074 -0
  60. package/dist/rpm.d.ts +27 -0
  61. package/dist/rw-lock.d.ts +21 -0
  62. package/dist/schema-utils.d.ts +121 -0
  63. package/dist/security.d.ts +66 -0
  64. package/dist/settings.d.ts +103 -0
  65. package/dist/skills.d.ts +145 -0
  66. package/dist/state-provider-core.d.ts +1 -1
  67. package/dist/state.d.ts +204 -0
  68. package/dist/step-execution-context.d.ts +36 -0
  69. package/dist/streaming.d.ts +153 -0
  70. package/dist/string-utils.d.ts +12 -0
  71. package/dist/task-output-storage.d.ts +62 -0
  72. package/dist/task.d.ts +305 -0
  73. package/dist/telemetry.d.ts +91 -0
  74. package/dist/token-counter-callback.d.ts +36 -0
  75. package/dist/tools.d.ts +563 -0
  76. package/dist/tracing-utils.d.ts +56 -0
  77. package/dist/training-converter.d.ts +36 -0
  78. package/dist/training-handler.d.ts +10 -0
  79. package/dist/types.d.ts +72 -0
  80. package/dist/utilities.d.ts +130 -0
  81. package/dist/utility-types.d.ts +10 -0
  82. package/dist/version.d.ts +12 -0
  83. package/package.json +326 -4904
  84. package/dist/index.d.cts +0 -13068
  85. package/dist/llms-hooks-transport-ChGiFBiU.d.ts +0 -233
  86. package/dist/llms-hooks-transport-DZlurMUQ.d.cts +0 -233
  87. package/dist/llms-hooks-transport.d.cts +0 -2
  88. package/dist/state-provider-core-Be9RKRAm.d.cts +0 -4876
  89. package/dist/state-provider-core-Be9RKRAm.d.ts +0 -4876
  90. package/dist/state-provider-core.d.cts +0 -1
@@ -1,233 +0,0 @@
1
- import { cB as LLM, c$ as LLMMessage, d2 as LLMResponse, dC as MaybePromise, f9 as Tool } from './state-provider-core-Be9RKRAm.js';
2
-
3
- declare class LLMCallHookContext {
4
- readonly executor: unknown;
5
- readonly agent: unknown;
6
- readonly task: unknown;
7
- readonly crew: unknown;
8
- readonly llm: LLM | string | null | undefined;
9
- readonly iterations: number;
10
- readonly messages: LLMMessage[];
11
- response: LLMResponse | null;
12
- constructor(options?: {
13
- executor?: unknown;
14
- messages?: LLMMessage[];
15
- llm?: LLM | string | null;
16
- agent?: unknown;
17
- task?: unknown;
18
- crew?: unknown;
19
- iterations?: number;
20
- response?: LLMResponse | null;
21
- });
22
- requestHumanInput(prompt: string, defaultMessage?: string): string;
23
- request_human_input(prompt: string, defaultMessage?: string): string;
24
- }
25
- declare class ToolCallHookContext {
26
- readonly toolName: string;
27
- readonly tool_name: string;
28
- readonly tool: Tool;
29
- readonly agent: unknown;
30
- readonly task: unknown;
31
- readonly crew: unknown;
32
- readonly toolInput: Record<string, unknown>;
33
- readonly tool_input: Record<string, unknown>;
34
- toolResult: unknown;
35
- tool_result: unknown;
36
- constructor(options: {
37
- toolName?: string;
38
- tool_name?: string;
39
- toolInput?: Record<string, unknown>;
40
- tool_input?: Record<string, unknown>;
41
- tool: Tool;
42
- agent?: unknown;
43
- task?: unknown;
44
- crew?: unknown;
45
- toolResult?: unknown;
46
- tool_result?: unknown;
47
- });
48
- requestHumanInput(prompt: string, defaultMessage?: string): string;
49
- request_human_input(prompt: string, defaultMessage?: string): string;
50
- }
51
- declare const ContextT: Readonly<{
52
- kind: "TypeVar";
53
- }>;
54
- declare const ReturnT: Readonly<{
55
- kind: "TypeVar";
56
- }>;
57
- declare const P: Readonly<{
58
- kind: "TypeVar";
59
- }>;
60
- declare const R: Readonly<{
61
- kind: "TypeVar";
62
- }>;
63
- declare const U: Readonly<{
64
- kind: "TypeVar";
65
- }>;
66
- declare const Hook: Readonly<{
67
- kind: "Hook";
68
- }>;
69
- declare const HTTPTransportKwargs: Readonly<{
70
- kind: "HTTPTransportKwargs";
71
- }>;
72
- type HTTPTransportKwargs = Record<string, unknown>;
73
- declare abstract class BaseInterceptor<TOutbound = unknown, TInbound = unknown> {
74
- abstract on_outbound(message: TOutbound): TOutbound;
75
- abstract on_inbound(message: TInbound): TInbound;
76
- static __get_pydantic_core_schema__(): {
77
- type: "plain-validator";
78
- validator: (value: unknown) => BaseInterceptor;
79
- serialization: {
80
- type: "identity";
81
- };
82
- };
83
- static validateInterceptor(value: unknown): BaseInterceptor;
84
- static validate_interceptor(value: unknown): BaseInterceptor;
85
- aon_outbound(message: TOutbound): Promise<TOutbound>;
86
- aon_inbound(message: TInbound): Promise<TInbound>;
87
- }
88
- declare function _validate_interceptor(value: unknown): BaseInterceptor;
89
- declare class AsyncHTTPTransport {
90
- readonly interceptor: BaseInterceptor;
91
- readonly kwargs: HTTPTransportKwargs;
92
- constructor(interceptor: BaseInterceptor, kwargs?: HTTPTransportKwargs);
93
- handle_async_request(request: unknown): Promise<unknown>;
94
- }
95
- declare class HTTPTransport {
96
- readonly interceptor: BaseInterceptor;
97
- readonly kwargs: HTTPTransportKwargs;
98
- constructor(interceptor: BaseInterceptor, kwargs?: HTTPTransportKwargs);
99
- handle_request(request: unknown): unknown;
100
- }
101
- type BeforeLLMCallHook = (context: LLMCallHookContext) => MaybePromise<boolean | null | undefined>;
102
- declare const BeforeLLMCallHook: Readonly<{
103
- kind: "BeforeLLMCallHook";
104
- }>;
105
- type AfterLLMCallHook = (context: LLMCallHookContext) => MaybePromise<string | null | undefined>;
106
- declare const AfterLLMCallHook: Readonly<{
107
- kind: "AfterLLMCallHook";
108
- }>;
109
- type BeforeToolCallHook = (context: ToolCallHookContext) => MaybePromise<boolean | null | undefined>;
110
- declare const BeforeToolCallHook: Readonly<{
111
- kind: "BeforeToolCallHook";
112
- }>;
113
- type AfterToolCallHook = (context: ToolCallHookContext) => MaybePromise<string | null | undefined>;
114
- declare const AfterToolCallHook: Readonly<{
115
- kind: "AfterToolCallHook";
116
- }>;
117
- declare const BeforeLLMCallHookType: Readonly<{
118
- kind: "BeforeLLMCallHook";
119
- }>;
120
- declare const AfterLLMCallHookType: Readonly<{
121
- kind: "AfterLLMCallHook";
122
- }>;
123
- declare const BeforeToolCallHookType: Readonly<{
124
- kind: "BeforeToolCallHook";
125
- }>;
126
- declare const AfterToolCallHookType: Readonly<{
127
- kind: "AfterToolCallHook";
128
- }>;
129
- declare const BeforeLLMCallHookCallable: Readonly<{
130
- kind: "BeforeLLMCallHook";
131
- }>;
132
- declare const AfterLLMCallHookCallable: Readonly<{
133
- kind: "AfterLLMCallHook";
134
- }>;
135
- declare const BeforeToolCallHookCallable: Readonly<{
136
- kind: "BeforeToolCallHook";
137
- }>;
138
- declare const AfterToolCallHookCallable: Readonly<{
139
- kind: "AfterToolCallHook";
140
- }>;
141
- declare class HookMethod {
142
- readonly _meth: (...args: unknown[]) => unknown;
143
- readonly agents: readonly string[] | null;
144
- readonly tools: readonly string[] | null;
145
- constructor(method: (...args: unknown[]) => unknown, options?: {
146
- agents?: readonly string[] | null;
147
- tools?: readonly string[] | null;
148
- });
149
- call(...args: unknown[]): unknown;
150
- __call__(...args: unknown[]): unknown;
151
- }
152
- declare class BeforeLLMCallHookMethod extends HookMethod {
153
- readonly is_before_llm_call_hook = true;
154
- constructor(method: (...args: unknown[]) => unknown, agents?: readonly string[] | null);
155
- }
156
- declare class AfterLLMCallHookMethod extends HookMethod {
157
- readonly is_after_llm_call_hook = true;
158
- constructor(method: (...args: unknown[]) => unknown, agents?: readonly string[] | null);
159
- }
160
- declare class BeforeToolCallHookMethod extends HookMethod {
161
- readonly is_before_tool_call_hook = true;
162
- constructor(method: (...args: unknown[]) => unknown, tools?: readonly string[] | null, agents?: readonly string[] | null);
163
- }
164
- declare class AfterToolCallHookMethod extends HookMethod {
165
- readonly is_after_tool_call_hook = true;
166
- constructor(method: (...args: unknown[]) => unknown, tools?: readonly string[] | null, agents?: readonly string[] | null);
167
- }
168
- declare function registerBeforeLlmCallHook(hook: BeforeLLMCallHook): void;
169
- declare const register_before_llm_call_hook: typeof registerBeforeLlmCallHook;
170
- declare function registerAfterLlmCallHook(hook: AfterLLMCallHook): void;
171
- declare const register_after_llm_call_hook: typeof registerAfterLlmCallHook;
172
- declare function getBeforeLlmCallHooks(): BeforeLLMCallHook[];
173
- declare const get_before_llm_call_hooks: typeof getBeforeLlmCallHooks;
174
- declare function getAfterLlmCallHooks(): AfterLLMCallHook[];
175
- declare const get_after_llm_call_hooks: typeof getAfterLlmCallHooks;
176
- declare function unregisterBeforeLlmCallHook(hook: BeforeLLMCallHook): boolean;
177
- declare const unregister_before_llm_call_hook: typeof unregisterBeforeLlmCallHook;
178
- declare function unregisterAfterLlmCallHook(hook: AfterLLMCallHook): boolean;
179
- declare const unregister_after_llm_call_hook: typeof unregisterAfterLlmCallHook;
180
- declare function clearBeforeLlmCallHooks(): number;
181
- declare const clear_before_llm_call_hooks: typeof clearBeforeLlmCallHooks;
182
- declare function clearAfterLlmCallHooks(): number;
183
- declare const clear_after_llm_call_hooks: typeof clearAfterLlmCallHooks;
184
- declare function clearAllLlmCallHooks(): [number, number];
185
- declare const clear_all_llm_call_hooks: typeof clearAllLlmCallHooks;
186
- declare function registerBeforeToolCallHook(hook: BeforeToolCallHook): void;
187
- declare const register_before_tool_call_hook: typeof registerBeforeToolCallHook;
188
- declare function registerAfterToolCallHook(hook: AfterToolCallHook): void;
189
- declare const register_after_tool_call_hook: typeof registerAfterToolCallHook;
190
- declare function getBeforeToolCallHooks(): BeforeToolCallHook[];
191
- declare const get_before_tool_call_hooks: typeof getBeforeToolCallHooks;
192
- declare function getAfterToolCallHooks(): AfterToolCallHook[];
193
- declare const get_after_tool_call_hooks: typeof getAfterToolCallHooks;
194
- declare function unregisterBeforeToolCallHook(hook: BeforeToolCallHook): boolean;
195
- declare const unregister_before_tool_call_hook: typeof unregisterBeforeToolCallHook;
196
- declare function unregisterAfterToolCallHook(hook: AfterToolCallHook): boolean;
197
- declare const unregister_after_tool_call_hook: typeof unregisterAfterToolCallHook;
198
- declare function clearBeforeToolCallHooks(): number;
199
- declare const clear_before_tool_call_hooks: typeof clearBeforeToolCallHooks;
200
- declare function clearAfterToolCallHooks(): number;
201
- declare const clear_after_tool_call_hooks: typeof clearAfterToolCallHooks;
202
- declare function clearAllToolCallHooks(): [number, number];
203
- declare const clear_all_tool_call_hooks: typeof clearAllToolCallHooks;
204
- declare function clearAllGlobalHooks(): {
205
- llm_hooks: [number, number];
206
- tool_hooks: [number, number];
207
- total: [number, number];
208
- };
209
- declare const clear_all_global_hooks: typeof clearAllGlobalHooks;
210
- declare function beforeLlmCall(hook: BeforeLLMCallHook, context?: ClassMethodDecoratorContext): BeforeLLMCallHook;
211
- declare function beforeLlmCall(options: {
212
- agents?: readonly string[];
213
- }): MethodDecorator;
214
- declare const before_llm_call: typeof beforeLlmCall;
215
- declare function afterLlmCall(hook: AfterLLMCallHook, context?: ClassMethodDecoratorContext): AfterLLMCallHook;
216
- declare function afterLlmCall(options: {
217
- agents?: readonly string[];
218
- }): MethodDecorator;
219
- declare const after_llm_call: typeof afterLlmCall;
220
- declare function beforeToolCall(hook: BeforeToolCallHook, context?: ClassMethodDecoratorContext): BeforeToolCallHook;
221
- declare function beforeToolCall(options: {
222
- tools?: readonly string[];
223
- agents?: readonly string[];
224
- }): MethodDecorator;
225
- declare const before_tool_call: typeof beforeToolCall;
226
- declare function afterToolCall(hook: AfterToolCallHook, context?: ClassMethodDecoratorContext): AfterToolCallHook;
227
- declare function afterToolCall(options: {
228
- tools?: readonly string[];
229
- agents?: readonly string[];
230
- }): MethodDecorator;
231
- declare const after_tool_call: typeof afterToolCall;
232
-
233
- export { getBeforeLlmCallHooks as $, AfterLLMCallHook as A, BaseInterceptor as B, ContextT as C, before_tool_call as D, clearAfterLlmCallHooks as E, clearAfterToolCallHooks as F, clearAllGlobalHooks as G, HTTPTransport as H, clearAllLlmCallHooks as I, clearAllToolCallHooks as J, clearBeforeLlmCallHooks as K, LLMCallHookContext as L, clearBeforeToolCallHooks as M, clear_after_llm_call_hooks as N, clear_after_tool_call_hooks as O, P, clear_all_global_hooks as Q, R, clear_all_llm_call_hooks as S, ToolCallHookContext as T, U, clear_all_tool_call_hooks as V, clear_before_llm_call_hooks as W, clear_before_tool_call_hooks as X, getAfterLlmCallHooks as Y, getAfterToolCallHooks as Z, _validate_interceptor as _, AfterLLMCallHookCallable as a, getBeforeToolCallHooks as a0, get_after_llm_call_hooks as a1, get_after_tool_call_hooks as a2, get_before_llm_call_hooks as a3, get_before_tool_call_hooks as a4, registerAfterLlmCallHook as a5, registerAfterToolCallHook as a6, registerBeforeLlmCallHook as a7, registerBeforeToolCallHook as a8, register_after_llm_call_hook as a9, register_after_tool_call_hook as aa, register_before_llm_call_hook as ab, register_before_tool_call_hook as ac, unregisterAfterLlmCallHook as ad, unregisterAfterToolCallHook as ae, unregisterBeforeLlmCallHook as af, unregisterBeforeToolCallHook as ag, unregister_after_llm_call_hook as ah, unregister_after_tool_call_hook as ai, unregister_before_llm_call_hook as aj, unregister_before_tool_call_hook as ak, AfterLLMCallHookMethod as b, AfterLLMCallHookType as c, AfterToolCallHook as d, AfterToolCallHookCallable as e, AfterToolCallHookMethod as f, AfterToolCallHookType as g, AsyncHTTPTransport as h, BeforeLLMCallHook as i, BeforeLLMCallHookCallable as j, BeforeLLMCallHookMethod as k, BeforeLLMCallHookType as l, BeforeToolCallHook as m, BeforeToolCallHookCallable as n, BeforeToolCallHookMethod as o, BeforeToolCallHookType as p, HTTPTransportKwargs as q, Hook as r, ReturnT as s, afterLlmCall as t, afterToolCall as u, after_llm_call as v, after_tool_call as w, beforeLlmCall as x, beforeToolCall as y, before_llm_call as z };
@@ -1,233 +0,0 @@
1
- import { cB as LLM, c$ as LLMMessage, d2 as LLMResponse, dC as MaybePromise, f9 as Tool } from './state-provider-core-Be9RKRAm.cjs';
2
-
3
- declare class LLMCallHookContext {
4
- readonly executor: unknown;
5
- readonly agent: unknown;
6
- readonly task: unknown;
7
- readonly crew: unknown;
8
- readonly llm: LLM | string | null | undefined;
9
- readonly iterations: number;
10
- readonly messages: LLMMessage[];
11
- response: LLMResponse | null;
12
- constructor(options?: {
13
- executor?: unknown;
14
- messages?: LLMMessage[];
15
- llm?: LLM | string | null;
16
- agent?: unknown;
17
- task?: unknown;
18
- crew?: unknown;
19
- iterations?: number;
20
- response?: LLMResponse | null;
21
- });
22
- requestHumanInput(prompt: string, defaultMessage?: string): string;
23
- request_human_input(prompt: string, defaultMessage?: string): string;
24
- }
25
- declare class ToolCallHookContext {
26
- readonly toolName: string;
27
- readonly tool_name: string;
28
- readonly tool: Tool;
29
- readonly agent: unknown;
30
- readonly task: unknown;
31
- readonly crew: unknown;
32
- readonly toolInput: Record<string, unknown>;
33
- readonly tool_input: Record<string, unknown>;
34
- toolResult: unknown;
35
- tool_result: unknown;
36
- constructor(options: {
37
- toolName?: string;
38
- tool_name?: string;
39
- toolInput?: Record<string, unknown>;
40
- tool_input?: Record<string, unknown>;
41
- tool: Tool;
42
- agent?: unknown;
43
- task?: unknown;
44
- crew?: unknown;
45
- toolResult?: unknown;
46
- tool_result?: unknown;
47
- });
48
- requestHumanInput(prompt: string, defaultMessage?: string): string;
49
- request_human_input(prompt: string, defaultMessage?: string): string;
50
- }
51
- declare const ContextT: Readonly<{
52
- kind: "TypeVar";
53
- }>;
54
- declare const ReturnT: Readonly<{
55
- kind: "TypeVar";
56
- }>;
57
- declare const P: Readonly<{
58
- kind: "TypeVar";
59
- }>;
60
- declare const R: Readonly<{
61
- kind: "TypeVar";
62
- }>;
63
- declare const U: Readonly<{
64
- kind: "TypeVar";
65
- }>;
66
- declare const Hook: Readonly<{
67
- kind: "Hook";
68
- }>;
69
- declare const HTTPTransportKwargs: Readonly<{
70
- kind: "HTTPTransportKwargs";
71
- }>;
72
- type HTTPTransportKwargs = Record<string, unknown>;
73
- declare abstract class BaseInterceptor<TOutbound = unknown, TInbound = unknown> {
74
- abstract on_outbound(message: TOutbound): TOutbound;
75
- abstract on_inbound(message: TInbound): TInbound;
76
- static __get_pydantic_core_schema__(): {
77
- type: "plain-validator";
78
- validator: (value: unknown) => BaseInterceptor;
79
- serialization: {
80
- type: "identity";
81
- };
82
- };
83
- static validateInterceptor(value: unknown): BaseInterceptor;
84
- static validate_interceptor(value: unknown): BaseInterceptor;
85
- aon_outbound(message: TOutbound): Promise<TOutbound>;
86
- aon_inbound(message: TInbound): Promise<TInbound>;
87
- }
88
- declare function _validate_interceptor(value: unknown): BaseInterceptor;
89
- declare class AsyncHTTPTransport {
90
- readonly interceptor: BaseInterceptor;
91
- readonly kwargs: HTTPTransportKwargs;
92
- constructor(interceptor: BaseInterceptor, kwargs?: HTTPTransportKwargs);
93
- handle_async_request(request: unknown): Promise<unknown>;
94
- }
95
- declare class HTTPTransport {
96
- readonly interceptor: BaseInterceptor;
97
- readonly kwargs: HTTPTransportKwargs;
98
- constructor(interceptor: BaseInterceptor, kwargs?: HTTPTransportKwargs);
99
- handle_request(request: unknown): unknown;
100
- }
101
- type BeforeLLMCallHook = (context: LLMCallHookContext) => MaybePromise<boolean | null | undefined>;
102
- declare const BeforeLLMCallHook: Readonly<{
103
- kind: "BeforeLLMCallHook";
104
- }>;
105
- type AfterLLMCallHook = (context: LLMCallHookContext) => MaybePromise<string | null | undefined>;
106
- declare const AfterLLMCallHook: Readonly<{
107
- kind: "AfterLLMCallHook";
108
- }>;
109
- type BeforeToolCallHook = (context: ToolCallHookContext) => MaybePromise<boolean | null | undefined>;
110
- declare const BeforeToolCallHook: Readonly<{
111
- kind: "BeforeToolCallHook";
112
- }>;
113
- type AfterToolCallHook = (context: ToolCallHookContext) => MaybePromise<string | null | undefined>;
114
- declare const AfterToolCallHook: Readonly<{
115
- kind: "AfterToolCallHook";
116
- }>;
117
- declare const BeforeLLMCallHookType: Readonly<{
118
- kind: "BeforeLLMCallHook";
119
- }>;
120
- declare const AfterLLMCallHookType: Readonly<{
121
- kind: "AfterLLMCallHook";
122
- }>;
123
- declare const BeforeToolCallHookType: Readonly<{
124
- kind: "BeforeToolCallHook";
125
- }>;
126
- declare const AfterToolCallHookType: Readonly<{
127
- kind: "AfterToolCallHook";
128
- }>;
129
- declare const BeforeLLMCallHookCallable: Readonly<{
130
- kind: "BeforeLLMCallHook";
131
- }>;
132
- declare const AfterLLMCallHookCallable: Readonly<{
133
- kind: "AfterLLMCallHook";
134
- }>;
135
- declare const BeforeToolCallHookCallable: Readonly<{
136
- kind: "BeforeToolCallHook";
137
- }>;
138
- declare const AfterToolCallHookCallable: Readonly<{
139
- kind: "AfterToolCallHook";
140
- }>;
141
- declare class HookMethod {
142
- readonly _meth: (...args: unknown[]) => unknown;
143
- readonly agents: readonly string[] | null;
144
- readonly tools: readonly string[] | null;
145
- constructor(method: (...args: unknown[]) => unknown, options?: {
146
- agents?: readonly string[] | null;
147
- tools?: readonly string[] | null;
148
- });
149
- call(...args: unknown[]): unknown;
150
- __call__(...args: unknown[]): unknown;
151
- }
152
- declare class BeforeLLMCallHookMethod extends HookMethod {
153
- readonly is_before_llm_call_hook = true;
154
- constructor(method: (...args: unknown[]) => unknown, agents?: readonly string[] | null);
155
- }
156
- declare class AfterLLMCallHookMethod extends HookMethod {
157
- readonly is_after_llm_call_hook = true;
158
- constructor(method: (...args: unknown[]) => unknown, agents?: readonly string[] | null);
159
- }
160
- declare class BeforeToolCallHookMethod extends HookMethod {
161
- readonly is_before_tool_call_hook = true;
162
- constructor(method: (...args: unknown[]) => unknown, tools?: readonly string[] | null, agents?: readonly string[] | null);
163
- }
164
- declare class AfterToolCallHookMethod extends HookMethod {
165
- readonly is_after_tool_call_hook = true;
166
- constructor(method: (...args: unknown[]) => unknown, tools?: readonly string[] | null, agents?: readonly string[] | null);
167
- }
168
- declare function registerBeforeLlmCallHook(hook: BeforeLLMCallHook): void;
169
- declare const register_before_llm_call_hook: typeof registerBeforeLlmCallHook;
170
- declare function registerAfterLlmCallHook(hook: AfterLLMCallHook): void;
171
- declare const register_after_llm_call_hook: typeof registerAfterLlmCallHook;
172
- declare function getBeforeLlmCallHooks(): BeforeLLMCallHook[];
173
- declare const get_before_llm_call_hooks: typeof getBeforeLlmCallHooks;
174
- declare function getAfterLlmCallHooks(): AfterLLMCallHook[];
175
- declare const get_after_llm_call_hooks: typeof getAfterLlmCallHooks;
176
- declare function unregisterBeforeLlmCallHook(hook: BeforeLLMCallHook): boolean;
177
- declare const unregister_before_llm_call_hook: typeof unregisterBeforeLlmCallHook;
178
- declare function unregisterAfterLlmCallHook(hook: AfterLLMCallHook): boolean;
179
- declare const unregister_after_llm_call_hook: typeof unregisterAfterLlmCallHook;
180
- declare function clearBeforeLlmCallHooks(): number;
181
- declare const clear_before_llm_call_hooks: typeof clearBeforeLlmCallHooks;
182
- declare function clearAfterLlmCallHooks(): number;
183
- declare const clear_after_llm_call_hooks: typeof clearAfterLlmCallHooks;
184
- declare function clearAllLlmCallHooks(): [number, number];
185
- declare const clear_all_llm_call_hooks: typeof clearAllLlmCallHooks;
186
- declare function registerBeforeToolCallHook(hook: BeforeToolCallHook): void;
187
- declare const register_before_tool_call_hook: typeof registerBeforeToolCallHook;
188
- declare function registerAfterToolCallHook(hook: AfterToolCallHook): void;
189
- declare const register_after_tool_call_hook: typeof registerAfterToolCallHook;
190
- declare function getBeforeToolCallHooks(): BeforeToolCallHook[];
191
- declare const get_before_tool_call_hooks: typeof getBeforeToolCallHooks;
192
- declare function getAfterToolCallHooks(): AfterToolCallHook[];
193
- declare const get_after_tool_call_hooks: typeof getAfterToolCallHooks;
194
- declare function unregisterBeforeToolCallHook(hook: BeforeToolCallHook): boolean;
195
- declare const unregister_before_tool_call_hook: typeof unregisterBeforeToolCallHook;
196
- declare function unregisterAfterToolCallHook(hook: AfterToolCallHook): boolean;
197
- declare const unregister_after_tool_call_hook: typeof unregisterAfterToolCallHook;
198
- declare function clearBeforeToolCallHooks(): number;
199
- declare const clear_before_tool_call_hooks: typeof clearBeforeToolCallHooks;
200
- declare function clearAfterToolCallHooks(): number;
201
- declare const clear_after_tool_call_hooks: typeof clearAfterToolCallHooks;
202
- declare function clearAllToolCallHooks(): [number, number];
203
- declare const clear_all_tool_call_hooks: typeof clearAllToolCallHooks;
204
- declare function clearAllGlobalHooks(): {
205
- llm_hooks: [number, number];
206
- tool_hooks: [number, number];
207
- total: [number, number];
208
- };
209
- declare const clear_all_global_hooks: typeof clearAllGlobalHooks;
210
- declare function beforeLlmCall(hook: BeforeLLMCallHook, context?: ClassMethodDecoratorContext): BeforeLLMCallHook;
211
- declare function beforeLlmCall(options: {
212
- agents?: readonly string[];
213
- }): MethodDecorator;
214
- declare const before_llm_call: typeof beforeLlmCall;
215
- declare function afterLlmCall(hook: AfterLLMCallHook, context?: ClassMethodDecoratorContext): AfterLLMCallHook;
216
- declare function afterLlmCall(options: {
217
- agents?: readonly string[];
218
- }): MethodDecorator;
219
- declare const after_llm_call: typeof afterLlmCall;
220
- declare function beforeToolCall(hook: BeforeToolCallHook, context?: ClassMethodDecoratorContext): BeforeToolCallHook;
221
- declare function beforeToolCall(options: {
222
- tools?: readonly string[];
223
- agents?: readonly string[];
224
- }): MethodDecorator;
225
- declare const before_tool_call: typeof beforeToolCall;
226
- declare function afterToolCall(hook: AfterToolCallHook, context?: ClassMethodDecoratorContext): AfterToolCallHook;
227
- declare function afterToolCall(options: {
228
- tools?: readonly string[];
229
- agents?: readonly string[];
230
- }): MethodDecorator;
231
- declare const after_tool_call: typeof afterToolCall;
232
-
233
- export { getBeforeLlmCallHooks as $, AfterLLMCallHook as A, BaseInterceptor as B, ContextT as C, before_tool_call as D, clearAfterLlmCallHooks as E, clearAfterToolCallHooks as F, clearAllGlobalHooks as G, HTTPTransport as H, clearAllLlmCallHooks as I, clearAllToolCallHooks as J, clearBeforeLlmCallHooks as K, LLMCallHookContext as L, clearBeforeToolCallHooks as M, clear_after_llm_call_hooks as N, clear_after_tool_call_hooks as O, P, clear_all_global_hooks as Q, R, clear_all_llm_call_hooks as S, ToolCallHookContext as T, U, clear_all_tool_call_hooks as V, clear_before_llm_call_hooks as W, clear_before_tool_call_hooks as X, getAfterLlmCallHooks as Y, getAfterToolCallHooks as Z, _validate_interceptor as _, AfterLLMCallHookCallable as a, getBeforeToolCallHooks as a0, get_after_llm_call_hooks as a1, get_after_tool_call_hooks as a2, get_before_llm_call_hooks as a3, get_before_tool_call_hooks as a4, registerAfterLlmCallHook as a5, registerAfterToolCallHook as a6, registerBeforeLlmCallHook as a7, registerBeforeToolCallHook as a8, register_after_llm_call_hook as a9, register_after_tool_call_hook as aa, register_before_llm_call_hook as ab, register_before_tool_call_hook as ac, unregisterAfterLlmCallHook as ad, unregisterAfterToolCallHook as ae, unregisterBeforeLlmCallHook as af, unregisterBeforeToolCallHook as ag, unregister_after_llm_call_hook as ah, unregister_after_tool_call_hook as ai, unregister_before_llm_call_hook as aj, unregister_before_tool_call_hook as ak, AfterLLMCallHookMethod as b, AfterLLMCallHookType as c, AfterToolCallHook as d, AfterToolCallHookCallable as e, AfterToolCallHookMethod as f, AfterToolCallHookType as g, AsyncHTTPTransport as h, BeforeLLMCallHook as i, BeforeLLMCallHookCallable as j, BeforeLLMCallHookMethod as k, BeforeLLMCallHookType as l, BeforeToolCallHook as m, BeforeToolCallHookCallable as n, BeforeToolCallHookMethod as o, BeforeToolCallHookType as p, HTTPTransportKwargs as q, Hook as r, ReturnT as s, afterLlmCall as t, afterToolCall as u, after_llm_call as v, after_tool_call as w, beforeLlmCall as x, beforeToolCall as y, before_llm_call as z };
@@ -1,2 +0,0 @@
1
- export { h as AsyncHTTPTransport, H as HTTPTransport, q as HTTPTransportKwargs, q as HTTPTransportKwargsType } from './llms-hooks-transport-DZlurMUQ.cjs';
2
- import './state-provider-core-Be9RKRAm.cjs';