mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-29 07:48:49 +00:00
responses table, responses details
# What does this PR do? ## Test Plan # What does this PR do? ## Test Plan
This commit is contained in:
parent
0b695538af
commit
de53390c1c
34 changed files with 3282 additions and 380 deletions
|
|
@ -43,10 +43,14 @@ export function extractDisplayableText(
|
|||
return "";
|
||||
}
|
||||
|
||||
let textPart = extractTextFromContentPart(message.content);
|
||||
const textPart = extractTextFromContentPart(message.content);
|
||||
let toolCallPart = "";
|
||||
|
||||
if (message.tool_calls && message.tool_calls.length > 0) {
|
||||
if (
|
||||
message.tool_calls &&
|
||||
Array.isArray(message.tool_calls) &&
|
||||
message.tool_calls.length > 0
|
||||
) {
|
||||
// For summary, usually the first tool call is sufficient
|
||||
toolCallPart = formatToolCallToString(message.tool_calls[0]);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue