Support images in read file tool
Co-authored-by: Antonio Scandurra <me@as-cii.com> Co-authored-by: Agus Zubiaga <agus@zed.dev>
This commit is contained in:
parent
4d5b22a583
commit
ebc7df2c2e
5 changed files with 137 additions and 86 deletions
|
@ -297,6 +297,12 @@ impl From<String> for LanguageModelToolResultContent {
|
|||
}
|
||||
}
|
||||
|
||||
impl From<LanguageModelImage> for LanguageModelToolResultContent {
|
||||
fn from(image: LanguageModelImage) -> Self {
|
||||
Self::Image(image)
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Serialize, Deserialize, Eq, PartialEq, Hash)]
|
||||
pub enum MessageContent {
|
||||
Text(String),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue