motleycrew.tools.mermaid_evaluator_tool

Functions

eval_mermaid(mermaid_code[, format])

Classes

MermaidEvaluatorTool([format, ...])

class motleycrew.tools.mermaid_evaluator_tool.MermaidEvaluatorTool(format: str | None = 'svg', return_direct: bool = False, exceptions_to_reflect: List[Exception] | None = None)

Bases: MotleyTool

__init__(format: str | None = 'svg', return_direct: bool = False, exceptions_to_reflect: List[Exception] | None = None)

Initialize the MotleyTool.

Parameters:
  • name – Name of the tool (required if tool is None).

  • description – Description of the tool (required if tool is None).

  • args_schema – Schema of the tool arguments (required if tool is None).

  • tool – Langchain BaseTool to wrap.

  • return_direct – If True, the tool’s output will be returned directly to the user.

  • exceptions_to_reflect – List of exceptions to reflect back to the agent.

motleycrew.tools.mermaid_evaluator_tool.eval_mermaid(mermaid_code: str, format: str | None = 'svg') BytesIO