Package net.thevpc.naru.api.agent
Interface NaruSession
public interface NaruSession
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddModelAlias(String alias, NaruModelConfig model) voidaddSessionListener(NaruSessionListener listener) agent()copy()eventLog()net.thevpc.nuts.util.NOptional<NaruModelConfig>net.thevpc.nuts.util.NOptional<NaruModelConfig>findModelAlias(String alias) net.thevpc.nuts.util.NOptional<NaruTask>findTask(long tid) long[]findTaskIdsByParent(long taskId) longforegroundTaskId(long taskId) net.thevpc.nuts.util.NOptional<net.thevpc.nuts.elem.NElement>getProjectEnv(String key) net.thevpc.nuts.util.NOptional<Object>getSessionEnv(String key) booleanbooleanvoidlog(NaruLogMode mode, net.thevpc.nuts.text.NMsg s) name()newTask(NaruTaskSpec taskBuilder) net.thevpc.nuts.io.NPathregistry()reload()voidremoveModelAlias(String alias) voidremoveSessionListener(NaruSessionListener listener) reset(boolean preserveIdentity) net.thevpc.nuts.util.NOptional<NaruRoutine>routines()save()voidsetProjectEnv(String key, net.thevpc.nuts.elem.NElement value, NAruVisibility visibility) setSessionEnv(String key, Object value) setVisibility(NAruVisibility visibility) setWorkingDir(net.thevpc.nuts.io.NPath workingDir) voidstart()voidstop()systemPrompt(String systemPrompt) tasks()throttleDelay(long ms) net.thevpc.nuts.elem.NElementunsetSessionEnv(String key) uuid()voidwaitFor()net.thevpc.nuts.io.NPath
-
Method Details
-
getVisibility
NAruVisibility getVisibility() -
throttleDelay
-
scheduler
NaruScheduler scheduler() -
setVisibility
-
agent
NaruAgent agent() -
hasMoreStatements
boolean hasMoreStatements() -
projectDir
net.thevpc.nuts.io.NPath projectDir() -
skillManager
NaruSkillManager skillManager() -
terminate
NaruSession terminate() -
log
-
workingDir
net.thevpc.nuts.io.NPath workingDir() -
setWorkingDir
-
toElement
net.thevpc.nuts.elem.NElement toElement() -
uuid
String uuid() -
restoreSnapshot
NaruSession restoreSnapshot() -
load
-
reload
NaruSession reload() -
save
NaruSession save() -
saveSnapshot
NaruSession saveSnapshot() -
copy
NaruSession copy() -
reset
-
removeModelAlias
-
addModelAlias
-
findModelAlias
-
creationInstant
Instant creationInstant() -
modificationInstant
Instant modificationInstant() -
name
String name() -
setName
-
sessionManager
NaruSessionManager sessionManager() -
registry
NaruRegistry registry() -
findModel
-
modelAliases
Map<String,NaruModelConfig> modelAliases() -
reversedModelAliases
Map<NaruModelConfig,List<String>> reversedModelAliases() -
meteringService
NaruMeteringService meteringService() -
getProjectEnv
-
setProjectEnv
-
getSessionEnv
-
unsetSessionEnv
-
setSessionEnv
-
tasks
-
newTask
-
findTask
-
foregroundTaskId
long foregroundTaskId() -
foregroundTaskId
-
isRunning
boolean isRunning() -
start
void start() -
stop
void stop() -
waitFor
void waitFor() -
systemPrompt
String systemPrompt() -
systemPrompt
-
findTaskIdsByParent
long[] findTaskIdsByParent(long taskId) -
eventLog
NaruSessionEventLog eventLog() -
addSessionListener
-
removeSessionListener
-
routines
List<NaruResourceInfo> routines() -
routine
net.thevpc.nuts.util.NOptional<NaruRoutine> routine(String nameOrPath, NaruTask task, boolean orCreate) -
getSessionEnv
-