vigiles API reference
    Preparing search index...

    Function assertToolCalls

    • The escape hatch: assert any custom invariant over the full list of tool calls the agent made — for rules the helpers above don't express, e.g. "every Edit was preceded by a Read of that file". Needs transcript.

      Parameters

      • trace: Trace
      • predicate: (calls: readonly ToolCall[]) => boolean
      • message: string = "tool-call invariant failed"

      Returns void