feat: add helper functions for AgenticMessage#582
Merged
mrh997 merged 1 commit intorelease/agentic_modelfrom Dec 1, 2025
Merged
feat: add helper functions for AgenticMessage#582mrh997 merged 1 commit intorelease/agentic_modelfrom
mrh997 merged 1 commit intorelease/agentic_modelfrom
Conversation
d623f0f to
b181caa
Compare
d3f6791 to
705574f
Compare
705574f to
c3e4260
Compare
c3e4260 to
c05d933
Compare
| type UserInputAudio struct { | ||
| URL *string | ||
| Base64Data *string | ||
| URL string |
Contributor
Author
There was a problem hiding this comment.
之前message定的时候没设计好,改成非指针有几个考量点
- 易用性;
- 指针没能发挥出 oneof 的语义,Base64Data 时 MIMEType 必填,URL 时则不需要填 MIMEType。用注释表达会更好一些
Contributor
There was a problem hiding this comment.
gemini url 时 mime type 也是必填
Contributor
Author
There was a problem hiding this comment.
这就是问题了。。各厂商定义不一样,用指针没啥好处
c05d933 to
9ed382a
Compare
9ed382a to
52e2d9e
Compare
52e2d9e to
15d20cd
Compare
mrh997
added a commit
that referenced
this pull request
Dec 22, 2025
mrh997
added a commit
that referenced
this pull request
Jan 6, 2026
mrh997
added a commit
that referenced
this pull request
Jan 6, 2026
mrh997
added a commit
that referenced
this pull request
Jan 15, 2026
mrh997
added a commit
that referenced
this pull request
Jan 15, 2026
mrh997
added a commit
that referenced
this pull request
Jan 22, 2026
mrh997
added a commit
that referenced
this pull request
Jan 22, 2026
mrh997
added a commit
that referenced
this pull request
Feb 24, 2026
mrh997
added a commit
that referenced
this pull request
Mar 12, 2026
shentongmartin
pushed a commit
that referenced
this pull request
Mar 23, 2026
shentongmartin
pushed a commit
that referenced
this pull request
Mar 30, 2026
shentongmartin
pushed a commit
that referenced
this pull request
Apr 7, 2026
shentongmartin
pushed a commit
that referenced
this pull request
Apr 8, 2026
shentongmartin
pushed a commit
that referenced
this pull request
Apr 8, 2026
mrh997
added a commit
that referenced
this pull request
Apr 10, 2026
shentongmartin
pushed a commit
that referenced
this pull request
Apr 13, 2026
shentongmartin
pushed a commit
that referenced
this pull request
Apr 14, 2026
N3kox
pushed a commit
that referenced
this pull request
Apr 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What type of PR is this?
Check the PR title.
(Optional) Translate the PR title into Chinese.
(Optional) More detailed description for this PR(en: English/zh: Chinese).
en:
zh(optional):
(Optional) Which issue(s) this PR fixes:
(optional) The PR that updates user documentation: