language_model: Use LanguageModelToolUseId instead of a String (#25666)
This PR updates the `LanguageModelToolResult` type to use a `LanguageModelToolUseId` for the tool use ID instead of a `String`. Release Notes: - N/A
This commit is contained in:
@@ -513,7 +513,7 @@ pub fn into_anthropic(
|
||||
}
|
||||
MessageContent::ToolResult(tool_result) => {
|
||||
Some(anthropic::RequestContent::ToolResult {
|
||||
tool_use_id: tool_result.tool_use_id,
|
||||
tool_use_id: tool_result.tool_use_id.to_string(),
|
||||
is_error: tool_result.is_error,
|
||||
content: tool_result.content,
|
||||
cache_control,
|
||||
|
||||
Reference in New Issue
Block a user