Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- abbreviate(String, int) - Static method in class net.thevpc.naru.ext.models.util.NaruModelUtils
- AbstractOpenAICompatProvider - Class in net.thevpc.naru.ext.models.openapi
-
Base class for OpenAI-compatible cloud providers (Groq, Cerebras, OpenRouter, GitHub Models, ...).
- AbstractOpenAICompatProvider(String, String[]) - Constructor for class net.thevpc.naru.ext.models.openapi.AbstractOpenAICompatProvider
- ANTHROPIC - Static variable in class net.thevpc.naru.ext.models.NaruModelProtocolTypes
- API_VERSION - Static variable in class net.thevpc.naru.ext.models.gemini.NaruModelProtocolGeminiNative
- apiKey(NaruTask) - Method in class net.thevpc.naru.ext.models.NaruModelProtocolBase
- apiKeyConfigKey() - Method in class net.thevpc.naru.ext.models.NaruModelProtocolBase
- apply(NaruSession, String, String, NaruCachingMode, NaruModelRequest) - Static method in class net.thevpc.naru.ext.models.cache.NaruModelCaching
-
Plan, and remember the chain in the same turn.
B
- baseline(String, String, NaruCachingMode) - Method in class net.thevpc.naru.ext.models.cache.NaruModelCacheExtension
- baseUrl(NaruSession) - Method in class net.thevpc.naru.ext.models.cerebras.NaruCerebrasProvider
- baseUrl(NaruSession) - Method in class net.thevpc.naru.ext.models.colibri.NaruColibriProvider
- baseUrl(NaruSession) - Method in class net.thevpc.naru.ext.models.custom.NaruCustomProvider
- baseUrl(NaruSession) - Method in class net.thevpc.naru.ext.models.gemini.NaruGeminiProvider
- baseUrl(NaruSession) - Method in class net.thevpc.naru.ext.models.github.NaruGitHubModelsProvider
- baseUrl(NaruSession) - Method in class net.thevpc.naru.ext.models.groq.NaruGroqProvider
- baseUrl(NaruSession) - Method in class net.thevpc.naru.ext.models.mistral.NaruMistralProvider
- baseUrl(NaruSession) - Method in class net.thevpc.naru.ext.models.ollama.NaruOllamaProvider
- baseUrl(NaruSession) - Method in class net.thevpc.naru.ext.models.openapi.AbstractOpenAICompatProvider
-
Fallback base url when
<name>.urlconfig is not set. - baseUrl(NaruSession) - Method in class net.thevpc.naru.ext.models.openrouter.NaruOpenRouterProvider
- baseUrl(NaruSession) - Method in class net.thevpc.naru.ext.models.xai.NaruXaiProvider
C
- cacheBreakpoints(int) - Method in class net.thevpc.naru.ext.models.cache.NaruCachePlan
-
Indices after which a client-controlled breakpoint should be placed.
- cachingMode() - Method in class net.thevpc.naru.ext.models.NaruModelCapabilitiesImpl
- capabilities - Variable in class net.thevpc.naru.ext.models.NaruModelProtocolBase
- chain(List<NaruContextSegment>) - Static method in class net.thevpc.naru.ext.models.cache.NaruCacheKeyChain
-
The hash chain over the given segments, in order.
- chat(NaruModelRequest, NaruTask) - Method in class net.thevpc.naru.ext.models.NaruModelProtocolBase
- chatPath - Variable in class net.thevpc.naru.ext.models.NaruModelProtocolBase
- chatPath() - Method in class net.thevpc.naru.ext.models.colibri.NaruColibriProvider
- chatPath() - Method in class net.thevpc.naru.ext.models.openapi.AbstractOpenAICompatProvider
- chatPath(NaruTask, Map<String, NElement>) - Method in class net.thevpc.naru.ext.models.gemini.NaruModelProtocolGeminiNative
-
Gemini puts the model in the path, and uses a colon to select the action:
models/gemini-2.5-pro:generateContent. - chatPath(NaruTask, Map<String, NElement>) - Method in class net.thevpc.naru.ext.models.NaruModelProtocolBase
-
The endpoint to POST to, relative to the base url.
- chatStream(NaruModelRequest, NaruTask, NaruStreamHandler) - Method in class net.thevpc.naru.ext.models.ollama.NaruModelProtocolOllamaNative
- chatStream(NaruModelRequest, NaruTask, NaruStreamHandler) - Method in class net.thevpc.naru.ext.models.openapi.NaruModelProtocolOpenAICompat
- checkValidRoutineName(String) - Static method in class net.thevpc.naru.ext.models.util.NaruModelUtils
- classifyStatus(NHttpResponse, AtomicReference<NDuration>) - Method in class net.thevpc.naru.ext.models.NaruModelProtocolBase
-
Classifies a response status into "proceed" or "this attempt failed".
- clear() - Method in class net.thevpc.naru.ext.models.cache.NaruModelCacheExtension
- clearResource(String, String, NaruCachingMode) - Method in class net.thevpc.naru.ext.models.cache.NaruModelCacheExtension
-
Drop a resource reference without discarding the chain, so the next turn can still reuse the prefix it already proved.
- close() - Method in class net.thevpc.naru.ext.models.cache.NaruModelCacheExtension
- close() - Method in class net.thevpc.naru.ext.models.stream.NaruSseReader
- commit(String, String, NaruCachingMode, List<String>, long) - Method in class net.thevpc.naru.ext.models.cache.NaruModelCacheExtension
-
Record the chain this turn actually sent, so the next turn can tell a hit from a miss.
- commit(NaruSession, String, String, NaruCachingMode, NaruCacheableContext) - Static method in class net.thevpc.naru.ext.models.cache.NaruModelCaching
-
Record the prefix actually sent, so the next turn can detect a hit.
- commitCacheState(NaruModelRequest, NaruCachePlanView, NaruCachingMode, NaruTask) - Method in class net.thevpc.naru.ext.models.NaruModelProtocolBase
-
Remember the prefix this turn actually sent.
- commitResource(String, String, NaruCachingMode, String, long, List<String>, long) - Method in class net.thevpc.naru.ext.models.cache.NaruModelCacheExtension
-
Associate a stateful cache resource with this target.
- configPrefix - Variable in class net.thevpc.naru.ext.models.NaruModelProtocolBase
- connectTimeout(NaruSession) - Method in class net.thevpc.naru.ext.models.openapi.AbstractOpenAICompatProvider
- connectTimeout(NaruTask, Map<String, NElement>) - Method in class net.thevpc.naru.ext.models.NaruModelProtocolBase
- contextLength() - Method in class net.thevpc.naru.ext.models.NaruModelCapabilitiesImpl
- create(NaruModelProvider, NaruModelConfig, String, String, NaruModelCapabilities, String) - Method in interface net.thevpc.naru.ext.models.NaruModelProtocolType
- createProtocol(NaruModelConfig, NaruModelCapabilities, NaruSession) - Method in class net.thevpc.naru.ext.models.colibri.NaruColibriProvider
- createProtocol(NaruModelConfig, NaruModelCapabilities, NaruSession) - Method in class net.thevpc.naru.ext.models.mistral.NaruMistralProvider
- createProtocol(NaruModelConfig, NaruModelCapabilities, NaruSession) - Method in class net.thevpc.naru.ext.models.ollama.NaruOllamaProvider
- createProtocol(NaruModelConfig, NaruModelCapabilities, NaruSession) - Method in class net.thevpc.naru.ext.models.openapi.AbstractOpenAICompatProvider
- createProtocol(NaruModelConfig, NaruModelCapabilities, NaruSession) - Method in class net.thevpc.naru.ext.models.openrouter.NaruOpenRouterProvider
D
- data() - Method in record class net.thevpc.naru.ext.models.stream.NaruSseReader.Event
-
Returns the value of the
datarecord component. - DEFAULT_BASE_URL - Static variable in class net.thevpc.naru.ext.models.gemini.NaruModelProtocolGeminiNative
- defaultBaseUrl - Variable in class net.thevpc.naru.ext.models.anthropic.NaruModelProtocolAnthropicCompat
-
Fallback base url used when config key
<configPrefix>.urlis not set. - defaultBaseUrl - Variable in class net.thevpc.naru.ext.models.openapi.NaruModelProtocolOpenAICompat
-
Fallback base url used when config key
<configPrefix>.urlis not set. - defaultType() - Static method in class net.thevpc.naru.ext.models.NaruModelProtocolTypes
- divergenceIndex() - Method in class net.thevpc.naru.ext.models.cache.NaruCachePlan
-
First segment index that is not a continuation of the cached prefix.
- DONE - Static variable in class net.thevpc.naru.ext.models.stream.NaruSseReader
-
The end-of-stream sentinel every OpenAI-compatible server sends, as a bare data payload.
E
- empty() - Static method in class net.thevpc.naru.ext.models.cache.NaruCacheBaseline
- equals(Object) - Method in class net.thevpc.naru.ext.models.NaruModelCapabilitiesImpl
- equals(Object) - Method in record class net.thevpc.naru.ext.models.stream.NaruSseReader.Event
-
Indicates whether some other object is "equal to" this one.
- Event(String, String, String) - Constructor for record class net.thevpc.naru.ext.models.stream.NaruSseReader.Event
-
Creates an instance of a
Eventrecord class.
F
- fetchLiveModelIds(NaruSession) - Method in class net.thevpc.naru.ext.models.openapi.AbstractOpenAICompatProvider
- fetchPrepaidBalanceCents(String, String, NaruSession) - Method in class net.thevpc.naru.ext.models.xai.NaruXaiProvider
-
Checks prepaid credit balance via the xAI Management API.
- findModelIds(NaruSession) - Method in class net.thevpc.naru.ext.models.cerebras.NaruCerebrasProvider
- findModelIds(NaruSession) - Method in class net.thevpc.naru.ext.models.colibri.NaruColibriProvider
- findModelIds(NaruSession) - Method in class net.thevpc.naru.ext.models.custom.NaruCustomProvider
- findModelIds(NaruSession) - Method in class net.thevpc.naru.ext.models.gemini.NaruGeminiProvider
- findModelIds(NaruSession) - Method in class net.thevpc.naru.ext.models.github.NaruGitHubModelsProvider
- findModelIds(NaruSession) - Method in class net.thevpc.naru.ext.models.groq.NaruGroqProvider
- findModelIds(NaruSession) - Method in class net.thevpc.naru.ext.models.mistral.NaruMistralProvider
- findModelIds(NaruSession) - Method in class net.thevpc.naru.ext.models.ollama.NaruOllamaProvider
- findModelIds(NaruSession) - Method in class net.thevpc.naru.ext.models.openapi.AbstractOpenAICompatProvider
- findModelIds(NaruSession) - Method in class net.thevpc.naru.ext.models.openrouter.NaruOpenRouterProvider
- findModelIdsWithLiveFallback(NaruSession, List<String>) - Method in class net.thevpc.naru.ext.models.openapi.AbstractOpenAICompatProvider
- finish(boolean) - Method in class net.thevpc.naru.ext.models.ollama.NaruOllamaNativeStreamParser
- finish(boolean) - Method in class net.thevpc.naru.ext.models.openapi.NaruOpenApiStreamParser
-
Closes the stream and assembles the response.
- finish(boolean) - Method in class net.thevpc.naru.ext.models.stream.NaruSseResponseParser
-
Assembles the response once reading has stopped.
- formatDirective(String) - Static method in class net.thevpc.naru.ext.models.util.NaruModelUtils
- fromElement(NElement) - Static method in class net.thevpc.naru.ext.models.cache.NaruCacheBaseline
-
Reads a baseline back.
G
- GEMINI - Static variable in class net.thevpc.naru.ext.models.NaruModelProtocolTypes
-
Google's first-class
generateContentAPI, as opposed to the OpenAI-compatible route. - getCachedResourceId() - Method in class net.thevpc.naru.ext.models.cache.NaruCacheBaseline
- getCachingMode() - Method in class net.thevpc.naru.ext.models.cache.NaruCacheBaseline
- getCapabilities() - Method in class net.thevpc.naru.ext.models.NaruModelProtocolBase
- getModelName() - Method in class net.thevpc.naru.ext.models.cache.NaruCacheBaseline
- getProtocol(NaruModelConfig, NaruSession) - Method in class net.thevpc.naru.ext.models.custom.NaruCustomProvider
- getProtocol(NaruModelConfig, NaruSession) - Method in class net.thevpc.naru.ext.models.openapi.AbstractOpenAICompatProvider
- getProviderName() - Method in class net.thevpc.naru.ext.models.cache.NaruCacheBaseline
- getResourceExpiresAt() - Method in class net.thevpc.naru.ext.models.cache.NaruCacheBaseline
- getResponseString() - Method in error net.thevpc.naru.ext.models.NaruModelProtocolBase.NonRetryableWebException
- getSegmentKeys() - Method in class net.thevpc.naru.ext.models.cache.NaruCacheBaseline
- getUpdatedAt() - Method in class net.thevpc.naru.ext.models.cache.NaruCacheBaseline
H
- hasDeliveredContent() - Method in class net.thevpc.naru.ext.models.ollama.NaruOllamaNativeStreamParser
- hasDeliveredContent() - Method in class net.thevpc.naru.ext.models.openapi.NaruOpenApiStreamParser
- hasDeliveredContent() - Method in interface net.thevpc.naru.ext.models.stream.NaruStreamResponseParser
-
Whether any user-visible output has already been delivered.
- hashCode() - Method in class net.thevpc.naru.ext.models.NaruModelCapabilitiesImpl
- hashCode() - Method in record class net.thevpc.naru.ext.models.stream.NaruSseReader.Event
-
Returns a hash code value for this object.
- hasNoCredits(NHttpResponse) - Method in class net.thevpc.naru.ext.models.xai.NaruXaiProvider
-
Zero-balance / no-funds detection without a separate Management API key: xAI's inference endpoints return a distinguishable 403 with code "permission-denied" and a message mentioning credits/licenses when a team has no funds.
I
- id() - Method in record class net.thevpc.naru.ext.models.stream.NaruSseReader.Event
-
Returns the value of the
idrecord component. - installModel(NaruModelKey, NaruSession) - Method in class net.thevpc.naru.ext.models.ollama.NaruOllamaProvider
- isApiKeySet(NaruSession) - Method in class net.thevpc.naru.ext.models.openapi.AbstractOpenAICompatProvider
- isAvailable(NaruSession) - Method in class net.thevpc.naru.ext.models.colibri.NaruColibriProvider
- isAvailable(NaruSession) - Method in class net.thevpc.naru.ext.models.custom.NaruCustomProvider
- isCacheHit(int) - Method in class net.thevpc.naru.ext.models.cache.NaruCachePlan
-
Whether a cache marker should be attached after segment
i. - isCancelled() - Method in class net.thevpc.naru.ext.models.ollama.NaruOllamaNativeStreamParser
-
Polled between documents, which is where a cancel lands.
- isCancelled() - Method in class net.thevpc.naru.ext.models.openapi.NaruOpenApiStreamParser
- isCancelled() - Method in class net.thevpc.naru.ext.models.stream.NaruSseResponseParser
-
Polled between events, which is where a cancel lands.
- isEmbedding() - Method in class net.thevpc.naru.ext.models.NaruModelCapabilitiesImpl
- isPath(String) - Static method in class net.thevpc.naru.ext.models.util.NaruModelUtils
- isReachable(String) - Method in class net.thevpc.naru.ext.models.openapi.AbstractOpenAICompatProvider
-
Short-timeout liveness probe on the given url with a small TTL cache.
- isResourceUsable(long, long) - Method in class net.thevpc.naru.ext.models.cache.NaruCacheBaseline
-
Whether a cached resource id may still be trusted at
now. - isStreaming() - Method in class net.thevpc.naru.ext.models.NaruModelCapabilitiesImpl
- isSupportedInstallModel() - Method in class net.thevpc.naru.ext.models.ollama.NaruOllamaProvider
- isSupportedPsModel() - Method in class net.thevpc.naru.ext.models.ollama.NaruOllamaProvider
- isSupportedUninstallModel() - Method in class net.thevpc.naru.ext.models.ollama.NaruOllamaProvider
- isSupportedUnloadModel() - Method in class net.thevpc.naru.ext.models.ollama.NaruOllamaProvider
- isTextOnly() - Method in class net.thevpc.naru.ext.models.NaruModelCapabilitiesImpl
- isThinking() - Method in class net.thevpc.naru.ext.models.NaruModelCapabilitiesImpl
- isTools() - Method in class net.thevpc.naru.ext.models.NaruModelCapabilitiesImpl
- isValid(int) - Method in class net.thevpc.naru.ext.models.cache.NaruCachePlan
-
Whether segment
ican keep whatever cache state it already had. - isValidRoutineName(String) - Static method in class net.thevpc.naru.ext.models.util.NaruModelUtils
- isVision() - Method in class net.thevpc.naru.ext.models.NaruModelCapabilitiesImpl
K
- keys() - Method in class net.thevpc.naru.ext.models.NaruModelCapabilitiesImpl
L
- LineRange(int) - Constructor for class net.thevpc.naru.ext.models.util.NaruModelUtils.LineRange
- LineRange(int, int) - Constructor for class net.thevpc.naru.ext.models.util.NaruModelUtils.LineRange
- load(NaruSession, NPath) - Method in class net.thevpc.naru.ext.models.cache.NaruModelCacheExtension
- logAudit(NaruTask, NaruSession, String, String, NHttpRequest, Object, NHttpResponse, Object, Throwable, int, NDuration, Instant) - Static method in class net.thevpc.naru.ext.models.util.NaruModelUtils
- logWebRequest(NHttpRequest, NMsg, Object) - Static method in class net.thevpc.naru.ext.models.util.NaruModelUtils
- logWebResponse(NHttpRequest, NMsg, Object, Object, NChronometer) - Static method in class net.thevpc.naru.ext.models.util.NaruModelUtils
M
- maskHeaderValue(String, String) - Static method in class net.thevpc.naru.ext.models.util.NaruModelUtils
- matches(String, String, NaruCachingMode) - Method in class net.thevpc.naru.ext.models.cache.NaruCacheBaseline
-
Whether this baseline can be compared against a request for the given provider/model/mode.
- MAX_CACHE_BREAKPOINTS - Static variable in class net.thevpc.naru.ext.models.anthropic.NaruAnthropicRequestSerializer
-
Anthropic rejects a request carrying more than four cache breakpoints.
- maxRetries(NaruTask, Map<String, NElement>) - Method in class net.thevpc.naru.ext.models.NaruModelProtocolBase
- mode() - Method in class net.thevpc.naru.ext.models.cache.NaruCachePlan
- model - Variable in class net.thevpc.naru.ext.models.NaruModelProtocolBase
- modelsPath() - Method in class net.thevpc.naru.ext.models.colibri.NaruColibriProvider
- modelsPath() - Method in class net.thevpc.naru.ext.models.openapi.AbstractOpenAICompatProvider
N
- name() - Method in class net.thevpc.naru.ext.models.cache.NaruModelCacheExtension
- name() - Method in interface net.thevpc.naru.ext.models.NaruModelProtocolType
-
Protocol type id, e.g.
- name() - Method in record class net.thevpc.naru.ext.models.stream.NaruSseReader.Event
-
Returns the value of the
namerecord component. - NAME - Static variable in class net.thevpc.naru.ext.models.cache.NaruModelCacheExtension
- names() - Static method in class net.thevpc.naru.ext.models.NaruModelProtocolTypes
- NaruAnthropicRequestSerializer - Class in net.thevpc.naru.ext.models.anthropic
-
Serializes a
NaruModelRequestinto the Anthropic Messages API wire format: - NaruAnthropicRequestSerializer() - Constructor for class net.thevpc.naru.ext.models.anthropic.NaruAnthropicRequestSerializer
- NaruAnthropicResponseParser - Class in net.thevpc.naru.ext.models.anthropic
-
Parses an Anthropic Messages API response:
- NaruAnthropicResponseParser() - Constructor for class net.thevpc.naru.ext.models.anthropic.NaruAnthropicResponseParser
- NaruCacheBaseline - Class in net.thevpc.naru.ext.models.cache
-
The last cache identity this session established, persisted between turns.
- NaruCacheBaseline(String, String, NaruCachingMode, List<String>, String, long, long) - Constructor for class net.thevpc.naru.ext.models.cache.NaruCacheBaseline
- NaruCacheKeyChain - Class in net.thevpc.naru.ext.models.cache
-
Computes the cache identity of a segmented context as a hash chain rather than as a set of independent per-segment hashes.
- NaruCachePlan - Class in net.thevpc.naru.ext.models.cache
-
The caching decision for one request: which segments are a continuation of the previously cached prefix, and where a client-controlled cache marker should go.
- NaruCerebrasProvider - Class in net.thevpc.naru.ext.models.cerebras
-
Cerebras provider — free-tier, high-speed inference for open models through Cerebras' OpenAI-compatible API.
- NaruCerebrasProvider() - Constructor for class net.thevpc.naru.ext.models.cerebras.NaruCerebrasProvider
- NaruColibriProvider - Class in net.thevpc.naru.ext.models.colibri
-
Colibri provider — talks to a local Colibri OpenAI-compatible server (e.g.
- NaruColibriProvider() - Constructor for class net.thevpc.naru.ext.models.colibri.NaruColibriProvider
- NaruCustomProvider - Class in net.thevpc.naru.ext.models.custom
-
Generic config-driven provider: lets users point NARU at any wire-compatible endpoint (OpenAI-compatible, Anthropic Messages, ...) with zero code.
- NaruCustomProvider() - Constructor for class net.thevpc.naru.ext.models.custom.NaruCustomProvider
- NaruGeminiNativeRequestSerializer - Class in net.thevpc.naru.ext.models.gemini
-
Serializes a
NaruModelRequestinto the native GeminigenerateContentwire format. - NaruGeminiNativeRequestSerializer() - Constructor for class net.thevpc.naru.ext.models.gemini.NaruGeminiNativeRequestSerializer
- NaruGeminiNativeResponseParser - Class in net.thevpc.naru.ext.models.gemini
-
Parses a native Gemini
generateContentresponse. - NaruGeminiNativeResponseParser() - Constructor for class net.thevpc.naru.ext.models.gemini.NaruGeminiNativeResponseParser
- NaruGeminiProvider - Class in net.thevpc.naru.ext.models.gemini
-
Gemini provider — talks to Google AI Studio through the OpenAI-compatible router.
- NaruGeminiProvider() - Constructor for class net.thevpc.naru.ext.models.gemini.NaruGeminiProvider
- NaruGitHubModelsProvider - Class in net.thevpc.naru.ext.models.github
-
GitHub Models provider — free inference for a curated catalog of models using any GitHub Personal Access Token (PAT).
- NaruGitHubModelsProvider() - Constructor for class net.thevpc.naru.ext.models.github.NaruGitHubModelsProvider
- NaruGroqProvider - Class in net.thevpc.naru.ext.models.groq
-
Groq provider — free-tier, ultra-fast inference for open models through Groq's OpenAI-compatible API.
- NaruGroqProvider() - Constructor for class net.thevpc.naru.ext.models.groq.NaruGroqProvider
- NaruMistralProvider - Class in net.thevpc.naru.ext.models.mistral
- NaruMistralProvider() - Constructor for class net.thevpc.naru.ext.models.mistral.NaruMistralProvider
- NaruModelCacheExtension - Class in net.thevpc.naru.ext.models.cache
-
Per-session prompt-cache bookkeeping.
- NaruModelCacheExtension() - Constructor for class net.thevpc.naru.ext.models.cache.NaruModelCacheExtension
- NaruModelCaching - Class in net.thevpc.naru.ext.models.cache
-
Runtime entry point for prompt caching: given a request and a provider's declared support, decide what prefix (if any) can be reused, and remember what was actually sent.
- NaruModelCapabilitiesImpl - Class in net.thevpc.naru.ext.models
- NaruModelCapabilitiesImpl(boolean, boolean, boolean, boolean, long) - Constructor for class net.thevpc.naru.ext.models.NaruModelCapabilitiesImpl
-
Convenience for genuinely unknown capabilities, where no caching claim can be justified.
- NaruModelCapabilitiesImpl(boolean, boolean, boolean, boolean, long, NaruCachingMode) - Constructor for class net.thevpc.naru.ext.models.NaruModelCapabilitiesImpl
- NaruModelCapabilitiesImpl(boolean, boolean, boolean, boolean, long, NaruCachingMode, boolean) - Constructor for class net.thevpc.naru.ext.models.NaruModelCapabilitiesImpl
- NaruModelCapabilitiesImpl(NElement) - Constructor for class net.thevpc.naru.ext.models.NaruModelCapabilitiesImpl
- NaruModelProtocolAnthropicCompat - Class in net.thevpc.naru.ext.models.anthropic
-
Anthropic Messages API wire protocol (
POST {base}/v1/messages). - NaruModelProtocolAnthropicCompat(NaruModelProvider, NaruModelConfig, String, String, NaruModelCapabilities) - Constructor for class net.thevpc.naru.ext.models.anthropic.NaruModelProtocolAnthropicCompat
- NaruModelProtocolAnthropicCompat(NaruModelProvider, NaruModelConfig, String, String, NaruModelCapabilities, String) - Constructor for class net.thevpc.naru.ext.models.anthropic.NaruModelProtocolAnthropicCompat
- NaruModelProtocolBase - Class in net.thevpc.naru.ext.models
- NaruModelProtocolBase(NaruModelProvider, NaruModelConfig, String, String, NaruModelCapabilities, NaruModelRequestSerializer, NElementDeserializer<NaruResponse>) - Constructor for class net.thevpc.naru.ext.models.NaruModelProtocolBase
- NaruModelProtocolBase.NonRetryableWebException - Error in net.thevpc.naru.ext.models
- NaruModelProtocolGeminiNative - Class in net.thevpc.naru.ext.models.gemini
-
Native Gemini
generateContentprotocol. - NaruModelProtocolGeminiNative(NaruModelProvider, NaruModelConfig, String, String, NaruModelCapabilities, String) - Constructor for class net.thevpc.naru.ext.models.gemini.NaruModelProtocolGeminiNative
- NaruModelProtocolMistral - Class in net.thevpc.naru.ext.models.mistral
- NaruModelProtocolMistral(NaruModelProvider, NaruModelConfig, String, NaruModelCapabilities) - Constructor for class net.thevpc.naru.ext.models.mistral.NaruModelProtocolMistral
- NaruModelProtocolOllamaNative - Class in net.thevpc.naru.ext.models.ollama
- NaruModelProtocolOllamaNative(NaruModelProvider, NaruModelConfig, String, NaruModelCapabilities) - Constructor for class net.thevpc.naru.ext.models.ollama.NaruModelProtocolOllamaNative
- NaruModelProtocolOllamaOpenApiCompat - Class in net.thevpc.naru.ext.models.ollama
- NaruModelProtocolOllamaOpenApiCompat(NaruModelProvider, NaruModelConfig, String, NaruModelCapabilities) - Constructor for class net.thevpc.naru.ext.models.ollama.NaruModelProtocolOllamaOpenApiCompat
- NaruModelProtocolOpenAICompat - Class in net.thevpc.naru.ext.models.openapi
- NaruModelProtocolOpenAICompat(NaruModelProvider, NaruModelConfig, String, String, NaruModelCapabilities) - Constructor for class net.thevpc.naru.ext.models.openapi.NaruModelProtocolOpenAICompat
- NaruModelProtocolOpenAICompat(NaruModelProvider, NaruModelConfig, String, String, NaruModelCapabilities, String) - Constructor for class net.thevpc.naru.ext.models.openapi.NaruModelProtocolOpenAICompat
- NaruModelProtocolType - Interface in net.thevpc.naru.ext.models
-
Factory that builds a
NaruModelProtocolfor a given wire-protocol type (currentlyopenapiandanthropic). - NaruModelProtocolTypes - Class in net.thevpc.naru.ext.models
-
Registry of wire-protocol types available to config-driven providers.
- NaruModelUtils - Class in net.thevpc.naru.ext.models.util
- NaruModelUtils() - Constructor for class net.thevpc.naru.ext.models.util.NaruModelUtils
- NaruModelUtils.LineRange - Class in net.thevpc.naru.ext.models.util
- NaruOllamaNativeRequestSerializer - Class in net.thevpc.naru.ext.models.ollama
- NaruOllamaNativeRequestSerializer() - Constructor for class net.thevpc.naru.ext.models.ollama.NaruOllamaNativeRequestSerializer
- NaruOllamaNativeResponseParser - Class in net.thevpc.naru.ext.models.ollama
- NaruOllamaNativeResponseParser() - Constructor for class net.thevpc.naru.ext.models.ollama.NaruOllamaNativeResponseParser
- NaruOllamaNativeStreamParser - Class in net.thevpc.naru.ext.models.ollama
-
Reads Ollama's
/api/chatstream. - NaruOllamaNativeStreamParser(String, NaruStreamHandler, NaruModelConfig) - Constructor for class net.thevpc.naru.ext.models.ollama.NaruOllamaNativeStreamParser
- NaruOllamaProvider - Class in net.thevpc.naru.ext.models.ollama
-
Ollama provider — talks to a local (or remote) Ollama server via REST.
- NaruOllamaProvider() - Constructor for class net.thevpc.naru.ext.models.ollama.NaruOllamaProvider
- NaruOllamaProvider(String) - Constructor for class net.thevpc.naru.ext.models.ollama.NaruOllamaProvider
- NaruOpenApiRequestSerializer - Class in net.thevpc.naru.ext.models.openapi
- NaruOpenApiRequestSerializer() - Constructor for class net.thevpc.naru.ext.models.openapi.NaruOpenApiRequestSerializer
- NaruOpenApiResponseParser - Class in net.thevpc.naru.ext.models.openapi
-
{ "choices" : [ { "finish_reason" : "tool_calls", "index" : 0, "message" : { "role" : "assistant", "tool_calls" : [ { "function" : { "arguments" : "{\"path\":\"core/nut-api\",\"include\":\"*.java\",\"recursive\":true}", "name" : "folder_find" }, "id" : "function-call-11464485064754065774", "type" : "function" } ] } } ], "created" : 1779459950, "id" : "bWcQau20G9n2nsEPs9z20Qw", "model" : "gemini-2.5-flash", "object" : "chat.completion", "usage" : { "completion_tokens" : 28, "prompt_tokens" : 4500, "total_tokens" : 4592 } }
- NaruOpenApiResponseParser() - Constructor for class net.thevpc.naru.ext.models.openapi.NaruOpenApiResponseParser
- NaruOpenApiStreamParser - Class in net.thevpc.naru.ext.models.openapi
-
Turns an OpenAI-compatible
text/event-streaminto chunks and, at the end, into the sameNaruResponsethe batch parser produces. - NaruOpenApiStreamParser(String, NaruStreamHandler, NaruModelConfig) - Constructor for class net.thevpc.naru.ext.models.openapi.NaruOpenApiStreamParser
- NaruOpenRouterProvider - Class in net.thevpc.naru.ext.models.openrouter
-
OpenRouter provider — one API key gives access to hundreds of models, including a rotating set of
:freevariants. - NaruOpenRouterProvider() - Constructor for class net.thevpc.naru.ext.models.openrouter.NaruOpenRouterProvider
- NaruSseReader - Class in net.thevpc.naru.ext.models.stream
-
Pull-based reader for
text/event-streambodies. - NaruSseReader(Reader) - Constructor for class net.thevpc.naru.ext.models.stream.NaruSseReader
- NaruSseReader.Event - Record Class in net.thevpc.naru.ext.models.stream
-
One dispatched server-sent event.
- NaruSseResponseParser - Class in net.thevpc.naru.ext.models.stream
-
Base for protocols whose stream arrives as
text/event-stream. - NaruSseResponseParser() - Constructor for class net.thevpc.naru.ext.models.stream.NaruSseResponseParser
- NaruStreamResponseParser - Interface in net.thevpc.naru.ext.models.stream
-
Reads a successful HTTP response as a sequence of model events and returns the assembled result.
- NaruXaiProvider - Class in net.thevpc.naru.ext.models.xai
- NaruXaiProvider() - Constructor for class net.thevpc.naru.ext.models.xai.NaruXaiProvider
- nElementReader - Variable in class net.thevpc.naru.ext.models.NaruModelProtocolBase
- net.thevpc.naru.ext.models - package net.thevpc.naru.ext.models
- net.thevpc.naru.ext.models.anthropic - package net.thevpc.naru.ext.models.anthropic
- net.thevpc.naru.ext.models.cache - package net.thevpc.naru.ext.models.cache
- net.thevpc.naru.ext.models.cerebras - package net.thevpc.naru.ext.models.cerebras
- net.thevpc.naru.ext.models.colibri - package net.thevpc.naru.ext.models.colibri
- net.thevpc.naru.ext.models.custom - package net.thevpc.naru.ext.models.custom
- net.thevpc.naru.ext.models.gemini - package net.thevpc.naru.ext.models.gemini
- net.thevpc.naru.ext.models.github - package net.thevpc.naru.ext.models.github
- net.thevpc.naru.ext.models.groq - package net.thevpc.naru.ext.models.groq
- net.thevpc.naru.ext.models.mistral - package net.thevpc.naru.ext.models.mistral
- net.thevpc.naru.ext.models.ollama - package net.thevpc.naru.ext.models.ollama
- net.thevpc.naru.ext.models.openapi - package net.thevpc.naru.ext.models.openapi
- net.thevpc.naru.ext.models.openrouter - package net.thevpc.naru.ext.models.openrouter
- net.thevpc.naru.ext.models.stream - package net.thevpc.naru.ext.models.stream
- net.thevpc.naru.ext.models.util - package net.thevpc.naru.ext.models.util
- net.thevpc.naru.ext.models.xai - package net.thevpc.naru.ext.models.xai
- NonRetryableWebException(Throwable, String) - Constructor for error net.thevpc.naru.ext.models.NaruModelProtocolBase.NonRetryableWebException
- NoToolWrapHelper - Class in net.thevpc.naru.ext.models
- NoToolWrapHelper() - Constructor for class net.thevpc.naru.ext.models.NoToolWrapHelper
- NoToolWrapHelper.Separators - Class in net.thevpc.naru.ext.models
O
- of(String) - Static method in class net.thevpc.naru.ext.models.NaruModelProtocolTypes
-
Resolves a protocol type by its id (
openapi,anthropic,gemini, ...). - of(String) - Static method in record class net.thevpc.naru.ext.models.stream.NaruSseReader.Event
- of(String) - Static method in class net.thevpc.naru.ext.models.stream.NaruSseReader
-
Convenience for tests and for replaying a captured body.
- of(NaruSession) - Static method in class net.thevpc.naru.ext.models.cache.NaruModelCacheExtension
-
The instance for a session, or null when the extension was not registered.
- of(NaruCacheableContext, NaruCacheBaseline, String, String, NaruCachingMode) - Static method in class net.thevpc.naru.ext.models.cache.NaruCachePlan
-
Decide the plan for a request.
- onEvent(String, String) - Method in class net.thevpc.naru.ext.models.openapi.NaruOpenApiStreamParser
-
Consumes one SSE frame.
- onEvent(String, String) - Method in class net.thevpc.naru.ext.models.stream.NaruSseResponseParser
-
Consumes one event payload.
- onLine(String) - Method in class net.thevpc.naru.ext.models.ollama.NaruOllamaNativeStreamParser
-
Consumes one NDJSON document.
- onResponseReceived(NHttpResponse, NaruTask) - Method in class net.thevpc.naru.ext.models.mistral.NaruModelProtocolMistral
- onResponseReceived(NHttpResponse, NaruTask) - Method in class net.thevpc.naru.ext.models.NaruModelProtocolBase
- OPENAPI - Static variable in class net.thevpc.naru.ext.models.NaruModelProtocolTypes
P
- paramToSchema(NaruToolParameter) - Static method in class net.thevpc.naru.ext.models.openapi.NaruOpenApiRequestSerializer
- parseArguments(NElement) - Static method in class net.thevpc.naru.ext.models.openapi.NaruOpenApiResponseParser
- parseEmbeddedToolCalls(String) - Static method in class net.thevpc.naru.ext.models.openapi.NaruOpenApiResponseParser
- parseEnv(String) - Static method in class net.thevpc.naru.ext.models.util.NaruModelUtils
- parseEnv(NElement) - Static method in class net.thevpc.naru.ext.models.util.NaruModelUtils
- parseInput(NElement) - Static method in class net.thevpc.naru.ext.models.anthropic.NaruAnthropicResponseParser
- parseRanges(NCmdLine) - Static method in class net.thevpc.naru.ext.models.util.NaruModelUtils
- parseResponse(String) - Method in class net.thevpc.naru.ext.models.NaruModelProtocolBase
- parseRetryAfter(NHttpResponse) - Static method in class net.thevpc.naru.ext.models.util.NaruModelUtils
- parseXmlLikeToolCall(String) - Static method in class net.thevpc.naru.ext.models.NaruModelProtocolBase
- plan(NaruSession, String, String, NaruCachingMode, NaruModelRequest) - Static method in class net.thevpc.naru.ext.models.cache.NaruModelCaching
-
Plan a turn.
- prepareRequest(NHttpRequest, NElement, NaruTask) - Method in class net.thevpc.naru.ext.models.anthropic.NaruModelProtocolAnthropicCompat
- prepareRequest(NHttpRequest, NElement, NaruTask) - Method in class net.thevpc.naru.ext.models.NaruModelProtocolBase
- prepareRequest(NHttpRequest, NElement, NaruTask) - Method in class net.thevpc.naru.ext.models.openapi.NaruModelProtocolOpenAICompat
- preprocessRequest(NaruModelRequest, NaruTask) - Method in class net.thevpc.naru.ext.models.mistral.NaruModelProtocolMistral
- preprocessRequest(NaruModelRequest, NaruTask) - Method in class net.thevpc.naru.ext.models.NaruModelProtocolBase
- preprocessRequest(NaruModelRequest, NaruTask) - Method in class net.thevpc.naru.ext.models.ollama.NaruModelProtocolOllamaNative
-
Defaults
thinkfrom the model's declared capability, and lets an explicit request orollama.thinksetting win. - protocols - Variable in class net.thevpc.naru.ext.models.openapi.AbstractOpenAICompatProvider
- provider - Variable in class net.thevpc.naru.ext.models.NaruModelProtocolBase
- provider() - Method in class net.thevpc.naru.ext.models.NaruModelProtocolBase
- providerName() - Method in class net.thevpc.naru.ext.models.NaruModelProtocolBase
- psModel(NaruSession) - Method in class net.thevpc.naru.ext.models.ollama.NaruOllamaProvider
R
- read() - Method in class net.thevpc.naru.ext.models.stream.NaruSseReader
-
The next event, blocking until one is complete.
- read(NHttpResponse) - Method in class net.thevpc.naru.ext.models.ollama.NaruOllamaNativeStreamParser
- read(NHttpResponse) - Method in class net.thevpc.naru.ext.models.stream.NaruSseResponseParser
- read(NHttpResponse) - Method in interface net.thevpc.naru.ext.models.stream.NaruStreamResponseParser
-
Consumes the body incrementally and returns the assembled response.
- readAll() - Method in class net.thevpc.naru.ext.models.stream.NaruSseReader
-
Consumes the whole remaining stream, which is what a caller that only wants the assembled response does.
- readTimeout(NaruSession) - Method in class net.thevpc.naru.ext.models.openapi.AbstractOpenAICompatProvider
- readTimeout(NaruTask, Map<String, NElement>) - Method in class net.thevpc.naru.ext.models.NaruModelProtocolBase
- register(NaruModelProtocolType) - Static method in class net.thevpc.naru.ext.models.NaruModelProtocolTypes
- resolveCapabilities(String, NaruSession) - Method in class net.thevpc.naru.ext.models.cerebras.NaruCerebrasProvider
- resolveCapabilities(String, NaruSession) - Method in class net.thevpc.naru.ext.models.colibri.NaruColibriProvider
- resolveCapabilities(String, NaruSession) - Method in class net.thevpc.naru.ext.models.custom.NaruCustomProvider
- resolveCapabilities(String, NaruSession) - Method in class net.thevpc.naru.ext.models.gemini.NaruGeminiProvider
-
Statically maps model limits since cloud-hosted capabilities cannot be polled natively.
- resolveCapabilities(String, NaruSession) - Method in class net.thevpc.naru.ext.models.github.NaruGitHubModelsProvider
- resolveCapabilities(String, NaruSession) - Method in class net.thevpc.naru.ext.models.groq.NaruGroqProvider
- resolveCapabilities(String, NaruSession) - Method in class net.thevpc.naru.ext.models.mistral.NaruMistralProvider
-
Statically maps model limits since cloud-hosted capabilities cannot be polled natively.
- resolveCapabilities(String, NaruSession) - Method in class net.thevpc.naru.ext.models.ollama.NaruOllamaProvider
- resolveCapabilities(String, NaruSession) - Method in class net.thevpc.naru.ext.models.openapi.AbstractOpenAICompatProvider
-
Statically maps capabilities since cloud-hosted capabilities cannot be polled natively.
- resolveCapabilities(String, NaruSession) - Method in class net.thevpc.naru.ext.models.openrouter.NaruOpenRouterProvider
- resolveCapabilities(String, NaruSession) - Method in class net.thevpc.naru.ext.models.xai.NaruXaiProvider
- resolveIndexes(NaruModelUtils.LineRange[], int) - Static method in class net.thevpc.naru.ext.models.util.NaruModelUtils
- resolveTaskAuditPaths(NaruTask, NaruSession) - Static method in class net.thevpc.naru.ext.models.util.NaruModelUtils
- RESOURCE_SAFETY_MARGIN_MILLIS - Static variable in class net.thevpc.naru.ext.models.cache.NaruModelCaching
-
Milliseconds before a stateful resource's stated expiry at which we stop trusting it.
- resourcePrefix(List<Integer>) - Method in class net.thevpc.naru.ext.models.cache.NaruCachePlan
-
The stable prefix a stateful provider should freeze into a cached resource: everything up to and including the last chosen breakpoint.
- retryPeriod(NaruTask, Map<String, NElement>) - Method in class net.thevpc.naru.ext.models.NaruModelProtocolBase
S
- save(NaruSession) - Method in class net.thevpc.naru.ext.models.cache.NaruModelCacheExtension
- SCHEMA_VERSION - Static variable in class net.thevpc.naru.ext.models.cache.NaruCacheBaseline
-
Bumped if the on-disk shape changes in a way older readers cannot handle.
- segmentCount() - Method in class net.thevpc.naru.ext.models.cache.NaruCachePlan
- segmentKeys() - Method in class net.thevpc.naru.ext.models.cache.NaruCachePlan
-
The chain for this request, to be stored as the next baseline.
- segments() - Method in class net.thevpc.naru.ext.models.cache.NaruCachePlan
- Separators(String, String) - Constructor for class net.thevpc.naru.ext.models.NoToolWrapHelper.Separators
- serialize(NaruModelRequest, NaruCachePlanView, NaruTask) - Method in class net.thevpc.naru.ext.models.NaruModelProtocolBase
-
Serialise with the cache plan when the provider's serializer understands one, and otherwise fall back to the plain three-argument call.
- serialize(NaruModelRequest, NaruCachePlanView, NaruTask, boolean) - Method in class net.thevpc.naru.ext.models.NaruModelProtocolBase
-
Serialise, adding the streaming flag when the body is going to be read incrementally.
- serialize(NaruModelRequest, NaruModelConfig, NaruSession) - Method in class net.thevpc.naru.ext.models.ollama.NaruOllamaNativeRequestSerializer
- serialize(NaruModelRequest, NaruModelConfig, NaruSession) - Method in class net.thevpc.naru.ext.models.openapi.NaruOpenApiRequestSerializer
- serialize(NaruModelRequest, NaruModelConfig, NaruSession, boolean) - Method in class net.thevpc.naru.ext.models.ollama.NaruOllamaNativeRequestSerializer
- serialize(NaruModelRequest, NaruModelConfig, NaruSession, boolean) - Method in class net.thevpc.naru.ext.models.openapi.NaruOpenApiRequestSerializer
- serialize(NaruModelRequest, NaruModelConfig, NaruSession, NaruCachePlanView) - Method in class net.thevpc.naru.ext.models.anthropic.NaruAnthropicRequestSerializer
- serialize(NaruModelRequest, NaruModelConfig, NaruSession, NaruCachePlanView) - Method in class net.thevpc.naru.ext.models.gemini.NaruGeminiNativeRequestSerializer
- serializer - Variable in class net.thevpc.naru.ext.models.NaruModelProtocolBase
- sha256(String) - Static method in class net.thevpc.naru.ext.models.cache.NaruCacheKeyChain
-
SHA-256, hex encoded.
- streamChat(NaruModelRequest, NaruTask, NaruStreamResponseParser) - Method in class net.thevpc.naru.ext.models.NaruModelProtocolBase
-
Runs a streamed call, retrying only while nothing has been delivered.
T
- THINK_ENV - Static variable in class net.thevpc.naru.ext.models.ollama.NaruModelProtocolOllamaNative
-
Request env key carrying the
thinkflag sent to Ollama. - toElement() - Method in class net.thevpc.naru.ext.models.cache.NaruCacheBaseline
- toElement() - Method in class net.thevpc.naru.ext.models.NaruModelCapabilitiesImpl
- toObject(NElementDeserializerContext) - Method in class net.thevpc.naru.ext.models.anthropic.NaruAnthropicResponseParser
- toObject(NElementDeserializerContext) - Method in class net.thevpc.naru.ext.models.gemini.NaruGeminiNativeResponseParser
- toObject(NElementDeserializerContext) - Method in class net.thevpc.naru.ext.models.ollama.NaruOllamaNativeResponseParser
- toObject(NElementDeserializerContext) - Method in class net.thevpc.naru.ext.models.openapi.NaruOpenApiResponseParser
- TOOL_CALL_SEP - Static variable in class net.thevpc.naru.ext.models.NoToolWrapHelper
- TOOL_RESULT_SEP - Static variable in class net.thevpc.naru.ext.models.NoToolWrapHelper
- toString() - Method in class net.thevpc.naru.ext.models.cache.NaruCachePlan
- toString() - Method in class net.thevpc.naru.ext.models.NaruModelCapabilitiesImpl
- toString() - Method in record class net.thevpc.naru.ext.models.stream.NaruSseReader.Event
-
Returns a string representation of this record class.
U
- uninstallModel(NaruModelKey, NaruSession) - Method in class net.thevpc.naru.ext.models.ollama.NaruOllamaProvider
- UNKNOWN - Static variable in class net.thevpc.naru.ext.models.NaruModelCapabilitiesImpl
- unloadModel(NaruModelKey, NaruSession) - Method in class net.thevpc.naru.ext.models.ollama.NaruOllamaProvider
- unwrapResponse(NaruResponse, NoToolWrapHelper.Separators, NaruTask) - Static method in class net.thevpc.naru.ext.models.NoToolWrapHelper
- url(NaruTask, Map<String, NElement>) - Method in class net.thevpc.naru.ext.models.anthropic.NaruModelProtocolAnthropicCompat
- url(NaruTask, Map<String, NElement>) - Method in class net.thevpc.naru.ext.models.gemini.NaruModelProtocolGeminiNative
- url(NaruTask, Map<String, NElement>) - Method in class net.thevpc.naru.ext.models.NaruModelProtocolBase
- url(NaruTask, Map<String, NElement>) - Method in class net.thevpc.naru.ext.models.openapi.NaruModelProtocolOpenAICompat
V
- validPrefix() - Method in class net.thevpc.naru.ext.models.cache.NaruCachePlan
-
How many leading segments remain a valid continuation of the cached prefix.
- validPrefixLength(List<String>, List<String>) - Static method in class net.thevpc.naru.ext.models.cache.NaruCacheKeyChain
-
How many leading segments are still a valid continuation of the previously cached prefix.
- volatileSuffix() - Method in class net.thevpc.naru.ext.models.cache.NaruCachePlan
-
The segments sent fresh on this request: everything from the first cache miss onwards, plus any segment after the cached prefix that is not itself eligible.
W
- withResource(String, long, long) - Method in class net.thevpc.naru.ext.models.cache.NaruCacheBaseline
- withSegmentKeys(List<String>) - Method in class net.thevpc.naru.ext.models.cache.NaruCacheBaseline
- withUpdatedAt(long) - Method in class net.thevpc.naru.ext.models.cache.NaruCacheBaseline
- wrapRequest(NaruModelRequest, NoToolWrapHelper.Separators, NoToolWrapHelper.Separators) - Static method in class net.thevpc.naru.ext.models.NoToolWrapHelper
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form