Cyclium.Intent.SignatureMatcher (Cyclium v0.2.0)

Copy Markdown View Source

Matches a tool call from an action plan against allowed tool signatures.

Summary

Functions

has_side_effects?(steps, signatures)

@spec has_side_effects?([Cyclium.Intent.ToolCallStep.t()], [
  Cyclium.Intent.ToolSignature.t()
]) ::
  boolean()

match(tool_call_step, signatures)

@spec match(Cyclium.Intent.ToolCallStep.t(), [Cyclium.Intent.ToolSignature.t()]) ::
  {:ok, Cyclium.Intent.ToolSignature.t()} | {:error, :no_matching_signature}