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

Davidmotson.code execution #186

Merged
merged 7 commits into from
Jun 28, 2024
Merged

Davidmotson.code execution #186

merged 7 commits into from
Jun 28, 2024

Conversation

davidmotson
Copy link
Collaborator

No description provided.

@davidmotson davidmotson requested a review from rlazo June 27, 2024 16:44
@davidmotson davidmotson enabled auto-merge (squash) June 27, 2024 18:36
@davidmotson davidmotson merged commit 69329f7 into main Jun 28, 2024
6 checks passed
@davidmotson davidmotson deleted the davidmotson.code_execution branch June 28, 2024 09:21
@karloti
Copy link

karloti commented Jun 28, 2024

This is a very, very good opportunity to have executable parts, especially if multiple languages are supported (like Kotlin 🥇).

@@ -71,6 +76,18 @@ data class FileData(

@Serializable data class Blob(@SerialName("mime_type") val mimeType: String, val data: Base64)

@Serializable data class ExecutableCode(val language: String, val code: String)

@Serializable data class CodeExecutionResult(val outcome: Outcome, val output: String)

Choose a reason for hiding this comment

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

@rlazo output is an optional field in the proto. How about we decode this as "" if the field is omitted?

PatilShreyas pushed a commit to PatilShreyas/generative-ai-kmp that referenced this pull request Sep 21, 2024
PatilShreyas pushed a commit to PatilShreyas/generative-ai-kmp that referenced this pull request Sep 21, 2024
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.

4 participants