Package com.google.genkit.client
Class RemoteAgentOptions
java.lang.Object
com.google.genkit.client.RemoteAgentOptions
Options for configuring a
RemoteAgent HTTP client.
Build with builder().
url()— the agent turn endpoint (e.g.http://host:8080/myAgent).getSnapshotUrl()— companion snapshot endpoint; defaults tourl + "/getSnapshot".abortUrl()— companion abort endpoint; defaults tourl + "/abort".headers()— optional extra request headers.serverManaged()— whether state is server-managed; defaulttrue.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionabortUrl()Returns the companion abort URL (defaults tourl + "/abort").static RemoteAgentOptions.Builderbuilder()Creates a builder forRemoteAgentOptions.Returns the companion getSnapshot URL (defaults tourl + "/getSnapshot").headers()Returns extra HTTP request headers sent on every request.booleanReturns whether the agent is server-managed (defaulttrue).url()Returns the agent turn endpoint URL.
-
Method Details
-
builder
Creates a builder forRemoteAgentOptions.- Returns:
- a new builder
-
url
Returns the agent turn endpoint URL.- Returns:
- the URL
-
getSnapshotUrl
Returns the companion getSnapshot URL (defaults tourl + "/getSnapshot").- Returns:
- the getSnapshot URL
-
abortUrl
Returns the companion abort URL (defaults tourl + "/abort").- Returns:
- the abort URL
-
headers
Returns extra HTTP request headers sent on every request.- Returns:
- an unmodifiable map of headers (never null)
-
serverManaged
public boolean serverManaged()Returns whether the agent is server-managed (defaulttrue).- Returns:
trueif server-managed
-