Uses of Class
net.thevpc.naru.api.model.NaruModelRequest
Packages that use NaruModelRequest
-
Uses of NaruModelRequest in net.thevpc.naru.api.model
Methods in net.thevpc.naru.api.model that return NaruModelRequestModifier and TypeMethodDescriptiondefault NaruModelRequestCollapse to the plain request shape.NaruModelRequest.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.NaruModelRequest.withMessages(List<NaruMessage> finalMessages) Methods in net.thevpc.naru.api.model with parameters of type NaruModelRequestModifier and TypeMethodDescriptionNaruModelProtocol.chat(NaruModelRequest request, NaruTask task) Send a chat request with optional tool definitions.default NaruResponseNaruModelProtocol.chatStream(NaruModelRequest request, NaruTask task, NaruStreamHandler handler) Send a chat request, delivering output as it is produced.default NElementNaruCacheAwareRequestSerializer.serialize(NaruModelRequest request, NaruModelConfig model, NaruSession session) NaruCacheAwareRequestSerializer.serialize(NaruModelRequest request, NaruModelConfig model, NaruSession session, NaruCachePlanView plan) Serialize with a resolved caching plan.default NElementNaruCacheAwareRequestSerializer.serialize(NaruModelRequest request, NaruModelConfig model, NaruSession session, NaruCachePlanView plan, boolean stream) Serialise a streamed request with a resolved caching plan.NaruModelRequestSerializer.serialize(NaruModelRequest request, NaruModelConfig model, NaruSession session) default NElementNaruModelRequestSerializer.serialize(NaruModelRequest request, NaruModelConfig model, NaruSession session, boolean stream) Serialise a request that is about to be read incrementally. -
Uses of NaruModelRequest in net.thevpc.naru.api.task
Methods in net.thevpc.naru.api.task that return NaruModelRequestMethods in net.thevpc.naru.api.task with parameters of type NaruModelRequestModifier and TypeMethodDescriptionNaruTask.chat(NaruModelConfig modelKey, NaruModelRequest request)