Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions Sources/ElevenLabsSwift/ElevenLabsSwift.swift
Original file line number Diff line number Diff line change
Expand Up @@ -281,21 +281,24 @@ public class ElevenLabsSDK {
public struct SessionConfig: Sendable {
public let signedUrl: String?
public let agentId: String?
public let userId: String?
public let overrides: ConversationConfigOverride?
public let customLlmExtraBody: [String: LlmExtraBodyValue]?
public let dynamicVariables: [String: DynamicVariableValue]?

public init(signedUrl: String, overrides: ConversationConfigOverride? = nil, customLlmExtraBody: [String: LlmExtraBodyValue]? = nil, clientTools _: ClientTools = ClientTools(), dynamicVariables: [String: DynamicVariableValue]? = nil) {
public init(signedUrl: String, userId: String? = nil, overrides: ConversationConfigOverride? = nil, customLlmExtraBody: [String: LlmExtraBodyValue]? = nil, clientTools _: ClientTools = ClientTools(), dynamicVariables: [String: DynamicVariableValue]? = nil) {
self.signedUrl = signedUrl
agentId = nil
self.userId = userId
self.overrides = overrides
self.customLlmExtraBody = customLlmExtraBody
self.dynamicVariables = dynamicVariables
}

public init(agentId: String, overrides: ConversationConfigOverride? = nil, customLlmExtraBody: [String: LlmExtraBodyValue]? = nil, clientTools _: ClientTools = ClientTools(), dynamicVariables: [String: DynamicVariableValue]? = nil) {
public init(agentId: String, userId: String? = nil, overrides: ConversationConfigOverride? = nil, customLlmExtraBody: [String: LlmExtraBodyValue]? = nil, clientTools _: ClientTools = ClientTools(), dynamicVariables: [String: DynamicVariableValue]? = nil) {
self.agentId = agentId
signedUrl = nil
self.userId = userId
self.overrides = overrides
self.customLlmExtraBody = customLlmExtraBody
self.dynamicVariables = dynamicVariables
Expand Down
Loading