Skip to content

fontlab_aidus_agentus.plugin.executor

executor

FontLab tool executor: runs LLM-requested operations inside FontLab's sandbox.

When the Core's LLM decides to call a tool (e.g. run_fontlab_script), it sends a tool-call request back over stdin. The Plugin picks this up, routes it here, and executes it inside FontLab's Python environment.

The sandbox strips dangerous builtins (eval, exec, import, open) and captures stdout so script output can be returned to the LLM as a tool result.

Tools are registered via :class:ToolRegistry. Each tool entry carries: - A handler callable - Metadata: required_params, optional_params, description, requires_font, requires_glyph

Outside FontLab (e.g. during static analysis), the fontlab import fails gracefully: FL_AVAILABLE is False and tool calls return an error response rather than crashing.

Classes

Complete member index

Every captured member retains its own identity. Identical captured declaration text is linked once; this does not establish native inheritance or interchangeable objects.

Member Kind Signature Summary
FL_AVAILABLE attribute
METRIC_ABS_TOLERANCE attribute
fl attribute Any