mirror of
https://github.com/katanemo/plano.git
synced 2026-07-23 16:51:04 +02:00
bug fix - send all parameter irrespective of type
earlier we were only sending parameter if the type is string
This commit is contained in:
parent
47c9c0aafc
commit
6acfea7787
1 changed files with 3 additions and 4 deletions
|
|
@ -697,10 +697,9 @@ impl StreamContext {
|
||||||
let tool_params_dict: HashMap<String, String> = match v.as_object() {
|
let tool_params_dict: HashMap<String, String> = match v.as_object() {
|
||||||
Some(obj) => obj
|
Some(obj) => obj
|
||||||
.iter()
|
.iter()
|
||||||
.filter_map(|(key, value)| {
|
.map(|(key, value)| {
|
||||||
value
|
// Convert each value to a string, regardless of its type
|
||||||
.as_str()
|
(key.clone(), value.to_string())
|
||||||
.map(|str_value| (key.clone(), str_value.to_string()))
|
|
||||||
})
|
})
|
||||||
.collect(),
|
.collect(),
|
||||||
None => HashMap::new(), // Return an empty HashMap if v is not an object
|
None => HashMap::new(), // Return an empty HashMap if v is not an object
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue