Class SseServerParameters
java.lang.Object
com.google.adk.tools.mcp.SseServerParameters
Parameters for establishing a MCP Server-Sent Events (SSE) connection.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SseServerParameters.Builderbuilder()Creates a new builder forSseServerParameters.headers()Optional headers to include in the SSE connection request.abstract @Nullable StringThe endpoint to connect to on the SSE server.abstract @Nullable DurationThe timeout for reading data from the SSE stream.abstract @Nullable Durationtimeout()The timeout for the initial connection attempt.abstract Stringurl()The URL of the SSE server.
-
Constructor Details
-
SseServerParameters
public SseServerParameters()
-
-
Method Details
-
url
The URL of the SSE server. -
sseEndpoint
The endpoint to connect to on the SSE server. -
headers
-
timeout
The timeout for the initial connection attempt. -
sseReadTimeout
The timeout for reading data from the SSE stream. -
builder
Creates a new builder forSseServerParameters.
-