Package net.thevpc.naru.ext.models
Class NaruModelProtocolTypes
java.lang.Object
net.thevpc.naru.ext.models.NaruModelProtocolTypes
Registry of wire-protocol types available to config-driven providers.
Built-in types: openapi (OpenAI-compatible),
anthropic (Anthropic Messages API) and gemini (native Google generateContent). Additional types can be
registered programmatically via register(NaruModelProtocolType) before
the custom provider is used; there is no need to add a provider Java class.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic NaruModelProtocolTypenames()static net.thevpc.nuts.util.NOptional<NaruModelProtocolType>Resolves a protocol type by its id (openapi,anthropic,gemini, ...).static void
-
Field Details
-
OPENAPI
- See Also:
-
ANTHROPIC
- See Also:
-
GEMINI
Google's first-classgenerateContentAPI, as opposed to the OpenAI-compatible route. Needed forCachedContentresource caching, which the compatibility layer does not expose.- See Also:
-
-
Method Details
-
register
-
defaultType
-
of
Resolves a protocol type by its id (openapi,anthropic,gemini, ...). Case-insensitive; unknown ids return an empty optional. -
names
-