Skip to content

Commit a589589

Browse files
committed
Rename function responses
1 parent d2f48fd commit a589589

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

FirebaseAI/Sources/Types/Public/Live/LiveSession.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,12 @@ public final class LiveSession: Sendable {
3737

3838
/// Response to a ``LiveServerToolCall`` received from the server.
3939
///
40+
/// This method is used both for the realtime API and the incremental API.
41+
///
4042
/// - Parameters:
4143
/// - responses: Client generated function results, matched to their respective
4244
/// ``FunctionCallPart`` by the `functionId` field.
43-
public func functionResponses(_ responses: [FunctionResponsePart]) async {
45+
public func sendFunctionResponses(_ responses: [FunctionResponsePart]) async {
4446
let message = BidiGenerateContentToolResponse(
4547
functionResponses: responses.map { $0.functionResponse }
4648
)

0 commit comments

Comments
 (0)