Package net.thevpc.naru.api.model
Class NaruModelRequest
java.lang.Object
net.thevpc.naru.api.model.NaruModelRequest
-
Constructor Summary
ConstructorsConstructorDescriptionNaruModelRequest(List<NaruMessage> messages, List<NaruToolDefinition> tools, Map<String, NElement> env) NaruModelRequest(List<NaruMessage> messages, Map<String, NElement> env) -
Method Summary
Modifier and TypeMethodDescriptionenv()booleanmessages()tools()withCacheableContext(NaruCacheableContext cacheableContext) Attach a segmentation.Returns a copy carrying different per-request settings, for a protocol that needs to add one of its own without mutating the caller's request.withMessages(List<NaruMessage> finalMessages)
-
Constructor Details
-
NaruModelRequest
public NaruModelRequest(List<NaruMessage> messages, List<NaruToolDefinition> tools, Map<String, NElement> env) -
NaruModelRequest
-
-
Method Details
-
env
-
messages
-
tools
-
cacheableContext
-
hasCacheableContext
public boolean hasCacheableContext() -
withCacheableContext
Attach a segmentation. The caller is responsible for keeping it consistent withmessages/tools; when both are present providers that understand caching use the segmentation, and everyone else keeps reading the flat fields. -
withMessages
-
withEnv
Returns a copy carrying different per-request settings, for a protocol that needs to add one of its own without mutating the caller's request.
-