Add the snapshot repository
Add the snapshot repository
Resolve
0.32.1-SNAPSHOT from the Central snapshot repository, with snapshots enabled:agent-client-claude supplies ClaudeClientProvider, the Claude Code lifecycle provider these examples run against.
See Using development snapshots from main for pinning one build and reading its provenance.Source on GitHub main
docs/examples/tutorials/ConversationServer.java, compiled and run offline by the agent-client buildAgentClient at startup and closes it at shutdown. HTTP requests never build their own
client. Each conversation is a retained AgentSession. The application keeps the map from its own conversation id to
the session, so a later request can find the conversation and continue it.
runAsync(); the turn joins the same
history. An id the server does not know is an error, never a silent new conversation:
runAsync() returns at once with an AgentExecution. Call result() to wait for the answer, or hand the execution to
whatever streams the reply back. One conversation runs one turn at a time; for several users in one conversation, see
the shared conversation tutorial.
The full class is ConversationServer.java. Its main runs it against
Claude Code with ClaudeClientProvider.
The build compiles this tutorial from docs/examples/tutorials and runs it against OfflineProvider, an offline
stand-in that makes no model call (agent-client-tutorials, ConversationServerTest). A live Claude Code run is not part of the build.