public final class AgentRunner extends Object implements AutoCloseable
| Modifier and Type | Class and Description |
|---|---|
static class |
AgentRunner.Builder |
| Modifier and Type | Method and Description |
|---|---|
static AgentRunner.Builder |
builder(String server,
Path stateDirectory)
Creates a runner with a persistent identity and local execution journal.
|
void |
close()
Stops polling and signals the active tool.
|
ChatResponse |
recover(String session)
Explicitly submits saved results; never re-executes a pending tool to recover its result.
|
String |
runnerId() |
void |
serve()
Registers tools and receives jobs on the calling thread until close is called.
|
public static AgentRunner.Builder builder(String server, Path stateDirectory)
public String runnerId()
public void serve()
throws Exception
Exceptionpublic ChatResponse recover(String session) throws Exception
Exceptionpublic void close()
close in interface AutoCloseableCopyright © 2026–1980. All rights reserved.