Class SessionActParams
-
- All Implemented Interfaces:
-
com.browserbase.api.core.Params
public final class SessionActParams implements Params
Executes a browser action using natural language instructions or a predefined Action object.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classSessionActParams.BuilderA builder for SessionActParams.
public final classSessionActParams.Bodypublic final classSessionActParams.InputNatural language instruction or Action object
public final classSessionActParams.Optionspublic final classSessionActParams.XStreamResponseWhether to stream the response via SSE
-
Method Summary
Modifier and Type Method Description final Optional<String>id()Unique session identifier final Optional<SessionActParams.XStreamResponse>xStreamResponse()Whether to stream the response via SSE final SessionActParams.Inputinput()Natural language instruction or Action object final Optional<String>frameId()Target frame ID for the action final Optional<SessionActParams.Options>options()final JsonField<SessionActParams.Input>_input()Returns the raw JSON value of input. final JsonField<String>_frameId()Returns the raw JSON value of frameId. final JsonField<SessionActParams.Options>_options()Returns the raw JSON value of options. final Map<String, JsonValue>_additionalBodyProperties()final Headers_additionalHeaders()Additional headers to send with the request. final QueryParams_additionalQueryParams()Additional query param to send with the request. final SessionActParams.BuildertoBuilder()final SessionActParams.Body_body()final String_pathParam(Integer index)Headers_headers()The full set of headers in the parameters, including both fixed and additional headers. QueryParams_queryParams()The full set of query params in the parameters, including both fixed and additional query params. Booleanequals(Object other)IntegerhashCode()StringtoString()final static SessionActParams.Builderbuilder()Returns a mutable builder for constructing an instance of SessionActParams. -
-
Method Detail
-
xStreamResponse
final Optional<SessionActParams.XStreamResponse> xStreamResponse()
Whether to stream the response via SSE
-
input
final SessionActParams.Input input()
Natural language instruction or Action object
-
options
final Optional<SessionActParams.Options> options()
-
_input
final JsonField<SessionActParams.Input> _input()
Returns the raw JSON value of input.
Unlike input, this method doesn't throw if the JSON field has an unexpected type.
-
_frameId
final JsonField<String> _frameId()
Returns the raw JSON value of frameId.
Unlike frameId, this method doesn't throw if the JSON field has an unexpected type.
-
_options
final JsonField<SessionActParams.Options> _options()
Returns the raw JSON value of options.
Unlike options, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalBodyProperties
final Map<String, JsonValue> _additionalBodyProperties()
-
_additionalHeaders
final Headers _additionalHeaders()
Additional headers to send with the request.
-
_additionalQueryParams
final QueryParams _additionalQueryParams()
Additional query param to send with the request.
-
toBuilder
final SessionActParams.Builder toBuilder()
-
_body
final SessionActParams.Body _body()
-
_pathParam
final String _pathParam(Integer index)
-
_headers
Headers _headers()
The full set of headers in the parameters, including both fixed and additional headers.
-
_queryParams
QueryParams _queryParams()
The full set of query params in the parameters, including both fixed and additional query params.
-
builder
final static SessionActParams.Builder builder()
Returns a mutable builder for constructing an instance of SessionActParams.
The following fields are required:
.input()
-
-
-
-