NIMMessageAIConfigParams class

Annotations
  • @JsonSerializable.new(explicitToJson: true)

Constructors

NIMMessageAIConfigParams({String? accountId, NIMAIModelCallContent? content, List<NIMAIModelCallMessage?>? messages, String? promptVariables, NIMAIModelConfigParams? modelConfigParams, bool aiStream = false})
NIMMessageAIConfigParams.fromJson(Map<String, dynamic> map)
factory

Properties

accountId String?
数字人的 accountId
getter/setter pair
aiStream bool
是否是流式响应,默认false
getter/setter pair
content NIMAIModelCallContent?
请求大模型的内容
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
messages List<NIMAIModelCallMessage?>?
上下文内容 当前只支持文本消息
getter/setter pair
modelConfigParams NIMAIModelConfigParams?
请求接口模型相关参数配置, 如果参数不为空,则默认覆盖控制相关配置
getter/setter pair
promptVariables String?
提示词变量占位符替换 JSON 格式的字符串 用于填充prompt中的变量
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited