Skip to content
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

add code execution samples #198

Merged

Conversation

davidmotson
Copy link
Collaborator

No description provided.

@davidmotson davidmotson requested a review from rlazo July 10, 2024 20:15

val response = model.generateContent("What is the sum of the first 50 prime numbers?")

println(response.text)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the same comment I had with Python, I think we should use executableCode too? See

https://github.com/google-gemini/generative-ai-python/pull/451/files#r1672978021

@davidmotson davidmotson merged commit 8c76dff into rl.sample.snippet.initial Jul 10, 2024
6 checks passed
@davidmotson davidmotson deleted the davidmotson.code_execution_sample branch July 10, 2024 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants