Comparison Table of all supported Decision Models
| Provider | Module | Questions (yes/no, choice, scale) | Async (decideAsync) | Input | Probabilities and confidence | Refusals | Observability | Customizable HTTP Client | Local Deployment | Spring Boot |
|---|---|---|---|---|---|---|---|---|---|---|
| Google AI Gemini | langchain4j-google-ai-gemini | ✅/✅/✅ | ✅ | text, structured, image, audio, video, PDF, conversation | ✅ | ✅ | ✅ | ✅ | ❌ | 🆘 |
| Google Gen AI | langchain4j-google-genai | ✅/✅/✅ | ✅ | text, structured, image, audio, video, PDF, conversation | ✅ | ✅ | ✅ | ❌ | 🆘 | |
| Ollama | langchain4j-ollama | ✅/✅/✅ | ✅ | text, structured, image, conversation | ✅ | ❌ | ✅ | ✅ | ✅ | 🆘 |
| OpenAI | langchain4j-open-ai | ✅/✅/✅ | ✅ | text, structured, image, conversation | ✅ | ✅ | ✅ | ✅ | ❌ | ✅ |
| OpenAI Official | langchain4j-open-ai-official | ✅/✅/✅ | ✅ | text, structured, image, conversation | ✅ | ✅ | ✅ | ❌ | ✅ | |
| TypeSafe | langchain4j-typesafe | ✅/✅/✅ | ✅ | text, structured, conversation | ✅ | ❌ | ✅ | ✅ | ✅ (any server implementing the System One API, see here) | 🆘 |
Legend:
- ✅ means "supported"
- 🆘 means "not supported yet; please help us implement it"
- ❌ means "not supported by the provider"
- no mark means "not applicable" (Google Gen AI and OpenAI Official use the HTTP client of their official SDKs, configurable with
client(...)/openAIClient(...))
Notes:
- "structured" input is named fields (
inputFields(...)). Google AI Gemini, Google Gen AI and OpenAI send them as text, TypeSafe and Ollama as a JSON object. - "conversation" input is a list of
ChatMessages (inputMessages(...)), including tool calls and their results, sent as a JSON transcript (see Conversations). - Images on Ollama need a model with vision, such as Clef.
- Google AI Gemini and Google Gen AI refuse either the whole input or nothing: when they block the input, every question is refused.
- Every implementation reports token usage. OpenAI also reports cached input tokens.