copyWithWrapped method
AgentConfigAPIModelInput
copyWithWrapped({
- Wrapped<
String?> ? firstMessage, - Wrapped<
String?> ? language, - Wrapped<
DynamicVariablesConfig?> ? dynamicVariables, - Wrapped<
PromptAgentInput?> ? prompt,
Implementation
AgentConfigAPIModelInput copyWithWrapped(
{Wrapped<String?>? firstMessage,
Wrapped<String?>? language,
Wrapped<DynamicVariablesConfig?>? dynamicVariables,
Wrapped<PromptAgentInput?>? prompt}) {
return AgentConfigAPIModelInput(
firstMessage:
(firstMessage != null ? firstMessage.value : this.firstMessage),
language: (language != null ? language.value : this.language),
dynamicVariables: (dynamicVariables != null
? dynamicVariables.value
: this.dynamicVariables),
prompt: (prompt != null ? prompt.value : this.prompt));
}