UNPKG

crewai-ts

Version:

TypeScript port of crewAI for agent-based workflows

31 lines 2.9 kB
/** * Flow system for orchestrating workflows with harmonized API between Python and TypeScript. * * Performance optimizations include: * - Multi-level caching with O(1) lookups and TTL-based expiration * - Memory-efficient data structures using WeakMap for automatic garbage collection * - Parallel method execution with Promise.all for maximum throughput * - Optimized string handling with Set for deduplication * - Type-safe interfaces with proper validation for cross-language compatibility * - Smart event propagation with minimal overhead * - Cache size estimation for memory management * - Incremental state management with change tracking * - Optimized event handling with priority queues * - Memory-efficient execution tracking with configurable sampling * - Dynamic flow scheduling with resource-aware concurrency * - Efficient condition evaluation with structural optimization */ export { Flow } from './Flow.js'; export { FlowState } from './FlowState.js'; export { plotFlow } from './visualization/FlowVisualizer.js'; export { CONTINUE, STOP, type Condition, type ComplexCondition, type ConditionFunction, type FlowCreatedEvent, type FlowEvent, type FlowFinishedEvent, type FlowMethodMetadata, type FlowOptions, type FlowPersistence, type FlowPlotEvent, type FlowStartedEvent, type MethodExecutionFailedEvent, type MethodExecutionFinishedEvent, type MethodExecutionResult, type MethodExecutionStartedEvent, type SimpleCondition, FlowExecutionError, FlowValidationError } from './types.js'; export { start, listen, router, and_, or_, Start, Listen, Router, AND, OR } from './decorators.js'; export { FlowMemoryConnector } from './memory/FlowMemoryConnector.js'; export { FlowMemoryConnectorInterface, FlowData, FlowMemoryConnectorOptions } from './memory/FlowMemoryConnectorInterface.js'; export { ContextualMemory, VectorStoreMemory } from './memory/types.js'; export { FlowStateManager } from './state/FlowStateManager.js'; export { FlowRouter, ConditionType, type BaseCondition, type ValueCondition, type ContainsCondition, type RegexCondition, type FunctionCondition, type LogicalGroup, type RouteCondition, type Route, type RouteEvaluationOptions, type RouteEvaluationResult } from './routing/FlowRouter.js'; export { FlowEventBus, EventPriority, type FlowEvent as FlowSystemEvent, type FlowStateChangeEvent, type FlowExecutionEvent, type FlowMethodEvent, type FlowRoutingEvent, type AllFlowEvents, type EventHandler, type EventSubscriptionOptions } from './events/FlowEventBus.js'; export { FlowExecutionTracker, type FlowExecutionMetrics, type MetricsSample, type ExecutionTraceEntry, type FlowTrackerOptions } from './execution/FlowExecutionTracker.js'; export { FlowScheduler, FlowExecutionStatus, type FlowNode, type FlowSchedulingOptions, type FlowExecutionResult, type FlowSchedulerEvent } from './scheduling/FlowScheduler.js'; //# sourceMappingURL=index.d.ts.map