A11 TypeScript API - v0.2.1
    Preparing search index...

    Class ActionSchema

    Typed port and header contract for an Action.

    A schema is the stable boundary between callers and handlers: it names the operation, defines input/output AsyncNodes, declares metadata headers, and optionally maps outputs into an LLM/tool JSON result. Registries use the schema to instantiate local handlers. A remote call sends the action name and port mappings, not this schema; the peer resolves its own registration, so caller and receiver schemas must agree on the wire-facing contract.

    Index
    description: string
    headers: Map<string, ActionHeaderSchema>
    inputs: Map<string, ActionPortSchema>
    name: string
    outputs: Map<string, ActionPortSchema>
    outputToJsonField: Map<string, string>
    • Map an output into a JSON field, or $ as the whole result value.

      Parameters

      • outputName: string
      • fieldName: string = ''

      Returns Status