-
Notifications
You must be signed in to change notification settings - Fork 183
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Davidmotson.auto functions #50
Conversation
includes a builder to make it easier to add functions DO NOT MERGE
…s, and added a type system for automated function calling
generativeai/src/main/java/com/google/ai/client/generativeai/type/BetaGenAiAPI.kt
Outdated
Show resolved
Hide resolved
generativeai/src/main/java/com/google/ai/client/generativeai/GenerativeModel.kt
Outdated
Show resolved
Hide resolved
generativeai/src/main/java/com/google/ai/client/generativeai/GenerativeModel.kt
Outdated
Show resolved
Hide resolved
generativeai/src/main/java/com/google/ai/client/generativeai/internal/util/conversions.kt
Outdated
Show resolved
Hide resolved
generativeai/src/main/java/com/google/ai/client/generativeai/type/FunctionDeclarations.kt
Show resolved
Hide resolved
Co-authored-by: Rodrigo Lazo Paz <[email protected]>
generativeai/src/main/java/com/google/ai/client/generativeai/type/RequestOptions.kt
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Read through a bit of it, will read through the rest later
generativeai/src/main/java/com/google/ai/client/generativeai/Chat.kt
Outdated
Show resolved
Hide resolved
generativeai/src/main/java/com/google/ai/client/generativeai/type/RequestOptions.kt
Show resolved
Hide resolved
generativeai/src/main/java/com/google/ai/client/generativeai/type/FunctionParameter.kt
Show resolved
Hide resolved
generativeai/src/main/java/com/google/ai/client/generativeai/type/Type.kt
Show resolved
Hide resolved
generativeai/src/main/java/com/google/ai/client/generativeai/internal/util/conversions.kt
Outdated
Show resolved
Hide resolved
generativeai/src/main/java/com/google/ai/client/generativeai/Chat.kt
Outdated
Show resolved
Hide resolved
generativeai/src/main/java/com/google/ai/client/generativeai/type/FunctionDeclarations.kt
Outdated
Show resolved
Hide resolved
…hat.kt Co-authored-by: Daymon <[email protected]>
…hat.kt Co-authored-by: Daymon <[email protected]>
We don't need to change the copyright date in the headers. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are there any changes necessary in common? all modifications are in generativeai
@@ -63,7 +73,19 @@ val GenerativeViewModelFactory = object : ViewModelProvider.Factory { | |||
val generativeModel = GenerativeModel( | |||
modelName = "gemini-1.0-pro", | |||
apiKey = BuildConfig.apiKey, | |||
generationConfig = config | |||
generationConfig = config, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given the inconsistent behaviour handling the functions, IMO we should have a separate entry in the sample app for function calling. This will prevent the regular chat example from failing due to an unrelated issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh whoops, this was not an intended part of the commit. I was doing this for my own testing, please ignore.
DO NOT MERGE