@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/schema-utils.d.ts
CHANGED
|
@@ -37,7 +37,7 @@ export declare const FORMAT_TYPE_MAP: {
|
|
|
37
37
|
readonly time: "string";
|
|
38
38
|
readonly duration: "string";
|
|
39
39
|
};
|
|
40
|
-
export declare const OPENAI_SUPPORTED_FORMATS: Set<"
|
|
40
|
+
export declare const OPENAI_SUPPORTED_FORMATS: Set<"date" | "time" | "duration" | "date-time">;
|
|
41
41
|
export declare function resolveRefs(schema: JsonSchema): JsonSchema;
|
|
42
42
|
export declare function addKeyInDictRecursively(schema: JsonSchema, key: string, value: unknown, criteria: (schema: JsonSchema) => boolean): JsonSchema;
|
|
43
43
|
export declare function forceAdditionalPropertiesFalse<T>(schema: T): T;
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import {
|
|
2
|
+
FORMAT_TYPE_MAP,
|
|
3
|
+
JsonSchemaInfo,
|
|
4
|
+
ModelDescription,
|
|
5
|
+
OPENAI_SUPPORTED_FORMATS,
|
|
6
|
+
_build_model_from_schema,
|
|
7
|
+
_common_strict_pipeline,
|
|
8
|
+
_inline_top_level_ref,
|
|
9
|
+
_json_schema_to_pydantic_field,
|
|
10
|
+
_json_schema_to_pydantic_type,
|
|
11
|
+
_merge_all_of_schemas,
|
|
12
|
+
_process_oneof,
|
|
13
|
+
_resolve_ref,
|
|
14
|
+
_strip_keys_recursive,
|
|
15
|
+
addConstToOneOfVariants,
|
|
16
|
+
addKeyInDictRecursively,
|
|
17
|
+
add_const_to_oneof_variants,
|
|
18
|
+
add_key_in_dict_recursively,
|
|
19
|
+
buildRichFieldDescription,
|
|
20
|
+
build_rich_field_description,
|
|
21
|
+
convertOneOfToAnyOf,
|
|
22
|
+
convert_oneof_to_anyof,
|
|
23
|
+
createModelFromSchema,
|
|
24
|
+
create_model_from_schema,
|
|
25
|
+
ensureAllPropertiesRequired,
|
|
26
|
+
ensureTypeInSchemas,
|
|
27
|
+
ensure_all_properties_required,
|
|
28
|
+
ensure_type_in_schemas,
|
|
29
|
+
fixDiscriminatorMappings,
|
|
30
|
+
fix_discriminator_mappings,
|
|
31
|
+
forceAdditionalPropertiesFalse,
|
|
32
|
+
force_additional_properties_false,
|
|
33
|
+
generateModelDescription,
|
|
34
|
+
generate_model_description,
|
|
35
|
+
liftTopLevelAnyOf,
|
|
36
|
+
lift_top_level_anyof,
|
|
37
|
+
resolveRefs,
|
|
38
|
+
resolve_refs,
|
|
39
|
+
sanitizeToolParamsForAnthropicStrict,
|
|
40
|
+
sanitizeToolParamsForBedrockStrict,
|
|
41
|
+
sanitizeToolParamsForOpenAIStrict,
|
|
42
|
+
sanitize_tool_params_for_anthropic_strict,
|
|
43
|
+
sanitize_tool_params_for_bedrock_strict,
|
|
44
|
+
sanitize_tool_params_for_openai_strict,
|
|
45
|
+
serializeModelClass,
|
|
46
|
+
serialize_model_class,
|
|
47
|
+
stripNullFromTypes,
|
|
48
|
+
stripUnsupportedFormats,
|
|
49
|
+
strip_null_from_types,
|
|
50
|
+
strip_unsupported_formats
|
|
51
|
+
} from "./chunk-CCOE6MLE.js";
|
|
52
|
+
export {
|
|
53
|
+
FORMAT_TYPE_MAP,
|
|
54
|
+
JsonSchemaInfo,
|
|
55
|
+
ModelDescription,
|
|
56
|
+
OPENAI_SUPPORTED_FORMATS,
|
|
57
|
+
_build_model_from_schema,
|
|
58
|
+
_common_strict_pipeline,
|
|
59
|
+
_inline_top_level_ref,
|
|
60
|
+
_json_schema_to_pydantic_field,
|
|
61
|
+
_json_schema_to_pydantic_type,
|
|
62
|
+
_merge_all_of_schemas,
|
|
63
|
+
_process_oneof,
|
|
64
|
+
_resolve_ref,
|
|
65
|
+
_strip_keys_recursive,
|
|
66
|
+
addConstToOneOfVariants,
|
|
67
|
+
addKeyInDictRecursively,
|
|
68
|
+
add_const_to_oneof_variants,
|
|
69
|
+
add_key_in_dict_recursively,
|
|
70
|
+
buildRichFieldDescription,
|
|
71
|
+
build_rich_field_description,
|
|
72
|
+
convertOneOfToAnyOf,
|
|
73
|
+
convert_oneof_to_anyof,
|
|
74
|
+
createModelFromSchema,
|
|
75
|
+
create_model_from_schema,
|
|
76
|
+
ensureAllPropertiesRequired,
|
|
77
|
+
ensureTypeInSchemas,
|
|
78
|
+
ensure_all_properties_required,
|
|
79
|
+
ensure_type_in_schemas,
|
|
80
|
+
fixDiscriminatorMappings,
|
|
81
|
+
fix_discriminator_mappings,
|
|
82
|
+
forceAdditionalPropertiesFalse,
|
|
83
|
+
force_additional_properties_false,
|
|
84
|
+
generateModelDescription,
|
|
85
|
+
generate_model_description,
|
|
86
|
+
liftTopLevelAnyOf,
|
|
87
|
+
lift_top_level_anyof,
|
|
88
|
+
resolveRefs,
|
|
89
|
+
resolve_refs,
|
|
90
|
+
sanitizeToolParamsForAnthropicStrict,
|
|
91
|
+
sanitizeToolParamsForBedrockStrict,
|
|
92
|
+
sanitizeToolParamsForOpenAIStrict,
|
|
93
|
+
sanitize_tool_params_for_anthropic_strict,
|
|
94
|
+
sanitize_tool_params_for_bedrock_strict,
|
|
95
|
+
sanitize_tool_params_for_openai_strict,
|
|
96
|
+
serializeModelClass,
|
|
97
|
+
serialize_model_class,
|
|
98
|
+
stripNullFromTypes,
|
|
99
|
+
stripUnsupportedFormats,
|
|
100
|
+
strip_null_from_types,
|
|
101
|
+
strip_unsupported_formats
|
|
102
|
+
};
|
package/dist/task.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { Agent } from "./agent.js";
|
|
2
|
-
import type { Knowledge } from "./knowledge.js";
|
|
3
2
|
import { type HumanInputProvider } from "./human-input.js";
|
|
4
3
|
import { TaskOutput } from "./outputs.js";
|
|
5
|
-
import type {
|
|
4
|
+
import type { KnowledgeLike, MemoryLike, MemoryScopeLike } from "./feature-hooks.js";
|
|
6
5
|
import { type Fingerprint, type SecurityConfig } from "./security.js";
|
|
7
6
|
import { interpolateOnly } from "./string-utils.js";
|
|
8
7
|
import { OutputFormat, type AgentStepCallback, type InputValues, type LLM, type MaybePromise, type TaskCallback, type Tool } from "./types.js";
|
|
@@ -29,8 +28,8 @@ export type TaskExecutionOptions = {
|
|
|
29
28
|
triggerPayload?: unknown;
|
|
30
29
|
inputFiles?: TaskInputFiles;
|
|
31
30
|
functionCallingLlm?: LLM | string | null;
|
|
32
|
-
memory?:
|
|
33
|
-
knowledge?:
|
|
31
|
+
memory?: MemoryLike | MemoryScopeLike | null;
|
|
32
|
+
knowledge?: KnowledgeLike | null;
|
|
34
33
|
useAsyncAgent?: boolean;
|
|
35
34
|
};
|
|
36
35
|
type ModelDumpOptions = {
|