tool2agent API Documentation - v0.0.0
    Preparing search index...

    Module @tool2agent/schemas

    @tool2agent/schemas API docs

    Zod schema generators for the tool2agent protocol.

    Use mkTool2AgentSchema(inputSchema, outputSchema) to generate a complete tool-result schema. @tool2agent/ai uses this builder at runtime.

    The schemas describe the structure of @tool2agent/types and can be converted to JSON Schema with Zod.

    Nonempty-array constraints remain enforced for problems, feedback, instructions, suggestions, and parameter dependencies. allowedValues may be empty to indicate that no options are available. Failures for non-record inputs still require problems.

    The schemas retain strict object-key validation and per-parameter value schemas. Dynamic parameter schemas are represented as unknown values for JSON Schema conversion; dependency enums validate input keys but do not exclude the current parameter at runtime.

    Functions

    mkParameterValidationResultSchema
    mkTool2AgentSchema
    mkToolCallFailureSchema
    mkToolCallSuccessSchema
    mkValidationResultsSchema