mirror of
https://github.com/zed-industries/zed.git
synced 2024-11-07 20:39:04 +03:00
language_model: Remove unused impl
for MessageContent
(#17377)
This PR removes an unused `impl` for the `MessageContent` type. Release Notes: - N/A
This commit is contained in:
parent
200a466200
commit
965b23fffe
@ -174,16 +174,6 @@ pub enum MessageContent {
|
||||
ToolResult(LanguageModelToolResult),
|
||||
}
|
||||
|
||||
impl MessageContent {
|
||||
pub fn as_string(&self) -> &str {
|
||||
match self {
|
||||
MessageContent::Text(text) => text.as_str(),
|
||||
MessageContent::Image(_) => "",
|
||||
MessageContent::ToolResult(tool_result) => tool_result.content.as_str(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl From<String> for MessageContent {
|
||||
fn from(value: String) -> Self {
|
||||
MessageContent::Text(value)
|
||||
|
Loading…
Reference in New Issue
Block a user