Skip to content

Commit ec3e02b

Browse files
committed
functino calling improvements
1 parent 0214867 commit ec3e02b

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed

firebase-vertexai/src/main/kotlin/com/google/firebase/vertexai/Chat.kt

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,11 @@ public class Chat(
5151
private var lock = Semaphore(1)
5252

5353
/**
54-
* Sends a message using the provided [prompt]; automatically providing the existing [history] as context.
54+
* Sends a message using the provided [prompt]; automatically providing the existing [history] as
55+
* context.
5556
*
56-
* If successful, the message and response will be added to the [history]. If unsuccessful, [history]
57-
* will remain unchanged.
57+
* If successful, the message and response will be added to the [history]. If unsuccessful,
58+
* [history] will remain unchanged.
5859
*
5960
* @param prompt The input that, together with the history, will be given to the model as the
6061
* prompt.
@@ -75,10 +76,11 @@ public class Chat(
7576
}
7677

7778
/**
78-
* Sends a message using the provided [text prompt][prompt]; automatically providing the existing [history] as context.
79+
* Sends a message using the provided [text prompt][prompt]; automatically providing the existing
80+
* [history] as context.
7981
*
80-
* If successful, the message and response will be added to the [history]. If unsuccessful, [history]
81-
* will remain unchanged.
82+
* If successful, the message and response will be added to the [history]. If unsuccessful,
83+
* [history] will remain unchanged.
8284
*
8385
* @param prompt The input that, together with the history, will be given to the model as the
8486
* prompt.

firebase-vertexai/src/main/kotlin/com/google/firebase/vertexai/type/FunctionCallingConfig.kt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,11 @@
1616

1717
package com.google.firebase.vertexai.type
1818

19-
/** The configuration that specifies the function calling behavior. */
19+
/**
20+
* The configuration that specifies the function calling behavior.
21+
*
22+
* See the static methods in the `companion object` for the list of available behaviors.
23+
*/
2024
public class FunctionCallingConfig
2125
internal constructor(
2226
internal val mode: Mode,

0 commit comments

Comments
 (0)