@crewai-ts/core 0.1.13 → 0.2.1
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/agent.d.ts +16 -18
- package/dist/auth.cjs +598 -0
- package/dist/auth.js +40 -0
- package/dist/{chunk-3PVW4JKT.js → chunk-C43UEMCX.js} +6712 -7268
- package/dist/chunk-CCOE6MLE.js +896 -0
- package/dist/chunk-HFQTF332.js +4455 -0
- package/dist/{chunk-BE4JYKSG.js → chunk-MM4ROIFG.js} +12 -1490
- package/dist/chunk-RH43TNKN.js +238 -0
- package/dist/chunk-S477WFUT.js +565 -0
- package/dist/chunk-SB7ADUQA.js +110 -0
- package/dist/chunk-T32G6KDW.js +40 -0
- package/dist/crew.d.ts +24 -26
- package/dist/events.cjs +7513 -0
- package/dist/events.js +406 -0
- package/dist/experimental-conversational.cjs +272 -0
- package/dist/experimental-conversational.js +26 -0
- package/dist/feature-hooks.cjs +149 -0
- package/dist/feature-hooks.d.ts +94 -0
- package/dist/feature-hooks.js +36 -0
- package/dist/index.cjs +33923 -64381
- package/dist/index.d.ts +2 -15
- package/dist/index.js +16720 -49562
- package/dist/input-provider.d.ts +3 -4
- package/dist/lite-agent.d.ts +4 -4
- package/dist/llm.cjs +7467 -0
- package/dist/llm.d.ts +0 -4
- package/dist/llm.js +225 -0
- package/dist/optional-yaml.d.ts +8 -0
- package/dist/project.d.ts +1 -1
- package/dist/schema-utils.cjs +968 -0
- package/dist/schema-utils.d.ts +1 -1
- package/dist/schema-utils.js +102 -0
- package/dist/state-provider-core.js +3 -2
- package/dist/task.d.ts +3 -4
- package/dist/tools.cjs +6872 -0
- package/dist/tools.d.ts +0 -60
- package/dist/tools.js +114 -0
- package/dist/types.cjs +68 -0
- package/dist/types.js +14 -0
- package/package.json +52 -111
- package/dist/a2a.d.ts +0 -1684
- package/dist/a2ui-schemas.d.ts +0 -3312
- package/dist/a2ui.d.ts +0 -379
- package/dist/flow-conversation.d.ts +0 -90
- package/dist/flow-definition.d.ts +0 -195
- package/dist/flow-persistence.d.ts +0 -107
- package/dist/flow-visualization.d.ts +0 -77
- package/dist/flow.d.ts +0 -927
- package/dist/knowledge.d.ts +0 -353
- package/dist/mcp-DS7UMYAM.js +0 -62
- package/dist/mcp.d.ts +0 -315
- package/dist/memory.d.ts +0 -915
- package/dist/openai-completion.d.ts +0 -327
- package/dist/provider-completions.d.ts +0 -596
- package/dist/rag.d.ts +0 -1074
package/dist/input-provider.d.ts
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import type { Flow, HumanFeedbackProvider } from "./flow.js";
|
|
2
1
|
import type { MaybePromise } from "./types.js";
|
|
3
2
|
export type InputResponse = {
|
|
4
3
|
text: string | null;
|
|
5
4
|
metadata?: Record<string, unknown> | null;
|
|
6
5
|
};
|
|
7
6
|
export type InputProvider = {
|
|
8
|
-
requestInput?(message: string, flow:
|
|
9
|
-
request_input?(message: string, flow:
|
|
7
|
+
requestInput?(message: string, flow: unknown, metadata?: Record<string, unknown> | null): MaybePromise<string | InputResponse | null>;
|
|
8
|
+
request_input?(message: string, flow: unknown, metadata?: Record<string, unknown> | null): MaybePromise<string | InputResponse | null>;
|
|
10
9
|
};
|
|
11
10
|
export type FlowConfig = {
|
|
12
11
|
inputProvider: InputProvider | null;
|
|
13
|
-
hitlProvider:
|
|
12
|
+
hitlProvider: unknown;
|
|
14
13
|
};
|
|
15
14
|
export declare const FlowConfig: Readonly<{
|
|
16
15
|
kind: "FlowConfig";
|
package/dist/lite-agent.d.ts
CHANGED
|
@@ -3,9 +3,9 @@ import { type AfterLLMCallHook, type BeforeLLMCallHook } from "./hooks.js";
|
|
|
3
3
|
import { type InputFiles } from "./input-files.js";
|
|
4
4
|
import { type LLM, type LLMClient, type UsageMetrics } from "./llm.js";
|
|
5
5
|
import { LiteAgentOutput } from "./lite-agent-output.js";
|
|
6
|
-
import { Memory, type MemoryScope } from "./memory.js";
|
|
7
6
|
import { AgentFinish } from "./agent-parser.js";
|
|
8
7
|
import type { AgentStepCallback, LLMMessage, Tool } from "./types.js";
|
|
8
|
+
import { type MemoryLike, type MemoryScopeLike } from "./feature-hooks.js";
|
|
9
9
|
export type LiteAgentGuardrailResult = readonly [boolean, unknown] | {
|
|
10
10
|
success: boolean;
|
|
11
11
|
result?: unknown;
|
|
@@ -45,7 +45,7 @@ export type LiteAgentOptions = {
|
|
|
45
45
|
guardrail?: LiteAgentGuardrail | null;
|
|
46
46
|
guardrailMaxRetries?: number;
|
|
47
47
|
guardrail_max_retries?: number;
|
|
48
|
-
memory?:
|
|
48
|
+
memory?: MemoryLike | MemoryScopeLike | boolean | null;
|
|
49
49
|
stepCallback?: AgentStepCallback | null;
|
|
50
50
|
step_callback?: AgentStepCallback | null;
|
|
51
51
|
codeExecutionMode?: CodeExecutionMode;
|
|
@@ -54,7 +54,7 @@ export type LiteAgentOptions = {
|
|
|
54
54
|
};
|
|
55
55
|
export type LiteAgentKickoffInput = string | readonly LLMMessage[];
|
|
56
56
|
export type LiteAgentKickoffFunction = (messages: LiteAgentKickoffInput, responseFormatOrOptions?: unknown, inputFiles?: InputFiles) => LiteAgentOutput | Promise<LiteAgentOutput>;
|
|
57
|
-
export declare function _kickoff_with_a2a_support(agent: LiteAgent, original_kickoff: LiteAgentKickoffFunction, messages: LiteAgentKickoffInput, response_format?: unknown, input_files?: InputFiles | null,
|
|
57
|
+
export declare function _kickoff_with_a2a_support(agent: LiteAgent, original_kickoff: LiteAgentKickoffFunction, messages: LiteAgentKickoffInput, response_format?: unknown, input_files?: InputFiles | null, _extension_registry?: unknown): Promise<LiteAgentOutput>;
|
|
58
58
|
export declare function task_to_kickoff_adapter(original_kickoff: LiteAgentKickoffFunction, messages: LiteAgentKickoffInput, response_format?: unknown, input_files?: InputFiles | null): (...args: unknown[]) => Promise<string>;
|
|
59
59
|
export declare class LiteAgent {
|
|
60
60
|
readonly id: string;
|
|
@@ -79,7 +79,7 @@ export declare class LiteAgent {
|
|
|
79
79
|
readonly guardrail: LiteAgentGuardrail | null;
|
|
80
80
|
readonly guardrailMaxRetries: number;
|
|
81
81
|
readonly guardrail_max_retries: number;
|
|
82
|
-
memory:
|
|
82
|
+
memory: MemoryLike | MemoryScopeLike | null;
|
|
83
83
|
readonly stepCallback: AgentStepCallback | null;
|
|
84
84
|
readonly codeExecutionMode: CodeExecutionMode;
|
|
85
85
|
readonly code_execution_mode: CodeExecutionMode;
|