Application API

This section documents the application layer components.

Application Executors

Application executors module

Contains service executors and application-level coordination.

class aiecs.application.executors.OperationExecutor[source]

Bases: object

Core logic for handling operation execution

__init__(tool_executor, execution_utils, config)[source]
Parameters:
  • tool_executor (ToolExecutor)

  • execution_utils (ExecutionUtils)

  • config (Dict[str, Any])

async execute_operation(operation_spec, params)[source]

Execute a single operation (tool_name.operation_name)

Parameters:
Return type:

Any

async batch_execute_operations(operations)[source]

Batch execute operations with rate limiting

Parameters:

operations (List[Dict[str, Any]])

Return type:

List[Any]

async execute_operations_sequence(operations, user_id, task_id, stop_on_failure=False, save_callback=None)[source]

Execute operations sequence sequentially, with option to stop on failure

Parameters:
Return type:

List[TaskStepResult]

async batch_tool_calls(tool_calls, tool_executor_func=None)[source]

Execute batch tool calls with rate limiting

Parameters:

tool_calls (List[Dict])

Return type:

List[Any]

extract_tool_calls(description, input_data, context)[source]

Extract tool calls from description

Parameters:
Return type:

List[Dict]

async execute_parallel_operations(operations)[source]

Execute multiple operations in parallel

Parameters:

operations (List[Dict[str, Any]])

Return type:

List[TaskStepResult]

get_tool_instance(tool_name)[source]

Get tool instance

Parameters:

tool_name (str)

clear_tool_cache()[source]

Clear tool instance cache

get_stats()[source]

Get operation executor statistics

Return type:

Dict[str, Any]

Knowledge Graph

Note

The knowledge graph module contains multiple submodules. See individual submodule documentation for details.