diff --git a/apps/rowboat/app/projects/[projectId]/playground/components/messages.tsx b/apps/rowboat/app/projects/[projectId]/playground/components/messages.tsx index 36a9ae80..77d9b63b 100644 --- a/apps/rowboat/app/projects/[projectId]/playground/components/messages.tsx +++ b/apps/rowboat/app/projects/[projectId]/playground/components/messages.tsx @@ -6,7 +6,7 @@ import { Workflow } from "@/app/lib/types/workflow_types"; import { WorkflowTool } from "@/app/lib/types/workflow_types"; import MarkdownContent from "@/app/lib/components/markdown-content"; import { apiV1 } from "rowboat-shared"; -import { MessageSquareIcon, EllipsisIcon, CircleCheckIcon, ChevronRightIcon, ChevronDownIcon, ChevronUpIcon, XIcon, PlusIcon } from "lucide-react"; +import { MessageSquareIcon, EllipsisIcon, CircleCheckIcon, ChevronRightIcon, ChevronDownIcon, ChevronUpIcon, XIcon, PlusIcon, CodeIcon, CheckCircleIcon, FileTextIcon } from "lucide-react"; import { TestProfile } from "@/app/lib/types/testing_types"; import { ProfileContextBox } from "./profile-context-box"; @@ -258,18 +258,19 @@ function ClientToolCall({
{!availableResult && } - {availableResult && } -
- Function Call: + {availableResult && } +
+ Function Call: + {toolCall.function.name} - +
- - {availableResult && } + } /> + {availableResult && } />}
@@ -280,11 +281,13 @@ function ClientToolCall({ function ExpandableContent({ label, content, - expanded = false + expanded = false, + icon }: { label: string, content: string | object | undefined, - expanded?: boolean + expanded?: boolean, + icon?: React.ReactNode }) { const [isExpanded, setIsExpanded] = useState(expanded); @@ -314,6 +317,7 @@ function ExpandableContent({
{!isExpanded && } {isExpanded && } + {icon && {icon}}
{label}
{isExpanded && ( @@ -322,7 +326,10 @@ function ExpandableContent({ ) : ( -
+                
                     {formattedContent}
                 
)