src.core.kernel

Classes

ChatbotKernel

Core orchestrator for the chatbot framework.

Module Contents

class ChatbotKernel(config: Dict[str, Any] | None = None)[source]

Core orchestrator for the chatbot framework. Manages component registration and message flow.

config[source]
components[source]
register_component(name: str, component: Any) None[source]

Register a component to the framework.

Parameters:
  • name – Unique identifier for the component

  • component – The component instance

get_component(name: str) Any[source]

Retrieve a registered component.

Parameters:

name – Component identifier

Returns:

The component instance if found, None otherwise

process_message(message: str) str[source]

Process a user message through the pipeline.

Parameters:

message – User input text

Returns:

Response text