Skip to main content

BaseRuntime

An abstract base class for all CAMEL runtimes.

init

add

Adds a new tool to the runtime.

reset

Resets the runtime to its initial state.

cleanup

Releases resources (containers, processes, connections, etc.). Public part of the runtime lifecycle API: callers may call :meth:cleanup or use the runtime as a context manager (__INLINE_CODE_1__) for deterministic teardown. Subclasses must implement this method.

stop

Returns: BaseRuntime: The current runtime (for chaining).

enter

Enter the context manager.

exit

Exit the context manager; ensures cleanup is called.

get_tools

Returns a list of all tools in the runtime.