Watsonx

Run IBM watsonx models with basic responses, tools, knowledge, storage, retries, and structured output.

ExampleDescription
IBM BasicRun a watsonx Mistral Small agent in sync, async, and streaming modes.
DBPersist watsonx agent sessions in Postgres with history added to context.
IBM Image Agent BytesPass JPEG bytes to a vision-capable Mistral Small model on watsonx.
KnowledgeSearch a PgVector knowledge base loaded from a PDF with a watsonx agent.
IBM Structured OutputRequest JSON from a watsonx agent and validate it locally as a MovieScript.
Tool UseStream web search results through a watsonx agent, sync and async.
RetryReview retry settings and why invalid model IDs cannot reliably exercise the retry path.