Class SessionExecuteParams.AgentConfig
-
- All Implemented Interfaces:
public final class SessionExecuteParams.AgentConfig
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classSessionExecuteParams.AgentConfig.BuilderA builder for AgentConfig.
public final classSessionExecuteParams.AgentConfig.ExecutionModelModel configuration object or model name string (e.g., 'openai/gpt-5-nano') for tool execution (observe/act calls within agent tools). If not specified, inherits from the main model configuration.
public final classSessionExecuteParams.AgentConfig.ModeTool mode for the agent (dom, hybrid, cua). If set, overrides cua.
public final classSessionExecuteParams.AgentConfig.ModelModel configuration object or model name string (e.g., 'openai/gpt-5-nano')
public final classSessionExecuteParams.AgentConfig.ProviderAI provider for the agent (legacy, use model: openai/gpt-5-nano instead)
-
Method Summary
Modifier and Type Method Description final Optional<Boolean>cua()Deprecated. final Optional<SessionExecuteParams.AgentConfig.ExecutionModel>executionModel()Model configuration object or model name string (e.g., 'openai/gpt-5-nano') for tool execution (observe/act calls within agent tools). final Optional<SessionExecuteParams.AgentConfig.Mode>mode()Tool mode for the agent (dom, hybrid, cua). final Optional<SessionExecuteParams.AgentConfig.Model>model()Model configuration object or model name string (e.g. final Optional<SessionExecuteParams.AgentConfig.Provider>provider()AI provider for the agent (legacy, use model: openai/gpt-5-nano instead) final Optional<String>systemPrompt()Custom system prompt for the agent final JsonField<Boolean>_cua()Returns the raw JSON value of cua. final JsonField<SessionExecuteParams.AgentConfig.ExecutionModel>_executionModel()Returns the raw JSON value of executionModel. final JsonField<SessionExecuteParams.AgentConfig.Mode>_mode()Returns the raw JSON value of mode. final JsonField<SessionExecuteParams.AgentConfig.Model>_model()Returns the raw JSON value of model. final JsonField<SessionExecuteParams.AgentConfig.Provider>_provider()Returns the raw JSON value of provider. final JsonField<String>_systemPrompt()Returns the raw JSON value of systemPrompt. final Map<String, JsonValue>_additionalProperties()final SessionExecuteParams.AgentConfig.BuildertoBuilder()final SessionExecuteParams.AgentConfigvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static SessionExecuteParams.AgentConfig.Builderbuilder()Returns a mutable builder for constructing an instance of AgentConfig. -
-
Method Detail
-
cua
final Optional<Boolean> cua()
Deprecated. Use mode: 'cua' instead. If both are provided, mode takes precedence.
-
executionModel
final Optional<SessionExecuteParams.AgentConfig.ExecutionModel> executionModel()
Model configuration object or model name string (e.g., 'openai/gpt-5-nano') for tool execution (observe/act calls within agent tools). If not specified, inherits from the main model configuration.
-
mode
final Optional<SessionExecuteParams.AgentConfig.Mode> mode()
Tool mode for the agent (dom, hybrid, cua). If set, overrides cua.
-
model
final Optional<SessionExecuteParams.AgentConfig.Model> model()
Model configuration object or model name string (e.g., 'openai/gpt-5-nano')
-
provider
final Optional<SessionExecuteParams.AgentConfig.Provider> provider()
AI provider for the agent (legacy, use model: openai/gpt-5-nano instead)
-
systemPrompt
final Optional<String> systemPrompt()
Custom system prompt for the agent
-
_cua
final JsonField<Boolean> _cua()
Returns the raw JSON value of cua.
Unlike cua, this method doesn't throw if the JSON field has an unexpected type.
-
_executionModel
final JsonField<SessionExecuteParams.AgentConfig.ExecutionModel> _executionModel()
Returns the raw JSON value of executionModel.
Unlike executionModel, this method doesn't throw if the JSON field has an unexpected type.
-
_mode
final JsonField<SessionExecuteParams.AgentConfig.Mode> _mode()
Returns the raw JSON value of mode.
Unlike mode, this method doesn't throw if the JSON field has an unexpected type.
-
_model
final JsonField<SessionExecuteParams.AgentConfig.Model> _model()
Returns the raw JSON value of model.
Unlike model, this method doesn't throw if the JSON field has an unexpected type.
-
_provider
final JsonField<SessionExecuteParams.AgentConfig.Provider> _provider()
Returns the raw JSON value of provider.
Unlike provider, this method doesn't throw if the JSON field has an unexpected type.
-
_systemPrompt
final JsonField<String> _systemPrompt()
Returns the raw JSON value of systemPrompt.
Unlike systemPrompt, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final SessionExecuteParams.AgentConfig.Builder toBuilder()
-
validate
final SessionExecuteParams.AgentConfig validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static SessionExecuteParams.AgentConfig.Builder builder()
Returns a mutable builder for constructing an instance of AgentConfig.
-
-
-
-