@crewai-ts/core 0.1.12 → 0.2.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/README.md +174 -0
- 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/crew.d.ts
CHANGED
|
@@ -2,9 +2,7 @@ import type { PathLike } from "node:fs";
|
|
|
2
2
|
import { Agent } from "./agent.js";
|
|
3
3
|
import { FlowTrackable, type ExecutionContext } from "./context.js";
|
|
4
4
|
import type { HumanInputProvider } from "./human-input.js";
|
|
5
|
-
import { Knowledge, type KnowledgeSource } from "./knowledge.js";
|
|
6
5
|
import { type UsageMetrics } from "./llm.js";
|
|
7
|
-
import { Memory, MemoryScope } from "./memory.js";
|
|
8
6
|
import { CrewOutput, TaskOutput } from "./outputs.js";
|
|
9
7
|
import { type Fingerprint, type SecurityConfig } from "./security.js";
|
|
10
8
|
import { type CheckpointConfig, type CheckpointOption } from "./state.js";
|
|
@@ -12,7 +10,7 @@ import { ConditionalTask, Task, type TaskInputFiles } from "./task.js";
|
|
|
12
10
|
import { TaskOutputStorageHandler } from "./task-output-storage.js";
|
|
13
11
|
import { Process, type AgentStepCallback, type CrewKickoffCallback, type InputValues, type TaskCallback, type Tool } from "./types.js";
|
|
14
12
|
import type { LLM } from "./types.js";
|
|
15
|
-
import type
|
|
13
|
+
import { type EmbedderConfig, type KnowledgeLike, type KnowledgeSourceLike, type MemoryLike, type MemoryScopeLike } from "./feature-hooks.js";
|
|
16
14
|
type PathLikeString = PathLike | {
|
|
17
15
|
toString(): string;
|
|
18
16
|
};
|
|
@@ -65,9 +63,9 @@ export type ReplayOptions = {
|
|
|
65
63
|
export type ResetMemoriesCommandType = "memory" | "knowledge" | "agent_knowledge" | "kickoff_outputs" | "all" | "long" | "short" | "entity" | "external";
|
|
66
64
|
type NormalizedResetMemoriesCommandType = Exclude<ReturnType<typeof normalizeResetMemoriesCommandType>, "all">;
|
|
67
65
|
type MemorySystemConfig = {
|
|
68
|
-
system:
|
|
66
|
+
system: MemoryLike | MemoryScopeLike | readonly KnowledgeLike[] | Crew | null;
|
|
69
67
|
name: string;
|
|
70
|
-
reset: (system:
|
|
68
|
+
reset: (system: MemoryLike | MemoryScopeLike | readonly KnowledgeLike[] | Crew) => void;
|
|
71
69
|
};
|
|
72
70
|
export declare function _resolve_agent(value: unknown, _info?: unknown): unknown;
|
|
73
71
|
export declare function _resolve_agents(value: unknown, info?: unknown): unknown;
|
|
@@ -75,9 +73,9 @@ export declare function default_reset(memory: {
|
|
|
75
73
|
reset: () => unknown;
|
|
76
74
|
}): unknown;
|
|
77
75
|
export declare function knowledge_reset(crew: {
|
|
78
|
-
resetKnowledge?: (knowledges: readonly
|
|
79
|
-
reset_knowledge?: (knowledges: readonly
|
|
80
|
-
}, knowledges: readonly
|
|
76
|
+
resetKnowledge?: (knowledges: readonly KnowledgeLike[]) => void;
|
|
77
|
+
reset_knowledge?: (knowledges: readonly KnowledgeLike[]) => void;
|
|
78
|
+
}, knowledges: readonly KnowledgeLike[]): void;
|
|
81
79
|
export type CrewOptions = {
|
|
82
80
|
id?: string;
|
|
83
81
|
fromCheckpoint?: boolean;
|
|
@@ -104,10 +102,10 @@ export type CrewOptions = {
|
|
|
104
102
|
prompt_file?: string | null;
|
|
105
103
|
shareCrew?: boolean | null;
|
|
106
104
|
share_crew?: boolean | null;
|
|
107
|
-
memory?: boolean |
|
|
108
|
-
knowledge?:
|
|
109
|
-
knowledgeSources?: readonly
|
|
110
|
-
knowledge_sources?: readonly
|
|
105
|
+
memory?: boolean | MemoryLike | MemoryScopeLike;
|
|
106
|
+
knowledge?: KnowledgeLike | null;
|
|
107
|
+
knowledgeSources?: readonly KnowledgeSourceLike[];
|
|
108
|
+
knowledge_sources?: readonly KnowledgeSourceLike[];
|
|
111
109
|
managerAgent?: Agent | null;
|
|
112
110
|
manager_agent?: Agent | null;
|
|
113
111
|
managerLlm?: LLM | string | null;
|
|
@@ -168,9 +166,9 @@ export declare class Crew extends FlowTrackable {
|
|
|
168
166
|
shareCrew: boolean | null;
|
|
169
167
|
share_crew: boolean | null;
|
|
170
168
|
executionLogs: TaskExecutionLog[];
|
|
171
|
-
memory: boolean |
|
|
172
|
-
knowledge:
|
|
173
|
-
knowledgeSources: readonly
|
|
169
|
+
memory: boolean | MemoryLike | MemoryScopeLike;
|
|
170
|
+
knowledge: KnowledgeLike | null;
|
|
171
|
+
knowledgeSources: readonly KnowledgeSourceLike[];
|
|
174
172
|
managerAgent: Agent | null;
|
|
175
173
|
manager_agent: Agent | null;
|
|
176
174
|
managerLlm: LLM | string | null;
|
|
@@ -349,14 +347,14 @@ export declare class Crew extends FlowTrackable {
|
|
|
349
347
|
private validateHierarchicalProcess;
|
|
350
348
|
private getManagerAgent;
|
|
351
349
|
private resolveMemory;
|
|
352
|
-
queryKnowledge(query: string | readonly string[], resultsLimit?: number, scoreThreshold?: number):
|
|
353
|
-
query_knowledge(query: string | readonly string[], results_limit?: number, score_threshold?: number):
|
|
354
|
-
aqueryKnowledge(query: string | readonly string[], resultsLimit?: number, scoreThreshold?: number): Promise<
|
|
355
|
-
aquery_knowledge(query: string | readonly string[], results_limit?: number, score_threshold?: number): Promise<
|
|
350
|
+
queryKnowledge(query: string | readonly string[], resultsLimit?: number, scoreThreshold?: number): readonly unknown[] | null;
|
|
351
|
+
query_knowledge(query: string | readonly string[], results_limit?: number, score_threshold?: number): readonly unknown[] | null;
|
|
352
|
+
aqueryKnowledge(query: string | readonly string[], resultsLimit?: number, scoreThreshold?: number): Promise<readonly unknown[] | null>;
|
|
353
|
+
aquery_knowledge(query: string | readonly string[], results_limit?: number, score_threshold?: number): Promise<readonly unknown[] | null>;
|
|
356
354
|
resetMemories(commandType: ResetMemoriesCommandType): void;
|
|
357
355
|
reset_memories(commandType: ResetMemoriesCommandType): void;
|
|
358
|
-
resetMemorySystem(system:
|
|
359
|
-
_reset_memory_system(system:
|
|
356
|
+
resetMemorySystem(system: MemoryLike | MemoryScopeLike | readonly KnowledgeLike[] | Crew, _name: string, resetFn: (system: MemoryLike | MemoryScopeLike | readonly KnowledgeLike[] | Crew) => void): void;
|
|
357
|
+
_reset_memory_system(system: MemoryLike | MemoryScopeLike | readonly KnowledgeLike[] | Crew, name: string, reset_fn: (system: MemoryLike | MemoryScopeLike | readonly KnowledgeLike[] | Crew) => void): void;
|
|
360
358
|
resetAllMemories(): void;
|
|
361
359
|
_reset_all_memories(): void;
|
|
362
360
|
resetSpecificMemory(memoryType: NormalizedResetMemoriesCommandType): void;
|
|
@@ -365,8 +363,8 @@ export declare class Crew extends FlowTrackable {
|
|
|
365
363
|
_get_memory_systems(): Record<NormalizedResetMemoriesCommandType, MemorySystemConfig>;
|
|
366
364
|
fetchInputs(): Set<string>;
|
|
367
365
|
fetch_inputs(): Set<string>;
|
|
368
|
-
resetKnowledge(knowledges: readonly
|
|
369
|
-
reset_knowledge(knowledges: readonly
|
|
366
|
+
resetKnowledge(knowledges: readonly KnowledgeLike[]): void;
|
|
367
|
+
reset_knowledge(knowledges: readonly KnowledgeLike[]): void;
|
|
370
368
|
setAllowCrewaiTriggerContextForFirstTask(inputs?: InputValues | null): void;
|
|
371
369
|
_set_allow_crewai_trigger_context_for_first_task(inputs?: InputValues | null): void;
|
|
372
370
|
getAgentToUse(task: Task): Agent | null;
|
|
@@ -385,8 +383,8 @@ export declare class Crew extends FlowTrackable {
|
|
|
385
383
|
_add_multimodal_tools(agent: Agent, tools: readonly Tool[]): Tool[];
|
|
386
384
|
addCodeExecutionTools(agent: Agent, tools: readonly Tool[]): Tool[];
|
|
387
385
|
_add_code_execution_tools(agent: Agent, tools: readonly Tool[]): Tool[];
|
|
388
|
-
addMemoryTools(tools: readonly Tool[], memory:
|
|
389
|
-
_add_memory_tools(tools: readonly Tool[], memory:
|
|
386
|
+
addMemoryTools(tools: readonly Tool[], memory: MemoryLike | MemoryScopeLike): Tool[];
|
|
387
|
+
_add_memory_tools(tools: readonly Tool[], memory: MemoryLike | MemoryScopeLike): Tool[];
|
|
390
388
|
addFileTools(tools: readonly Tool[], files: TaskInputFiles): Tool[];
|
|
391
389
|
_add_file_tools(tools: readonly Tool[], files: TaskInputFiles): Tool[];
|
|
392
390
|
addDelegationTools(task: Task, tools: readonly Tool[]): Tool[];
|
|
@@ -420,5 +418,5 @@ export declare class Crew extends FlowTrackable {
|
|
|
420
418
|
toString(): string;
|
|
421
419
|
__repr__(): string;
|
|
422
420
|
}
|
|
423
|
-
declare function normalizeResetMemoriesCommandType(commandType: ResetMemoriesCommandType): "memory" | "
|
|
421
|
+
declare function normalizeResetMemoriesCommandType(commandType: ResetMemoriesCommandType): "memory" | "knowledge" | "all" | "kickoff_outputs" | "agent_knowledge";
|
|
424
422
|
export {};
|