

























@@ -7277,7 +7277,9 @@ public struct ChatSendParams: Codable, Sendable {
72777277public let sessionid: String?
72787278public let message: String
72797279public let thinking: String?
7280-public let fastmode: Bool?
7280+public let fastmodevalue: AnyCodable?
7281+public var fastmode: Bool? { fastmodevalue?.value as? Bool }
7282+public let fastautoonseconds: Int?
72817283public let deliver: Bool?
72827284public let originatingchannel: String?
72837285public let originatingto: String?
@@ -7296,7 +7298,8 @@ public struct ChatSendParams: Codable, Sendable {
72967298 sessionid: String?,
72977299 message: String,
72987300 thinking: String?,
7299- fastmode: Bool?,
7301+ fastmodevalue: AnyCodable?,
7302+ fastautoonseconds: Int?,
73007303 deliver: Bool?,
73017304 originatingchannel: String?,
73027305 originatingto: String?,
@@ -7314,7 +7317,8 @@ public struct ChatSendParams: Codable, Sendable {
73147317self.sessionid = sessionid
73157318self.message = message
73167319self.thinking = thinking
7317-self.fastmode = fastmode
7320+self.fastmodevalue = fastmodevalue
7321+self.fastautoonseconds = fastautoonseconds
73187322self.deliver = deliver
73197323self.originatingchannel = originatingchannel
73207324self.originatingto = originatingto
@@ -7328,13 +7332,54 @@ public struct ChatSendParams: Codable, Sendable {
73287332self.idempotencykey = idempotencykey
73297333}
733073347335+public init(
7336+ sessionkey: String,
7337+ agentid: String? = nil,
7338+ sessionid: String?,
7339+ message: String,
7340+ thinking: String?,
7341+ fastmode: Bool?,
7342+ deliver: Bool?,
7343+ originatingchannel: String?,
7344+ originatingto: String?,
7345+ originatingaccountid: String?,
7346+ originatingthreadid: String?,
7347+ attachments: [AnyCodable]?,
7348+ timeoutms: Int?,
7349+ systeminputprovenance: [String: AnyCodable]?,
7350+ systemprovenancereceipt: String?,
7351+ suppresscommandinterpretation: Bool?,
7352+ idempotencykey: String)
7353+{
7354+self.init(
7355+ sessionkey: sessionkey,
7356+ agentid: agentid,
7357+ sessionid: sessionid,
7358+ message: message,
7359+ thinking: thinking,
7360+ fastmodevalue: fastmode.map { AnyCodable($0) },
7361+ fastautoonseconds: nil,
7362+ deliver: deliver,
7363+ originatingchannel: originatingchannel,
7364+ originatingto: originatingto,
7365+ originatingaccountid: originatingaccountid,
7366+ originatingthreadid: originatingthreadid,
7367+ attachments: attachments,
7368+ timeoutms: timeoutms,
7369+ systeminputprovenance: systeminputprovenance,
7370+ systemprovenancereceipt: systemprovenancereceipt,
7371+ suppresscommandinterpretation: suppresscommandinterpretation,
7372+ idempotencykey: idempotencykey)
7373+}
7374+73317375private enum CodingKeys: String, CodingKey {
73327376case sessionkey = "sessionKey"
73337377case agentid = "agentId"
73347378case sessionid = "sessionId"
73357379case message
73367380case thinking
7337-case fastmode = "fastMode"
7381+case fastmodevalue = "fastMode"
7382+case fastautoonseconds = "fastAutoOnSeconds"
73387383case deliver
73397384case originatingchannel = "originatingChannel"
73407385case originatingto = "originatingTo"
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。