Class AgentContext
java.lang.Object
net.thevpc.naru.agent.AgentContext
Per-run mutable context shared with all tools.
Stores state that persists across tool calls within a single agent run (e.g. project directory, any discovered metadata).
-
Constructor Summary
ConstructorsConstructorDescriptionAgentContext(String projectDir) AgentContext(net.thevpc.nuts.io.NPath projectDir) -
Method Summary
Modifier and TypeMethodDescriptionnet.thevpc.nuts.io.NPathnet.thevpc.nuts.io.NPathResolve a path against the project directory.voidsetExtraContext(String extraContext) voidsetProjectDir(net.thevpc.nuts.io.NPath projectDir)
-
Constructor Details
-
AgentContext
public AgentContext(net.thevpc.nuts.io.NPath projectDir) -
AgentContext
-
-
Method Details
-
resolve
Resolve a path against the project directory. Ifpathis absolute it is returned as-is. -
getProjectDir
public net.thevpc.nuts.io.NPath getProjectDir() -
setProjectDir
public void setProjectDir(net.thevpc.nuts.io.NPath projectDir) -
getExtraContext
-
setExtraContext
-
getScriptManager
-