Annotation Interface Tool.OutputSchema

Enclosing class:
Tool

@Retention(RUNTIME) @Target(ANNOTATION_TYPE) public static @interface Tool.OutputSchema
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The class from which the schema is generated.
    The generator class.
  • Element Details

    • from

      Class<?> from
      The class from which the schema is generated.

      If Tool.structuredContent() is set to true then the return type may be used for schema generation.

      Default:
      io.openliberty.mcp.annotations.Tool.OutputSchema.class
    • generator

      Class<? extends OutputSchemaGenerator> generator
      The generator class. Implementation classes must be CDI beans. Qualifiers are ignored.

      By default, the built-in generator is used.

      Default:
      io.openliberty.mcp.annotations.OutputSchemaGenerator.class