Introduce LanguageModelToolUse::raw_input (#29322)
This is to enable alternative streaming solutions at the application layer. I'm not sure we really should have performed parsing of the input at this layer. Either way I want to experiment with streaming approaches in a separate crate on a branch, and this will help. /cc @maxdeviant @bennetbo @rtfeldman Closes #ISSUE Release Notes: - N/A
This commit is contained in:
parent
f125353b6f
commit
8836c6fb42
8 changed files with 13 additions and 0 deletions
|
@ -727,6 +727,7 @@ pub fn map_to_language_model_completion_events(
|
|||
id: tool_use.id.clone().into(),
|
||||
name: tool_use.name.clone().into(),
|
||||
is_input_complete: false,
|
||||
raw_input: tool_use.input_json.clone(),
|
||||
input,
|
||||
},
|
||||
))],
|
||||
|
@ -757,6 +758,7 @@ pub fn map_to_language_model_completion_events(
|
|||
)
|
||||
.map_err(|err| anyhow!("Error parsing tool call input JSON: {err:?} - JSON string was: {input_json:?}"))?
|
||||
},
|
||||
raw_input: tool_use.input_json.clone(),
|
||||
},
|
||||
))
|
||||
})],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue