Uses of Interface
net.thevpc.naru.api.agent.NaruSession
Packages that use NaruSession
Package
Description
-
Uses of NaruSession in net.thevpc.naru.api.agent
Methods in net.thevpc.naru.api.agent that return NaruSessionModifier and TypeMethodDescriptionNaruSessionBuilder.build()Creates the session without starting it.NaruSession.copy()NaruSession.foregroundTaskId(long taskId) NaruSession.reload()NaruSession.reset(boolean preserveIdentity) NaruSession.restoreSnapshot()NaruSession.save()NaruSession.saveSnapshot()NaruSession.setListedModels(List<NaruModelKey> models) Records the models displayed by a/modellisting so subsequent/model use <n>calls resolve indexes against the same rows.NaruSession.setSessionEnv(String key, Object value) NaruSession.setVisibility(NaruVisibility visibility) NaruSession.setWorkingDir(NPath workingDir) NaruSession.start()NaruSession.stop()NaruSession.systemPrompt(String systemPrompt) NaruSession.terminate()NaruSession.throttleDelay(long ms) NaruSession.unsetSessionEnv(String key) NaruSession.waitFor()Methods in net.thevpc.naru.api.agent that return types with arguments of type NaruSessionModifier and TypeMethodDescriptionLooks up a running session by its id.NaruAgent.sessions()The sessions currently running under this agent.Methods in net.thevpc.naru.api.agent with parameters of type NaruSessionModifier and TypeMethodDescriptionvoidNaruSessionListener.onSessionReloaded(NaruSession naruSession) voidNaruInteraction.open(NaruSession session) Called once when the session starts, before any task runs.voidNaruSessionListener.sessionStarted(NaruSession session) voidNaruSessionListener.sessionStopped(NaruSession session) -
Uses of NaruSession in net.thevpc.naru.api.model
Methods in net.thevpc.naru.api.model with parameters of type NaruSessionModifier and TypeMethodDescriptionAbstractNaruModelProvider.apiKey(NaruSession session) NaruModelProvider.apiKey(NaruSession session) NaruModelProvider.findModelIds(NaruSession session) Fetch the list of available models from this provider.NaruModelProvider.getProtocol(NaruModelConfig model, NaruSession session) default voidNaruModelProvider.installModel(NaruModelKey key, NaruSession session) default booleanNaruModelProvider.isAvailable(NaruSession session) Whether this provider is currently reachable/usable.default List<NaruModelPsResult>NaruModelProvider.psModel(NaruSession session) 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.default voidNaruModelProvider.uninstallModel(NaruModelKey key, NaruSession session) default voidNaruModelProvider.unloadModel(NaruModelKey key, NaruSession session) -
Uses of NaruSession in net.thevpc.naru.api.registry
Methods in net.thevpc.naru.api.registry with parameters of type NaruSessionModifier and TypeMethodDescriptionNaruRegistry.findModel(String keyOrName, NaruSession session) NaruSessionExtension.load(NaruSession session, NPath file) Restores state fromfile, which may not exist.NaruRegistry.modelsInfos(NaruSession session) NaruRegistry.modelsKeys(NaruSession session) voidDefaultNaruToolset.open(NaruSession session) default voidNaruSessionExtension.open(NaruSession session) Called after#load(NaruSession)and before any task runs.voidNaruToolset.open(NaruSession session) NaruRegistry.protocol(NaruModelConfig model, NaruSession session) default List<NArgCompleteCandidate>NaruDirective.resolveCandidates(NCmdLine cmdLine, NArgCompletePosition pos, NaruSession session) Resolve autocomplete candidates for this directive.NaruDirectiveBase.AbstractSubCommand.resolveCandidates(NCmdLine cmdLine, NArgCompletePosition pos, NaruSession session) NaruDirectiveBase.resolveCandidates(NCmdLine cmdLine, NArgCompletePosition pos, NaruSession session) NaruDirectiveBase.SubCommand.resolveCandidates(NCmdLine cmdLine, NArgCompletePosition pos, NaruSession session) default NElementNaruSessionExtension.save(NaruSession session) Snapshots state for persistence. -
Uses of NaruSession in net.thevpc.naru.api.task
Methods in net.thevpc.naru.api.task that return NaruSession -
Uses of NaruSession in net.thevpc.naru.api.util
Methods in net.thevpc.naru.api.util with parameters of type NaruSessionModifier and TypeMethodDescriptionstatic NTextNaruTerminalFormatter.formatDirective(String b, NaruSession session) static NTextNaruTerminalFormatter.formatInput(String b, NaruSession session) Constructors in net.thevpc.naru.api.util with parameters of type NaruSession