HttpAgent
HttpAgent extends AbstractAgent to provide HTTP-based connectivity to remote AI agents. It delegates streaming to a BaseHttpClient implementation and forwards incoming events to subscribers.
Configuration
Use the builder to construct an instance:agentId, threadId, httpClient
Methods
protected void run(RunAgentInput input, IEventStream<BaseEvent> stream)— streams events viahttpClient.streamEventsvoid close()— closes the underlying HTTP client
Builder
Fluent builder with validation. Required fields must be set or anIllegalArgumentException is thrown.