Package io.micronaut.langchain4j.jsonschema


package io.micronaut.langchain4j.jsonschema
Structured outputs of AI services and agents backed by JSON schemas generated at compile time.
  • Class
    Description
    Identifies chat models that accept a JSON schema response format on each request although they do not declare Capability.RESPONSE_FORMAT_JSON_SCHEMA.
    The JSON schemas of the structured outputs of one AI service or agent, keyed by the name LangChain4j gives the schema of the response format (the simple name of the return type, or List_of_<Type> for a list).
    Configuration of the structured outputs backed by generated JSON schemas.
    Supplies the JSON schema sent to the chat model when an AiService or agent method returns the given type, instead of the schema LangChain4j derives reflectively.
    Configures the AI services and agents whose methods return a type with a schema supplied by a StructuredOutputSchemaProvider (by default, a type annotated with io.micronaut.jsonschema.JsonSchema), so that this schema is sent to the chat model as the structured output format.