@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
@@ -0,0 +1,157 @@
1
+ export type MismatchBehavior = "warn" | "raise" | "silent";
2
+ export declare const MismatchBehavior: Readonly<{
3
+ readonly WARN: "warn";
4
+ readonly RAISE: "raise";
5
+ readonly SILENT: "silent";
6
+ }>;
7
+ export type EventContextConfigOptions = {
8
+ maxStackDepth?: number;
9
+ mismatchBehavior?: MismatchBehavior;
10
+ emptyPopBehavior?: MismatchBehavior;
11
+ };
12
+ export declare class StackDepthExceededError extends Error {
13
+ constructor(message: string);
14
+ }
15
+ export declare class EventPairingError extends Error {
16
+ constructor(message: string);
17
+ }
18
+ export declare class EmptyStackError extends Error {
19
+ constructor(message: string);
20
+ }
21
+ export declare class EventContextConfig {
22
+ readonly maxStackDepth: number;
23
+ readonly mismatchBehavior: MismatchBehavior;
24
+ readonly emptyPopBehavior: MismatchBehavior;
25
+ constructor(options?: EventContextConfigOptions);
26
+ }
27
+ export type EventScopeEntry = readonly [eventId: string, eventType: string];
28
+ export type ExecutionContextOptions = {
29
+ currentTaskId?: string | null;
30
+ flowRequestId?: string | null;
31
+ flowId?: string | null;
32
+ flowName?: string | null;
33
+ flowMethodName?: string;
34
+ eventIdStack?: readonly EventScopeEntry[];
35
+ lastEventId?: string | null;
36
+ triggeringEventId?: string | null;
37
+ emissionSequence?: number;
38
+ feedbackCallbackInfo?: Record<string, unknown> | null;
39
+ platformToken?: string | null;
40
+ eventContextConfig?: EventContextConfig | EventContextConfigOptions | null;
41
+ };
42
+ export declare class ExecutionContext {
43
+ currentTaskId: string | null;
44
+ flowRequestId: string | null;
45
+ flowId: string | null;
46
+ flowName: string | null;
47
+ flowMethodName: string;
48
+ eventIdStack: EventScopeEntry[];
49
+ lastEventId: string | null;
50
+ triggeringEventId: string | null;
51
+ emissionSequence: number;
52
+ feedbackCallbackInfo: Record<string, unknown> | null;
53
+ platformToken: string | null;
54
+ eventContextConfig: EventContextConfig | null;
55
+ constructor(options?: ExecutionContextOptions);
56
+ clone(): ExecutionContext;
57
+ toJSON(): Record<string, unknown>;
58
+ }
59
+ export declare function setEventRuntimeStateProvider(provider: (() => unknown) | null): void;
60
+ export declare const SCOPE_STARTING_EVENTS: Set<string>;
61
+ export declare const SCOPE_ENDING_EVENTS: Set<string>;
62
+ export declare const VALID_EVENT_PAIRS: Readonly<Record<string, string>>;
63
+ export declare function runWithExecutionContext<T>(ctx: ExecutionContext | ExecutionContextOptions, fn: () => T): T;
64
+ export declare const run_with_execution_context: typeof runWithExecutionContext;
65
+ export declare function captureExecutionContext(feedbackCallbackInfo?: Record<string, unknown> | null): ExecutionContext;
66
+ export declare const capture_execution_context: typeof captureExecutionContext;
67
+ export declare function applyExecutionContext(ctx: ExecutionContext): void;
68
+ export declare const apply_execution_context: typeof applyExecutionContext;
69
+ export declare function setPlatformIntegrationToken(integrationToken: string | null): void;
70
+ export declare const set_platform_integration_token: typeof setPlatformIntegrationToken;
71
+ export declare function getPlatformIntegrationToken(): string | null;
72
+ export declare const get_platform_integration_token: typeof getPlatformIntegrationToken;
73
+ export declare function withPlatformContext<T>(integrationToken: string, fn: () => T): T;
74
+ export declare const platformContext: typeof withPlatformContext;
75
+ export declare const platform_context: typeof withPlatformContext;
76
+ export declare function setCurrentTaskId(taskId: string | null): string | null;
77
+ export declare const set_current_task_id: typeof setCurrentTaskId;
78
+ export declare function resetCurrentTaskId(token: string | null): void;
79
+ export declare const reset_current_task_id: typeof resetCurrentTaskId;
80
+ export declare function getCurrentTaskId(): string | null;
81
+ export declare const get_current_task_id: typeof getCurrentTaskId;
82
+ export declare function setCurrentFlowContext(options: {
83
+ flowRequestId?: string | null;
84
+ flowId?: string | null;
85
+ flowName?: string | null;
86
+ flowMethodName?: string;
87
+ }): void;
88
+ export declare const set_current_flow_context: typeof setCurrentFlowContext;
89
+ export declare function getCurrentFlowRequestId(): string | null;
90
+ export declare const get_current_flow_request_id: typeof getCurrentFlowRequestId;
91
+ export declare function getCurrentFlowId(): string | null;
92
+ export declare const get_current_flow_id: typeof getCurrentFlowId;
93
+ export declare function getCurrentFlowName(): string | null;
94
+ export declare const get_current_flow_name: typeof getCurrentFlowName;
95
+ export declare function getCurrentFlowMethodName(): string;
96
+ export declare const get_current_flow_method_name: typeof getCurrentFlowMethodName;
97
+ export type FlowContextVariable<T> = {
98
+ get: () => T;
99
+ set: (value: T) => T;
100
+ };
101
+ export declare const currentFlowRequestId: FlowContextVariable<string | null>;
102
+ export declare const current_flow_request_id: FlowContextVariable<string | null>;
103
+ export declare const currentFlowId: FlowContextVariable<string | null>;
104
+ export declare const current_flow_id: FlowContextVariable<string | null>;
105
+ export declare const currentFlowName: FlowContextVariable<string | null>;
106
+ export declare const current_flow_name: FlowContextVariable<string | null>;
107
+ export declare const currentFlowMethodName: FlowContextVariable<string>;
108
+ export declare const current_flow_method_name: FlowContextVariable<string>;
109
+ export declare class FlowTrackable {
110
+ _requestId: string | null;
111
+ _request_id: string | null;
112
+ _flowId: string | null;
113
+ _flow_id: string | null;
114
+ constructor();
115
+ _set_flow_context(): this;
116
+ }
117
+ export declare function getCurrentParentId(): string | null;
118
+ export declare const get_current_parent_id: typeof getCurrentParentId;
119
+ export declare function getEnclosingParentId(): string | null;
120
+ export declare const get_enclosing_parent_id: typeof getEnclosingParentId;
121
+ export declare function getLastEventId(): string | null;
122
+ export declare const get_last_event_id: typeof getLastEventId;
123
+ export declare function setLastEventId(eventId: string | null): void;
124
+ export declare const set_last_event_id: typeof setLastEventId;
125
+ export declare function resetLastEventId(): void;
126
+ export declare const reset_last_event_id: typeof resetLastEventId;
127
+ export declare function getTriggeringEventId(): string | null;
128
+ export declare const get_triggering_event_id: typeof getTriggeringEventId;
129
+ export declare function setTriggeringEventId(eventId: string | null): void;
130
+ export declare const set_triggering_event_id: typeof setTriggeringEventId;
131
+ export declare function triggeredByScope<T>(eventId: string, fn: () => T): T;
132
+ export declare const triggered_by_scope: typeof triggeredByScope;
133
+ export declare function restoreEventScope(stack: readonly EventScopeEntry[]): void;
134
+ export declare const restore_event_scope: typeof restoreEventScope;
135
+ export declare function resume_task_scope(task_id: string): boolean;
136
+ export declare function pushEventScope(eventId: string, eventType?: string): void;
137
+ export declare const push_event_scope: typeof pushEventScope;
138
+ export declare function popEventScope(): EventScopeEntry | null;
139
+ export declare const pop_event_scope: typeof popEventScope;
140
+ export declare function eventScope<T>(eventId: string, eventType: string, fn: () => T): T;
141
+ export declare const event_scope: typeof eventScope;
142
+ export declare function getNextEmissionSequence(): number;
143
+ export declare const get_next_emission_sequence: typeof getNextEmissionSequence;
144
+ export declare function getEmissionSequence(): number;
145
+ export declare const get_emission_sequence: typeof getEmissionSequence;
146
+ export declare function resetEmissionCounter(): void;
147
+ export declare const reset_emission_counter: typeof resetEmissionCounter;
148
+ export declare function setEmissionCounter(start: number): void;
149
+ export declare const set_emission_counter: typeof setEmissionCounter;
150
+ export declare function setEventContextConfig(config: EventContextConfig | EventContextConfigOptions | null): void;
151
+ export declare const set_event_context_config: typeof setEventContextConfig;
152
+ export declare function getEventContextConfig(): EventContextConfig;
153
+ export declare const get_event_context_config: typeof getEventContextConfig;
154
+ export declare function handleEmptyPop(eventTypeName: string): void;
155
+ export declare const handle_empty_pop: typeof handleEmptyPop;
156
+ export declare function handleMismatch(eventTypeName: string, poppedType: string, expectedStart: string): void;
157
+ export declare const handle_mismatch: typeof handleMismatch;
@@ -0,0 +1,97 @@
1
+ import type { LLMClient } from "./llm.js";
2
+ import type { LLMMessage } from "./types.js";
3
+ import { InternalInstructor } from "./utilities.js";
4
+ export type StructuredModel<T = unknown> = ((value: unknown) => T) | {
5
+ modelValidate?: (value: unknown) => T;
6
+ model_validate?: (value: unknown) => T;
7
+ modelValidateJson?: (value: string) => T;
8
+ model_validate_json?: (value: string) => T;
9
+ modelDump?: (value: T) => Record<string, unknown>;
10
+ model_dump?: (value: T) => Record<string, unknown>;
11
+ schema?: unknown;
12
+ name?: string;
13
+ };
14
+ export type ConverterOptions<T = unknown> = {
15
+ llm: LLMClient;
16
+ text: string;
17
+ model: StructuredModel<T>;
18
+ instructions: string;
19
+ maxAttempts?: number;
20
+ max_attempts?: number;
21
+ };
22
+ export declare class CreateConverterKwargs<T = unknown> {
23
+ readonly agent: ConversionAgent;
24
+ readonly converterCls: typeof Converter<T>;
25
+ readonly converter_cls: typeof Converter<T>;
26
+ readonly llm: LLMClient;
27
+ readonly text: string;
28
+ readonly model: StructuredModel<T>;
29
+ readonly instructions: string;
30
+ constructor(options: {
31
+ agent: ConversionAgent;
32
+ converterCls?: typeof Converter<T>;
33
+ converter_cls?: typeof Converter<T>;
34
+ llm: LLMClient;
35
+ text: string;
36
+ model: StructuredModel<T>;
37
+ instructions: string;
38
+ });
39
+ }
40
+ export type ConversionAgent = {
41
+ llm?: LLMClient | null;
42
+ functionCallingLlm?: LLMClient | null;
43
+ function_calling_llm?: LLMClient | null;
44
+ verbose?: boolean;
45
+ };
46
+ export declare class ConverterError extends Error {
47
+ readonly message: string;
48
+ constructor(message: string);
49
+ }
50
+ export declare class Converter<T = unknown> {
51
+ readonly llm: LLMClient;
52
+ readonly text: string;
53
+ readonly model: StructuredModel<T>;
54
+ readonly instructions: string;
55
+ readonly maxAttempts: number;
56
+ readonly max_attempts: number;
57
+ constructor(options: ConverterOptions<T>);
58
+ buildMessages(): LLMMessage[];
59
+ _build_messages(): LLMMessage[];
60
+ toPydantic(currentAttempt?: number): Promise<T>;
61
+ to_pydantic(currentAttempt?: number): Promise<T>;
62
+ atoPydantic(currentAttempt?: number): Promise<T>;
63
+ ato_pydantic(currentAttempt?: number): Promise<T>;
64
+ toJson(currentAttempt?: number): Promise<string | ConverterError>;
65
+ to_json(currentAttempt?: number): Promise<string | ConverterError>;
66
+ atoJson(currentAttempt?: number): Promise<string | ConverterError>;
67
+ ato_json(currentAttempt?: number): Promise<string | ConverterError>;
68
+ _coerce_response_to_pydantic(response: unknown): T;
69
+ _create_instructor(): InternalInstructor;
70
+ }
71
+ export declare function validateModel<T>(result: string, model: StructuredModel<T>, isJsonOutput: boolean): T | Record<string, unknown>;
72
+ export declare const validate_model: typeof validateModel;
73
+ export declare function handlePartialJson<T>(result: string, model: StructuredModel<T>, isJsonOutput: boolean, agent?: ConversionAgent | null, converterClass?: typeof Converter<T> | null): T | Record<string, unknown> | string;
74
+ export declare const handle_partial_json: typeof handlePartialJson;
75
+ export declare function asyncHandlePartialJson<T>(result: string, model: StructuredModel<T>, isJsonOutput: boolean, agent?: ConversionAgent | null, converterClass?: typeof Converter<T> | null): Promise<T | Record<string, unknown> | string>;
76
+ export declare const async_handle_partial_json: typeof asyncHandlePartialJson;
77
+ export declare function convertToModel<T>(result: string | T, outputPydantic: StructuredModel<T> | null, outputJson: StructuredModel<T> | null, agent?: ConversionAgent | null, converterClass?: typeof Converter<T> | null): T | Record<string, unknown> | string;
78
+ export declare const convert_to_model: typeof convertToModel;
79
+ export declare function convertWithInstructions<T>(result: string, model: StructuredModel<T>, isJsonOutput: boolean, agent: ConversionAgent | null, converterClass?: typeof Converter<T>): T | Record<string, unknown> | string;
80
+ export declare const convert_with_instructions: typeof convertWithInstructions;
81
+ export declare const convertWithInstructionsSync: typeof convertWithInstructions;
82
+ export declare const convert_with_instructions_sync: typeof convertWithInstructions;
83
+ export declare function asyncConvertWithInstructions<T>(result: string, model: StructuredModel<T>, isJsonOutput: boolean, agent: ConversionAgent | null, converterClass?: typeof Converter<T>): Promise<T | Record<string, unknown> | string>;
84
+ export declare const async_convert_with_instructions: typeof asyncConvertWithInstructions;
85
+ type OutputConverterAgent<T> = {
86
+ getOutputConverter?: (...args: unknown[]) => Converter<T> | null;
87
+ get_output_converter?: (...args: unknown[]) => Converter<T> | null;
88
+ };
89
+ type ConverterClass<T> = new (...args: unknown[]) => Converter<T>;
90
+ export declare function createConverter<T>(options: ConverterOptions<T>): Converter<T>;
91
+ export declare function createConverter<T>(agent: OutputConverterAgent<T> | null, converterClass?: ConverterClass<T> | null, ...args: unknown[]): Converter<T>;
92
+ export declare const create_converter: typeof createConverter;
93
+ export declare function asyncConvertToModel<T>(result: string | T, outputPydantic: StructuredModel<T> | null, outputJson: StructuredModel<T> | null, agent?: ConversionAgent | null, converterClass?: typeof Converter<T> | null): Promise<T | Record<string, unknown> | string>;
94
+ export declare const async_convert_to_model: typeof asyncConvertToModel;
95
+ export declare function getConversionInstructions<T>(model: StructuredModel<T>, _llm?: unknown): string;
96
+ export declare const get_conversion_instructions: typeof getConversionInstructions;
97
+ export {};
@@ -0,0 +1,97 @@
1
+ import type { Crew } from "./crew.js";
2
+ import { type LLM, type LLMClient } from "./llm.js";
3
+ import type { LLMMessage } from "./types.js";
4
+ export declare const MIN_REQUIRED_CONVERSATIONAL_CREW_VERSION = "0.98.0";
5
+ export declare const MIN_REQUIRED_VERSION = "0.98.0";
6
+ export declare const DEFAULT_INPUT_DESCRIPTION = "Input value for the crew's tasks and agents.";
7
+ export declare const DEFAULT_CREW_DESCRIPTION = "A CrewAI crew.";
8
+ export type ChatInputFieldOptions = {
9
+ name: string;
10
+ description: string;
11
+ };
12
+ export declare class ChatInputField {
13
+ readonly name: string;
14
+ readonly description: string;
15
+ constructor(options: ChatInputFieldOptions);
16
+ }
17
+ export type ChatInputsOptions = {
18
+ crewName?: string;
19
+ crew_name?: string;
20
+ crewDescription?: string;
21
+ crew_description?: string;
22
+ inputs?: readonly (ChatInputField | ChatInputFieldOptions)[];
23
+ };
24
+ export declare class ChatInputs {
25
+ readonly crewName: string;
26
+ readonly crew_name: string;
27
+ readonly crewDescription: string;
28
+ readonly crew_description: string;
29
+ readonly inputs: readonly ChatInputField[];
30
+ constructor(options: ChatInputsOptions);
31
+ }
32
+ export type CrewChatToolSchema = {
33
+ type: "function";
34
+ function: {
35
+ name: string;
36
+ description: string;
37
+ parameters: {
38
+ type: "object";
39
+ properties: Record<string, {
40
+ type: "string";
41
+ description: string;
42
+ }>;
43
+ required: string[];
44
+ };
45
+ };
46
+ };
47
+ export type GenerateCrewChatInputsOptions = {
48
+ generateDescriptions?: boolean;
49
+ generate_descriptions?: boolean;
50
+ };
51
+ export type CrewChatLoader = () => [Crew, string];
52
+ export type ChatLoopOptions = {
53
+ getUserInput?: () => string | Promise<string>;
54
+ onAssistantMessage?: (message: string) => void;
55
+ onError?: (error: unknown) => void;
56
+ maxTurns?: number;
57
+ };
58
+ export declare function checkConversationalCrewsVersion(crewaiVersion: string, _pyprojectData?: Record<string, unknown>): boolean;
59
+ export declare const check_conversational_crews_version: typeof checkConversationalCrewsVersion;
60
+ export declare function buildSystemMessage(crewChatInputs: ChatInputs): string;
61
+ export declare const build_system_message: typeof buildSystemMessage;
62
+ export declare function generateCrewToolSchema(crewInputs: ChatInputs): CrewChatToolSchema;
63
+ export declare const generate_crew_tool_schema: typeof generateCrewToolSchema;
64
+ export declare function runCrewTool(crew: Crew, messages: readonly LLMMessage[], kwargs?: Record<string, unknown>): Promise<string>;
65
+ export declare const run_crew_tool: typeof runCrewTool;
66
+ export declare function run_crew_tool_with_messages(crew: Crew, messages: readonly LLMMessage[], kwargs?: Record<string, unknown>): Promise<string>;
67
+ export declare function createToolFunction(crew: Crew, messages: readonly LLMMessage[]): (kwargs?: Record<string, unknown>) => Promise<string>;
68
+ export declare const create_tool_function: typeof createToolFunction;
69
+ export declare function flushInput(): void;
70
+ export declare const flush_input: typeof flushInput;
71
+ export declare function getUserInput(): Promise<string>;
72
+ export declare const get_user_input: typeof getUserInput;
73
+ export declare function handleUserInput(userInput: string, chatLlm: LLM | LLMClient, messages: LLMMessage[], crewToolSchema: CrewChatToolSchema | Record<string, unknown>, availableFunctions: Record<string, unknown>): Promise<void>;
74
+ export declare const handle_user_input: typeof handleUserInput;
75
+ export declare function chatLoop(chatLlm: LLM | LLMClient, messages: LLMMessage[], crewToolSchema: CrewChatToolSchema | Record<string, unknown>, availableFunctions: Record<string, unknown>, options?: ChatLoopOptions): Promise<void>;
76
+ export declare const chat_loop: typeof chatLoop;
77
+ export declare function showLoading(event?: {
78
+ isSet?: () => boolean;
79
+ is_set?: () => boolean;
80
+ } | null): void;
81
+ export declare const show_loading: typeof showLoading;
82
+ export declare function initializeChatLlm(crew: Crew): LLM | LLMClient | null;
83
+ export declare const initialize_chat_llm: typeof initializeChatLlm;
84
+ export declare function setCrewChatLoader(loader: CrewChatLoader | null): void;
85
+ export declare const set_crew_chat_loader: typeof setCrewChatLoader;
86
+ export declare function loadCrewAndName(): [Crew, string];
87
+ export declare const load_crew_and_name: typeof loadCrewAndName;
88
+ export declare function runChat(): Promise<void>;
89
+ export declare const run_chat: typeof runChat;
90
+ export declare function generateCrewChatInputs(crew: Crew, crewName: string, chatLlm: LLM | LLMClient, options?: GenerateCrewChatInputsOptions): Promise<ChatInputs>;
91
+ export declare const generate_crew_chat_inputs: typeof generateCrewChatInputs;
92
+ export declare function fetchRequiredInputs(crew: Crew): Set<string>;
93
+ export declare const fetch_required_inputs: typeof fetchRequiredInputs;
94
+ export declare function generateInputDescriptionWithAi(inputName: string, crew: Crew, chatLlm: LLM | LLMClient): Promise<string>;
95
+ export declare const generate_input_description_with_ai: typeof generateInputDescriptionWithAi;
96
+ export declare function generateCrewDescriptionWithAi(crew: Crew, chatLlm: LLM | LLMClient): Promise<string>;
97
+ export declare const generate_crew_description_with_ai: typeof generateCrewDescriptionWithAi;