public final class HttpAgentTransport extends Object implements AgentTransport
| Constructor and Description |
|---|
HttpAgentTransport(String baseUrl,
String token) |
| Modifier and Type | Method and Description |
|---|---|
ChatResponse |
chat(ChatRequest request,
Consumer<StreamEvent> events) |
String |
createSession(String title,
String workspacePath) |
ChatResponse |
state(String sessionId) |
void |
stop(String runId) |
public HttpAgentTransport(String baseUrl, String token) throws MalformedURLException
MalformedURLExceptionpublic ChatResponse chat(ChatRequest request, Consumer<StreamEvent> events) throws IOException
chat in interface AgentTransportIOExceptionpublic String createSession(String title, String workspacePath) throws IOException
IOExceptionpublic ChatResponse state(String sessionId) throws IOException
IOExceptionpublic void stop(String runId) throws IOException
IOExceptionCopyright © 2026. All rights reserved.