Condukt.Workflows.ToolRegistry (Condukt v1.0.0)

Copy Markdown View Source

Resolves the id field of a tool workflow step to a tool module (or inline tool spec) suitable for Condukt.Tool.execute/3.

Built-in tools are registered under their declared name/0:

  • Read, Write, Edit, Glob, Grep, Bash

Callers can extend the registry by passing a tools: %{id => spec} option to Condukt.Workflows.run/3. Custom entries override the built-ins.

Summary

Functions

Returns the built-in tool registry as a map of id to tool spec.

Resolves id against the merged registry. extra overrides the built-ins.

Functions

builtin()

Returns the built-in tool registry as a map of id to tool spec.

resolve(id, extra \\ %{})

Resolves id against the merged registry. extra overrides the built-ins.