Class SessionExecuteParams.AgentConfig.Builder
-
- All Implemented Interfaces:
public final class SessionExecuteParams.AgentConfig.BuilderA builder for AgentConfig.
-
-
Method Summary
-
-
Method Detail
-
cua
final SessionExecuteParams.AgentConfig.Builder cua(Boolean cua)
Deprecated. Use mode: 'cua' instead. If both are provided, mode takes precedence.
-
cua
final SessionExecuteParams.AgentConfig.Builder cua(JsonField<Boolean> cua)
Sets Builder.cua to an arbitrary JSON value.
You should usually call Builder.cua with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
executionModel
final SessionExecuteParams.AgentConfig.Builder executionModel(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.
-
executionModel
final SessionExecuteParams.AgentConfig.Builder executionModel(JsonField<SessionExecuteParams.AgentConfig.ExecutionModel> executionModel)
Sets Builder.executionModel to an arbitrary JSON value.
You should usually call Builder.executionModel with a well-typed ExecutionModel value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
executionModel
final SessionExecuteParams.AgentConfig.Builder executionModel(ModelConfig modelConfig)
Alias for calling executionModel with
ExecutionModel.ofModelConfig(modelConfig).
-
executionModel
final SessionExecuteParams.AgentConfig.Builder executionModel(String string)
Alias for calling executionModel with
ExecutionModel.ofString(string).
-
mode
final SessionExecuteParams.AgentConfig.Builder mode(SessionExecuteParams.AgentConfig.Mode mode)
Tool mode for the agent (dom, hybrid, cua). If set, overrides cua.
-
mode
final SessionExecuteParams.AgentConfig.Builder mode(JsonField<SessionExecuteParams.AgentConfig.Mode> mode)
Sets Builder.mode to an arbitrary JSON value.
You should usually call Builder.mode with a well-typed Mode value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
model
final SessionExecuteParams.AgentConfig.Builder model(SessionExecuteParams.AgentConfig.Model model)
Model configuration object or model name string (e.g., 'openai/gpt-5-nano')
-
model
final SessionExecuteParams.AgentConfig.Builder model(JsonField<SessionExecuteParams.AgentConfig.Model> model)
Sets Builder.model to an arbitrary JSON value.
You should usually call Builder.model with a well-typed Model value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
model
final SessionExecuteParams.AgentConfig.Builder model(ModelConfig config)
Alias for calling model with
Model.ofConfig(config).
-
model
final SessionExecuteParams.AgentConfig.Builder model(String string)
Alias for calling model with
Model.ofString(string).
-
provider
final SessionExecuteParams.AgentConfig.Builder provider(SessionExecuteParams.AgentConfig.Provider provider)
AI provider for the agent (legacy, use model: openai/gpt-5-nano instead)
-
provider
final SessionExecuteParams.AgentConfig.Builder provider(JsonField<SessionExecuteParams.AgentConfig.Provider> provider)
Sets Builder.provider to an arbitrary JSON value.
You should usually call Builder.provider with a well-typed Provider value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
systemPrompt
final SessionExecuteParams.AgentConfig.Builder systemPrompt(String systemPrompt)
Custom system prompt for the agent
-
systemPrompt
final SessionExecuteParams.AgentConfig.Builder systemPrompt(JsonField<String> systemPrompt)
Sets Builder.systemPrompt to an arbitrary JSON value.
You should usually call Builder.systemPrompt with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final SessionExecuteParams.AgentConfig.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final SessionExecuteParams.AgentConfig.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final SessionExecuteParams.AgentConfig.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final SessionExecuteParams.AgentConfig.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final SessionExecuteParams.AgentConfig.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final SessionExecuteParams.AgentConfig build()
Returns an immutable instance of AgentConfig.
Further updates to this Builder will not mutate the returned instance.
-
-
-
-