mirror of
https://github.com/katanemo/plano.git
synced 2026-06-26 15:39:40 +02:00
improved formatting for tools in the traces
This commit is contained in:
parent
c748ea0a71
commit
57aeb5dcfb
1 changed files with 5 additions and 1 deletions
|
|
@ -275,7 +275,11 @@ async fn build_llm_span(
|
||||||
|
|
||||||
// Add optional attributes
|
// Add optional attributes
|
||||||
if let Some(tools) = tool_names {
|
if let Some(tools) = tool_names {
|
||||||
span_builder = span_builder.with_attribute(llm::TOOLS, tools.join("\n"));
|
let formatted_tools = tools.iter()
|
||||||
|
.map(|name| format!("{}(...)", name))
|
||||||
|
.collect::<Vec<_>>()
|
||||||
|
.join("\n");
|
||||||
|
span_builder = span_builder.with_attribute(llm::TOOLS, formatted_tools);
|
||||||
}
|
}
|
||||||
|
|
||||||
if let Some(preview) = user_message_preview {
|
if let Some(preview) = user_message_preview {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue