Skip to main content
Define the schema, pass the input, get a validated object back.
Tell the agent how to handle missing fields: “If a field is missing, leave it null. Do not guess.”

Nested objects

Lists of sub-objects work the same way. Define the inner model and reference it.
Pass output_schema=Meeting and the agent returns a Meeting with a populated action_items list.

Per-field confidence

When downstream needs to route uncertain fields to a human, wrap each value in a confidence carrier.
Define each confidence level in the instructions so labels use the same criteria across records.

Any modality, same pattern

The input argument changes per modality. Use a model that supports both that modality and structured output. See Multimodal inputs for the input arguments.

Extract then index

The image extraction to vector database cookbook is the minimal pipeline. It describes each image as a typed object, flattens the object into searchable text, embeds it, and stores it in LanceDb. This recipe needs LanceDb on top of the Google provider:
The Image Search application expands the same pattern into an ingest workflow, PgVector hybrid search, AgentOS endpoints, and a browser UI.

Next steps

Developer Resources