🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.
TypeScript analyticsautogenevaluationlangchainlarge-language-modelsllama-indexllmllm-evaluationllm-observabilityllmopsmonitoringobservabilityopen-sourceopenaiplaygroundprompt-engineeringprompt-managementself-hostedycombinator
chore(ChatMLAdapter): Add test cases against seed spans (#12552)
Jean-Baptiste Muscatfa838a7bf302
diff --git a/.codespellrc b/.codespellrcindex 67e85ef00b..92fef8241d 100644--- a/.codespellrc+++ b/.codespellrc@@ -1,4 +1,4 @@[codespell]-skip = .git,*.pdf,*.svg,package-lock.json,*.prisma,pnpm-lock.yaml+skip = .git,*.pdf,*.svg,package-lock.json,*.prisma,pnpm-lock.yaml,./worker/src/__tests__/chatml/framework-tracesignore-words-list = afterall,vertx,notIn,alue,allTimediff --git a/packages/shared/src/utils/chatml/adapters/langgraph.ts b/packages/shared/src/utils/chatml/adapters/langgraph.tsindex 893cecccb5..d6c25c8a1f 100644--- a/packages/shared/src/utils/chatml/adapters/langgraph.ts+++ b/packages/shared/src/utils/chatml/adapters/langgraph.ts@@ -275,7 +275,7 @@ export const langgraphAdapter: ProviderAdapter = {// EXPLICIT: Framework hintif (ctx.framework === "langgraph") return true;- // REJECTIONS: Reject AI SDK v5, OpenAI Agents SDK, and Semantic Kernel formats+ // REJECTIONS: Reject AI SDK v5, OpenAI Agents SDK, Semantic Kernel and Pydantic formatsif (meta && typeof meta === "object") {// Check scope.name for AI SDK, OpenAI Agents, or Semantic Kernelif ("scope" in meta && typeof meta.scope === "object") {@@ -299,6 +299,8 @@ export const langgraphAdapter: ProviderAdapter = {) {return false;}++ if (scope?.name === "pydantic-ai") return false;}// Check attributes["operation.name"] for AI SDK patterndiff --git a/packages/shared/src/utils/chatml/adapters/microsoft-agent.ts b/packages/shared/src/utils/chatml/adapters/microsoft-agent.tsindex b4d935cc64..1b3298c336 100644--- a/packages/shared/src/utils/chatml/adapters/microsoft-agent.ts+++ b/packages/shared/src/utils/chatml/adapters/microsoft-agent.ts@@ -258,6 +258,7 @@ export const microsoftAgentAdapter: ProviderAdapter = {const scopeName = getNestedProperty(meta, "scope", "name");if (scopeName === "agent_framework") return true;+ if (scopeName === "pydantic-ai") return false;const providerName = getNestedProperty(meta,diff --git a/packages/shared/src/utils/chatml/adapters/openai.ts b/packages/shared/src/utils/chatml/adapters/openai.tsindex 210c9e34a9..5d6c7b70b8 100644--- a/packages/shared/src/utils/chatml/adapters/openai.ts+++ b/packages/shared/src/utils/chatml/adapters/openai.ts@@ -369,7 +369,7 @@ export const openAIAdapter: ProviderAdapter = {detect(ctx: NormalizerContext): boolean {const meta = parseMetadata(ctx.metadata);- // REJECTIONS: Explicit rejection of LangGraph/LangChain/Semantic Kernel formats+ // REJECTIONS: Explicit rejection of LangGraph/LangChain/Semantic/Pydantic Kernel formatsif (meta && typeof meta === "object") {// LangGraphif (@@ -393,6 +393,14 @@ export const openAIAdapter: ProviderAdapter = {}}+ // Pydantic ai+ if ("scope" in meta && typeof meta.scope === "object") {+ const scope = meta.scope as Record<string, unknown>;+ if (scope.name === "pydantic-ai") {+ return false;+ }+ }+// LangChain (type without role)if (ctx.metadata &&diff --git a/web/src/components/table/data-table-column-visibility-filter.tsx b/web/src/components/table/data-table-column-visibility-filter.tsxindex 7313d58683..c7525a000c 100644--- a/web/src/components/table/data-table-column-visibility-filter.tsx+++ b/web/src/components/table/data-table-column-visibility-filter.tsx@@ -111,7 +111,7 @@ function ColumnVisibilityListItem<TData, TValue>({className={cn("flex w-full items-center justify-between rounded-md p-2",isDragging ? "opacity-80" : "opacity-100",- "group hover:bg-muted/50 transition-colors",+ "hover:bg-muted/50 group transition-colors",)}style={{transform: transform@@ -203,7 +203,7 @@ function GroupVisibilityHeader<TData, TValue>({className={cn("bg-muted/30 flex w-full items-center justify-between gap-2 rounded-md p-2",isDragging ? "opacity-80" : "opacity-100",- "group hover:bg-muted cursor-pointer",+ "hover:bg-muted group cursor-pointer",)}style={{transform: transformdiff --git a/web/src/components/table/table-view-presets/components/data-table-view-presets-drawer.tsx b/web/src/components/table/table-view-presets/components/data-table-view-presets-drawer.tsxindex 43910d2b84..e3cfdf23cf 100644--- a/web/src/components/table/table-view-presets/components/data-table-view-presets-drawer.tsx+++ b/web/src/components/table/table-view-presets/components/data-table-view-presets-drawer.tsx@@ -438,7 +438,7 @@ export function TableViewPresetsDrawer({key={SYSTEM_PRESETS.DEFAULT.id}onSelect={() => handleSetViewId(null)}className={cn(- "group hover:bg-muted/50 mt-1 flex cursor-pointer items-center justify-between rounded-md p-2 transition-colors",+ "hover:bg-muted/50 group mt-1 flex cursor-pointer items-center justify-between rounded-md p-2 transition-colors",selectedViewId === null && "bg-muted",)}title="Reflects your current table settings without applying any saved custom table views"@@ -460,7 +460,7 @@ export function TableViewPresetsDrawer({key={preset.id}onSelect={() => handleSelectSystemFilterPreset(preset)}className={cn(- "group hover:bg-muted/50 mt-1 flex cursor-pointer items-center justify-between rounded-md p-2 transition-colors",+ "hover:bg-muted/50 group mt-1 flex cursor-pointer items-center justify-between rounded-md p-2 transition-colors",selectedViewId === preset.id &&isEqual(normalizeForComparison(currentState.filters),@@ -502,7 +502,7 @@ export function TableViewPresetsDrawer({key={view.id}onSelect={() => handleSelectView(view)}className={cn(- "group hover:bg-muted/50 mt-1 flex cursor-pointer items-center justify-between rounded-md p-2 transition-colors",+ "hover:bg-muted/50 group mt-1 flex cursor-pointer items-center justify-between rounded-md p-2 transition-colors",selectedViewId === view.id && "bg-muted",)}>diff --git a/web/src/components/trace2/components/_shared/CopyIdsPopover.tsx b/web/src/components/trace2/components/_shared/CopyIdsPopover.tsxindex 0f23a1e8f2..bf2af6a7f9 100644--- a/web/src/components/trace2/components/_shared/CopyIdsPopover.tsx+++ b/web/src/components/trace2/components/_shared/CopyIdsPopover.tsx@@ -68,7 +68,7 @@ export const CopyIdsPopover = ({{idItems.map((item) => (<divkey={item.id}- className="group hover:bg-muted/50 flex items-center justify-between gap-2 rounded-sm px-2 py-1.5 transition-colors"+ className="hover:bg-muted/50 group flex items-center justify-between gap-2 rounded-sm px-2 py-1.5 transition-colors"><div className="flex min-w-0 flex-col gap-0.5"><span className="text-muted-foreground text-xs font-medium">diff --git a/web/src/components/ui/LangfuseMediaView.tsx b/web/src/components/ui/LangfuseMediaView.tsxindex b0c2055437..5ee2a476bc 100644--- a/web/src/components/ui/LangfuseMediaView.tsx+++ b/web/src/components/ui/LangfuseMediaView.tsx@@ -121,7 +121,7 @@ function FileViewer({onClick={openInNewTab}aria-label={`Open ${fileName} in new tab`}title={fileName}- className="group from-accent-light-green/30 to-muted hover:from-accent-light-green/40 hover:to-muted/90 dark:from-accent-dark-green/20 dark:to-muted dark:hover:from-accent-dark-green/30 relative flex h-24 w-24 flex-col items-center justify-center gap-2 rounded-md border bg-linear-to-br px-2 transition-colors"+ className="from-accent-light-green/30 to-muted hover:from-accent-light-green/40 hover:to-muted/90 dark:from-accent-dark-green/20 dark:to-muted dark:hover:from-accent-dark-green/30 group relative flex h-24 w-24 flex-col items-center justify-center gap-2 rounded-md border bg-linear-to-br px-2 transition-colors"><div className="flex flex-col items-center gap-2">{fileType === "image" ? (diff --git a/web/src/components/ui/checkbox.tsx b/web/src/components/ui/checkbox.tsxindex 5199d54597..45b579105c 100644--- a/web/src/components/ui/checkbox.tsx+++ b/web/src/components/ui/checkbox.tsx@@ -13,7 +13,7 @@ const Checkbox = React.forwardRef<<CheckboxPrimitive.Rootref={ref}className={cn(- "peer border-primary ring-offset-background focus-visible:ring-ring data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground h-4 w-4 shrink-0 rounded-sm border focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-hidden disabled:cursor-not-allowed disabled:opacity-50",+ "border-primary ring-offset-background focus-visible:ring-ring data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground peer h-4 w-4 shrink-0 rounded-sm border focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-hidden disabled:cursor-not-allowed disabled:opacity-50",className,)}{...props}diff --git a/web/src/features/annotation-queues/components/processors/SessionAnnotationProcessor.tsx b/web/src/features/annotation-queues/components/processors/SessionAnnotationProcessor.tsxindex dba11dbbcd..8c652500c0 100644--- a/web/src/features/annotation-queues/components/processors/SessionAnnotationProcessor.tsx+++ b/web/src/features/annotation-queues/components/processors/SessionAnnotationProcessor.tsx@@ -107,7 +107,7 @@ export const SessionAnnotationProcessor: React.FC<.slice(0, visibleTraces).map((trace: any, index: number) => (<Card- className="group border-border hover:border-ring mb-2 grid gap-2 p-2 shadow-none"+ className="border-border hover:border-ring group mb-2 grid gap-2 p-2 shadow-none"key={trace.id}data-trace-index={index}>diff --git a/web/src/features/automations/components/AutomationSidebar.tsx b/web/src/features/automations/components/AutomationSidebar.tsxindex 308edff550..da5c07bc97 100644--- a/web/src/features/automations/components/AutomationSidebar.tsx+++ b/web/src/features/automations/components/AutomationSidebar.tsx@@ -68,7 +68,7 @@ export const AutomationSidebar: React.FC<AutomationSidebarProps> = ({<divkey={automation.id}className={cn(- "group hover:bg-background/50 relative rounded-lg border p-3 transition-colors",+ "hover:bg-background/50 group relative rounded-lg border p-3 transition-colors",isSelected? "border-primary bg-primary/5": "border-border bg-background/20",diff --git a/web/src/features/datasets/components/CsvColumnsCard.tsx b/web/src/features/datasets/components/CsvColumnsCard.tsxindex 5a844f663b..af69d31f5c 100644--- a/web/src/features/datasets/components/CsvColumnsCard.tsx+++ b/web/src/features/datasets/components/CsvColumnsCard.tsx@@ -24,7 +24,7 @@ function DraggableColumn({ column }: { column: CsvColumnPreview }) {{...listeners}{...attributes}className={cn(- "group bg-background hover:border-primary hover:bg-accent flex cursor-grab items-center gap-2 rounded-md border p-2 active:cursor-grabbing",+ "bg-background hover:border-primary hover:bg-accent group flex cursor-grab items-center gap-2 rounded-md border p-2 active:cursor-grabbing",isDragging && "opacity-30",)}>diff --git a/web/src/features/datasets/components/MappingCard.tsx b/web/src/features/datasets/components/MappingCard.tsxindex 8fbbe22242..a261ee7bd9 100644--- a/web/src/features/datasets/components/MappingCard.tsx+++ b/web/src/features/datasets/components/MappingCard.tsx@@ -125,7 +125,7 @@ function MappedColumnBadge({<divref={setNodeRef}className={cn(- "group bg-accent-dark-blue text-muted flex cursor-grab items-center gap-1 rounded-md px-2 py-1 text-sm font-medium active:cursor-grabbing",+ "bg-accent-dark-blue text-muted group flex cursor-grab items-center gap-1 rounded-md px-2 py-1 text-sm font-medium active:cursor-grabbing",isDragging && "opacity-30",)}{...attributes}diff --git a/web/src/features/widgets/components/DashboardWidget.tsx b/web/src/features/widgets/components/DashboardWidget.tsxindex cb3b240d6d..a4f9cb5520 100644--- a/web/src/features/widgets/components/DashboardWidget.tsx+++ b/web/src/features/widgets/components/DashboardWidget.tsx@@ -304,7 +304,7 @@ export function DashboardWidget({return (<div- className={`group bg-background flex h-full w-full flex-col overflow-hidden rounded-lg border p-4`}+ className={`bg-background group flex h-full w-full flex-col overflow-hidden rounded-lg border p-4`}><div className="flex items-center justify-between"><span className="truncate font-medium" title={widget.data.name}>diff --git a/web/src/pages/project/[projectId]/index.tsx b/web/src/pages/project/[projectId]/index.tsxindex fca2b7e53d..53257dac81 100644--- a/web/src/pages/project/[projectId]/index.tsx+++ b/web/src/pages/project/[projectId]/index.tsx@@ -249,7 +249,7 @@ export default function Dashboard() {id="date"variant={"outline"}className={- "group text-primary hover:bg-primary-foreground hover:text-primary-accent justify-start gap-x-3 text-left font-semibold"+ "text-primary hover:bg-primary-foreground hover:text-primary-accent group justify-start gap-x-3 text-left font-semibold"}><BarChart2diff --git a/worker/src/__tests__/chatml/framework-traces/README.md b/worker/src/__tests__/chatml/framework-traces/README.mdnew file mode 100644index 0000000000..d83dc5e62c--- /dev/null+++ b/worker/src/__tests__/chatml/framework-traces/README.md@@ -0,0 +1,3 @@+Those traces are used to test the chatML adapters.+They comes for the various framework intragration examples in Langfuse's doc (for example https://langfuse.com/integrations/frameworks/agno-agents).+Use download_traces.js to generate the files.diff --git a/worker/src/__tests__/chatml/framework-traces/agno-2025-06-11.chatml.json b/worker/src/__tests__/chatml/framework-traces/agno-2025-06-11.chatml.jsonnew file mode 100644index 0000000000..209e4ce6f0--- /dev/null+++ b/worker/src/__tests__/chatml/framework-traces/agno-2025-06-11.chatml.json@@ -0,0 +1,408 @@+{+ "1f883bb9668167c0": {+ "input": {+ "success": false,+ "error": {+ "name": "ZodError",+ "message": "[\n {\n \"expected\": \"array\",\n \"code\": \"invalid_type\",\n \"path\": [],\n \"message\": \"Invalid input: expected array, received string\"\n }\n]"+ }+ },+ "output": {+ "success": false,+ "error": {+ "name": "ZodError",+ "message": "[\n {\n \"expected\": \"object\",\n \"code\": \"invalid_type\",\n \"path\": [\n 0\n ],\n \"message\": \"Invalid input: expected object, received string\"\n }\n]"+ }+ }+ },+ "b38a82eaa62b551e": {+ "input": {+ "success": true,+ "data": [+ {+ "tools": [+ {+ "name": "duckduckgo_search",+ "description": "Use this function to search DuckDuckGo for a query.",+ "parameters": {+ "type": "object",+ "properties": {+ "query": {+ "type": "string",+ "description": "(str) The query to search for."+ },+ "max_results": {+ "type": "number",+ "description": "(optional, default=5) The maximum number of results to return."+ }+ },+ "required": [+ "query"+ ]+ }+ },+ {+ "name": "duckduckgo_news",+ "description": "Use this function to get the latest news from DuckDuckGo.",+ "parameters": {+ "type": "object",+ "properties": {+ "query": {+ "type": "string",+ "description": "(str) The query to search for."+ },+ "max_results": {+ "type": "number",+ "description": "(optional, default=5) The maximum number of results to return."+ }+ },+ "required": [+ "query"+ ]+ }+ }+ ]+ },+ {+ "tools": [+ {+ "name": "duckduckgo_search",+ "description": "Use this function to search DuckDuckGo for a query.",+ "parameters": {+ "type": "object",+ "properties": {+ "query": {+ "type": "string",+ "description": "(str) The query to search for."+ },+ "max_results": {+ "type": "number",+ "description": "(optional, default=5) The maximum number of results to return."+ }+ },+ "required": [+ "query"+ ]+ }+ },+ {+ "name": "duckduckgo_news",+ "description": "Use this function to get the latest news from DuckDuckGo.",+ "parameters": {+ "type": "object",+ "properties": {+ "query": {+ "type": "string",+ "description": "(str) The query to search for."+ },+ "max_results": {+ "type": "number",+ "description": "(optional, default=5) The maximum number of results to return."+ }+ },+ "required": [+ "query"+ ]+ }+ }+ ]+ },+ {+ "tools": [+ {+ "name": "duckduckgo_search",+ "description": "Use this function to search DuckDuckGo for a query.",+ "parameters": {+ "type": "object",+ "properties": {+ "query": {+ "type": "string",+ "description": "(str) The query to search for."+ },+ "max_results": {+ "type": "number",+ "description": "(optional, default=5) The maximum number of results to return."+ }+ },+ "required": [+ "query"+ ]+ }+ },+ {+ "name": "duckduckgo_news",+ "description": "Use this function to get the latest news from DuckDuckGo.",+ "parameters": {+ "type": "object",+ "properties": {+ "query": {+ "type": "string",+ "description": "(str) The query to search for."+ },+ "max_results": {+ "type": "number",+ "description": "(optional, default=5) The maximum number of results to return."+ }+ },+ "required": [+ "query"+ ]+ }+ }+ ]+ },+ {+ "tools": [+ {+ "name": "duckduckgo_search",+ "description": "Use this function to search DuckDuckGo for a query.",+ "parameters": {+ "type": "object",+ "properties": {+ "query": {+ "type": "string",+ "description": "(str) The query to search for."+ },+ "max_results": {+ "type": "number",+ "description": "(optional, default=5) The maximum number of results to return."+ }+ },+ "required": [+ "query"+ ]+ }+ },+ {+ "name": "duckduckgo_news",+ "description": "Use this function to get the latest news from DuckDuckGo.",+ "parameters": {+ "type": "object",+ "properties": {+ "query": {+ "type": "string",+ "description": "(str) The query to search for."+ },+ "max_results": {+ "type": "number",+ "description": "(optional, default=5) The maximum number of results to return."+ }+ },+ "required": [+ "query"+ ]+ }+ }+ ]+ }+ ]+ },+ "output": {+ "success": true,+ "data": [+ {+ "role": "assistant",+ "content": "To find out what's currently trending on Twitter, you can visit the following resources:\n\n1. **[Twitter Explore](https://twitter.com/explore/tabs/trending/)**: Explore trending topics, hashtags, and conversations directly on Twitter.\n\n2. **[Trends24](https://trends24.in/united-states/)**: This site lists today's top X (Twitter) trends and hashtags in the United States, including topics like National Guard, Los Angeles, and more.\n\n3. **[Get Day Trends](https://getdaytrends.com/top/tweeted/day/)**: This platform analyzes Twitter data to provide insights on current trending topics and hashtags.\n\n4. **[91 Trends](https://91trends.com/twitter/united-states/)**: Get real-time updates on what's trending on Twitter in the United States.\n\n5. **[Global Twitter Trends](https://globaltwittertrends.com/united-states/)**: Check out what's trending specifically in the United States and view tweets based on those trends.\n\nFeel free to explore these links for the most up-to-date trending topics!",+ "json": {+ "annotations": []+ }+ }+ ]+ }+ },+ "ca136de468e156c9": {+ "input": {+ "success": true,+ "data": [+ {+ "tools": [+ {+ "name": "duckduckgo_search",+ "description": "Use this function to search DuckDuckGo for a query.",+ "parameters": {+ "type": "object",+ "properties": {+ "query": {+ "type": "string",+ "description": "(str) The query to search for."+ },+ "max_results": {+ "type": "number",+ "description": "(optional, default=5) The maximum number of results to return."+ }+ },+ "required": [+ "query"+ ]+ }+ },+ {+ "name": "duckduckgo_news",+ "description": "Use this function to get the latest news from DuckDuckGo.",+ "parameters": {+ "type": "object",+ "properties": {+ "query": {+ "type": "string",+ "description": "(str) The query to search for."+ },+ "max_results": {+ "type": "number",+ "description": "(optional, default=5) The maximum number of results to return."+ }+ },+ "required": [+ "query"+ ]+ }+ }+ ]+ },+ {+ "tools": [+ {+ "name": "duckduckgo_search",+ "description": "Use this function to search DuckDuckGo for a query.",+ "parameters": {+ "type": "object",+ "properties": {+ "query": {+ "type": "string",+ "description": "(str) The query to search for."+ },+ "max_results": {+ "type": "number",+ "description": "(optional, default=5) The maximum number of results to return."+ }+ },+ "required": [+ "query"+ ]+ }+ },+ {+ "name": "duckduckgo_news",+ "description": "Use this function to get the latest news from DuckDuckGo.",+ "parameters": {+ "type": "object",+ "properties": {+ "query": {+ "type": "string",+ "description": "(str) The query to search for."+ },+ "max_results": {+ "type": "number",+ "description": "(optional, default=5) The maximum number of results to return."+ }+ },+ "required": [+ "query"+ ]+ }+ }+ ]+ }+ ]+ },+ "output": {+ "success": true,+ "data": [+ {+ "role": "assistant",+ "tool_calls": [+ {+ "id": "call_VybxG748CQId8Xxo6wb2pWy1",+ "name": "duckduckgo_search",+ "arguments": "{\"query\":\"currently trending on Twitter\"}",+ "type": "function"+ }+ ],+ "json": {+ "annotations": []+ }+ }+ ]+ }+ },+ "fc7f61b57ecebbaf": {+ "input": {+ "success": false,+ "error": {+ "name": "ZodError",+ "message": "[\n {\n \"expected\": \"array\",\n \"code\": \"invalid_type\",\n \"path\": [],\n \"message\": \"Invalid input: expected array, received string\"\n }\n]"+ }+ },+ "output": {+ "success": false,+ "error": {+ "name": "ZodError",+ "message": "[\n {\n \"expected\": \"object\",\n \"code\": \"invalid_type\",\n \"path\": [\n 0\n ],\n \"message\": \"Invalid input: expected object, received string\"\n }\n]"+ }+ }+ },+ "1cffdfa6fe3412e6": {+ "input": {+ "success": false,+ "error": {+ "name": "ZodError",+ "message": "[\n {\n \"expected\": \"array\",\n \"code\": \"invalid_type\",\n \"path\": [],\n \"message\": \"Invalid input: expected array, received object\"\n }\n]"+ }+ },+ "output": {+ "success": false,+ "error": {+ "name": "ZodError",+ "message": "[\n {\n \"expected\": \"string\",\n \"code\": \"invalid_type\",\n \"path\": [\n 0,\n \"tools\",\n 0,\n \"name\"\n ],\n \"message\": \"Invalid input: expected string, received undefined\"\n },\n {\n \"expected\": \"string\",\n \"code\": \"invalid_type\",\n \"path\": [\n 1,\n \"tools\",\n 0,\n \"name\"\n ],\n \"message\": \"Invalid input: expected string, received undefined\"\n },\n {\n \"expected\": \"string\",\n \"code\": \"invalid_type\",\n \"path\": [\n 2,\n \"tools\",\n 0,\n \"name\"\n ],\n \"message\": \"Invalid input: expected string, received undefined\"\n },\n {\n \"expected\": \"string\",\n \"code\": \"invalid_type\",\n \"path\": [\n 3,\n \"tools\",\n 0,\n \"name\"\n ],\n \"message\": \"Invalid input: expected string, received undefined\"\n },\n {\n \"expected\": \"string\",\n \"code\": \"invalid_type\",\n \"path\": [\n 4,\n \"tools\",\n 0,\n \"name\"\n ],\n \"message\": \"Invalid input: expected string, received undefined\"\n }\n]"+ }+ }+ },+ "6581e147aec6793a": {+ "input": {+ "success": false,+ "error": {+ "name": "ZodError",+ "message": "[\n {\n \"expected\": \"array\",\n \"code\": \"invalid_type\",\n \"path\": [],\n \"message\": \"Invalid input: expected array, received object\"\n }\n]"+ }+ },+ "output": {+ "success": true,+ "data": [+ {+ "json": {+ "title": "Twitter. It's what's happening / Twitter",+ "href": "https://twitter.com/explore/tabs/trending/",+ "body": "Explore trending topics, hashtags, and conversations on Twitter."+ }+ },+ {+ "json": {+ "title": "United States — X (Twitter) trending topics and hashtags today ...",+ "href": "https://trends24.in/united-states/",+ "body": "Today's top X (Twitter) trends and hashtags in United States: National Guard, Los Angeles, California, Peaceful, Marines. Explore more locations and trending topics on trends24.in"+ }+ },+ {+ "json": {+ "title": "Worldwide • Top Hashtags • Most Tweeted • Day - getdaytrends",+ "href": "https://getdaytrends.com/top/tweeted/day/",+ "body": "About Us. We store and analyze Twitter data to bring you insights on what's currently trending and help you keep up with the audience. Find out hot trends, review trend history and browse long-term popular hashtags and topics."+ }+ },+ {+ "json": {+ "title": "United States Latest Trending X (Twitter) hashtag and topics",+ "href": "https://91trends.com/twitter/united-states/",+ "body": "United States X (Twitter) Trends Now | Top X (Twitter) Trending Topics & Hashtags Today. Get real-time updates on the hottest trending hashtags and topics on X (Twitter) United States with our automated page. Our page utilizes the official X (Twitter) API to refresh the most talked-about hashtags and topics every 30 minutes, ensuring you always have access to the most current trends on the ..."+ }+ },+ {+ "json": {+ "title": "Trending on Twitter United States today - Global Twitter Trends",+ "href": "https://globaltwittertrends.com/united-states/",+ "body": "Above is the table to show what's trending in United States twitter right now . You can click on any one of the trends to tweet it or view all tweets based on that trend. You can also view the twitter trends of all towns in United States by just searching on the search bar above or by choosing from the provided list of countries and towns."+ }+ }+ ]+ }+ }+}\ No newline at end of filediff --git a/worker/src/__tests__/chatml/framework-traces/agno-2025-06-11.trace.json b/worker/src/__tests__/chatml/framework-traces/agno-2025-06-11.trace.jsonnew file mode 100644index 0000000000..692a119832--- /dev/null+++ b/worker/src/__tests__/chatml/framework-traces/agno-2025-06-11.trace.json@@ -0,0 +1,646 @@+{+ "trace": {+ "id": "080130871f53145aecf7c29d5dfb6e4c",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "name": "Agent.run",+ "timestamp": "2025-06-11T14:01:32.598Z",+ "environment": "default",+ "tags": [],+ "bookmarked": false,+ "release": null,+ "version": null,+ "userId": null,+ "sessionId": "35cc6c90-b657-4819-b66c-c931c03ad569",+ "public": true,+ "input": "\"{\\\"run_response\\\":\\\"RunResponse(content=None, content_type='str', thinking=None, reasoning_content=None, event='RunResponse', messages=None, metrics=None, model='gpt-4o-mini', model_provider='OpenAI', run_id='625aa1b6-dc11-4804-8f4b-e2f5b604c07f', agent_id='007f4340-d3b3-4e4e-bf94-bdb22a16d8d5', session_id='35cc6c90-b657-4819-b66c-c931c03ad569', workflow_id=None, tools=None, formatted_tool_calls=None, images=None, videos=None, audio=None, response_audio=None, citations=None, extra_data=None, created_at=1749650492)\\\",\\\"run_messages\\\":\\\"RunMessages(messages=[Message(role='system', content='<additional_information>\\\\\\\\n- Use markdown to format your answers.\\\\\\\\n</additional_information>', name=None, tool_call_id=None, tool_calls=None, audio=None, images=None, videos=None, files=None, audio_output=None, image_output=None, thinking=None, redacted_thinking=None, provider_data=None, citations=None, reasoning_content=None, tool_name=None, tool_args=None, tool_call_error=None, stop_after_tool_call=False, add_to_agent_memory=True, from_history=False, metrics=MessageMetrics(input_tokens=0, output_tokens=0, total_tokens=0, audio_tokens=0, input_audio_tokens=0, output_audio_tokens=0, cached_tokens=0, reasoning_tokens=0, prompt_tokens=0, completion_tokens=0, prompt_tokens_details=None, completion_tokens_details=None, additional_metrics=None, time=None, time_to_first_token=None, timer=None), references=None, created_at=1749650492), Message(role='user', content='What is currently trending on Twitter?', name=None, tool_call_id=None, tool_calls=None, audio=None, images=None, videos=None, files=None, audio_output=None, image_output=None, thinking=None, redacted_thinking=None, provider_data=None, citations=None, reasoning_content=None, tool_name=None, tool_args=None, tool_call_error=None, stop_after_tool_call=False, add_to_agent_memory=True, from_history=False, metrics=MessageMetrics(input_tokens=0, output_tokens=0, total_tokens=0, audio_tokens=0, input_audio_tokens=0, output_audio_tokens=0, cached_tokens=0, reasoning_tokens=0, prompt_tokens=0, completion_tokens=0, prompt_tokens_details=None, completion_tokens_details=None, additional_metrics=None, time=None, time_to_first_token=None, timer=None), references=None, created_at=1749650492)], system_message=Message(role='system', content='<additional_information>\\\\\\\\n- Use markdown to format your answers.\\\\\\\\n</additional_information>', name=None, tool_call_id=None, tool_calls=None, audio=None, images=None, videos=None, files=None, audio_output=None, image_output=None, thinking=None, redacted_thinking=None, provider_data=None, citations=None, reasoning_content=None, tool_name=None, tool_args=None, tool_call_error=None, stop_after_tool_call=False, add_to_agent_memory=True, from_history=False, metrics=MessageMetrics(input_tokens=0, output_tokens=0, total_tokens=0, audio_tokens=0, input_audio_tokens=0, output_audio_tokens=0, cached_tokens=0, reasoning_tokens=0, prompt_tokens=0, completion_tokens=0, prompt_tokens_details=None, completion_tokens_details=None, additional_metrics=None, time=None, time_to_first_token=None, timer=None), references=None, created_at=1749650492), user_message=Message(role='user', content='What is currently trending on Twitter?', name=None, tool_call_id=None, tool_calls=None, audio=None, images=None, videos=None, files=None, audio_output=None, image_output=None, thinking=None, redacted_thinking=None, provider_data=None, citations=None, reasoning_content=None, tool_name=None, tool_args=None, tool_call_error=None, stop_after_tool_call=False, add_to_agent_memory=True, from_history=False, metrics=MessageMetrics(input_tokens=0, output_tokens=0, total_tokens=0, audio_tokens=0, input_audio_tokens=0, output_audio_tokens=0, cached_tokens=0, reasoning_tokens=0, prompt_tokens=0, completion_tokens=0, prompt_tokens_details=None, completion_tokens_details=None, additional_metrics=None, time=None, time_to_first_token=None, timer=None), references=None, created_at=1749650492), extra_messages=None)\\\",\\\"session_id\\\":\\\"35cc6c90-b657-4819-b66c-c931c03ad569\\\",\\\"message\\\":\\\"What is currently trending on Twitter?\\\"}\"",+ "output": "\"{\\\"content\\\":\\\"To find out what's currently trending on Twitter, you can visit the following resources:\\\\n\\\\n1. **[Twitter Explore](https://twitter.com/explore/tabs/trending/)**: Explore trending topics, hashtags, and conversations directly on Twitter.\\\\n\\\\n2. **[Trends24](https://trends24.in/united-states/)**: This site lists today's top X (Twitter) trends and hashtags in the United States, including topics like National Guard, Los Angeles, and more.\\\\n\\\\n3. **[Get Day Trends](https://getdaytrends.com/top/tweeted/day/)**: This platform analyzes Twitter data to provide insights on current trending topics and hashtags.\\\\n\\\\n4. **[91 Trends](https://91trends.com/twitter/united-states/)**: Get real-time updates on what's trending on Twitter in the United States.\\\\n\\\\n5. **[Global Twitter Trends](https://globaltwittertrends.com/united-states/)**: Check out what's trending specifically in the United States and view tweets based on those trends.\\\\n\\\\nFeel free to explore these links for the most up-to-date trending topics!\\\",\\\"content_type\\\":\\\"str\\\",\\\"event\\\":\\\"RunResponse\\\",\\\"metrics\\\":{\\\"input_tokens\\\":[163,663],\\\"output_tokens\\\":[20,225],\\\"total_tokens\\\":[183,888],\\\"audio_tokens\\\":[0,0],\\\"input_audio_tokens\\\":[0,0],\\\"output_audio_tokens\\\":[0,0],\\\"cached_tokens\\\":[0,0],\\\"reasoning_tokens\\\":[0,0],\\\"prompt_tokens\\\":[163,663],\\\"completion_tokens\\\":[20,225],\\\"prompt_tokens_details\\\":[{\\\"audio_tokens\\\":0,\\\"cached_tokens\\\":0},{\\\"audio_tokens\\\":0,\\\"cached_tokens\\\":0}],\\\"completion_tokens_details\\\":[{\\\"accepted_prediction_tokens\\\":0,\\\"audio_tokens\\\":0,\\\"reasoning_tokens\\\":0,\\\"rejected_prediction_tokens\\\":0},{\\\"accepted_prediction_tokens\\\":0,\\\"audio_tokens\\\":0,\\\"reasoning_tokens\\\":0,\\\"rejected_prediction_tokens\\\":0}],\\\"time\\\":[0.9596867079999356,4.799381209000785]},\\\"model\\\":\\\"gpt-4o-mini\\\",\\\"model_provider\\\":\\\"OpenAI\\\",\\\"run_id\\\":\\\"625aa1b6-dc11-4804-8f4b-e2f5b604c07f\\\",\\\"agent_id\\\":\\\"007f4340-d3b3-4e4e-bf94-bdb22a16d8d5\\\",\\\"session_id\\\":\\\"35cc6c90-b657-4819-b66c-c931c03ad569\\\",\\\"formatted_tool_calls\\\":[\\\"duckduckgo_search(query=currently trending on Twitter)\\\"],\\\"created_at\\\":1749650243,\\\"messages\\\":[{\\\"content\\\":\\\"<additional_information>\\\\n- Use markdown to format your answers.\\\\n</additional_information>\\\",\\\"from_history\\\":false,\\\"stop_after_tool_call\\\":false,\\\"role\\\":\\\"system\\\",\\\"created_at\\\":1749650492},{\\\"content\\\":\\\"What is currently trending on Twitter?\\\",\\\"from_history\\\":false,\\\"stop_after_tool_call\\\":false,\\\"role\\\":\\\"user\\\",\\\"created_at\\\":1749650492},{\\\"from_history\\\":false,\\\"stop_after_tool_call\\\":false,\\\"role\\\":\\\"assistant\\\",\\\"tool_calls\\\":[{\\\"id\\\":\\\"call_VybxG748CQId8Xxo6wb2pWy1\\\",\\\"function\\\":{\\\"arguments\\\":\\\"{\\\\\\\"query\\\\\\\":\\\\\\\"currently trending on Twitter\\\\\\\"}\\\",\\\"name\\\":\\\"duckduckgo_search\\\"},\\\"type\\\":\\\"function\\\"}],\\\"metrics\\\":{\\\"input_tokens\\\":163,\\\"output_tokens\\\":20,\\\"total_tokens\\\":183,\\\"prompt_tokens\\\":163,\\\"completion_tokens\\\":20,\\\"prompt_tokens_details\\\":{\\\"audio_tokens\\\":0,\\\"cached_tokens\\\":0},\\\"completion_tokens_details\\\":{\\\"accepted_prediction_tokens\\\":0,\\\"audio_tokens\\\":0,\\\"reasoning_tokens\\\":0,\\\"rejected_prediction_tokens\\\":0},\\\"time\\\":0.9596867079999356},\\\"created_at\\\":1749650492},{\\\"content\\\":\\\"[\\\\n {\\\\n \\\\\\\"title\\\\\\\": \\\\\\\"Twitter. It's what's happening / Twitter\\\\\\\",\\\\n \\\\\\\"href\\\\\\\": \\\\\\\"https://twitter.com/explore/tabs/trending/\\\\\\\",\\\\n \\\\\\\"body\\\\\\\": \\\\\\\"Explore trending topics, hashtags, and conversations on Twitter.\\\\\\\"\\\\n },\\\\n {\\\\n \\\\\\\"title\\\\\\\": \\\\\\\"United States \\\\\\\\u2014 X (Twitter) trending topics and hashtags today ...\\\\\\\",\\\\n \\\\\\\"href\\\\\\\": \\\\\\\"https://trends24.in/united-states/\\\\\\\",\\\\n \\\\\\\"body\\\\\\\": \\\\\\\"Today's top X (Twitter) trends and hashtags in United States: National Guard, Los Angeles, California, Peaceful, Marines. Explore more locations and trending topics on trends24.in\\\\\\\"\\\\n },\\\\n {\\\\n \\\\\\\"title\\\\\\\": \\\\\\\"Worldwide \\\\\\\\u2022 Top Hashtags \\\\\\\\u2022 Most Tweeted \\\\\\\\u2022 Day - getdaytrends\\\\\\\",\\\\n \\\\\\\"href\\\\\\\": \\\\\\\"https://getdaytrends.com/top/tweeted/day/\\\\\\\",\\\\n \\\\\\\"body\\\\\\\": \\\\\\\"About Us. We store and analyze Twitter data to bring you insights on what's currently trending and help you keep up with the audience. Find out hot trends, review trend history and browse long-term popular hashtags and topics.\\\\\\\"\\\\n },\\\\n {\\\\n \\\\\\\"title\\\\\\\": \\\\\\\"United States Latest Trending X (Twitter) hashtag and topics\\\\\\\",\\\\n \\\\\\\"href\\\\\\\": \\\\\\\"https://91trends.com/twitter/united-states/\\\\\\\",\\\\n \\\\\\\"body\\\\\\\": \\\\\\\"United States X (Twitter) Trends Now | Top X (Twitter) Trending Topics & Hashtags Today. Get real-time updates on the hottest trending hashtags and topics on X (Twitter) United States with our automated page. Our page utilizes the official X (Twitter) API to refresh the most talked-about hashtags and topics every 30 minutes, ensuring you always have access to the most current trends on the ...\\\\\\\"\\\\n },\\\\n {\\\\n \\\\\\\"title\\\\\\\": \\\\\\\"Trending on Twitter United States today - Global Twitter Trends\\\\\\\",\\\\n \\\\\\\"href\\\\\\\": \\\\\\\"https://globaltwittertrends.com/united-states/\\\\\\\",\\\\n \\\\\\\"body\\\\\\\": \\\\\\\"Above is the table to show what's trending in United States twitter right now . You can click on any one of the trends to tweet it or view all tweets based on that trend. You can also view the twitter trends of all towns in United States by just searching on the search bar above or by choosing from the provided list of countries and towns.\\\\\\\"\\\\n }\\\\n]\\\",\\\"from_history\\\":false,\\\"stop_after_tool_call\\\":false,\\\"role\\\":\\\"tool\\\",\\\"tool_call_id\\\":\\\"call_VybxG748CQId8Xxo6wb2pWy1\\\",\\\"tool_name\\\":\\\"duckduckgo_search\\\",\\\"tool_args\\\":{\\\"query\\\":\\\"currently trending on Twitter\\\"},\\\"tool_call_error\\\":false,\\\"metrics\\\":{\\\"time\\\":0.7176052920003713},\\\"created_at\\\":1749650494},{\\\"content\\\":\\\"To find out what's currently trending on Twitter, you can visit the following resources:\\\\n\\\\n1. **[Twitter Explore](https://twitter.com/explore/tabs/trending/)**: Explore trending topics, hashtags, and conversations directly on Twitter.\\\\n\\\\n2. **[Trends24](https://trends24.in/united-states/)**: This site lists today's top X (Twitter) trends and hashtags in the United States, including topics like National Guard, Los Angeles, and more.\\\\n\\\\n3. **[Get Day Trends](https://getdaytrends.com/top/tweeted/day/)**: This platform analyzes Twitter data to provide insights on current trending topics and hashtags.\\\\n\\\\n4. **[91 Trends](https://91trends.com/twitter/united-states/)**: Get real-time updates on what's trending on Twitter in the United States.\\\\n\\\\n5. **[Global Twitter Trends](https://globaltwittertrends.com/united-states/)**: Check out what's trending specifically in the United States and view tweets based on those trends.\\\\n\\\\nFeel free to explore these links for the most up-to-date trending topics!\\\",\\\"from_history\\\":false,\\\"stop_after_tool_call\\\":false,\\\"role\\\":\\\"assistant\\\",\\\"metrics\\\":{\\\"input_tokens\\\":663,\\\"output_tokens\\\":225,\\\"total_tokens\\\":888,\\\"prompt_tokens\\\":663,\\\"completion_tokens\\\":225,\\\"prompt_tokens_details\\\":{\\\"audio_tokens\\\":0,\\\"cached_tokens\\\":0},\\\"completion_tokens_details\\\":{\\\"accepted_prediction_tokens\\\":0,\\\"audio_tokens\\\":0,\\\"reasoning_tokens\\\":0,\\\"rejected_prediction_tokens\\\":0},\\\"time\\\":4.799381209000785},\\\"created_at\\\":1749650494}],\\\"tools\\\":[{\\\"tool_call_id\\\":\\\"call_VybxG748CQId8Xxo6wb2pWy1\\\",\\\"tool_name\\\":\\\"duckduckgo_search\\\",\\\"tool_args\\\":{\\\"query\\\":\\\"currently trending on Twitter\\\"},\\\"tool_call_error\\\":false,\\\"result\\\":\\\"[\\\\n {\\\\n \\\\\\\"title\\\\\\\": \\\\\\\"Twitter. It's what's happening / Twitter\\\\\\\",\\\\n \\\\\\\"href\\\\\\\": \\\\\\\"https://twitter.com/explore/tabs/trending/\\\\\\\",\\\\n \\\\\\\"body\\\\\\\": \\\\\\\"Explore trending topics, hashtags, and conversations on Twitter.\\\\\\\"\\\\n },\\\\n {\\\\n \\\\\\\"title\\\\\\\": \\\\\\\"United States \\\\\\\\u2014 X (Twitter) trending topics and hashtags today ...\\\\\\\",\\\\n \\\\\\\"href\\\\\\\": \\\\\\\"https://trends24.in/united-states/\\\\\\\",\\\\n \\\\\\\"body\\\\\\\": \\\\\\\"Today's top X (Twitter) trends and hashtags in United States: National Guard, Los Angeles, California, Peaceful, Marines. Explore more locations and trending topics on trends24.in\\\\\\\"\\\\n },\\\\n {\\\\n \\\\\\\"title\\\\\\\": \\\\\\\"Worldwide \\\\\\\\u2022 Top Hashtags \\\\\\\\u2022 Most Tweeted \\\\\\\\u2022 Day - getdaytrends\\\\\\\",\\\\n \\\\\\\"href\\\\\\\": \\\\\\\"https://getdaytrends.com/top/tweeted/day/\\\\\\\",\\\\n \\\\\\\"body\\\\\\\": \\\\\\\"About Us. We store and analyze Twitter data to bring you insights on what's currently trending and help you keep up with the audience. Find out hot trends, review trend history and browse long-term popular hashtags and topics.\\\\\\\"\\\\n },\\\\n {\\\\n \\\\\\\"title\\\\\\\": \\\\\\\"United States Latest Trending X (Twitter) hashtag and topics\\\\\\\",\\\\n \\\\\\\"href\\\\\\\": \\\\\\\"https://91trends.com/twitter/united-states/\\\\\\\",\\\\n \\\\\\\"body\\\\\\\": \\\\\\\"United States X (Twitter) Trends Now | Top X (Twitter) Trending Topics & Hashtags Today. Get real-time updates on the hottest trending hashtags and topics on X (Twitter) United States with our automated page. Our page utilizes the official X (Twitter) API to refresh the most talked-about hashtags and topics every 30 minutes, ensuring you always have access to the most current trends on the ...\\\\\\\"\\\\n },\\\\n {\\\\n \\\\\\\"title\\\\\\\": \\\\\\\"Trending on Twitter United States today - Global Twitter Trends\\\\\\\",\\\\n \\\\\\\"href\\\\\\\": \\\\\\\"https://globaltwittertrends.com/united-states/\\\\\\\",\\\\n \\\\\\\"body\\\\\\\": \\\\\\\"Above is the table to show what's trending in United States twitter right now . You can click on any one of the trends to tweet it or view all tweets based on that trend. You can also view the twitter trends of all towns in United States by just searching on the search bar above or by choosing from the provided list of countries and towns.\\\\\\\"\\\\n }\\\\n]\\\",\\\"metrics\\\":{\\\"time\\\":0.7176052920003713},\\\"stop_after_tool_call\\\":false,\\\"created_at\\\":1749650243,\\\"requires_confirmation\\\":null,\\\"confirmed\\\":null,\\\"confirmation_note\\\":null,\\\"requires_user_input\\\":null,\\\"user_input_schema\\\":null,\\\"external_execution_required\\\":null}]}\"",+ "createdAt": "2025-06-11T14:01:40.000Z",+ "updatedAt": "2025-06-11T14:01:39.791Z",+ "metadata": "{\"attributes\":{\"input.value\":\"{\\\"run_response\\\": \\\"RunResponse(content=None, content_type='str', thinking=None, reasoning_content=None, event='RunResponse', messages=None, metrics=None, model='gpt-4o-mini', model_provider='OpenAI', run_id='625aa1b6-dc11-4804-8f4b-e2f5b604c07f', agent_id='007f4340-d3b3-4e4e-bf94-bdb22a16d8d5', session_id='35cc6c90-b657-4819-b66c-c931c03ad569', workflow_id=None, tools=None, formatted_tool_calls=None, images=None, videos=None, audio=None, response_audio=None, citations=None, extra_data=None, created_at=1749650492)\\\", \\\"run_messages\\\": \\\"RunMessages(messages=[Message(role='system', content='<additional_information>\\\\\\\\n- Use markdown to format your answers.\\\\\\\\n</additional_information>', name=None, tool_call_id=None, tool_calls=None, audio=None, images=None, videos=None, files=None, audio_output=None, image_output=None, thinking=None, redacted_thinking=None, provider_data=None, citations=None, reasoning_content=None, tool_name=None, tool_args=None, tool_call_error=None, stop_after_tool_call=False, add_to_agent_memory=True, from_history=False, metrics=MessageMetrics(input_tokens=0, output_tokens=0, total_tokens=0, audio_tokens=0, input_audio_tokens=0, output_audio_tokens=0, cached_tokens=0, reasoning_tokens=0, prompt_tokens=0, completion_tokens=0, prompt_tokens_details=None, completion_tokens_details=None, additional_metrics=None, time=None, time_to_first_token=None, timer=None), references=None, created_at=1749650492), Message(role='user', content='What is currently trending on Twitter?', name=None, tool_call_id=None, tool_calls=None, audio=None, images=None, videos=None, files=None, audio_output=None, image_output=None, thinking=None, redacted_thinking=None, provider_data=None, citations=None, reasoning_content=None, tool_name=None, tool_args=None, tool_call_error=None, stop_after_tool_call=False, add_to_agent_memory=True, from_history=False, metrics=MessageMetrics(input_tokens=0, output_tokens=0, total_tokens=0, audio_tokens=0, input_audio_tokens=0, output_audio_tokens=0, cached_tokens=0, reasoning_tokens=0, prompt_tokens=0, completion_tokens=0, prompt_tokens_details=None, completion_tokens_details=None, additional_metrics=None, time=None, time_to_first_token=None, timer=None), references=None, created_at=1749650492)], system_message=Message(role='system', content='<additional_information>\\\\\\\\n- Use markdown to format your answers.\\\\\\\\n</additional_information>', name=None, tool_call_id=None, tool_calls=None, audio=None, images=None, videos=None, files=None, audio_output=None, image_output=None, thinking=None, redacted_thinking=None, provider_data=None, citations=None, reasoning_content=None, tool_name=None, tool_args=None, tool_call_error=None, stop_after_tool_call=False, add_to_agent_memory=True, from_history=False, metrics=MessageMetrics(input_tokens=0, output_tokens=0, total_tokens=0, audio_tokens=0, input_audio_tokens=0, output_audio_tokens=0, cached_tokens=0, reasoning_tokens=0, prompt_tokens=0, completion_tokens=0, prompt_tokens_details=None, completion_tokens_details=None, additional_metrics=None, time=None, time_to_first_token=None, timer=None), references=None, created_at=1749650492), user_message=Message(role='user', content='What is currently trending on Twitter?', name=None, tool_call_id=None, tool_calls=None, audio=None, images=None, videos=None, files=None, audio_output=None, image_output=None, thinking=None, redacted_thinking=None, provider_data=None, citations=None, reasoning_content=None, tool_name=None, tool_args=None, tool_call_error=None, stop_after_tool_call=False, add_to_agent_memory=True, from_history=False, metrics=MessageMetrics(input_tokens=0, output_tokens=0, total_tokens=0, audio_tokens=0, input_audio_tokens=0, output_audio_tokens=0, cached_tokens=0, reasoning_tokens=0, prompt_tokens=0, completion_tokens=0, prompt_tokens_details=None, completion_tokens_details=None, additional_metrics=None, time=None, time_to_first_token=None, timer=None), references=None, created_at=1749650492), extra_messages=None)\\\", \\\"session_id\\\": \\\"35cc6c90-b657-4819-b66c-c931c03ad569\\\", \\\"message\\\": \\\"What is currently trending on Twitter?\\\"}\",\"session.id\":\"35cc6c90-b657-4819-b66c-c931c03ad569\",\"agno{key_suffix}.tools\":\"[\\\"duckduckgo_search\\\",\\\"duckduckgo_news\\\"]\",\"output.value\":\"{\\n \\\"content\\\": \\\"To find out what's currently trending on Twitter, you can visit the following resources:\\\\n\\\\n1. **[Twitter Explore](https://twitter.com/explore/tabs/trending/)**: Explore trending topics, hashtags, and conversations directly on Twitter.\\\\n\\\\n2. **[Trends24](https://trends24.in/united-states/)**: This site lists today's top X (Twitter) trends and hashtags in the United States, including topics like National Guard, Los Angeles, and more.\\\\n\\\\n3. **[Get Day Trends](https://getdaytrends.com/top/tweeted/day/)**: This platform analyzes Twitter data to provide insights on current trending topics and hashtags.\\\\n\\\\n4. **[91 Trends](https://91trends.com/twitter/united-states/)**: Get real-time updates on what's trending on Twitter in the United States.\\\\n\\\\n5. **[Global Twitter Trends](https://globaltwittertrends.com/united-states/)**: Check out what's trending specifically in the United States and view tweets based on those trends.\\\\n\\\\nFeel free to explore these links for the most up-to-date trending topics!\\\",\\n \\\"content_type\\\": \\\"str\\\",\\n \\\"event\\\": \\\"RunResponse\\\",\\n \\\"metrics\\\": {\\n \\\"input_tokens\\\": [\\n 163,\\n 663\\n ],\\n \\\"output_tokens\\\": [\\n 20,\\n 225\\n ],\\n \\\"total_tokens\\\": [\\n 183,\\n 888\\n ],\\n \\\"audio_tokens\\\": [\\n 0,\\n 0\\n ],\\n \\\"input_audio_tokens\\\": [\\n 0,\\n 0\\n ],\\n \\\"output_audio_tokens\\\": [\\n 0,\\n 0\\n ],\\n \\\"cached_tokens\\\": [\\n 0,\\n 0\\n ],\\n \\\"reasoning_tokens\\\": [\\n 0,\\n 0\\n ],\\n \\\"prompt_tokens\\\": [\\n 163,\\n 663\\n ],\\n \\\"completion_tokens\\\": [\\n 20,\\n 225\\n ],\\n \\\"prompt_tokens_details\\\": [\\n {\\n \\\"audio_tokens\\\": 0,\\n \\\"cached_tokens\\\": 0\\n },\\n {\\n \\\"audio_tokens\\\": 0,\\n \\\"cached_tokens\\\": 0\\n }\\n ],\\n \\\"completion_tokens_details\\\": [\\n {\\n \\\"accepted_prediction_tokens\\\": 0,\\n \\\"audio_tokens\\\": 0,\\n \\\"reasoning_tokens\\\": 0,\\n \\\"rejected_prediction_tokens\\\": 0\\n },\\n {\\n \\\"accepted_prediction_tokens\\\": 0,\\n \\\"audio_tokens\\\": 0,\\n \\\"reasoning_tokens\\\": 0,\\n \\\"rejected_prediction_tokens\\\": 0\\n }\\n ],\\n \\\"time\\\": [\\n 0.9596867079999356,\\n 4.799381209000785\\n ]\\n },\\n \\\"model\\\": \\\"gpt-4o-mini\\\",\\n \\\"model_provider\\\": \\\"OpenAI\\\",\\n \\\"run_id\\\": \\\"625aa1b6-dc11-4804-8f4b-e2f5b604c07f\\\",\\n \\\"agent_id\\\": \\\"007f4340-d3b3-4e4e-bf94-bdb22a16d8d5\\\",\\n \\\"session_id\\\": \\\"35cc6c90-b657-4819-b66c-c931c03ad569\\\",\\n \\\"formatted_tool_calls\\\": [\\n \\\"duckduckgo_search(query=currently trending on Twitter)\\\"\\n ],\\n \\\"created_at\\\": 1749650243,\\n \\\"messages\\\": [\\n {\\n \\\"content\\\": \\\"<additional_information>\\\\n- Use markdown to format your answers.\\\\n</additional_information>\\\",\\n \\\"from_history\\\": false,\\n \\\"stop_after_tool_call\\\": false,\\n \\\"role\\\": \\\"system\\\",\\n \\\"created_at\\\": 1749650492\\n },\\n {\\n \\\"content\\\": \\\"What is currently trending on Twitter?\\\",\\n \\\"from_history\\\": false,\\n \\\"stop_after_tool_call\\\": false,\\n \\\"role\\\": \\\"user\\\",\\n \\\"created_at\\\": 1749650492\\n },\\n {\\n \\\"from_history\\\": false,\\n \\\"stop_after_tool_call\\\": false,\\n \\\"role\\\": \\\"assistant\\\",\\n \\\"tool_calls\\\": [\\n {\\n \\\"id\\\": \\\"call_VybxG748CQId8Xxo6wb2pWy1\\\",\\n \\\"function\\\": {\\n \\\"arguments\\\": \\\"{\\\\\\\"query\\\\\\\":\\\\\\\"currently trending on Twitter\\\\\\\"}\\\",\\n \\\"name\\\": \\\"duckduckgo_search\\\"\\n },\\n \\\"type\\\": \\\"function\\\"\\n }\\n ],\\n \\\"metrics\\\": {\\n \\\"input_tokens\\\": 163,\\n \\\"output_tokens\\\": 20,\\n \\\"total_tokens\\\": 183,\\n \\\"prompt_tokens\\\": 163,\\n \\\"completion_tokens\\\": 20,\\n \\\"prompt_tokens_details\\\": {\\n \\\"audio_tokens\\\": 0,\\n \\\"cached_tokens\\\": 0\\n },\\n \\\"completion_tokens_details\\\": {\\n \\\"accepted_prediction_tokens\\\": 0,\\n \\\"audio_tokens\\\": 0,\\n \\\"reasoning_tokens\\\": 0,\\n \\\"rejected_prediction_tokens\\\": 0\\n },\\n \\\"time\\\": 0.9596867079999356\\n },\\n \\\"created_at\\\": 1749650492\\n },\\n {\\n \\\"content\\\": \\\"[\\\\n {\\\\n \\\\\\\"title\\\\\\\": \\\\\\\"Twitter. It's what's happening / Twitter\\\\\\\",\\\\n \\\\\\\"href\\\\\\\": \\\\\\\"https://twitter.com/explore/tabs/trending/\\\\\\\",\\\\n \\\\\\\"body\\\\\\\": \\\\\\\"Explore trending topics, hashtags, and conversations on Twitter.\\\\\\\"\\\\n },\\\\n {\\\\n \\\\\\\"title\\\\\\\": \\\\\\\"United States \\\\\\\\u2014 X (Twitter) trending topics and hashtags today ...\\\\\\\",\\\\n \\\\\\\"href\\\\\\\": \\\\\\\"https://trends24.in/united-states/\\\\\\\",\\\\n \\\\\\\"body\\\\\\\": \\\\\\\"Today's top X (Twitter) trends and hashtags in United States: National Guard, Los Angeles, California, Peaceful, Marines. Explore more locations and trending topics on trends24.in\\\\\\\"\\\\n },\\\\n {\\\\n \\\\\\\"title\\\\\\\": \\\\\\\"Worldwide \\\\\\\\u2022 Top Hashtags \\\\\\\\u2022 Most Tweeted \\\\\\\\u2022 Day - getdaytrends\\\\\\\",\\\\n \\\\\\\"href\\\\\\\": \\\\\\\"https://getdaytrends.com/top/tweeted/day/\\\\\\\",\\\\n \\\\\\\"body\\\\\\\": \\\\\\\"About Us. We store and analyze Twitter data to bring you insights on what's currently trending and help you keep up with the audience. Find out hot trends, review trend history and browse long-term popular hashtags and topics.\\\\\\\"\\\\n },\\\\n {\\\\n \\\\\\\"title\\\\\\\": \\\\\\\"United States Latest Trending X (Twitter) hashtag and topics\\\\\\\",\\\\n \\\\\\\"href\\\\\\\": \\\\\\\"https://91trends.com/twitter/united-states/\\\\\\\",\\\\n \\\\\\\"body\\\\\\\": \\\\\\\"United States X (Twitter) Trends Now | Top X (Twitter) Trending Topics & Hashtags Today. Get real-time updates on the hottest trending hashtags and topics on X (Twitter) United States with our automated page. Our page utilizes the official X (Twitter) API to refresh the most talked-about hashtags and topics every 30 minutes, ensuring you always have access to the most current trends on the ...\\\\\\\"\\\\n },\\\\n {\\\\n \\\\\\\"title\\\\\\\": \\\\\\\"Trending on Twitter United States today - Global Twitter Trends\\\\\\\",\\\\n \\\\\\\"href\\\\\\\": \\\\\\\"https://globaltwittertrends.com/united-states/\\\\\\\",\\\\n \\\\\\\"body\\\\\\\": \\\\\\\"Above is the table to show what's trending in United States twitter right now . You can click on any one of the trends to tweet it or view all tweets based on that trend. You can also view the twitter trends of all towns in United States by just searching on the search bar above or by choosing from the provided list of countries and towns.\\\\\\\"\\\\n }\\\\n]\\\",\\n \\\"from_history\\\": false,\\n \\\"stop_after_tool_call\\\": false,\\n \\\"role\\\": \\\"tool\\\",\\n \\\"tool_call_id\\\": \\\"call_VybxG748CQId8Xxo6wb2pWy1\\\",\\n \\\"tool_name\\\": \\\"duckduckgo_search\\\",\\n \\\"tool_args\\\": {\\n \\\"query\\\": \\\"currently trending on Twitter\\\"\\n },\\n \\\"tool_call_error\\\": false,\\n \\\"metrics\\\": {\\n \\\"time\\\": 0.7176052920003713\\n },\\n \\\"created_at\\\": 1749650494\\n },\\n {\\n \\\"content\\\": \\\"To find out what's currently trending on Twitter, you can visit the following resources:\\\\n\\\\n1. **[Twitter Explore](https://twitter.com/explore/tabs/trending/)**: Explore trending topics, hashtags, and conversations directly on Twitter.\\\\n\\\\n2. **[Trends24](https://trends24.in/united-states/)**: This site lists today's top X (Twitter) trends and hashtags in the United States, including topics like National Guard, Los Angeles, and more.\\\\n\\\\n3. **[Get Day Trends](https://getdaytrends.com/top/tweeted/day/)**: This platform analyzes Twitter data to provide insights on current trending topics and hashtags.\\\\n\\\\n4. **[91 Trends](https://91trends.com/twitter/united-states/)**: Get real-time updates on what's trending on Twitter in the United States.\\\\n\\\\n5. **[Global Twitter Trends](https://globaltwittertrends.com/united-states/)**: Check out what's trending specifically in the United States and view tweets based on those trends.\\\\n\\\\nFeel free to explore these links for the most up-to-date trending topics!\\\",\\n \\\"from_history\\\": false,\\n \\\"stop_after_tool_call\\\": false,\\n \\\"role\\\": \\\"assistant\\\",\\n \\\"metrics\\\": {\\n \\\"input_tokens\\\": 663,\\n \\\"output_tokens\\\": 225,\\n \\\"total_tokens\\\": 888,\\n \\\"prompt_tokens\\\": 663,\\n \\\"completion_tokens\\\": 225,\\n \\\"prompt_tokens_details\\\": {\\n \\\"audio_tokens\\\": 0,\\n \\\"cached_tokens\\\": 0\\n },\\n \\\"completion_tokens_details\\\": {\\n \\\"accepted_prediction_tokens\\\": 0,\\n \\\"audio_tokens\\\": 0,\\n \\\"reasoning_tokens\\\": 0,\\n \\\"rejected_prediction_tokens\\\": 0\\n },\\n \\\"time\\\": 4.799381209000785\\n },\\n \\\"created_at\\\": 1749650494\\n }\\n ],\\n \\\"tools\\\": [\\n {\\n \\\"tool_call_id\\\": \\\"call_VybxG748CQId8Xxo6wb2pWy1\\\",\\n \\\"tool_name\\\": \\\"duckduckgo_search\\\",\\n \\\"tool_args\\\": {\\n \\\"query\\\": \\\"currently trending on Twitter\\\"\\n },\\n \\\"tool_call_error\\\": false,\\n \\\"result\\\": \\\"[\\\\n {\\\\n \\\\\\\"title\\\\\\\": \\\\\\\"Twitter. It's what's happening / Twitter\\\\\\\",\\\\n \\\\\\\"href\\\\\\\": \\\\\\\"https://twitter.com/explore/tabs/trending/\\\\\\\",\\\\n \\\\\\\"body\\\\\\\": \\\\\\\"Explore trending topics, hashtags, and conversations on Twitter.\\\\\\\"\\\\n },\\\\n {\\\\n \\\\\\\"title\\\\\\\": \\\\\\\"United States \\\\\\\\u2014 X (Twitter) trending topics and hashtags today ...\\\\\\\",\\\\n \\\\\\\"href\\\\\\\": \\\\\\\"https://trends24.in/united-states/\\\\\\\",\\\\n \\\\\\\"body\\\\\\\": \\\\\\\"Today's top X (Twitter) trends and hashtags in United States: National Guard, Los Angeles, California, Peaceful, Marines. Explore more locations and trending topics on trends24.in\\\\\\\"\\\\n },\\\\n {\\\\n \\\\\\\"title\\\\\\\": \\\\\\\"Worldwide \\\\\\\\u2022 Top Hashtags \\\\\\\\u2022 Most Tweeted \\\\\\\\u2022 Day - getdaytrends\\\\\\\",\\\\n \\\\\\\"href\\\\\\\": \\\\\\\"https://getdaytrends.com/top/tweeted/day/\\\\\\\",\\\\n \\\\\\\"body\\\\\\\": \\\\\\\"About Us. We store and analyze Twitter data to bring you insights on what's currently trending and help you keep up with the audience. Find out hot trends, review trend history and browse long-term popular hashtags and topics.\\\\\\\"\\\\n },\\\\n {\\\\n \\\\\\\"title\\\\\\\": \\\\\\\"United States Latest Trending X (Twitter) hashtag and topics\\\\\\\",\\\\n \\\\\\\"href\\\\\\\": \\\\\\\"https://91trends.com/twitter/united-states/\\\\\\\",\\\\n \\\\\\\"body\\\\\\\": \\\\\\\"United States X (Twitter) Trends Now | Top X (Twitter) Trending Topics & Hashtags Today. Get real-time updates on the hottest trending hashtags and topics on X (Twitter) United States with our automated page. Our page utilizes the official X (Twitter) API to refresh the most talked-about hashtags and topics every 30 minutes, ensuring you always have access to the most current trends on the ...\\\\\\\"\\\\n },\\\\n {\\\\n \\\\\\\"title\\\\\\\": \\\\\\\"Trending on Twitter United States today - Global Twitter Trends\\\\\\\",\\\\n \\\\\\\"href\\\\\\\": \\\\\\\"https://globaltwittertrends.com/united-states/\\\\\\\",\\\\n \\\\\\\"body\\\\\\\": \\\\\\\"Above is the table to show what's trending in United States twitter right now . You can click on any one of the trends to tweet it or view all tweets based on that trend. You can also view the twitter trends of all towns in United States by just searching on the search bar above or by choosing from the provided list of countries and towns.\\\\\\\"\\\\n }\\\\n]\\\",\\n \\\"metrics\\\": {\\n \\\"time\\\": 0.7176052920003713\\n },\\n \\\"stop_after_tool_call\\\": false,\\n \\\"created_at\\\": 1749650243,\\n \\\"requires_confirmation\\\": null,\\n \\\"confirmed\\\": null,\\n \\\"confirmation_note\\\": null,\\n \\\"requires_user_input\\\": null,\\n \\\"user_input_schema\\\": null,\\n \\\"external_execution_required\\\": null\\n }\\n ]\\n}\",\"output.mime_type\":\"application/json\",\"openinference.span.kind\":\"AGENT\"},\"resourceAttributes\":{\"telemetry.sdk.language\":\"python\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"1.33.1\",\"service.name\":\"unknown_service\"},\"scope\":{\"name\":\"openinference.instrumentation.agno\",\"version\":\"0.1.4\",\"attributes\":{}}}",+ "scores": [],+ "corrections": [],+ "latency": 6.991,+ "observations": [+ {+ "id": "1f883bb9668167c0",+ "traceId": "080130871f53145aecf7c29d5dfb6e4c",+ "startTime": "2025-06-11T14:01:32.606Z",+ "endTime": "2025-06-11T14:01:33.559Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "ca136de468e156c9",+ "type": "GENERATION",+ "environment": "default",+ "name": "chat gpt-4o-mini",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-06-11T14:01:33.719Z",+ "updatedAt": "2025-06-11T14:01:33.768Z",+ "input": null,+ "output": null,+ "model": "gpt-4o-mini",+ "internalModelId": "clyrjp56f0000t0mzapoocd7u",+ "modelParameters": {+ "seed": "",+ "frequency_penalty": 0,+ "max_tokens": -1,+ "presence_penalty": 0,+ "stop_sequences": "{\"arrayValue\":{}}",+ "temperature": 1,+ "top_p": 1,+ "service_tier": "auto",+ "user": "",+ "is_stream": false+ },+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 0.953,+ "timeToFirstToken": null,+ "usageDetails": {+ "input": 163,+ "output": 20,+ "total": 183+ },+ "costDetails": {+ "total": 0.00003645+ },+ "providedCostDetails": {+ "total": 0.00003645+ },+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0.00003645,+ "inputUsage": 163,+ "outputUsage": 20,+ "totalUsage": 183,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ },+ {+ "id": "b38a82eaa62b551e",+ "traceId": "080130871f53145aecf7c29d5dfb6e4c",+ "startTime": "2025-06-11T14:01:34.290Z",+ "endTime": "2025-06-11T14:01:39.089Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "1cffdfa6fe3412e6",+ "type": "GENERATION",+ "environment": "default",+ "name": "OpenAIChat.invoke",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-06-11T14:01:39.249Z",+ "updatedAt": "2025-06-11T14:01:39.331Z",+ "input": null,+ "output": null,+ "model": "gpt-4o-mini",+ "internalModelId": "clyrjp56f0000t0mzapoocd7u",+ "modelParameters": {},+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 4.799,+ "timeToFirstToken": null,+ "usageDetails": {+ "input": 1568,+ "output": 423,+ "total": 1991+ },+ "costDetails": {+ "input": 0.0002352,+ "output": 0.0002538,+ "total": 0.000489+ },+ "providedCostDetails": {},+ "inputCost": 0.0002352,+ "outputCost": 0.0002538,+ "totalCost": 0.000489,+ "inputUsage": 1568,+ "outputUsage": 423,+ "totalUsage": 1991,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ },+ {+ "id": "ca136de468e156c9",+ "traceId": "080130871f53145aecf7c29d5dfb6e4c",+ "startTime": "2025-06-11T14:01:32.600Z",+ "endTime": "2025-06-11T14:01:33.560Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "1cffdfa6fe3412e6",+ "type": "GENERATION",+ "environment": "default",+ "name": "OpenAIChat.invoke",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-06-11T14:01:33.719Z",+ "updatedAt": "2025-06-11T14:01:33.752Z",+ "input": null,+ "output": null,+ "model": "gpt-4o-mini",+ "internalModelId": "clyrjp56f0000t0mzapoocd7u",+ "modelParameters": {},+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 0.96,+ "timeToFirstToken": null,+ "usageDetails": {+ "input": 542,+ "output": 235,+ "total": 777+ },+ "costDetails": {+ "input": 0.0000813,+ "output": 0.000141,+ "total": 0.0002223+ },+ "providedCostDetails": {},+ "inputCost": 0.0000813,+ "outputCost": 0.000141,+ "totalCost": 0.0002223,+ "inputUsage": 542,+ "outputUsage": 235,+ "totalUsage": 777,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ },+ {+ "id": "fc7f61b57ecebbaf",+ "traceId": "080130871f53145aecf7c29d5dfb6e4c",+ "startTime": "2025-06-11T14:01:34.296Z",+ "endTime": "2025-06-11T14:01:39.089Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "b38a82eaa62b551e",+ "type": "GENERATION",+ "environment": "default",+ "name": "chat gpt-4o-mini",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-06-11T14:01:39.245Z",+ "updatedAt": "2025-06-11T14:01:39.285Z",+ "input": null,+ "output": null,+ "model": "gpt-4o-mini",+ "internalModelId": "clyrjp56f0000t0mzapoocd7u",+ "modelParameters": {+ "seed": "",+ "frequency_penalty": 0,+ "max_tokens": -1,+ "presence_penalty": 0,+ "stop_sequences": "{\"arrayValue\":{}}",+ "temperature": 1,+ "top_p": 1,+ "service_tier": "auto",+ "user": "",+ "is_stream": false+ },+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 4.793,+ "timeToFirstToken": null,+ "usageDetails": {+ "input": 663,+ "output": 225,+ "total": 888+ },+ "costDetails": {+ "total": 0.000234449999+ },+ "providedCostDetails": {+ "total": 0.000234449999+ },+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0.000234449999,+ "inputUsage": 663,+ "outputUsage": 225,+ "totalUsage": 888,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ },+ {+ "id": "1cffdfa6fe3412e6",+ "traceId": "080130871f53145aecf7c29d5dfb6e4c",+ "startTime": "2025-06-11T14:01:32.598Z",+ "endTime": "2025-06-11T14:01:39.589Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": null,+ "type": "SPAN",+ "environment": "default",+ "name": "Agent.run",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-06-11T14:01:39.781Z",+ "updatedAt": "2025-06-11T14:01:39.875Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 6.991,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ },+ {+ "id": "6581e147aec6793a",+ "traceId": "080130871f53145aecf7c29d5dfb6e4c",+ "startTime": "2025-06-11T14:01:33.564Z",+ "endTime": "2025-06-11T14:01:34.281Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "1cffdfa6fe3412e6",+ "type": "SPAN",+ "environment": "default",+ "name": "duckduckgo_search",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-06-11T14:01:34.476Z",+ "updatedAt": "2025-06-11T14:01:34.529Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 0.717,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ }+ ]+ },+ "observations": [+ {+ "id": "1f883bb9668167c0",+ "traceId": "080130871f53145aecf7c29d5dfb6e4c",+ "startTime": "2025-06-11T14:01:32.606Z",+ "endTime": "2025-06-11T14:01:33.559Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "ca136de468e156c9",+ "type": "GENERATION",+ "environment": "default",+ "name": "chat gpt-4o-mini",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-06-11T14:01:33.719Z",+ "updatedAt": "2025-06-11T14:01:33.768Z",+ "input": "developer: <additional_information>\n- Use markdown to format your answers.\n</additional_information>\nuser: What is currently trending on Twitter?",+ "output": "None",+ "model": "gpt-4o-mini",+ "internalModelId": "clyrjp56f0000t0mzapoocd7u",+ "modelParameters": {+ "seed": "",+ "frequency_penalty": 0,+ "max_tokens": -1,+ "presence_penalty": 0,+ "stop_sequences": "{\"arrayValue\":{}}",+ "temperature": 1,+ "top_p": 1,+ "service_tier": "auto",+ "user": "",+ "is_stream": false+ },+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 0.953,+ "timeToFirstToken": null,+ "usageDetails": {+ "input": 163,+ "output": 20,+ "total": 183+ },+ "costDetails": {+ "total": 0.00003645+ },+ "providedCostDetails": {+ "total": 0.00003645+ },+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0.00003645,+ "inputUsage": 163,+ "outputUsage": 20,+ "totalUsage": 183,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"resourceAttributes\":{\"telemetry.sdk.language\":\"python\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"1.33.1\",\"service.name\":\"unknown_service\"},\"scope\":{\"name\":\"langfuse-sdk\",\"version\":\"3.0.1\",\"attributes\":{\"public_key\":\"pk-lf-5855d85e-3943-497e-bd10-f50ad414bcba\"}}}",+ "internalModel": "clyrjp56f0000t0mzapoocd7u"+ },+ {+ "id": "b38a82eaa62b551e",+ "traceId": "080130871f53145aecf7c29d5dfb6e4c",+ "startTime": "2025-06-11T14:01:34.290Z",+ "endTime": "2025-06-11T14:01:39.089Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "1cffdfa6fe3412e6",+ "type": "GENERATION",+ "environment": "default",+ "name": "OpenAIChat.invoke",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-06-11T14:01:39.249Z",+ "updatedAt": "2025-06-11T14:01:39.331Z",+ "input": "{\"messages\": [\"role='system' content='<additional_information>\\\\n- Use markdown to format your answers.\\\\n</additional_information>' name=None tool_call_id=None tool_calls=None audio=None images=None videos=None files=None audio_output=None image_output=None thinking=None redacted_thinking=None provider_data=None citations=None reasoning_content=None tool_name=None tool_args=None tool_call_error=None stop_after_tool_call=False add_to_agent_memory=True from_history=False metrics=MessageMetrics(input_tokens=0, output_tokens=0, total_tokens=0, audio_tokens=0, input_audio_tokens=0, output_audio_tokens=0, cached_tokens=0, reasoning_tokens=0, prompt_tokens=0, completion_tokens=0, prompt_tokens_details=None, completion_tokens_details=None, additional_metrics=None, time=None, time_to_first_token=None, timer=None) references=None created_at=1749650492\", \"role='user' content='What is currently trending on Twitter?' name=None tool_call_id=None tool_calls=None audio=None images=None videos=None files=None audio_output=None image_output=None thinking=None redacted_thinking=None provider_data=None citations=None reasoning_content=None tool_name=None tool_args=None tool_call_error=None stop_after_tool_call=False add_to_agent_memory=True from_history=False metrics=MessageMetrics(input_tokens=0, output_tokens=0, total_tokens=0, audio_tokens=0, input_audio_tokens=0, output_audio_tokens=0, cached_tokens=0, reasoning_tokens=0, prompt_tokens=0, completion_tokens=0, prompt_tokens_details=None, completion_tokens_details=None, additional_metrics=None, time=None, time_to_first_token=None, timer=None) references=None created_at=1749650492\", \"role='assistant' content=None name=None tool_call_id=None tool_calls=[{'id': 'call_VybxG748CQId8Xxo6wb2pWy1', 'function': {'arguments': '{\\\"query\\\":\\\"currently trending on Twitter\\\"}', 'name': 'duckduckgo_search'}, 'type': 'function'}] audio=None images=None videos=None files=None audio_output=None image_output=None thinking=None redacted_thinking=None provider_data=None citations=None reasoning_content=None tool_name=None tool_args=None tool_call_error=None stop_after_tool_call=False add_to_agent_memory=True from_history=False metrics=MessageMetrics(input_tokens=163, output_tokens=20, total_tokens=183, audio_tokens=0, input_audio_tokens=0, output_audio_tokens=0, cached_tokens=0, reasoning_tokens=0, prompt_tokens=163, completion_tokens=20, prompt_tokens_details={'audio_tokens': 0, 'cached_tokens': 0}, completion_tokens_details={'accepted_prediction_tokens': 0, 'audio_tokens': 0, 'reasoning_tokens': 0, 'rejected_prediction_tokens': 0}, additional_metrics=None, time=0.9596867079999356, time_to_first_token=None, timer=<agno.utils.timer.Timer object at 0x309c55a90>) references=None created_at=1749650492\", \"role='tool' content='[\\\\n {\\\\n \\\"title\\\": \\\"Twitter. It\\\\'s what\\\\'s happening / Twitter\\\",\\\\n \\\"href\\\": \\\"https://twitter.com/explore/tabs/trending/\\\",\\\\n \\\"body\\\": \\\"Explore trending topics, hashtags, and conversations on Twitter.\\\"\\\\n },\\\\n {\\\\n \\\"title\\\": \\\"United States \\\\\\\\u2014 X (Twitter) trending topics and hashtags today ...\\\",\\\\n \\\"href\\\": \\\"https://trends24.in/united-states/\\\",\\\\n \\\"body\\\": \\\"Today\\\\'s top X (Twitter) trends and hashtags in United States: National Guard, Los Angeles, California, Peaceful, Marines. Explore more locations and trending topics on trends24.in\\\"\\\\n },\\\\n {\\\\n \\\"title\\\": \\\"Worldwide \\\\\\\\u2022 Top Hashtags \\\\\\\\u2022 Most Tweeted \\\\\\\\u2022 Day - getdaytrends\\\",\\\\n \\\"href\\\": \\\"https://getdaytrends.com/top/tweeted/day/\\\",\\\\n \\\"body\\\": \\\"About Us. We store and analyze Twitter data to bring you insights on what\\\\'s currently trending and help you keep up with the audience. Find out hot trends, review trend history and browse long-term popular hashtags and topics.\\\"\\\\n },\\\\n {\\\\n \\\"title\\\": \\\"United States Latest Trending X (Twitter) hashtag and topics\\\",\\\\n \\\"href\\\": \\\"https://91trends.com/twitter/united-states/\\\",\\\\n \\\"body\\\": \\\"United States X (Twitter) Trends Now | Top X (Twitter) Trending Topics & Hashtags Today. Get real-time updates on the hottest trending hashtags and topics on X (Twitter) United States with our automated page. Our page utilizes the official X (Twitter) API to refresh the most talked-about hashtags and topics every 30 minutes, ensuring you always have access to the most current trends on the ...\\\"\\\\n },\\\\n {\\\\n \\\"title\\\": \\\"Trending on Twitter United States today - Global Twitter Trends\\\",\\\\n \\\"href\\\": \\\"https://globaltwittertrends.com/united-states/\\\",\\\\n \\\"body\\\": \\\"Above is the table to show what\\\\'s trending in United States twitter right now . You can click on any one of the trends to tweet it or view all tweets based on that trend. You can also view the twitter trends of all towns in United States by just searching on the search bar above or by choosing from the provided list of countries and towns.\\\"\\\\n }\\\\n]' name=None tool_call_id='call_VybxG748CQId8Xxo6wb2pWy1' tool_calls=None audio=None images=None videos=None files=None audio_output=None image_output=None thinking=None redacted_thinking=None provider_data=None citations=None reasoning_content=None tool_name='duckduckgo_search' tool_args={'query': 'currently trending on Twitter'} tool_call_error=False stop_after_tool_call=False add_to_agent_memory=True from_history=False metrics=MessageMetrics(input_tokens=0, output_tokens=0, total_tokens=0, audio_tokens=0, input_audio_tokens=0, output_audio_tokens=0, cached_tokens=0, reasoning_tokens=0, prompt_tokens=0, completion_tokens=0, prompt_tokens_details=None, completion_tokens_details=None, additional_metrics=None, time=0.7176052920003713, time_to_first_token=None, timer=None) references=None created_at=1749650494\"], \"tools\": [{\"type\": \"function\", \"function\": {\"name\": \"duckduckgo_search\", \"description\": \"Use this function to search DuckDuckGo for a query.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"query\": {\"type\": \"string\", \"description\": \"(str) The query to search for.\"}, \"max_results\": {\"type\": \"number\", \"description\": \"(optional, default=5) The maximum number of results to return.\"}}, \"required\": [\"query\"]}, \"requires_confirmation\": false, \"external_execution\": false}}, {\"type\": \"function\", \"function\": {\"name\": \"duckduckgo_news\", \"description\": \"Use this function to get the latest news from DuckDuckGo.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"query\": {\"type\": \"string\", \"description\": \"(str) The query to search for.\"}, \"max_results\": {\"type\": \"number\", \"description\": \"(optional, default=5) The maximum number of results to return.\"}}, \"required\": [\"query\"]}, \"requires_confirmation\": false, \"external_execution\": false}}]}",+ "output": "{\"id\":\"chatcmpl-BhGJDsZlpk55owZCjMyJl8TOGqk0H\",\"choices\":[{\"finish_reason\":\"stop\",\"index\":0,\"logprobs\":null,\"message\":{\"content\":\"To find out what's currently trending on Twitter, you can visit the following resources:\\n\\n1. **[Twitter Explore](https://twitter.com/explore/tabs/trending/)**: Explore trending topics, hashtags, and conversations directly on Twitter.\\n\\n2. **[Trends24](https://trends24.in/united-states/)**: This site lists today's top X (Twitter) trends and hashtags in the United States, including topics like National Guard, Los Angeles, and more.\\n\\n3. **[Get Day Trends](https://getdaytrends.com/top/tweeted/day/)**: This platform analyzes Twitter data to provide insights on current trending topics and hashtags.\\n\\n4. **[91 Trends](https://91trends.com/twitter/united-states/)**: Get real-time updates on what's trending on Twitter in the United States.\\n\\n5. **[Global Twitter Trends](https://globaltwittertrends.com/united-states/)**: Check out what's trending specifically in the United States and view tweets based on those trends.\\n\\nFeel free to explore these links for the most up-to-date trending topics!\",\"refusal\":null,\"role\":\"assistant\",\"annotations\":[],\"audio\":null,\"function_call\":null,\"tool_calls\":null}}],\"created\":1749650495,\"model\":\"gpt-4o-mini-2024-07-18\",\"object\":\"chat.completion\",\"service_tier\":\"default\",\"system_fingerprint\":\"fp_34a54ae93c\",\"usage\":{\"completion_tokens\":225,\"prompt_tokens\":663,\"total_tokens\":888,\"completion_tokens_details\":{\"accepted_prediction_tokens\":0,\"audio_tokens\":0,\"reasoning_tokens\":0,\"rejected_prediction_tokens\":0},\"prompt_tokens_details\":{\"audio_tokens\":0,\"cached_tokens\":0}}}",+ "model": "gpt-4o-mini",+ "internalModelId": "clyrjp56f0000t0mzapoocd7u",+ "modelParameters": {},+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 4.799,+ "timeToFirstToken": null,+ "usageDetails": {+ "input": 1568,+ "output": 423,+ "total": 1991+ },+ "costDetails": {+ "input": 0.0002352,+ "output": 0.0002538,+ "total": 0.000489+ },+ "providedCostDetails": {},+ "inputCost": 0.0002352,+ "outputCost": 0.0002538,+ "totalCost": 0.000489,+ "inputUsage": 1568,+ "outputUsage": 423,+ "totalUsage": 1991,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"attributes\":{\"input.mime_type\":\"application/json\",\"input.value\":\"{\\\"messages\\\": [\\\"role='system' content='<additional_information>\\\\\\\\n- Use markdown to format your answers.\\\\\\\\n</additional_information>' name=None tool_call_id=None tool_calls=None audio=None images=None videos=None files=None audio_output=None image_output=None thinking=None redacted_thinking=None provider_data=None citations=None reasoning_content=None tool_name=None tool_args=None tool_call_error=None stop_after_tool_call=False add_to_agent_memory=True from_history=False metrics=MessageMetrics(input_tokens=0, output_tokens=0, total_tokens=0, audio_tokens=0, input_audio_tokens=0, output_audio_tokens=0, cached_tokens=0, reasoning_tokens=0, prompt_tokens=0, completion_tokens=0, prompt_tokens_details=None, completion_tokens_details=None, additional_metrics=None, time=None, time_to_first_token=None, timer=None) references=None created_at=1749650492\\\", \\\"role='user' content='What is currently trending on Twitter?' name=None tool_call_id=None tool_calls=None audio=None images=None videos=None files=None audio_output=None image_output=None thinking=None redacted_thinking=None provider_data=None citations=None reasoning_content=None tool_name=None tool_args=None tool_call_error=None stop_after_tool_call=False add_to_agent_memory=True from_history=False metrics=MessageMetrics(input_tokens=0, output_tokens=0, total_tokens=0, audio_tokens=0, input_audio_tokens=0, output_audio_tokens=0, cached_tokens=0, reasoning_tokens=0, prompt_tokens=0, completion_tokens=0, prompt_tokens_details=None, completion_tokens_details=None, additional_metrics=None, time=None, time_to_first_token=None, timer=None) references=None created_at=1749650492\\\", \\\"role='assistant' content=None name=None tool_call_id=None tool_calls=[{'id': 'call_VybxG748CQId8Xxo6wb2pWy1', 'function': {'arguments': '{\\\\\\\"query\\\\\\\":\\\\\\\"currently trending on Twitter\\\\\\\"}', 'name': 'duckduckgo_search'}, 'type': 'function'}] audio=None images=None videos=None files=None audio_output=None image_output=None thinking=None redacted_thinking=None provider_data=None citations=None reasoning_content=None tool_name=None tool_args=None tool_call_error=None stop_after_tool_call=False add_to_agent_memory=True from_history=False metrics=MessageMetrics(input_tokens=163, output_tokens=20, total_tokens=183, audio_tokens=0, input_audio_tokens=0, output_audio_tokens=0, cached_tokens=0, reasoning_tokens=0, prompt_tokens=163, completion_tokens=20, prompt_tokens_details={'audio_tokens': 0, 'cached_tokens': 0}, completion_tokens_details={'accepted_prediction_tokens': 0, 'audio_tokens': 0, 'reasoning_tokens': 0, 'rejected_prediction_tokens': 0}, additional_metrics=None, time=0.9596867079999356, time_to_first_token=None, timer=<agno.utils.timer.Timer object at 0x309c55a90>) references=None created_at=1749650492\\\", \\\"role='tool' content='[\\\\\\\\n {\\\\\\\\n \\\\\\\"title\\\\\\\": \\\\\\\"Twitter. It\\\\\\\\'s what\\\\\\\\'s happening / Twitter\\\\\\\",\\\\\\\\n \\\\\\\"href\\\\\\\": \\\\\\\"https://twitter.com/explore/tabs/trending/\\\\\\\",\\\\\\\\n \\\\\\\"body\\\\\\\": \\\\\\\"Explore trending topics, hashtags, and conversations on Twitter.\\\\\\\"\\\\\\\\n },\\\\\\\\n {\\\\\\\\n \\\\\\\"title\\\\\\\": \\\\\\\"United States \\\\\\\\\\\\\\\\u2014 X (Twitter) trending topics and hashtags today ...\\\\\\\",\\\\\\\\n \\\\\\\"href\\\\\\\": \\\\\\\"https://trends24.in/united-states/\\\\\\\",\\\\\\\\n \\\\\\\"body\\\\\\\": \\\\\\\"Today\\\\\\\\'s top X (Twitter) trends and hashtags in United States: National Guard, Los Angeles, California, Peaceful, Marines. Explore more locations and trending topics on trends24.in\\\\\\\"\\\\\\\\n },\\\\\\\\n {\\\\\\\\n \\\\\\\"title\\\\\\\": \\\\\\\"Worldwide \\\\\\\\\\\\\\\\u2022 Top Hashtags \\\\\\\\\\\\\\\\u2022 Most Tweeted \\\\\\\\\\\\\\\\u2022 Day - getdaytrends\\\\\\\",\\\\\\\\n \\\\\\\"href\\\\\\\": \\\\\\\"https://getdaytrends.com/top/tweeted/day/\\\\\\\",\\\\\\\\n \\\\\\\"body\\\\\\\": \\\\\\\"About Us. We store and analyze Twitter data to bring you insights on what\\\\\\\\'s currently trending and help you keep up with the audience. Find out hot trends, review trend history and browse long-term popular hashtags and topics.\\\\\\\"\\\\\\\\n },\\\\\\\\n {\\\\\\\\n \\\\\\\"title\\\\\\\": \\\\\\\"United States Latest Trending X (Twitter) hashtag and topics\\\\\\\",\\\\\\\\n \\\\\\\"href\\\\\\\": \\\\\\\"https://91trends.com/twitter/united-states/\\\\\\\",\\\\\\\\n \\\\\\\"body\\\\\\\": \\\\\\\"United States X (Twitter) Trends Now | Top X (Twitter) Trending Topics & Hashtags Today. Get real-time updates on the hottest trending hashtags and topics on X (Twitter) United States with our automated page. Our page utilizes the official X (Twitter) API to refresh the most talked-about hashtags and topics every 30 minutes, ensuring you always have access to the most current trends on the ...\\\\\\\"\\\\\\\\n },\\\\\\\\n {\\\\\\\\n \\\\\\\"title\\\\\\\": \\\\\\\"Trending on Twitter United States today - Global Twitter Trends\\\\\\\",\\\\\\\\n \\\\\\\"href\\\\\\\": \\\\\\\"https://globaltwittertrends.com/united-states/\\\\\\\",\\\\\\\\n \\\\\\\"body\\\\\\\": \\\\\\\"Above is the table to show what\\\\\\\\'s trending in United States twitter right now . You can click on any one of the trends to tweet it or view all tweets based on that trend. You can also view the twitter trends of all towns in United States by just searching on the search bar above or by choosing from the provided list of countries and towns.\\\\\\\"\\\\\\\\n }\\\\\\\\n]' name=None tool_call_id='call_VybxG748CQId8Xxo6wb2pWy1' tool_calls=None audio=None images=None videos=None files=None audio_output=None image_output=None thinking=None redacted_thinking=None provider_data=None citations=None reasoning_content=None tool_name='duckduckgo_search' tool_args={'query': 'currently trending on Twitter'} tool_call_error=False stop_after_tool_call=False add_to_agent_memory=True from_history=False metrics=MessageMetrics(input_tokens=0, output_tokens=0, total_tokens=0, audio_tokens=0, input_audio_tokens=0, output_audio_tokens=0, cached_tokens=0, reasoning_tokens=0, prompt_tokens=0, completion_tokens=0, prompt_tokens_details=None, completion_tokens_details=None, additional_metrics=None, time=0.7176052920003713, time_to_first_token=None, timer=None) references=None created_at=1749650494\\\"], \\\"tools\\\": [{\\\"type\\\": \\\"function\\\", \\\"function\\\": {\\\"name\\\": \\\"duckduckgo_search\\\", \\\"description\\\": \\\"Use this function to search DuckDuckGo for a query.\\\", \\\"parameters\\\": {\\\"type\\\": \\\"object\\\", \\\"properties\\\": {\\\"query\\\": {\\\"type\\\": \\\"string\\\", \\\"description\\\": \\\"(str) The query to search for.\\\"}, \\\"max_results\\\": {\\\"type\\\": \\\"number\\\", \\\"description\\\": \\\"(optional, default=5) The maximum number of results to return.\\\"}}, \\\"required\\\": [\\\"query\\\"]}, \\\"requires_confirmation\\\": false, \\\"external_execution\\\": false}}, {\\\"type\\\": \\\"function\\\", \\\"function\\\": {\\\"name\\\": \\\"duckduckgo_news\\\", \\\"description\\\": \\\"Use this function to get the latest news from DuckDuckGo.\\\", \\\"parameters\\\": {\\\"type\\\": \\\"object\\\", \\\"properties\\\": {\\\"query\\\": {\\\"type\\\": \\\"string\\\", \\\"description\\\": \\\"(str) The query to search for.\\\"}, \\\"max_results\\\": {\\\"type\\\": \\\"number\\\", \\\"description\\\": \\\"(optional, default=5) The maximum number of results to return.\\\"}}, \\\"required\\\": [\\\"query\\\"]}, \\\"requires_confirmation\\\": false, \\\"external_execution\\\": false}}]}\",\"llm.input_messages.0.message.role\":\"system\",\"llm.input_messages.0.message.content\":\"<additional_information>\\n- Use markdown to format your answers.\\n</additional_information>\",\"llm.input_messages.1.message.role\":\"user\",\"llm.input_messages.1.message.content\":\"What is currently trending on Twitter?\",\"llm.input_messages.3.message.role\":\"tool\",\"llm.input_messages.3.message.content\":\"[\\n {\\n \\\"title\\\": \\\"Twitter. It's what's happening / Twitter\\\",\\n \\\"href\\\": \\\"https://twitter.com/explore/tabs/trending/\\\",\\n \\\"body\\\": \\\"Explore trending topics, hashtags, and conversations on Twitter.\\\"\\n },\\n {\\n \\\"title\\\": \\\"United States \\\\u2014 X (Twitter) trending topics and hashtags today ...\\\",\\n \\\"href\\\": \\\"https://trends24.in/united-states/\\\",\\n \\\"body\\\": \\\"Today's top X (Twitter) trends and hashtags in United States: National Guard, Los Angeles, California, Peaceful, Marines. Explore more locations and trending topics on trends24.in\\\"\\n },\\n {\\n \\\"title\\\": \\\"Worldwide \\\\u2022 Top Hashtags \\\\u2022 Most Tweeted \\\\u2022 Day - getdaytrends\\\",\\n \\\"href\\\": \\\"https://getdaytrends.com/top/tweeted/day/\\\",\\n \\\"body\\\": \\\"About Us. We store and analyze Twitter data to bring you insights on what's currently trending and help you keep up with the audience. Find out hot trends, review trend history and browse long-term popular hashtags and topics.\\\"\\n },\\n {\\n \\\"title\\\": \\\"United States Latest Trending X (Twitter) hashtag and topics\\\",\\n \\\"href\\\": \\\"https://91trends.com/twitter/united-states/\\\",\\n \\\"body\\\": \\\"United States X (Twitter) Trends Now | Top X (Twitter) Trending Topics & Hashtags Today. Get real-time updates on the hottest trending hashtags and topics on X (Twitter) United States with our automated page. Our page utilizes the official X (Twitter) API to refresh the most talked-about hashtags and topics every 30 minutes, ensuring you always have access to the most current trends on the ...\\\"\\n },\\n {\\n \\\"title\\\": \\\"Trending on Twitter United States today - Global Twitter Trends\\\",\\n \\\"href\\\": \\\"https://globaltwittertrends.com/united-states/\\\",\\n \\\"body\\\": \\\"Above is the table to show what's trending in United States twitter right now . You can click on any one of the trends to tweet it or view all tweets based on that trend. You can also view the twitter trends of all towns in United States by just searching on the search bar above or by choosing from the provided list of countries and towns.\\\"\\n }\\n]\",\"llm.tools.0.tool.json_schema\":\"{\\\"type\\\": \\\"function\\\", \\\"function\\\": {\\\"name\\\": \\\"duckduckgo_search\\\", \\\"description\\\": \\\"Use this function to search DuckDuckGo for a query.\\\", \\\"parameters\\\": {\\\"type\\\": \\\"object\\\", \\\"properties\\\": {\\\"query\\\": {\\\"type\\\": \\\"string\\\", \\\"description\\\": \\\"(str) The query to search for.\\\"}, \\\"max_results\\\": {\\\"type\\\": \\\"number\\\", \\\"description\\\": \\\"(optional, default=5) The maximum number of results to return.\\\"}}, \\\"required\\\": [\\\"query\\\"]}, \\\"requires_confirmation\\\": false, \\\"external_execution\\\": false}}\",\"llm.tools.1.tool.json_schema\":\"{\\\"type\\\": \\\"function\\\", \\\"function\\\": {\\\"name\\\": \\\"duckduckgo_news\\\", \\\"description\\\": \\\"Use this function to get the latest news from DuckDuckGo.\\\", \\\"parameters\\\": {\\\"type\\\": \\\"object\\\", \\\"properties\\\": {\\\"query\\\": {\\\"type\\\": \\\"string\\\", \\\"description\\\": \\\"(str) The query to search for.\\\"}, \\\"max_results\\\": {\\\"type\\\": \\\"number\\\", \\\"description\\\": \\\"(optional, default=5) The maximum number of results to return.\\\"}}, \\\"required\\\": [\\\"query\\\"]}, \\\"requires_confirmation\\\": false, \\\"external_execution\\\": false}}\",\"llm.model_name\":\"gpt-4o-mini\",\"llm.provider\":\"OpenAI\",\"output.mime_type\":\"application/json\",\"output.value\":\"{\\\"id\\\":\\\"chatcmpl-BhGJDsZlpk55owZCjMyJl8TOGqk0H\\\",\\\"choices\\\":[{\\\"finish_reason\\\":\\\"stop\\\",\\\"index\\\":0,\\\"logprobs\\\":null,\\\"message\\\":{\\\"content\\\":\\\"To find out what's currently trending on Twitter, you can visit the following resources:\\\\n\\\\n1. **[Twitter Explore](https://twitter.com/explore/tabs/trending/)**: Explore trending topics, hashtags, and conversations directly on Twitter.\\\\n\\\\n2. **[Trends24](https://trends24.in/united-states/)**: This site lists today's top X (Twitter) trends and hashtags in the United States, including topics like National Guard, Los Angeles, and more.\\\\n\\\\n3. **[Get Day Trends](https://getdaytrends.com/top/tweeted/day/)**: This platform analyzes Twitter data to provide insights on current trending topics and hashtags.\\\\n\\\\n4. **[91 Trends](https://91trends.com/twitter/united-states/)**: Get real-time updates on what's trending on Twitter in the United States.\\\\n\\\\n5. **[Global Twitter Trends](https://globaltwittertrends.com/united-states/)**: Check out what's trending specifically in the United States and view tweets based on those trends.\\\\n\\\\nFeel free to explore these links for the most up-to-date trending topics!\\\",\\\"refusal\\\":null,\\\"role\\\":\\\"assistant\\\",\\\"annotations\\\":[],\\\"audio\\\":null,\\\"function_call\\\":null,\\\"tool_calls\\\":null}}],\\\"created\\\":1749650495,\\\"model\\\":\\\"gpt-4o-mini-2024-07-18\\\",\\\"object\\\":\\\"chat.completion\\\",\\\"service_tier\\\":\\\"default\\\",\\\"system_fingerprint\\\":\\\"fp_34a54ae93c\\\",\\\"usage\\\":{\\\"completion_tokens\\\":225,\\\"prompt_tokens\\\":663,\\\"total_tokens\\\":888,\\\"completion_tokens_details\\\":{\\\"accepted_prediction_tokens\\\":0,\\\"audio_tokens\\\":0,\\\"reasoning_tokens\\\":0,\\\"rejected_prediction_tokens\\\":0},\\\"prompt_tokens_details\\\":{\\\"audio_tokens\\\":0,\\\"cached_tokens\\\":0}}}\",\"openinference.span.kind\":\"LLM\"},\"resourceAttributes\":{\"telemetry.sdk.language\":\"python\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"1.33.1\",\"service.name\":\"unknown_service\"},\"scope\":{\"name\":\"openinference.instrumentation.agno\",\"version\":\"0.1.4\",\"attributes\":{}}}",+ "internalModel": "clyrjp56f0000t0mzapoocd7u"+ },+ {+ "id": "ca136de468e156c9",+ "traceId": "080130871f53145aecf7c29d5dfb6e4c",+ "startTime": "2025-06-11T14:01:32.600Z",+ "endTime": "2025-06-11T14:01:33.560Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "1cffdfa6fe3412e6",+ "type": "GENERATION",+ "environment": "default",+ "name": "OpenAIChat.invoke",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-06-11T14:01:33.719Z",+ "updatedAt": "2025-06-11T14:01:33.752Z",+ "input": "{\"messages\": [\"role='system' content='<additional_information>\\\\n- Use markdown to format your answers.\\\\n</additional_information>' name=None tool_call_id=None tool_calls=None audio=None images=None videos=None files=None audio_output=None image_output=None thinking=None redacted_thinking=None provider_data=None citations=None reasoning_content=None tool_name=None tool_args=None tool_call_error=None stop_after_tool_call=False add_to_agent_memory=True from_history=False metrics=MessageMetrics(input_tokens=0, output_tokens=0, total_tokens=0, audio_tokens=0, input_audio_tokens=0, output_audio_tokens=0, cached_tokens=0, reasoning_tokens=0, prompt_tokens=0, completion_tokens=0, prompt_tokens_details=None, completion_tokens_details=None, additional_metrics=None, time=None, time_to_first_token=None, timer=None) references=None created_at=1749650492\", \"role='user' content='What is currently trending on Twitter?' name=None tool_call_id=None tool_calls=None audio=None images=None videos=None files=None audio_output=None image_output=None thinking=None redacted_thinking=None provider_data=None citations=None reasoning_content=None tool_name=None tool_args=None tool_call_error=None stop_after_tool_call=False add_to_agent_memory=True from_history=False metrics=MessageMetrics(input_tokens=0, output_tokens=0, total_tokens=0, audio_tokens=0, input_audio_tokens=0, output_audio_tokens=0, cached_tokens=0, reasoning_tokens=0, prompt_tokens=0, completion_tokens=0, prompt_tokens_details=None, completion_tokens_details=None, additional_metrics=None, time=None, time_to_first_token=None, timer=None) references=None created_at=1749650492\"], \"tools\": [{\"type\": \"function\", \"function\": {\"name\": \"duckduckgo_search\", \"description\": \"Use this function to search DuckDuckGo for a query.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"query\": {\"type\": \"string\", \"description\": \"(str) The query to search for.\"}, \"max_results\": {\"type\": \"number\", \"description\": \"(optional, default=5) The maximum number of results to return.\"}}, \"required\": [\"query\"]}, \"requires_confirmation\": false, \"external_execution\": false}}, {\"type\": \"function\", \"function\": {\"name\": \"duckduckgo_news\", \"description\": \"Use this function to get the latest news from DuckDuckGo.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"query\": {\"type\": \"string\", \"description\": \"(str) The query to search for.\"}, \"max_results\": {\"type\": \"number\", \"description\": \"(optional, default=5) The maximum number of results to return.\"}}, \"required\": [\"query\"]}, \"requires_confirmation\": false, \"external_execution\": false}}]}",+ "output": "{\"id\":\"chatcmpl-BhGJAW79iSsHO7ES5wgoTga4hQFyn\",\"choices\":[{\"finish_reason\":\"tool_calls\",\"index\":0,\"logprobs\":null,\"message\":{\"content\":null,\"refusal\":null,\"role\":\"assistant\",\"annotations\":[],\"audio\":null,\"function_call\":null,\"tool_calls\":[{\"id\":\"call_VybxG748CQId8Xxo6wb2pWy1\",\"function\":{\"arguments\":\"{\\\"query\\\":\\\"currently trending on Twitter\\\"}\",\"name\":\"duckduckgo_search\"},\"type\":\"function\"}]}}],\"created\":1749650492,\"model\":\"gpt-4o-mini-2024-07-18\",\"object\":\"chat.completion\",\"service_tier\":\"default\",\"system_fingerprint\":\"fp_34a54ae93c\",\"usage\":{\"completion_tokens\":20,\"prompt_tokens\":163,\"total_tokens\":183,\"completion_tokens_details\":{\"accepted_prediction_tokens\":0,\"audio_tokens\":0,\"reasoning_tokens\":0,\"rejected_prediction_tokens\":0},\"prompt_tokens_details\":{\"audio_tokens\":0,\"cached_tokens\":0}}}",+ "model": "gpt-4o-mini",+ "internalModelId": "clyrjp56f0000t0mzapoocd7u",+ "modelParameters": {},+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 0.96,+ "timeToFirstToken": null,+ "usageDetails": {+ "input": 542,+ "output": 235,+ "total": 777+ },+ "costDetails": {+ "input": 0.0000813,+ "output": 0.000141,+ "total": 0.0002223+ },+ "providedCostDetails": {},+ "inputCost": 0.0000813,+ "outputCost": 0.000141,+ "totalCost": 0.0002223,+ "inputUsage": 542,+ "outputUsage": 235,+ "totalUsage": 777,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"attributes\":{\"input.mime_type\":\"application/json\",\"input.value\":\"{\\\"messages\\\": [\\\"role='system' content='<additional_information>\\\\\\\\n- Use markdown to format your answers.\\\\\\\\n</additional_information>' name=None tool_call_id=None tool_calls=None audio=None images=None videos=None files=None audio_output=None image_output=None thinking=None redacted_thinking=None provider_data=None citations=None reasoning_content=None tool_name=None tool_args=None tool_call_error=None stop_after_tool_call=False add_to_agent_memory=True from_history=False metrics=MessageMetrics(input_tokens=0, output_tokens=0, total_tokens=0, audio_tokens=0, input_audio_tokens=0, output_audio_tokens=0, cached_tokens=0, reasoning_tokens=0, prompt_tokens=0, completion_tokens=0, prompt_tokens_details=None, completion_tokens_details=None, additional_metrics=None, time=None, time_to_first_token=None, timer=None) references=None created_at=1749650492\\\", \\\"role='user' content='What is currently trending on Twitter?' name=None tool_call_id=None tool_calls=None audio=None images=None videos=None files=None audio_output=None image_output=None thinking=None redacted_thinking=None provider_data=None citations=None reasoning_content=None tool_name=None tool_args=None tool_call_error=None stop_after_tool_call=False add_to_agent_memory=True from_history=False metrics=MessageMetrics(input_tokens=0, output_tokens=0, total_tokens=0, audio_tokens=0, input_audio_tokens=0, output_audio_tokens=0, cached_tokens=0, reasoning_tokens=0, prompt_tokens=0, completion_tokens=0, prompt_tokens_details=None, completion_tokens_details=None, additional_metrics=None, time=None, time_to_first_token=None, timer=None) references=None created_at=1749650492\\\"], \\\"tools\\\": [{\\\"type\\\": \\\"function\\\", \\\"function\\\": {\\\"name\\\": \\\"duckduckgo_search\\\", \\\"description\\\": \\\"Use this function to search DuckDuckGo for a query.\\\", \\\"parameters\\\": {\\\"type\\\": \\\"object\\\", \\\"properties\\\": {\\\"query\\\": {\\\"type\\\": \\\"string\\\", \\\"description\\\": \\\"(str) The query to search for.\\\"}, \\\"max_results\\\": {\\\"type\\\": \\\"number\\\", \\\"description\\\": \\\"(optional, default=5) The maximum number of results to return.\\\"}}, \\\"required\\\": [\\\"query\\\"]}, \\\"requires_confirmation\\\": false, \\\"external_execution\\\": false}}, {\\\"type\\\": \\\"function\\\", \\\"function\\\": {\\\"name\\\": \\\"duckduckgo_news\\\", \\\"description\\\": \\\"Use this function to get the latest news from DuckDuckGo.\\\", \\\"parameters\\\": {\\\"type\\\": \\\"object\\\", \\\"properties\\\": {\\\"query\\\": {\\\"type\\\": \\\"string\\\", \\\"description\\\": \\\"(str) The query to search for.\\\"}, \\\"max_results\\\": {\\\"type\\\": \\\"number\\\", \\\"description\\\": \\\"(optional, default=5) The maximum number of results to return.\\\"}}, \\\"required\\\": [\\\"query\\\"]}, \\\"requires_confirmation\\\": false, \\\"external_execution\\\": false}}]}\",\"llm.input_messages.0.message.role\":\"system\",\"llm.input_messages.0.message.content\":\"<additional_information>\\n- Use markdown to format your answers.\\n</additional_information>\",\"llm.input_messages.1.message.role\":\"user\",\"llm.input_messages.1.message.content\":\"What is currently trending on Twitter?\",\"llm.tools.0.tool.json_schema\":\"{\\\"type\\\": \\\"function\\\", \\\"function\\\": {\\\"name\\\": \\\"duckduckgo_search\\\", \\\"description\\\": \\\"Use this function to search DuckDuckGo for a query.\\\", \\\"parameters\\\": {\\\"type\\\": \\\"object\\\", \\\"properties\\\": {\\\"query\\\": {\\\"type\\\": \\\"string\\\", \\\"description\\\": \\\"(str) The query to search for.\\\"}, \\\"max_results\\\": {\\\"type\\\": \\\"number\\\", \\\"description\\\": \\\"(optional, default=5) The maximum number of results to return.\\\"}}, \\\"required\\\": [\\\"query\\\"]}, \\\"requires_confirmation\\\": false, \\\"external_execution\\\": false}}\",\"llm.tools.1.tool.json_schema\":\"{\\\"type\\\": \\\"function\\\", \\\"function\\\": {\\\"name\\\": \\\"duckduckgo_news\\\", \\\"description\\\": \\\"Use this function to get the latest news from DuckDuckGo.\\\", \\\"parameters\\\": {\\\"type\\\": \\\"object\\\", \\\"properties\\\": {\\\"query\\\": {\\\"type\\\": \\\"string\\\", \\\"description\\\": \\\"(str) The query to search for.\\\"}, \\\"max_results\\\": {\\\"type\\\": \\\"number\\\", \\\"description\\\": \\\"(optional, default=5) The maximum number of results to return.\\\"}}, \\\"required\\\": [\\\"query\\\"]}, \\\"requires_confirmation\\\": false, \\\"external_execution\\\": false}}\",\"llm.model_name\":\"gpt-4o-mini\",\"llm.provider\":\"OpenAI\",\"output.mime_type\":\"application/json\",\"output.value\":\"{\\\"id\\\":\\\"chatcmpl-BhGJAW79iSsHO7ES5wgoTga4hQFyn\\\",\\\"choices\\\":[{\\\"finish_reason\\\":\\\"tool_calls\\\",\\\"index\\\":0,\\\"logprobs\\\":null,\\\"message\\\":{\\\"content\\\":null,\\\"refusal\\\":null,\\\"role\\\":\\\"assistant\\\",\\\"annotations\\\":[],\\\"audio\\\":null,\\\"function_call\\\":null,\\\"tool_calls\\\":[{\\\"id\\\":\\\"call_VybxG748CQId8Xxo6wb2pWy1\\\",\\\"function\\\":{\\\"arguments\\\":\\\"{\\\\\\\"query\\\\\\\":\\\\\\\"currently trending on Twitter\\\\\\\"}\\\",\\\"name\\\":\\\"duckduckgo_search\\\"},\\\"type\\\":\\\"function\\\"}]}}],\\\"created\\\":1749650492,\\\"model\\\":\\\"gpt-4o-mini-2024-07-18\\\",\\\"object\\\":\\\"chat.completion\\\",\\\"service_tier\\\":\\\"default\\\",\\\"system_fingerprint\\\":\\\"fp_34a54ae93c\\\",\\\"usage\\\":{\\\"completion_tokens\\\":20,\\\"prompt_tokens\\\":163,\\\"total_tokens\\\":183,\\\"completion_tokens_details\\\":{\\\"accepted_prediction_tokens\\\":0,\\\"audio_tokens\\\":0,\\\"reasoning_tokens\\\":0,\\\"rejected_prediction_tokens\\\":0},\\\"prompt_tokens_details\\\":{\\\"audio_tokens\\\":0,\\\"cached_tokens\\\":0}}}\",\"openinference.span.kind\":\"LLM\"},\"resourceAttributes\":{\"telemetry.sdk.language\":\"python\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"1.33.1\",\"service.name\":\"unknown_service\"},\"scope\":{\"name\":\"openinference.instrumentation.agno\",\"version\":\"0.1.4\",\"attributes\":{}}}",+ "internalModel": "clyrjp56f0000t0mzapoocd7u"+ },+ {+ "id": "fc7f61b57ecebbaf",+ "traceId": "080130871f53145aecf7c29d5dfb6e4c",+ "startTime": "2025-06-11T14:01:34.296Z",+ "endTime": "2025-06-11T14:01:39.089Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "b38a82eaa62b551e",+ "type": "GENERATION",+ "environment": "default",+ "name": "chat gpt-4o-mini",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-06-11T14:01:39.245Z",+ "updatedAt": "2025-06-11T14:01:39.285Z",+ "input": "developer: <additional_information>\n- Use markdown to format your answers.\n</additional_information>\nuser: What is currently trending on Twitter?\nassistant: None\ntool: [\n {\n \"title\": \"Twitter. It's what's happening / Twitter\",\n \"href\": \"https://twitter.com/explore/tabs/trending/\",\n \"body\": \"Explore trending topics, hashtags, and conversations on Twitter.\"\n },\n {\n \"title\": \"United States \\u2014 X (Twitter) trending topics and hashtags today ...\",\n \"href\": \"https://trends24.in/united-states/\",\n \"body\": \"Today's top X (Twitter) trends and hashtags in United States: National Guard, Los Angeles, California, Peaceful, Marines. Explore more locations and trending topics on trends24.in\"\n },\n {\n \"title\": \"Worldwide \\u2022 Top Hashtags \\u2022 Most Tweeted \\u2022 Day - getdaytrends\",\n \"href\": \"https://getdaytrends.com/top/tweeted/day/\",\n \"body\": \"About Us. We store and analyze Twitter data to bring you insights on what's currently trending and help you keep up with the audience. Find out hot trends, review trend history and browse long-term popular hashtags and topics.\"\n },\n {\n \"title\": \"United States Latest Trending X (Twitter) hashtag and topics\",\n \"href\": \"https://91trends.com/twitter/united-states/\",\n \"body\": \"United States X (Twitter) Trends Now | Top X (Twitter) Trending Topics & Hashtags Today. Get real-time updates on the hottest trending hashtags and topics on X (Twitter) United States with our automated page. Our page utilizes the official X (Twitter) API to refresh the most talked-about hashtags and topics every 30 minutes, ensuring you always have access to the most current trends on the ...\"\n },\n {\n \"title\": \"Trending on Twitter United States today - Global Twitter Trends\",\n \"href\": \"https://globaltwittertrends.com/united-states/\",\n \"body\": \"Above is the table to show what's trending in United States twitter right now . You can click on any one of the trends to tweet it or view all tweets based on that trend. You can also view the twitter trends of all towns in United States by just searching on the search bar above or by choosing from the provided list of countries and towns.\"\n }\n]",+ "output": "To find out what's currently trending on Twitter, you can visit the following resources:\n\n1. **[Twitter Explore](https://twitter.com/explore/tabs/trending/)**: Explore trending topics, hashtags, and conversations directly on Twitter.\n\n2. **[Trends24](https://trends24.in/united-states/)**: This site lists today's top X (Twitter) trends and hashtags in the United States, including topics like National Guard, Los Angeles, and more.\n\n3. **[Get Day Trends](https://getdaytrends.com/top/tweeted/day/)**: This platform analyzes Twitter data to provide insights on current trending topics and hashtags.\n\n4. **[91 Trends](https://91trends.com/twitter/united-states/)**: Get real-time updates on what's trending on Twitter in the United States.\n\n5. **[Global Twitter Trends](https://globaltwittertrends.com/united-states/)**: Check out what's trending specifically in the United States and view tweets based on those trends.\n\nFeel free to explore these links for the most up-to-date trending topics!",+ "model": "gpt-4o-mini",+ "internalModelId": "clyrjp56f0000t0mzapoocd7u",+ "modelParameters": {+ "seed": "",+ "frequency_penalty": 0,+ "max_tokens": -1,+ "presence_penalty": 0,+ "stop_sequences": "{\"arrayValue\":{}}",+ "temperature": 1,+ "top_p": 1,+ "service_tier": "auto",+ "user": "",+ "is_stream": false+ },+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 4.793,+ "timeToFirstToken": null,+ "usageDetails": {+ "input": 663,+ "output": 225,+ "total": 888+ },+ "costDetails": {+ "total": 0.000234449999+ },+ "providedCostDetails": {+ "total": 0.000234449999+ },+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0.000234449999,+ "inputUsage": 663,+ "outputUsage": 225,+ "totalUsage": 888,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"resourceAttributes\":{\"telemetry.sdk.language\":\"python\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"1.33.1\",\"service.name\":\"unknown_service\"},\"scope\":{\"name\":\"langfuse-sdk\",\"version\":\"3.0.1\",\"attributes\":{\"public_key\":\"pk-lf-5855d85e-3943-497e-bd10-f50ad414bcba\"}}}",+ "internalModel": "clyrjp56f0000t0mzapoocd7u"+ },+ {+ "id": "1cffdfa6fe3412e6",+ "traceId": "080130871f53145aecf7c29d5dfb6e4c",+ "startTime": "2025-06-11T14:01:32.598Z",+ "endTime": "2025-06-11T14:01:39.589Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": null,+ "type": "SPAN",+ "environment": "default",+ "name": "Agent.run",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-06-11T14:01:39.781Z",+ "updatedAt": "2025-06-11T14:01:39.875Z",+ "input": "{\"run_response\": \"RunResponse(content=None, content_type='str', thinking=None, reasoning_content=None, event='RunResponse', messages=None, metrics=None, model='gpt-4o-mini', model_provider='OpenAI', run_id='625aa1b6-dc11-4804-8f4b-e2f5b604c07f', agent_id='007f4340-d3b3-4e4e-bf94-bdb22a16d8d5', session_id='35cc6c90-b657-4819-b66c-c931c03ad569', workflow_id=None, tools=None, formatted_tool_calls=None, images=None, videos=None, audio=None, response_audio=None, citations=None, extra_data=None, created_at=1749650492)\", \"run_messages\": \"RunMessages(messages=[Message(role='system', content='<additional_information>\\\\n- Use markdown to format your answers.\\\\n</additional_information>', name=None, tool_call_id=None, tool_calls=None, audio=None, images=None, videos=None, files=None, audio_output=None, image_output=None, thinking=None, redacted_thinking=None, provider_data=None, citations=None, reasoning_content=None, tool_name=None, tool_args=None, tool_call_error=None, stop_after_tool_call=False, add_to_agent_memory=True, from_history=False, metrics=MessageMetrics(input_tokens=0, output_tokens=0, total_tokens=0, audio_tokens=0, input_audio_tokens=0, output_audio_tokens=0, cached_tokens=0, reasoning_tokens=0, prompt_tokens=0, completion_tokens=0, prompt_tokens_details=None, completion_tokens_details=None, additional_metrics=None, time=None, time_to_first_token=None, timer=None), references=None, created_at=1749650492), Message(role='user', content='What is currently trending on Twitter?', name=None, tool_call_id=None, tool_calls=None, audio=None, images=None, videos=None, files=None, audio_output=None, image_output=None, thinking=None, redacted_thinking=None, provider_data=None, citations=None, reasoning_content=None, tool_name=None, tool_args=None, tool_call_error=None, stop_after_tool_call=False, add_to_agent_memory=True, from_history=False, metrics=MessageMetrics(input_tokens=0, output_tokens=0, total_tokens=0, audio_tokens=0, input_audio_tokens=0, output_audio_tokens=0, cached_tokens=0, reasoning_tokens=0, prompt_tokens=0, completion_tokens=0, prompt_tokens_details=None, completion_tokens_details=None, additional_metrics=None, time=None, time_to_first_token=None, timer=None), references=None, created_at=1749650492)], system_message=Message(role='system', content='<additional_information>\\\\n- Use markdown to format your answers.\\\\n</additional_information>', name=None, tool_call_id=None, tool_calls=None, audio=None, images=None, videos=None, files=None, audio_output=None, image_output=None, thinking=None, redacted_thinking=None, provider_data=None, citations=None, reasoning_content=None, tool_name=None, tool_args=None, tool_call_error=None, stop_after_tool_call=False, add_to_agent_memory=True, from_history=False, metrics=MessageMetrics(input_tokens=0, output_tokens=0, total_tokens=0, audio_tokens=0, input_audio_tokens=0, output_audio_tokens=0, cached_tokens=0, reasoning_tokens=0, prompt_tokens=0, completion_tokens=0, prompt_tokens_details=None, completion_tokens_details=None, additional_metrics=None, time=None, time_to_first_token=None, timer=None), references=None, created_at=1749650492), user_message=Message(role='user', content='What is currently trending on Twitter?', name=None, tool_call_id=None, tool_calls=None, audio=None, images=None, videos=None, files=None, audio_output=None, image_output=None, thinking=None, redacted_thinking=None, provider_data=None, citations=None, reasoning_content=None, tool_name=None, tool_args=None, tool_call_error=None, stop_after_tool_call=False, add_to_agent_memory=True, from_history=False, metrics=MessageMetrics(input_tokens=0, output_tokens=0, total_tokens=0, audio_tokens=0, input_audio_tokens=0, output_audio_tokens=0, cached_tokens=0, reasoning_tokens=0, prompt_tokens=0, completion_tokens=0, prompt_tokens_details=None, completion_tokens_details=None, additional_metrics=None, time=None, time_to_first_token=None, timer=None), references=None, created_at=1749650492), extra_messages=None)\", \"session_id\": \"35cc6c90-b657-4819-b66c-c931c03ad569\", \"message\": \"What is currently trending on Twitter?\"}",+ "output": "{\n \"content\": \"To find out what's currently trending on Twitter, you can visit the following resources:\\n\\n1. **[Twitter Explore](https://twitter.com/explore/tabs/trending/)**: Explore trending topics, hashtags, and conversations directly on Twitter.\\n\\n2. **[Trends24](https://trends24.in/united-states/)**: This site lists today's top X (Twitter) trends and hashtags in the United States, including topics like National Guard, Los Angeles, and more.\\n\\n3. **[Get Day Trends](https://getdaytrends.com/top/tweeted/day/)**: This platform analyzes Twitter data to provide insights on current trending topics and hashtags.\\n\\n4. **[91 Trends](https://91trends.com/twitter/united-states/)**: Get real-time updates on what's trending on Twitter in the United States.\\n\\n5. **[Global Twitter Trends](https://globaltwittertrends.com/united-states/)**: Check out what's trending specifically in the United States and view tweets based on those trends.\\n\\nFeel free to explore these links for the most up-to-date trending topics!\",\n \"content_type\": \"str\",\n \"event\": \"RunResponse\",\n \"metrics\": {\n \"input_tokens\": [\n 163,\n 663\n ],\n \"output_tokens\": [\n 20,\n 225\n ],\n \"total_tokens\": [\n 183,\n 888\n ],\n \"audio_tokens\": [\n 0,\n 0\n ],\n \"input_audio_tokens\": [\n 0,\n 0\n ],\n \"output_audio_tokens\": [\n 0,\n 0\n ],\n \"cached_tokens\": [\n 0,\n 0\n ],\n \"reasoning_tokens\": [\n 0,\n 0\n ],\n \"prompt_tokens\": [\n 163,\n 663\n ],\n \"completion_tokens\": [\n 20,\n 225\n ],\n \"prompt_tokens_details\": [\n {\n \"audio_tokens\": 0,\n \"cached_tokens\": 0\n },\n {\n \"audio_tokens\": 0,\n \"cached_tokens\": 0\n }\n ],\n \"completion_tokens_details\": [\n {\n \"accepted_prediction_tokens\": 0,\n \"audio_tokens\": 0,\n \"reasoning_tokens\": 0,\n \"rejected_prediction_tokens\": 0\n },\n {\n \"accepted_prediction_tokens\": 0,\n \"audio_tokens\": 0,\n \"reasoning_tokens\": 0,\n \"rejected_prediction_tokens\": 0\n }\n ],\n \"time\": [\n 0.9596867079999356,\n 4.799381209000785\n ]\n },\n \"model\": \"gpt-4o-mini\",\n \"model_provider\": \"OpenAI\",\n \"run_id\": \"625aa1b6-dc11-4804-8f4b-e2f5b604c07f\",\n \"agent_id\": \"007f4340-d3b3-4e4e-bf94-bdb22a16d8d5\",\n \"session_id\": \"35cc6c90-b657-4819-b66c-c931c03ad569\",\n \"formatted_tool_calls\": [\n \"duckduckgo_search(query=currently trending on Twitter)\"\n ],\n \"created_at\": 1749650243,\n \"messages\": [\n {\n \"content\": \"<additional_information>\\n- Use markdown to format your answers.\\n</additional_information>\",\n \"from_history\": false,\n \"stop_after_tool_call\": false,\n \"role\": \"system\",\n \"created_at\": 1749650492\n },\n {\n \"content\": \"What is currently trending on Twitter?\",\n \"from_history\": false,\n \"stop_after_tool_call\": false,\n \"role\": \"user\",\n \"created_at\": 1749650492\n },\n {\n \"from_history\": false,\n \"stop_after_tool_call\": false,\n \"role\": \"assistant\",\n \"tool_calls\": [\n {\n \"id\": \"call_VybxG748CQId8Xxo6wb2pWy1\",\n \"function\": {\n \"arguments\": \"{\\\"query\\\":\\\"currently trending on Twitter\\\"}\",\n \"name\": \"duckduckgo_search\"\n },\n \"type\": \"function\"\n }\n ],\n \"metrics\": {\n \"input_tokens\": 163,\n \"output_tokens\": 20,\n \"total_tokens\": 183,\n \"prompt_tokens\": 163,\n \"completion_tokens\": 20,\n \"prompt_tokens_details\": {\n \"audio_tokens\": 0,\n \"cached_tokens\": 0\n },\n \"completion_tokens_details\": {\n \"accepted_prediction_tokens\": 0,\n \"audio_tokens\": 0,\n \"reasoning_tokens\": 0,\n \"rejected_prediction_tokens\": 0\n },\n \"time\": 0.9596867079999356\n },\n \"created_at\": 1749650492\n },\n {\n \"content\": \"[\\n {\\n \\\"title\\\": \\\"Twitter. It's what's happening / Twitter\\\",\\n \\\"href\\\": \\\"https://twitter.com/explore/tabs/trending/\\\",\\n \\\"body\\\": \\\"Explore trending topics, hashtags, and conversations on Twitter.\\\"\\n },\\n {\\n \\\"title\\\": \\\"United States \\\\u2014 X (Twitter) trending topics and hashtags today ...\\\",\\n \\\"href\\\": \\\"https://trends24.in/united-states/\\\",\\n \\\"body\\\": \\\"Today's top X (Twitter) trends and hashtags in United States: National Guard, Los Angeles, California, Peaceful, Marines. Explore more locations and trending topics on trends24.in\\\"\\n },\\n {\\n \\\"title\\\": \\\"Worldwide \\\\u2022 Top Hashtags \\\\u2022 Most Tweeted \\\\u2022 Day - getdaytrends\\\",\\n \\\"href\\\": \\\"https://getdaytrends.com/top/tweeted/day/\\\",\\n \\\"body\\\": \\\"About Us. We store and analyze Twitter data to bring you insights on what's currently trending and help you keep up with the audience. Find out hot trends, review trend history and browse long-term popular hashtags and topics.\\\"\\n },\\n {\\n \\\"title\\\": \\\"United States Latest Trending X (Twitter) hashtag and topics\\\",\\n \\\"href\\\": \\\"https://91trends.com/twitter/united-states/\\\",\\n \\\"body\\\": \\\"United States X (Twitter) Trends Now | Top X (Twitter) Trending Topics & Hashtags Today. Get real-time updates on the hottest trending hashtags and topics on X (Twitter) United States with our automated page. Our page utilizes the official X (Twitter) API to refresh the most talked-about hashtags and topics every 30 minutes, ensuring you always have access to the most current trends on the ...\\\"\\n },\\n {\\n \\\"title\\\": \\\"Trending on Twitter United States today - Global Twitter Trends\\\",\\n \\\"href\\\": \\\"https://globaltwittertrends.com/united-states/\\\",\\n \\\"body\\\": \\\"Above is the table to show what's trending in United States twitter right now . You can click on any one of the trends to tweet it or view all tweets based on that trend. You can also view the twitter trends of all towns in United States by just searching on the search bar above or by choosing from the provided list of countries and towns.\\\"\\n }\\n]\",\n \"from_history\": false,\n \"stop_after_tool_call\": false,\n \"role\": \"tool\",\n \"tool_call_id\": \"call_VybxG748CQId8Xxo6wb2pWy1\",\n \"tool_name\": \"duckduckgo_search\",\n \"tool_args\": {\n \"query\": \"currently trending on Twitter\"\n },\n \"tool_call_error\": false,\n \"metrics\": {\n \"time\": 0.7176052920003713\n },\n \"created_at\": 1749650494\n },\n {\n \"content\": \"To find out what's currently trending on Twitter, you can visit the following resources:\\n\\n1. **[Twitter Explore](https://twitter.com/explore/tabs/trending/)**: Explore trending topics, hashtags, and conversations directly on Twitter.\\n\\n2. **[Trends24](https://trends24.in/united-states/)**: This site lists today's top X (Twitter) trends and hashtags in the United States, including topics like National Guard, Los Angeles, and more.\\n\\n3. **[Get Day Trends](https://getdaytrends.com/top/tweeted/day/)**: This platform analyzes Twitter data to provide insights on current trending topics and hashtags.\\n\\n4. **[91 Trends](https://91trends.com/twitter/united-states/)**: Get real-time updates on what's trending on Twitter in the United States.\\n\\n5. **[Global Twitter Trends](https://globaltwittertrends.com/united-states/)**: Check out what's trending specifically in the United States and view tweets based on those trends.\\n\\nFeel free to explore these links for the most up-to-date trending topics!\",\n \"from_history\": false,\n \"stop_after_tool_call\": false,\n \"role\": \"assistant\",\n \"metrics\": {\n \"input_tokens\": 663,\n \"output_tokens\": 225,\n \"total_tokens\": 888,\n \"prompt_tokens\": 663,\n \"completion_tokens\": 225,\n \"prompt_tokens_details\": {\n \"audio_tokens\": 0,\n \"cached_tokens\": 0\n },\n \"completion_tokens_details\": {\n \"accepted_prediction_tokens\": 0,\n \"audio_tokens\": 0,\n \"reasoning_tokens\": 0,\n \"rejected_prediction_tokens\": 0\n },\n \"time\": 4.799381209000785\n },\n \"created_at\": 1749650494\n }\n ],\n \"tools\": [\n {\n \"tool_call_id\": \"call_VybxG748CQId8Xxo6wb2pWy1\",\n \"tool_name\": \"duckduckgo_search\",\n \"tool_args\": {\n \"query\": \"currently trending on Twitter\"\n },\n \"tool_call_error\": false,\n \"result\": \"[\\n {\\n \\\"title\\\": \\\"Twitter. It's what's happening / Twitter\\\",\\n \\\"href\\\": \\\"https://twitter.com/explore/tabs/trending/\\\",\\n \\\"body\\\": \\\"Explore trending topics, hashtags, and conversations on Twitter.\\\"\\n },\\n {\\n \\\"title\\\": \\\"United States \\\\u2014 X (Twitter) trending topics and hashtags today ...\\\",\\n \\\"href\\\": \\\"https://trends24.in/united-states/\\\",\\n \\\"body\\\": \\\"Today's top X (Twitter) trends and hashtags in United States: National Guard, Los Angeles, California, Peaceful, Marines. Explore more locations and trending topics on trends24.in\\\"\\n },\\n {\\n \\\"title\\\": \\\"Worldwide \\\\u2022 Top Hashtags \\\\u2022 Most Tweeted \\\\u2022 Day - getdaytrends\\\",\\n \\\"href\\\": \\\"https://getdaytrends.com/top/tweeted/day/\\\",\\n \\\"body\\\": \\\"About Us. We store and analyze Twitter data to bring you insights on what's currently trending and help you keep up with the audience. Find out hot trends, review trend history and browse long-term popular hashtags and topics.\\\"\\n },\\n {\\n \\\"title\\\": \\\"United States Latest Trending X (Twitter) hashtag and topics\\\",\\n \\\"href\\\": \\\"https://91trends.com/twitter/united-states/\\\",\\n \\\"body\\\": \\\"United States X (Twitter) Trends Now | Top X (Twitter) Trending Topics & Hashtags Today. Get real-time updates on the hottest trending hashtags and topics on X (Twitter) United States with our automated page. Our page utilizes the official X (Twitter) API to refresh the most talked-about hashtags and topics every 30 minutes, ensuring you always have access to the most current trends on the ...\\\"\\n },\\n {\\n \\\"title\\\": \\\"Trending on Twitter United States today - Global Twitter Trends\\\",\\n \\\"href\\\": \\\"https://globaltwittertrends.com/united-states/\\\",\\n \\\"body\\\": \\\"Above is the table to show what's trending in United States twitter right now . You can click on any one of the trends to tweet it or view all tweets based on that trend. You can also view the twitter trends of all towns in United States by just searching on the search bar above or by choosing from the provided list of countries and towns.\\\"\\n }\\n]\",\n \"metrics\": {\n \"time\": 0.7176052920003713\n },\n \"stop_after_tool_call\": false,\n \"created_at\": 1749650243,\n \"requires_confirmation\": null,\n \"confirmed\": null,\n \"confirmation_note\": null,\n \"requires_user_input\": null,\n \"user_input_schema\": null,\n \"external_execution_required\": null\n }\n ]\n}",+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 6.991,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"attributes\":{\"input.value\":\"{\\\"run_response\\\": \\\"RunResponse(content=None, content_type='str', thinking=None, reasoning_content=None, event='RunResponse', messages=None, metrics=None, model='gpt-4o-mini', model_provider='OpenAI', run_id='625aa1b6-dc11-4804-8f4b-e2f5b604c07f', agent_id='007f4340-d3b3-4e4e-bf94-bdb22a16d8d5', session_id='35cc6c90-b657-4819-b66c-c931c03ad569', workflow_id=None, tools=None, formatted_tool_calls=None, images=None, videos=None, audio=None, response_audio=None, citations=None, extra_data=None, created_at=1749650492)\\\", \\\"run_messages\\\": \\\"RunMessages(messages=[Message(role='system', content='<additional_information>\\\\\\\\n- Use markdown to format your answers.\\\\\\\\n</additional_information>', name=None, tool_call_id=None, tool_calls=None, audio=None, images=None, videos=None, files=None, audio_output=None, image_output=None, thinking=None, redacted_thinking=None, provider_data=None, citations=None, reasoning_content=None, tool_name=None, tool_args=None, tool_call_error=None, stop_after_tool_call=False, add_to_agent_memory=True, from_history=False, metrics=MessageMetrics(input_tokens=0, output_tokens=0, total_tokens=0, audio_tokens=0, input_audio_tokens=0, output_audio_tokens=0, cached_tokens=0, reasoning_tokens=0, prompt_tokens=0, completion_tokens=0, prompt_tokens_details=None, completion_tokens_details=None, additional_metrics=None, time=None, time_to_first_token=None, timer=None), references=None, created_at=1749650492), Message(role='user', content='What is currently trending on Twitter?', name=None, tool_call_id=None, tool_calls=None, audio=None, images=None, videos=None, files=None, audio_output=None, image_output=None, thinking=None, redacted_thinking=None, provider_data=None, citations=None, reasoning_content=None, tool_name=None, tool_args=None, tool_call_error=None, stop_after_tool_call=False, add_to_agent_memory=True, from_history=False, metrics=MessageMetrics(input_tokens=0, output_tokens=0, total_tokens=0, audio_tokens=0, input_audio_tokens=0, output_audio_tokens=0, cached_tokens=0, reasoning_tokens=0, prompt_tokens=0, completion_tokens=0, prompt_tokens_details=None, completion_tokens_details=None, additional_metrics=None, time=None, time_to_first_token=None, timer=None), references=None, created_at=1749650492)], system_message=Message(role='system', content='<additional_information>\\\\\\\\n- Use markdown to format your answers.\\\\\\\\n</additional_information>', name=None, tool_call_id=None, tool_calls=None, audio=None, images=None, videos=None, files=None, audio_output=None, image_output=None, thinking=None, redacted_thinking=None, provider_data=None, citations=None, reasoning_content=None, tool_name=None, tool_args=None, tool_call_error=None, stop_after_tool_call=False, add_to_agent_memory=True, from_history=False, metrics=MessageMetrics(input_tokens=0, output_tokens=0, total_tokens=0, audio_tokens=0, input_audio_tokens=0, output_audio_tokens=0, cached_tokens=0, reasoning_tokens=0, prompt_tokens=0, completion_tokens=0, prompt_tokens_details=None, completion_tokens_details=None, additional_metrics=None, time=None, time_to_first_token=None, timer=None), references=None, created_at=1749650492), user_message=Message(role='user', content='What is currently trending on Twitter?', name=None, tool_call_id=None, tool_calls=None, audio=None, images=None, videos=None, files=None, audio_output=None, image_output=None, thinking=None, redacted_thinking=None, provider_data=None, citations=None, reasoning_content=None, tool_name=None, tool_args=None, tool_call_error=None, stop_after_tool_call=False, add_to_agent_memory=True, from_history=False, metrics=MessageMetrics(input_tokens=0, output_tokens=0, total_tokens=0, audio_tokens=0, input_audio_tokens=0, output_audio_tokens=0, cached_tokens=0, reasoning_tokens=0, prompt_tokens=0, completion_tokens=0, prompt_tokens_details=None, completion_tokens_details=None, additional_metrics=None, time=None, time_to_first_token=None, timer=None), references=None, created_at=1749650492), extra_messages=None)\\\", \\\"session_id\\\": \\\"35cc6c90-b657-4819-b66c-c931c03ad569\\\", \\\"message\\\": \\\"What is currently trending on Twitter?\\\"}\",\"session.id\":\"35cc6c90-b657-4819-b66c-c931c03ad569\",\"agno{key_suffix}.tools\":\"[\\\"duckduckgo_search\\\",\\\"duckduckgo_news\\\"]\",\"output.value\":\"{\\n \\\"content\\\": \\\"To find out what's currently trending on Twitter, you can visit the following resources:\\\\n\\\\n1. **[Twitter Explore](https://twitter.com/explore/tabs/trending/)**: Explore trending topics, hashtags, and conversations directly on Twitter.\\\\n\\\\n2. **[Trends24](https://trends24.in/united-states/)**: This site lists today's top X (Twitter) trends and hashtags in the United States, including topics like National Guard, Los Angeles, and more.\\\\n\\\\n3. **[Get Day Trends](https://getdaytrends.com/top/tweeted/day/)**: This platform analyzes Twitter data to provide insights on current trending topics and hashtags.\\\\n\\\\n4. **[91 Trends](https://91trends.com/twitter/united-states/)**: Get real-time updates on what's trending on Twitter in the United States.\\\\n\\\\n5. **[Global Twitter Trends](https://globaltwittertrends.com/united-states/)**: Check out what's trending specifically in the United States and view tweets based on those trends.\\\\n\\\\nFeel free to explore these links for the most up-to-date trending topics!\\\",\\n \\\"content_type\\\": \\\"str\\\",\\n \\\"event\\\": \\\"RunResponse\\\",\\n \\\"metrics\\\": {\\n \\\"input_tokens\\\": [\\n 163,\\n 663\\n ],\\n \\\"output_tokens\\\": [\\n 20,\\n 225\\n ],\\n \\\"total_tokens\\\": [\\n 183,\\n 888\\n ],\\n \\\"audio_tokens\\\": [\\n 0,\\n 0\\n ],\\n \\\"input_audio_tokens\\\": [\\n 0,\\n 0\\n ],\\n \\\"output_audio_tokens\\\": [\\n 0,\\n 0\\n ],\\n \\\"cached_tokens\\\": [\\n 0,\\n 0\\n ],\\n \\\"reasoning_tokens\\\": [\\n 0,\\n 0\\n ],\\n \\\"prompt_tokens\\\": [\\n 163,\\n 663\\n ],\\n \\\"completion_tokens\\\": [\\n 20,\\n 225\\n ],\\n \\\"prompt_tokens_details\\\": [\\n {\\n \\\"audio_tokens\\\": 0,\\n \\\"cached_tokens\\\": 0\\n },\\n {\\n \\\"audio_tokens\\\": 0,\\n \\\"cached_tokens\\\": 0\\n }\\n ],\\n \\\"completion_tokens_details\\\": [\\n {\\n \\\"accepted_prediction_tokens\\\": 0,\\n \\\"audio_tokens\\\": 0,\\n \\\"reasoning_tokens\\\": 0,\\n \\\"rejected_prediction_tokens\\\": 0\\n },\\n {\\n \\\"accepted_prediction_tokens\\\": 0,\\n \\\"audio_tokens\\\": 0,\\n \\\"reasoning_tokens\\\": 0,\\n \\\"rejected_prediction_tokens\\\": 0\\n }\\n ],\\n \\\"time\\\": [\\n 0.9596867079999356,\\n 4.799381209000785\\n ]\\n },\\n \\\"model\\\": \\\"gpt-4o-mini\\\",\\n \\\"model_provider\\\": \\\"OpenAI\\\",\\n \\\"run_id\\\": \\\"625aa1b6-dc11-4804-8f4b-e2f5b604c07f\\\",\\n \\\"agent_id\\\": \\\"007f4340-d3b3-4e4e-bf94-bdb22a16d8d5\\\",\\n \\\"session_id\\\": \\\"35cc6c90-b657-4819-b66c-c931c03ad569\\\",\\n \\\"formatted_tool_calls\\\": [\\n \\\"duckduckgo_search(query=currently trending on Twitter)\\\"\\n ],\\n \\\"created_at\\\": 1749650243,\\n \\\"messages\\\": [\\n {\\n \\\"content\\\": \\\"<additional_information>\\\\n- Use markdown to format your answers.\\\\n</additional_information>\\\",\\n \\\"from_history\\\": false,\\n \\\"stop_after_tool_call\\\": false,\\n \\\"role\\\": \\\"system\\\",\\n \\\"created_at\\\": 1749650492\\n },\\n {\\n \\\"content\\\": \\\"What is currently trending on Twitter?\\\",\\n \\\"from_history\\\": false,\\n \\\"stop_after_tool_call\\\": false,\\n \\\"role\\\": \\\"user\\\",\\n \\\"created_at\\\": 1749650492\\n },\\n {\\n \\\"from_history\\\": false,\\n \\\"stop_after_tool_call\\\": false,\\n \\\"role\\\": \\\"assistant\\\",\\n \\\"tool_calls\\\": [\\n {\\n \\\"id\\\": \\\"call_VybxG748CQId8Xxo6wb2pWy1\\\",\\n \\\"function\\\": {\\n \\\"arguments\\\": \\\"{\\\\\\\"query\\\\\\\":\\\\\\\"currently trending on Twitter\\\\\\\"}\\\",\\n \\\"name\\\": \\\"duckduckgo_search\\\"\\n },\\n \\\"type\\\": \\\"function\\\"\\n }\\n ],\\n \\\"metrics\\\": {\\n \\\"input_tokens\\\": 163,\\n \\\"output_tokens\\\": 20,\\n \\\"total_tokens\\\": 183,\\n \\\"prompt_tokens\\\": 163,\\n \\\"completion_tokens\\\": 20,\\n \\\"prompt_tokens_details\\\": {\\n \\\"audio_tokens\\\": 0,\\n \\\"cached_tokens\\\": 0\\n },\\n \\\"completion_tokens_details\\\": {\\n \\\"accepted_prediction_tokens\\\": 0,\\n \\\"audio_tokens\\\": 0,\\n \\\"reasoning_tokens\\\": 0,\\n \\\"rejected_prediction_tokens\\\": 0\\n },\\n \\\"time\\\": 0.9596867079999356\\n },\\n \\\"created_at\\\": 1749650492\\n },\\n {\\n \\\"content\\\": \\\"[\\\\n {\\\\n \\\\\\\"title\\\\\\\": \\\\\\\"Twitter. It's what's happening / Twitter\\\\\\\",\\\\n \\\\\\\"href\\\\\\\": \\\\\\\"https://twitter.com/explore/tabs/trending/\\\\\\\",\\\\n \\\\\\\"body\\\\\\\": \\\\\\\"Explore trending topics, hashtags, and conversations on Twitter.\\\\\\\"\\\\n },\\\\n {\\\\n \\\\\\\"title\\\\\\\": \\\\\\\"United States \\\\\\\\u2014 X (Twitter) trending topics and hashtags today ...\\\\\\\",\\\\n \\\\\\\"href\\\\\\\": \\\\\\\"https://trends24.in/united-states/\\\\\\\",\\\\n \\\\\\\"body\\\\\\\": \\\\\\\"Today's top X (Twitter) trends and hashtags in United States: National Guard, Los Angeles, California, Peaceful, Marines. Explore more locations and trending topics on trends24.in\\\\\\\"\\\\n },\\\\n {\\\\n \\\\\\\"title\\\\\\\": \\\\\\\"Worldwide \\\\\\\\u2022 Top Hashtags \\\\\\\\u2022 Most Tweeted \\\\\\\\u2022 Day - getdaytrends\\\\\\\",\\\\n \\\\\\\"href\\\\\\\": \\\\\\\"https://getdaytrends.com/top/tweeted/day/\\\\\\\",\\\\n \\\\\\\"body\\\\\\\": \\\\\\\"About Us. We store and analyze Twitter data to bring you insights on what's currently trending and help you keep up with the audience. Find out hot trends, review trend history and browse long-term popular hashtags and topics.\\\\\\\"\\\\n },\\\\n {\\\\n \\\\\\\"title\\\\\\\": \\\\\\\"United States Latest Trending X (Twitter) hashtag and topics\\\\\\\",\\\\n \\\\\\\"href\\\\\\\": \\\\\\\"https://91trends.com/twitter/united-states/\\\\\\\",\\\\n \\\\\\\"body\\\\\\\": \\\\\\\"United States X (Twitter) Trends Now | Top X (Twitter) Trending Topics & Hashtags Today. Get real-time updates on the hottest trending hashtags and topics on X (Twitter) United States with our automated page. Our page utilizes the official X (Twitter) API to refresh the most talked-about hashtags and topics every 30 minutes, ensuring you always have access to the most current trends on the ...\\\\\\\"\\\\n },\\\\n {\\\\n \\\\\\\"title\\\\\\\": \\\\\\\"Trending on Twitter United States today - Global Twitter Trends\\\\\\\",\\\\n \\\\\\\"href\\\\\\\": \\\\\\\"https://globaltwittertrends.com/united-states/\\\\\\\",\\\\n \\\\\\\"body\\\\\\\": \\\\\\\"Above is the table to show what's trending in United States twitter right now . You can click on any one of the trends to tweet it or view all tweets based on that trend. You can also view the twitter trends of all towns in United States by just searching on the search bar above or by choosing from the provided list of countries and towns.\\\\\\\"\\\\n }\\\\n]\\\",\\n \\\"from_history\\\": false,\\n \\\"stop_after_tool_call\\\": false,\\n \\\"role\\\": \\\"tool\\\",\\n \\\"tool_call_id\\\": \\\"call_VybxG748CQId8Xxo6wb2pWy1\\\",\\n \\\"tool_name\\\": \\\"duckduckgo_search\\\",\\n \\\"tool_args\\\": {\\n \\\"query\\\": \\\"currently trending on Twitter\\\"\\n },\\n \\\"tool_call_error\\\": false,\\n \\\"metrics\\\": {\\n \\\"time\\\": 0.7176052920003713\\n },\\n \\\"created_at\\\": 1749650494\\n },\\n {\\n \\\"content\\\": \\\"To find out what's currently trending on Twitter, you can visit the following resources:\\\\n\\\\n1. **[Twitter Explore](https://twitter.com/explore/tabs/trending/)**: Explore trending topics, hashtags, and conversations directly on Twitter.\\\\n\\\\n2. **[Trends24](https://trends24.in/united-states/)**: This site lists today's top X (Twitter) trends and hashtags in the United States, including topics like National Guard, Los Angeles, and more.\\\\n\\\\n3. **[Get Day Trends](https://getdaytrends.com/top/tweeted/day/)**: This platform analyzes Twitter data to provide insights on current trending topics and hashtags.\\\\n\\\\n4. **[91 Trends](https://91trends.com/twitter/united-states/)**: Get real-time updates on what's trending on Twitter in the United States.\\\\n\\\\n5. **[Global Twitter Trends](https://globaltwittertrends.com/united-states/)**: Check out what's trending specifically in the United States and view tweets based on those trends.\\\\n\\\\nFeel free to explore these links for the most up-to-date trending topics!\\\",\\n \\\"from_history\\\": false,\\n \\\"stop_after_tool_call\\\": false,\\n \\\"role\\\": \\\"assistant\\\",\\n \\\"metrics\\\": {\\n \\\"input_tokens\\\": 663,\\n \\\"output_tokens\\\": 225,\\n \\\"total_tokens\\\": 888,\\n \\\"prompt_tokens\\\": 663,\\n \\\"completion_tokens\\\": 225,\\n \\\"prompt_tokens_details\\\": {\\n \\\"audio_tokens\\\": 0,\\n \\\"cached_tokens\\\": 0\\n },\\n \\\"completion_tokens_details\\\": {\\n \\\"accepted_prediction_tokens\\\": 0,\\n \\\"audio_tokens\\\": 0,\\n \\\"reasoning_tokens\\\": 0,\\n \\\"rejected_prediction_tokens\\\": 0\\n },\\n \\\"time\\\": 4.799381209000785\\n },\\n \\\"created_at\\\": 1749650494\\n }\\n ],\\n \\\"tools\\\": [\\n {\\n \\\"tool_call_id\\\": \\\"call_VybxG748CQId8Xxo6wb2pWy1\\\",\\n \\\"tool_name\\\": \\\"duckduckgo_search\\\",\\n \\\"tool_args\\\": {\\n \\\"query\\\": \\\"currently trending on Twitter\\\"\\n },\\n \\\"tool_call_error\\\": false,\\n \\\"result\\\": \\\"[\\\\n {\\\\n \\\\\\\"title\\\\\\\": \\\\\\\"Twitter. It's what's happening / Twitter\\\\\\\",\\\\n \\\\\\\"href\\\\\\\": \\\\\\\"https://twitter.com/explore/tabs/trending/\\\\\\\",\\\\n \\\\\\\"body\\\\\\\": \\\\\\\"Explore trending topics, hashtags, and conversations on Twitter.\\\\\\\"\\\\n },\\\\n {\\\\n \\\\\\\"title\\\\\\\": \\\\\\\"United States \\\\\\\\u2014 X (Twitter) trending topics and hashtags today ...\\\\\\\",\\\\n \\\\\\\"href\\\\\\\": \\\\\\\"https://trends24.in/united-states/\\\\\\\",\\\\n \\\\\\\"body\\\\\\\": \\\\\\\"Today's top X (Twitter) trends and hashtags in United States: National Guard, Los Angeles, California, Peaceful, Marines. Explore more locations and trending topics on trends24.in\\\\\\\"\\\\n },\\\\n {\\\\n \\\\\\\"title\\\\\\\": \\\\\\\"Worldwide \\\\\\\\u2022 Top Hashtags \\\\\\\\u2022 Most Tweeted \\\\\\\\u2022 Day - getdaytrends\\\\\\\",\\\\n \\\\\\\"href\\\\\\\": \\\\\\\"https://getdaytrends.com/top/tweeted/day/\\\\\\\",\\\\n \\\\\\\"body\\\\\\\": \\\\\\\"About Us. We store and analyze Twitter data to bring you insights on what's currently trending and help you keep up with the audience. Find out hot trends, review trend history and browse long-term popular hashtags and topics.\\\\\\\"\\\\n },\\\\n {\\\\n \\\\\\\"title\\\\\\\": \\\\\\\"United States Latest Trending X (Twitter) hashtag and topics\\\\\\\",\\\\n \\\\\\\"href\\\\\\\": \\\\\\\"https://91trends.com/twitter/united-states/\\\\\\\",\\\\n \\\\\\\"body\\\\\\\": \\\\\\\"United States X (Twitter) Trends Now | Top X (Twitter) Trending Topics & Hashtags Today. Get real-time updates on the hottest trending hashtags and topics on X (Twitter) United States with our automated page. Our page utilizes the official X (Twitter) API to refresh the most talked-about hashtags and topics every 30 minutes, ensuring you always have access to the most current trends on the ...\\\\\\\"\\\\n },\\\\n {\\\\n \\\\\\\"title\\\\\\\": \\\\\\\"Trending on Twitter United States today - Global Twitter Trends\\\\\\\",\\\\n \\\\\\\"href\\\\\\\": \\\\\\\"https://globaltwittertrends.com/united-states/\\\\\\\",\\\\n \\\\\\\"body\\\\\\\": \\\\\\\"Above is the table to show what's trending in United States twitter right now . You can click on any one of the trends to tweet it or view all tweets based on that trend. You can also view the twitter trends of all towns in United States by just searching on the search bar above or by choosing from the provided list of countries and towns.\\\\\\\"\\\\n }\\\\n]\\\",\\n \\\"metrics\\\": {\\n \\\"time\\\": 0.7176052920003713\\n },\\n \\\"stop_after_tool_call\\\": false,\\n \\\"created_at\\\": 1749650243,\\n \\\"requires_confirmation\\\": null,\\n \\\"confirmed\\\": null,\\n \\\"confirmation_note\\\": null,\\n \\\"requires_user_input\\\": null,\\n \\\"user_input_schema\\\": null,\\n \\\"external_execution_required\\\": null\\n }\\n ]\\n}\",\"output.mime_type\":\"application/json\",\"openinference.span.kind\":\"AGENT\"},\"resourceAttributes\":{\"telemetry.sdk.language\":\"python\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"1.33.1\",\"service.name\":\"unknown_service\"},\"scope\":{\"name\":\"openinference.instrumentation.agno\",\"version\":\"0.1.4\",\"attributes\":{}}}",+ "internalModel": null+ },+ {+ "id": "6581e147aec6793a",+ "traceId": "080130871f53145aecf7c29d5dfb6e4c",+ "startTime": "2025-06-11T14:01:33.564Z",+ "endTime": "2025-06-11T14:01:34.281Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "1cffdfa6fe3412e6",+ "type": "SPAN",+ "environment": "default",+ "name": "duckduckgo_search",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-06-11T14:01:34.476Z",+ "updatedAt": "2025-06-11T14:01:34.529Z",+ "input": "{\"query\": \"currently trending on Twitter\"}",+ "output": "[\n {\n \"title\": \"Twitter. It's what's happening / Twitter\",\n \"href\": \"https://twitter.com/explore/tabs/trending/\",\n \"body\": \"Explore trending topics, hashtags, and conversations on Twitter.\"\n },\n {\n \"title\": \"United States \\u2014 X (Twitter) trending topics and hashtags today ...\",\n \"href\": \"https://trends24.in/united-states/\",\n \"body\": \"Today's top X (Twitter) trends and hashtags in United States: National Guard, Los Angeles, California, Peaceful, Marines. Explore more locations and trending topics on trends24.in\"\n },\n {\n \"title\": \"Worldwide \\u2022 Top Hashtags \\u2022 Most Tweeted \\u2022 Day - getdaytrends\",\n \"href\": \"https://getdaytrends.com/top/tweeted/day/\",\n \"body\": \"About Us. We store and analyze Twitter data to bring you insights on what's currently trending and help you keep up with the audience. Find out hot trends, review trend history and browse long-term popular hashtags and topics.\"\n },\n {\n \"title\": \"United States Latest Trending X (Twitter) hashtag and topics\",\n \"href\": \"https://91trends.com/twitter/united-states/\",\n \"body\": \"United States X (Twitter) Trends Now | Top X (Twitter) Trending Topics & Hashtags Today. Get real-time updates on the hottest trending hashtags and topics on X (Twitter) United States with our automated page. Our page utilizes the official X (Twitter) API to refresh the most talked-about hashtags and topics every 30 minutes, ensuring you always have access to the most current trends on the ...\"\n },\n {\n \"title\": \"Trending on Twitter United States today - Global Twitter Trends\",\n \"href\": \"https://globaltwittertrends.com/united-states/\",\n \"body\": \"Above is the table to show what's trending in United States twitter right now . You can click on any one of the trends to tweet it or view all tweets based on that trend. You can also view the twitter trends of all towns in United States by just searching on the search bar above or by choosing from the provided list of countries and towns.\"\n }\n]",+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 0.717,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"attributes\":{\"input.value\":\"{\\\"query\\\": \\\"currently trending on Twitter\\\"}\",\"tool.name\":\"duckduckgo_search\",\"tool.description\":\"Use this function to search DuckDuckGo for a query.\",\"tool.parameters\":\"{\\\"query\\\": \\\"currently trending on Twitter\\\"}\",\"output.value\":\"[\\n {\\n \\\"title\\\": \\\"Twitter. It's what's happening / Twitter\\\",\\n \\\"href\\\": \\\"https://twitter.com/explore/tabs/trending/\\\",\\n \\\"body\\\": \\\"Explore trending topics, hashtags, and conversations on Twitter.\\\"\\n },\\n {\\n \\\"title\\\": \\\"United States \\\\u2014 X (Twitter) trending topics and hashtags today ...\\\",\\n \\\"href\\\": \\\"https://trends24.in/united-states/\\\",\\n \\\"body\\\": \\\"Today's top X (Twitter) trends and hashtags in United States: National Guard, Los Angeles, California, Peaceful, Marines. Explore more locations and trending topics on trends24.in\\\"\\n },\\n {\\n \\\"title\\\": \\\"Worldwide \\\\u2022 Top Hashtags \\\\u2022 Most Tweeted \\\\u2022 Day - getdaytrends\\\",\\n \\\"href\\\": \\\"https://getdaytrends.com/top/tweeted/day/\\\",\\n \\\"body\\\": \\\"About Us. We store and analyze Twitter data to bring you insights on what's currently trending and help you keep up with the audience. Find out hot trends, review trend history and browse long-term popular hashtags and topics.\\\"\\n },\\n {\\n \\\"title\\\": \\\"United States Latest Trending X (Twitter) hashtag and topics\\\",\\n \\\"href\\\": \\\"https://91trends.com/twitter/united-states/\\\",\\n \\\"body\\\": \\\"United States X (Twitter) Trends Now | Top X (Twitter) Trending Topics & Hashtags Today. Get real-time updates on the hottest trending hashtags and topics on X (Twitter) United States with our automated page. Our page utilizes the official X (Twitter) API to refresh the most talked-about hashtags and topics every 30 minutes, ensuring you always have access to the most current trends on the ...\\\"\\n },\\n {\\n \\\"title\\\": \\\"Trending on Twitter United States today - Global Twitter Trends\\\",\\n \\\"href\\\": \\\"https://globaltwittertrends.com/united-states/\\\",\\n \\\"body\\\": \\\"Above is the table to show what's trending in United States twitter right now . You can click on any one of the trends to tweet it or view all tweets based on that trend. You can also view the twitter trends of all towns in United States by just searching on the search bar above or by choosing from the provided list of countries and towns.\\\"\\n }\\n]\",\"output.mime_type\":\"text/plain\",\"openinference.span.kind\":\"TOOL\"},\"resourceAttributes\":{\"telemetry.sdk.language\":\"python\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"1.33.1\",\"service.name\":\"unknown_service\"},\"scope\":{\"name\":\"openinference.instrumentation.agno\",\"version\":\"0.1.4\",\"attributes\":{}}}",+ "internalModel": null+ }+ ]+}diff --git a/worker/src/__tests__/chatml/framework-traces/autogen-2025-06-06.chatml.json b/worker/src/__tests__/chatml/framework-traces/autogen-2025-06-06.chatml.jsonnew file mode 100644index 0000000000..051a32e856--- /dev/null+++ b/worker/src/__tests__/chatml/framework-traces/autogen-2025-06-06.chatml.json@@ -0,0 +1,18 @@+{+ "83517f9062f5ada4": {+ "input": {+ "success": false,+ "error": {+ "name": "ZodError",+ "message": "[\n {\n \"expected\": \"array\",\n \"code\": \"invalid_type\",\n \"path\": [],\n \"message\": \"Invalid input: expected array, received string\"\n }\n]"+ }+ },+ "output": {+ "success": false,+ "error": {+ "name": "ZodError",+ "message": "[\n {\n \"expected\": \"object\",\n \"code\": \"invalid_type\",\n \"path\": [\n 0\n ],\n \"message\": \"Invalid input: expected object, received string\"\n }\n]"+ }+ }+ }+}\ No newline at end of filediff --git a/worker/src/__tests__/chatml/framework-traces/autogen-2025-06-06.trace.json b/worker/src/__tests__/chatml/framework-traces/autogen-2025-06-06.trace.jsonnew file mode 100644index 0000000000..aa42953b3d--- /dev/null+++ b/worker/src/__tests__/chatml/framework-traces/autogen-2025-06-06.trace.json@@ -0,0 +1,239 @@+{+ "trace": {+ "id": "1b72c51fabed12ae7df83bfd4a09f545",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "name": "autogen-chat-trace",+ "timestamp": "2025-06-06T11:31:33.965Z",+ "environment": "default",+ "tags": [+ "autogen",+ "dev"+ ],+ "bookmarked": false,+ "release": null,+ "version": "1.0.0",+ "userId": "user_123",+ "sessionId": "session_abc",+ "public": true,+ "input": "\"Say 'Hello World!'\"",+ "output": "\"Hello World!\"",+ "createdAt": "2025-06-06T11:31:35.000Z",+ "updatedAt": "2025-06-06T11:31:35.337Z",+ "metadata": "{\"email\":\"[email protected]\",\"resourceAttributes\":{\"telemetry.sdk.language\":\"python\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"1.33.1\",\"service.name\":\"unknown_service\"},\"scope\":{\"name\":\"langfuse-sdk\",\"version\":\"3.0.0\",\"attributes\":{\"public_key\":\"pk-lf-5855d85e-3943-497e-bd10-f50ad414bcba\"}}}",+ "scores": [],+ "corrections": [],+ "latency": 0.645,+ "observations": [+ {+ "id": "83517f9062f5ada4",+ "traceId": "1b72c51fabed12ae7df83bfd4a09f545",+ "startTime": "2025-06-06T11:31:33.978Z",+ "endTime": "2025-06-06T11:31:34.606Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "95f4f51edeb603d9",+ "type": "GENERATION",+ "environment": "default",+ "name": "chat gpt-4o",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-06-06T11:31:35.090Z",+ "updatedAt": "2025-06-06T11:31:35.153Z",+ "input": null,+ "output": null,+ "model": "gpt-4o",+ "internalModelId": "b9854a5c92dc496b997d99d20",+ "modelParameters": {+ "seed": "",+ "frequency_penalty": 0,+ "max_tokens": -1,+ "presence_penalty": 0,+ "stop_sequences": "{\"arrayValue\":{}}",+ "temperature": 1,+ "top_p": 1,+ "service_tier": "auto",+ "user": "",+ "is_stream": false+ },+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 0.628,+ "timeToFirstToken": null,+ "usageDetails": {+ "input": 41,+ "output": 3,+ "total": 44+ },+ "costDetails": {+ "total": 0.000025+ },+ "providedCostDetails": {+ "total": 0.000025+ },+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0.000025,+ "inputUsage": 41,+ "outputUsage": 3,+ "totalUsage": 44,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ },+ {+ "id": "95f4f51edeb603d9",+ "traceId": "1b72c51fabed12ae7df83bfd4a09f545",+ "startTime": "2025-06-06T11:31:33.965Z",+ "endTime": "2025-06-06T11:31:34.610Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": null,+ "type": "SPAN",+ "environment": "default",+ "name": "autogen-chat-trace",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": "1.0.0",+ "createdAt": "2025-06-06T11:31:35.295Z",+ "updatedAt": "2025-06-06T11:31:35.337Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 0.645,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ }+ ]+ },+ "observations": [+ {+ "id": "83517f9062f5ada4",+ "traceId": "1b72c51fabed12ae7df83bfd4a09f545",+ "startTime": "2025-06-06T11:31:33.978Z",+ "endTime": "2025-06-06T11:31:34.606Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "95f4f51edeb603d9",+ "type": "GENERATION",+ "environment": "default",+ "name": "chat gpt-4o",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-06-06T11:31:35.090Z",+ "updatedAt": "2025-06-06T11:31:35.153Z",+ "input": "system: You are a helpful AI assistant. Solve tasks using your tools. Reply with TERMINATE when the task has been completed.\nuser: Say 'Hello World!'",+ "output": "Hello World!",+ "model": "gpt-4o",+ "internalModelId": "b9854a5c92dc496b997d99d20",+ "modelParameters": {+ "seed": "",+ "frequency_penalty": 0,+ "max_tokens": -1,+ "presence_penalty": 0,+ "stop_sequences": "{\"arrayValue\":{}}",+ "temperature": 1,+ "top_p": 1,+ "service_tier": "auto",+ "user": "",+ "is_stream": false+ },+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 0.628,+ "timeToFirstToken": null,+ "usageDetails": {+ "input": 41,+ "output": 3,+ "total": 44+ },+ "costDetails": {+ "total": 0.000025+ },+ "providedCostDetails": {+ "total": 0.000025+ },+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0.000025,+ "inputUsage": 41,+ "outputUsage": 3,+ "totalUsage": 44,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"resourceAttributes\":{\"telemetry.sdk.language\":\"python\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"1.33.1\",\"service.name\":\"unknown_service\"},\"scope\":{\"name\":\"langfuse-sdk\",\"version\":\"3.0.0\",\"attributes\":{\"public_key\":\"pk-lf-5855d85e-3943-497e-bd10-f50ad414bcba\"}}}",+ "internalModel": "b9854a5c92dc496b997d99d20"+ },+ {+ "id": "95f4f51edeb603d9",+ "traceId": "1b72c51fabed12ae7df83bfd4a09f545",+ "startTime": "2025-06-06T11:31:33.965Z",+ "endTime": "2025-06-06T11:31:34.610Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": null,+ "type": "SPAN",+ "environment": "default",+ "name": "autogen-chat-trace",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": "1.0.0",+ "createdAt": "2025-06-06T11:31:35.295Z",+ "updatedAt": "2025-06-06T11:31:35.337Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 0.645,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"resourceAttributes\":{\"telemetry.sdk.language\":\"python\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"1.33.1\",\"service.name\":\"unknown_service\"},\"scope\":{\"name\":\"langfuse-sdk\",\"version\":\"3.0.0\",\"attributes\":{\"public_key\":\"pk-lf-5855d85e-3943-497e-bd10-f50ad414bcba\"}}}",+ "internalModel": null+ }+ ]+}diff --git a/worker/src/__tests__/chatml/framework-traces/beeai-2025-08-01.chatml.json b/worker/src/__tests__/chatml/framework-traces/beeai-2025-08-01.chatml.jsonnew file mode 100644index 0000000000..35a340c0c3--- /dev/null+++ b/worker/src/__tests__/chatml/framework-traces/beeai-2025-08-01.chatml.json@@ -0,0 +1,390 @@+{+ "1f956cbea34725bd": {+ "input": {+ "success": true,+ "data": [+ {+ "role": "system",+ "content": "# Available functions\nYou can only use the following functions. Always use all required parameters.\n\nFunction Name: Wikipedia\nDescription: Search factual and historical information, including biography, history, politics, geography, society, culture, science, technology, people, animal species, mathematics, and other subjects.\nInput Schema: {\"properties\": {\"full_text\": {\"default\": false, \"description\": \"If set to true, it will return the full text of the page instead of its short summary.\", \"title\": \"Full Text\", \"type\": \"boolean\"}, \"query\": {\"description\": \"Name of the Wikipedia page.\", \"title\": \"Query\", \"type\": \"string\"}}, \"required\": [\"query\"], \"title\": \"WikipediaToolInput\", \"type\": \"object\"}\n\nFunction Name: OpenMeteoTool\nDescription: Retrieve current, past, or future weather forecasts for a location.\nInput Schema: {\"properties\": {\"country\": {\"anyOf\": [{\"type\": \"string\"}, {\"type\": \"null\"}], \"default\": null, \"description\": \"Country name.\", \"title\": \"Country\"}, \"end_date\": {\"anyOf\": [{\"format\": \"date\", \"type\": \"string\"}, {\"type\": \"null\"}], \"default\": null, \"description\": \"End date for the weather forecast in the format YYYY-MM-DD (UTC)\", \"title\": \"End Date\"}, \"location_name\": {\"description\": \"The name of the location to retrieve weather information.\", \"title\": \"Location Name\", \"type\": \"string\"}, \"start_date\": {\"anyOf\": [{\"format\": \"date\", \"type\": \"string\"}, {\"type\": \"null\"}], \"default\": null, \"description\": \"Start date for the weather forecast in the format YYYY-MM-DD (UTC)\", \"title\": \"Start Date\"}, \"temperature_unit\": {\"default\": \"celsius\", \"description\": \"The unit to express temperature\", \"enum\": [\"celsius\", \"fahrenheit\"], \"title\": \"Temperature Unit\", \"type\": \"string\"}}, \"required\": [\"location_name\"], \"title\": \"OpenMeteoToolInput\", \"type\": \"object\"}\n\n# Communication structure\nYou communicate only in instruction lines. The format is: \"Instruction: expected output\". You must only use these instruction lines and must not enter empty lines or anything else between instruction lines.\nYou must skip the instruction lines Function Name, Function Input and Function Output if no function calling is required.\n\nMessage: User's message. You never use this instruction line.\nThought: A single-line step-by-step plan of how to answer the user's message. You can use the available functions defined above. This instruction line must be immediately followed by Function Name if one of the available functions defined above needs to be called, or by Final Answer. Do not provide the answer here.\nFunction Name: Name of the function. This instruction line must be immediately followed by Function Input.\nFunction Input: Function parameters in JSON format adhering to the function's input specification ie. {\"arg1\":\"value1\", \"arg2\":\"value2\"}. Empty object is a valid parameter.\nFunction Output: Output of the function in JSON format.\nThought: Continue your thinking process.\nFinal Answer: Answer the user or ask for more information or clarification. It must always be preceded by Thought.\n\n## Examples\nMessage: Can you translate \"How are you\" into French?\nThought: The user wants to translate a text into French. I can do that.\nFinal Answer: Comment vas-tu?\n\n# Instructions\nUser can only see the Final Answer, all answers must be provided there.\nYou must always use the communication structure and instructions defined above. Do not forget that Thought must be a single-line immediately followed by either Function Name or Final Answer.\nFunctions must be used to retrieve factual or historical information to answer the message.\nIf the user suggests using a function that is not available, answer that the function is not available. You can suggest alternatives if appropriate.\nWhen the message is unclear or you need more information from the user, ask in Final Answer.\n\n# Your capabilities\nPrefer to use these capabilities over functions.\n- You understand these languages: English, Spanish, French.\n- You can translate and summarize, even long documents.\n\n# Notes\n- If you don't know the answer, say that you don't know.\n- The current time and date in ISO format might be found in the last message.\n- When answering the user, use friendly formats for time and date.\n- Use markdown syntax for formatting code snippets, links, JSON, tables, images, files.\n- Sometimes, things don't go as planned. Functions may not provide useful information on the first few tries. You should always try a few different approaches before declaring the problem unsolvable.\n- When the function doesn't give you what you were asking for, you must either use another function or a different function input.\n - When using search engines, you try different formulations of the query, possibly even in a different language.\n- You cannot do complex calculations, computations, or data manipulations without using functions.\n"+ },+ {+ "role": "user",+ "content": [+ {+ "type": "text",+ "text": "Message: I'm planning a trip to Barcelona, Spain. Can you research key attractions and landmarks I should visit, and also tell me what the current weather conditions are like there?\n\nThis message was created at 2025-08-01T13:56:54+00:00"+ }+ ]+ }+ ]+ }+ },+ "4c5c5a7936ca24bc": {+ "input": {+ "success": true,+ "data": [+ {+ "role": "system",+ "content": "# Available functions\nYou can only use the following functions. Always use all required parameters.\n\nFunction Name: Wikipedia\nDescription: Search factual and historical information, including biography, history, politics, geography, society, culture, science, technology, people, animal species, mathematics, and other subjects.\nInput Schema: {\"properties\": {\"full_text\": {\"default\": false, \"description\": \"If set to true, it will return the full text of the page instead of its short summary.\", \"title\": \"Full Text\", \"type\": \"boolean\"}, \"query\": {\"description\": \"Name of the Wikipedia page.\", \"title\": \"Query\", \"type\": \"string\"}}, \"required\": [\"query\"], \"title\": \"WikipediaToolInput\", \"type\": \"object\"}\n\nFunction Name: OpenMeteoTool\nDescription: Retrieve current, past, or future weather forecasts for a location.\nInput Schema: {\"properties\": {\"country\": {\"anyOf\": [{\"type\": \"string\"}, {\"type\": \"null\"}], \"default\": null, \"description\": \"Country name.\", \"title\": \"Country\"}, \"end_date\": {\"anyOf\": [{\"format\": \"date\", \"type\": \"string\"}, {\"type\": \"null\"}], \"default\": null, \"description\": \"End date for the weather forecast in the format YYYY-MM-DD (UTC)\", \"title\": \"End Date\"}, \"location_name\": {\"description\": \"The name of the location to retrieve weather information.\", \"title\": \"Location Name\", \"type\": \"string\"}, \"start_date\": {\"anyOf\": [{\"format\": \"date\", \"type\": \"string\"}, {\"type\": \"null\"}], \"default\": null, \"description\": \"Start date for the weather forecast in the format YYYY-MM-DD (UTC)\", \"title\": \"Start Date\"}, \"temperature_unit\": {\"default\": \"celsius\", \"description\": \"The unit to express temperature\", \"enum\": [\"celsius\", \"fahrenheit\"], \"title\": \"Temperature Unit\", \"type\": \"string\"}}, \"required\": [\"location_name\"], \"title\": \"OpenMeteoToolInput\", \"type\": \"object\"}\n\n# Communication structure\nYou communicate only in instruction lines. The format is: \"Instruction: expected output\". You must only use these instruction lines and must not enter empty lines or anything else between instruction lines.\nYou must skip the instruction lines Function Name, Function Input and Function Output if no function calling is required.\n\nMessage: User's message. You never use this instruction line.\nThought: A single-line step-by-step plan of how to answer the user's message. You can use the available functions defined above. This instruction line must be immediately followed by Function Name if one of the available functions defined above needs to be called, or by Final Answer. Do not provide the answer here.\nFunction Name: Name of the function. This instruction line must be immediately followed by Function Input.\nFunction Input: Function parameters in JSON format adhering to the function's input specification ie. {\"arg1\":\"value1\", \"arg2\":\"value2\"}. Empty object is a valid parameter.\nFunction Output: Output of the function in JSON format.\nThought: Continue your thinking process.\nFinal Answer: Answer the user or ask for more information or clarification. It must always be preceded by Thought.\n\n## Examples\nMessage: Can you translate \"How are you\" into French?\nThought: The user wants to translate a text into French. I can do that.\nFinal Answer: Comment vas-tu?\n\n# Instructions\nUser can only see the Final Answer, all answers must be provided there.\nYou must always use the communication structure and instructions defined above. Do not forget that Thought must be a single-line immediately followed by either Function Name or Final Answer.\nFunctions must be used to retrieve factual or historical information to answer the message.\nIf the user suggests using a function that is not available, answer that the function is not available. You can suggest alternatives if appropriate.\nWhen the message is unclear or you need more information from the user, ask in Final Answer.\n\n# Your capabilities\nPrefer to use these capabilities over functions.\n- You understand these languages: English, Spanish, French.\n- You can translate and summarize, even long documents.\n\n# Notes\n- If you don't know the answer, say that you don't know.\n- The current time and date in ISO format might be found in the last message.\n- When answering the user, use friendly formats for time and date.\n- Use markdown syntax for formatting code snippets, links, JSON, tables, images, files.\n- Sometimes, things don't go as planned. Functions may not provide useful information on the first few tries. You should always try a few different approaches before declaring the problem unsolvable.\n- When the function doesn't give you what you were asking for, you must either use another function or a different function input.\n - When using search engines, you try different formulations of the query, possibly even in a different language.\n- You cannot do complex calculations, computations, or data manipulations without using functions.\n"+ },+ {+ "role": "user",+ "content": [+ {+ "type": "text",+ "text": "Message: I'm planning a trip to Barcelona, Spain. Can you research key attractions and landmarks I should visit, and also tell me what the current weather conditions are like there?\n\nThis message was created at 2025-08-01T13:56:54+00:00"+ }+ ]+ },+ {+ "role": "assistant",+ "content": [+ {+ "type": "text",+ "text": "Thought: I will first research key attractions and landmarks in Barcelona and then check the current weather conditions there. \nFunction Name: Wikipedia\nFunction Input: {\"query\": \"Tourism in Barcelona\"}\nFunction Output: [{\"description\": \"Barcelona ( BAR-sÉ™-LOH-nÉ™; Catalan: [bəɾsəˈlonÉ™] ; Spanish: [baɾθeˈlona] ) is a city on the northeastern coast of Spain. It is the capital and largest city of the autonomous community of Catalonia, as well as the second-most populous municipality of Spain. With a population of 1.6 million within city limits, its urban area extends to numerous neighbouring municipalities within the province of Barcelona and is home to around 5.3 million people, making it the fifth most populous urban area of the European Union after Paris, the Ruhr area, Madrid and Milan. It is one of the largest metropolises on the Mediterranean Sea, located on the coast between the mouths of the rivers Llobregat and Besòs, bounded to the west by the Serra de Collserola mountain range.\\nAccording to tradition, Barcelona was founded by either the Phoenicians or the Carthaginians, who had trading posts along the Catalonian coast. In the Middle Ages, Barcelona became the capital of the County of Barcelona. After joining with the Kingdom of Aragon to form the composite monarchy of the Crown of Aragon, Barcelona, which continued to be the capital of the Principality of Catalonia, became the most important city in the Crown of Aragon and its main economic and administrative centre, only to be overtaken by Valencia, wrested from Moorish control by the Catalans, shortly before the dynastic union between the Crown of Castile and the Crown of Aragon in 1516. Barcelona became the centre of Catalan separatism, briefly becoming part of France during the 17th century Reapers' War and again in 1812 until 1814 under Napoleon. Experiencing industrialization and several workers movements during the 19th and early 20th century, it became the capital of autonomous Catalonia in 1931 and it was the epicenter of the revolution experienced by Catalonia during the Spanish Revolution of 1936, until its capture by the fascists in 1939. After the Spanish transition to democracy in the 1970s, Barcelona once again became the capital of an autonomous Catalonia.\\nBarcelona has a rich cultural heritage and is today an important cultural centre and a major tourist destination. Particularly renowned are the architectural works of Antoni Gaudà and LluÃs Domènech i Montaner, which have been designated UNESCO World Heritage Sites. The city is home to two of the most prestigious universities in Spain: the University of Barcelona and Pompeu Fabra University. The headquarters of the Union for the Mediterranean are located in Barcelona. The city is known for hosting the 1992 Summer Olympics as well as world-class conferences and expositions. In addition, many international sport tournaments have been played here.\\nBarcelona is a major cultural, economic, and financial centre in southwestern Europe, as well as the main biotech hub in Spain. As a leading world city, Barcelona's influence in global socio-economic affairs qualifies it for global city status (Beta +).\\nBarcelona is a transport hub, with the Port of Barcelona being one of Europe's principal seaports and busiest European passenger port, an international airport, Barcelona–El Prat Airport, which handles over 50-million passengers per year, an extensive motorway network, and a high-speed rail line with a link to France and the rest of Europe.\", \"title\": \"Barcelona\", \"url\": \"https://en.wikipedia.org/wiki/Barcelona\"}]\n"+ }+ ]+ },+ {+ "role": "assistant",+ "content": [+ {+ "type": "text",+ "text": "Thought: I found information about Barcelona, including its rich cultural heritage and key attractions like the architectural works of Antoni GaudÃ. Now, I will check the current weather conditions in Barcelona. \nFunction Name: OpenMeteoTool\nFunction Input: {\"country\": \"Spain\", \"location_name\": \"Barcelona\"}\nFunction Output: {\"latitude\": 41.4375, \"longitude\": 2.1875, \"generationtime_ms\": 0.0553131103515625, \"utc_offset_seconds\": 0, \"timezone\": \"GMT\", \"timezone_abbreviation\": \"GMT\", \"elevation\": 44.0, \"current_units\": {\"time\": \"iso8601\", \"interval\": \"seconds\", \"temperature_2m\": \"°C\", \"rain\": \"mm\", \"relative_humidity_2m\": \"%\", \"wind_speed_10m\": \"km/h\"}, \"current\": {\"time\": \"2025-08-01T13:45\", \"interval\": 900, \"temperature_2m\": 29.0, \"rain\": 0.0, \"relative_humidity_2m\": 48, \"wind_speed_10m\": 18.8}, \"daily_units\": {\"time\": \"iso8601\", \"temperature_2m_max\": \"°C\", \"temperature_2m_min\": \"°C\", \"rain_sum\": \"mm\"}, \"daily\": {\"time\": [\"2025-08-01\"], \"temperature_2m_max\": [29.0], \"temperature_2m_min\": [20.6], \"rain_sum\": [0.0]}}\n"+ }+ ]+ }+ ]+ }+ },+ "52df0f7f9dad6b23": {+ "input": {+ "success": true,+ "data": [+ {+ "role": "system",+ "content": "# Available functions\nYou can only use the following functions. Always use all required parameters.\n\nFunction Name: Wikipedia\nDescription: Search factual and historical information, including biography, history, politics, geography, society, culture, science, technology, people, animal species, mathematics, and other subjects.\nInput Schema: {\"properties\": {\"full_text\": {\"default\": false, \"description\": \"If set to true, it will return the full text of the page instead of its short summary.\", \"title\": \"Full Text\", \"type\": \"boolean\"}, \"query\": {\"description\": \"Name of the Wikipedia page.\", \"title\": \"Query\", \"type\": \"string\"}}, \"required\": [\"query\"], \"title\": \"WikipediaToolInput\", \"type\": \"object\"}\n\nFunction Name: OpenMeteoTool\nDescription: Retrieve current, past, or future weather forecasts for a location.\nInput Schema: {\"properties\": {\"country\": {\"anyOf\": [{\"type\": \"string\"}, {\"type\": \"null\"}], \"default\": null, \"description\": \"Country name.\", \"title\": \"Country\"}, \"end_date\": {\"anyOf\": [{\"format\": \"date\", \"type\": \"string\"}, {\"type\": \"null\"}], \"default\": null, \"description\": \"End date for the weather forecast in the format YYYY-MM-DD (UTC)\", \"title\": \"End Date\"}, \"location_name\": {\"description\": \"The name of the location to retrieve weather information.\", \"title\": \"Location Name\", \"type\": \"string\"}, \"start_date\": {\"anyOf\": [{\"format\": \"date\", \"type\": \"string\"}, {\"type\": \"null\"}], \"default\": null, \"description\": \"Start date for the weather forecast in the format YYYY-MM-DD (UTC)\", \"title\": \"Start Date\"}, \"temperature_unit\": {\"default\": \"celsius\", \"description\": \"The unit to express temperature\", \"enum\": [\"celsius\", \"fahrenheit\"], \"title\": \"Temperature Unit\", \"type\": \"string\"}}, \"required\": [\"location_name\"], \"title\": \"OpenMeteoToolInput\", \"type\": \"object\"}\n\n# Communication structure\nYou communicate only in instruction lines. The format is: \"Instruction: expected output\". You must only use these instruction lines and must not enter empty lines or anything else between instruction lines.\nYou must skip the instruction lines Function Name, Function Input and Function Output if no function calling is required.\n\nMessage: User's message. You never use this instruction line.\nThought: A single-line step-by-step plan of how to answer the user's message. You can use the available functions defined above. This instruction line must be immediately followed by Function Name if one of the available functions defined above needs to be called, or by Final Answer. Do not provide the answer here.\nFunction Name: Name of the function. This instruction line must be immediately followed by Function Input.\nFunction Input: Function parameters in JSON format adhering to the function's input specification ie. {\"arg1\":\"value1\", \"arg2\":\"value2\"}. Empty object is a valid parameter.\nFunction Output: Output of the function in JSON format.\nThought: Continue your thinking process.\nFinal Answer: Answer the user or ask for more information or clarification. It must always be preceded by Thought.\n\n## Examples\nMessage: Can you translate \"How are you\" into French?\nThought: The user wants to translate a text into French. I can do that.\nFinal Answer: Comment vas-tu?\n\n# Instructions\nUser can only see the Final Answer, all answers must be provided there.\nYou must always use the communication structure and instructions defined above. Do not forget that Thought must be a single-line immediately followed by either Function Name or Final Answer.\nFunctions must be used to retrieve factual or historical information to answer the message.\nIf the user suggests using a function that is not available, answer that the function is not available. You can suggest alternatives if appropriate.\nWhen the message is unclear or you need more information from the user, ask in Final Answer.\n\n# Your capabilities\nPrefer to use these capabilities over functions.\n- You understand these languages: English, Spanish, French.\n- You can translate and summarize, even long documents.\n\n# Notes\n- If you don't know the answer, say that you don't know.\n- The current time and date in ISO format might be found in the last message.\n- When answering the user, use friendly formats for time and date.\n- Use markdown syntax for formatting code snippets, links, JSON, tables, images, files.\n- Sometimes, things don't go as planned. Functions may not provide useful information on the first few tries. You should always try a few different approaches before declaring the problem unsolvable.\n- When the function doesn't give you what you were asking for, you must either use another function or a different function input.\n - When using search engines, you try different formulations of the query, possibly even in a different language.\n- You cannot do complex calculations, computations, or data manipulations without using functions.\n"+ },+ {+ "role": "user",+ "content": [+ {+ "type": "text",+ "text": "Message: I'm planning a trip to Barcelona, Spain. Can you research key attractions and landmarks I should visit, and also tell me what the current weather conditions are like there?\n\nThis message was created at 2025-08-01T13:56:54+00:00"+ }+ ]+ },+ {+ "role": "assistant",+ "content": [+ {+ "type": "text",+ "text": "Thought: I will first research key attractions and landmarks in Barcelona and then check the current weather conditions there. \nFunction Name: Wikipedia\nFunction Input: {\"query\": \"Tourism in Barcelona\"}\nFunction Output: [{\"description\": \"Barcelona ( BAR-sÉ™-LOH-nÉ™; Catalan: [bəɾsəˈlonÉ™] ; Spanish: [baɾθeˈlona] ) is a city on the northeastern coast of Spain. It is the capital and largest city of the autonomous community of Catalonia, as well as the second-most populous municipality of Spain. With a population of 1.6 million within city limits, its urban area extends to numerous neighbouring municipalities within the province of Barcelona and is home to around 5.3 million people, making it the fifth most populous urban area of the European Union after Paris, the Ruhr area, Madrid and Milan. It is one of the largest metropolises on the Mediterranean Sea, located on the coast between the mouths of the rivers Llobregat and Besòs, bounded to the west by the Serra de Collserola mountain range.\\nAccording to tradition, Barcelona was founded by either the Phoenicians or the Carthaginians, who had trading posts along the Catalonian coast. In the Middle Ages, Barcelona became the capital of the County of Barcelona. After joining with the Kingdom of Aragon to form the composite monarchy of the Crown of Aragon, Barcelona, which continued to be the capital of the Principality of Catalonia, became the most important city in the Crown of Aragon and its main economic and administrative centre, only to be overtaken by Valencia, wrested from Moorish control by the Catalans, shortly before the dynastic union between the Crown of Castile and the Crown of Aragon in 1516. Barcelona became the centre of Catalan separatism, briefly becoming part of France during the 17th century Reapers' War and again in 1812 until 1814 under Napoleon. Experiencing industrialization and several workers movements during the 19th and early 20th century, it became the capital of autonomous Catalonia in 1931 and it was the epicenter of the revolution experienced by Catalonia during the Spanish Revolution of 1936, until its capture by the fascists in 1939. After the Spanish transition to democracy in the 1970s, Barcelona once again became the capital of an autonomous Catalonia.\\nBarcelona has a rich cultural heritage and is today an important cultural centre and a major tourist destination. Particularly renowned are the architectural works of Antoni Gaudà and LluÃs Domènech i Montaner, which have been designated UNESCO World Heritage Sites. The city is home to two of the most prestigious universities in Spain: the University of Barcelona and Pompeu Fabra University. The headquarters of the Union for the Mediterranean are located in Barcelona. The city is known for hosting the 1992 Summer Olympics as well as world-class conferences and expositions. In addition, many international sport tournaments have been played here.\\nBarcelona is a major cultural, economic, and financial centre in southwestern Europe, as well as the main biotech hub in Spain. As a leading world city, Barcelona's influence in global socio-economic affairs qualifies it for global city status (Beta +).\\nBarcelona is a transport hub, with the Port of Barcelona being one of Europe's principal seaports and busiest European passenger port, an international airport, Barcelona–El Prat Airport, which handles over 50-million passengers per year, an extensive motorway network, and a high-speed rail line with a link to France and the rest of Europe.\", \"title\": \"Barcelona\", \"url\": \"https://en.wikipedia.org/wiki/Barcelona\"}]\n"+ }+ ]+ }+ ]+ }+ },+ "10b12fd4cca3ef99": {+ "input": {+ "success": true,+ "data": [+ {+ "role": "system",+ "json": {+ "text": "# Available functions\nYou can only use the following functions. Always use all required parameters.\n\nFunction Name: Wikipedia\nDescription: Search factual and historical information, including biography, history, politics, geography, society, culture, science, technology, people, animal species, mathematics, and other subjects.\nInput Schema: {\"properties\": {\"full_text\": {\"default\": false, \"description\": \"If set to true, it will return the full text of the page instead of its short summary.\", \"title\": \"Full Text\", \"type\": \"boolean\"}, \"query\": {\"description\": \"Name of the Wikipedia page.\", \"title\": \"Query\", \"type\": \"string\"}}, \"required\": [\"query\"], \"title\": \"WikipediaToolInput\", \"type\": \"object\"}\n\nFunction Name: OpenMeteoTool\nDescription: Retrieve current, past, or future weather forecasts for a location.\nInput Schema: {\"properties\": {\"country\": {\"anyOf\": [{\"type\": \"string\"}, {\"type\": \"null\"}], \"default\": null, \"description\": \"Country name.\", \"title\": \"Country\"}, \"end_date\": {\"anyOf\": [{\"format\": \"date\", \"type\": \"string\"}, {\"type\": \"null\"}], \"default\": null, \"description\": \"End date for the weather forecast in the format YYYY-MM-DD (UTC)\", \"title\": \"End Date\"}, \"location_name\": {\"description\": \"The name of the location to retrieve weather information.\", \"title\": \"Location Name\", \"type\": \"string\"}, \"start_date\": {\"anyOf\": [{\"format\": \"date\", \"type\": \"string\"}, {\"type\": \"null\"}], \"default\": null, \"description\": \"Start date for the weather forecast in the format YYYY-MM-DD (UTC)\", \"title\": \"Start Date\"}, \"temperature_unit\": {\"default\": \"celsius\", \"description\": \"The unit to express temperature\", \"enum\": [\"celsius\", \"fahrenheit\"], \"title\": \"Temperature Unit\", \"type\": \"string\"}}, \"required\": [\"location_name\"], \"title\": \"OpenMeteoToolInput\", \"type\": \"object\"}\n\n# Communication structure\nYou communicate only in instruction lines. The format is: \"Instruction: expected output\". You must only use these instruction lines and must not enter empty lines or anything else between instruction lines.\nYou must skip the instruction lines Function Name, Function Input and Function Output if no function calling is required.\n\nMessage: User's message. You never use this instruction line.\nThought: A single-line step-by-step plan of how to answer the user's message. You can use the available functions defined above. This instruction line must be immediately followed by Function Name if one of the available functions defined above needs to be called, or by Final Answer. Do not provide the answer here.\nFunction Name: Name of the function. This instruction line must be immediately followed by Function Input.\nFunction Input: Function parameters in JSON format adhering to the function's input specification ie. {\"arg1\":\"value1\", \"arg2\":\"value2\"}. Empty object is a valid parameter.\nFunction Output: Output of the function in JSON format.\nThought: Continue your thinking process.\nFinal Answer: Answer the user or ask for more information or clarification. It must always be preceded by Thought.\n\n## Examples\nMessage: Can you translate \"How are you\" into French?\nThought: The user wants to translate a text into French. I can do that.\nFinal Answer: Comment vas-tu?\n\n# Instructions\nUser can only see the Final Answer, all answers must be provided there.\nYou must always use the communication structure and instructions defined above. Do not forget that Thought must be a single-line immediately followed by either Function Name or Final Answer.\nFunctions must be used to retrieve factual or historical information to answer the message.\nIf the user suggests using a function that is not available, answer that the function is not available. You can suggest alternatives if appropriate.\nWhen the message is unclear or you need more information from the user, ask in Final Answer.\n\n# Your capabilities\nPrefer to use these capabilities over functions.\n- You understand these languages: English, Spanish, French.\n- You can translate and summarize, even long documents.\n\n# Notes\n- If you don't know the answer, say that you don't know.\n- The current time and date in ISO format might be found in the last message.\n- When answering the user, use friendly formats for time and date.\n- Use markdown syntax for formatting code snippets, links, JSON, tables, images, files.\n- Sometimes, things don't go as planned. Functions may not provide useful information on the first few tries. You should always try a few different approaches before declaring the problem unsolvable.\n- When the function doesn't give you what you were asking for, you must either use another function or a different function input.\n - When using search engines, you try different formulations of the query, possibly even in a different language.\n- You cannot do complex calculations, computations, or data manipulations without using functions.\n"+ }+ },+ {+ "role": "user",+ "json": {+ "text": "Message: I'm planning a trip to Barcelona, Spain. Can you research key attractions and landmarks I should visit, and also tell me what the current weather conditions are like there?\n\nThis message was created at 2025-08-01T13:56:54+00:00"+ }+ },+ {+ "role": "assistant",+ "json": {+ "text": "Thought: I will first research key attractions and landmarks in Barcelona and then check the current weather conditions there. \nFunction Name: Wikipedia\nFunction Input: {\"query\": \"Tourism in Barcelona\"}\nFunction Output: [{\"description\": \"Barcelona ( BAR-sÉ™-LOH-nÉ™; Catalan: [bəɾsəˈlonÉ™] ; Spanish: [baɾθeˈlona] ) is a city on the northeastern coast of Spain. It is the capital and largest city of the autonomous community of Catalonia, as well as the second-most populous municipality of Spain. With a population of 1.6 million within city limits, its urban area extends to numerous neighbouring municipalities within the province of Barcelona and is home to around 5.3 million people, making it the fifth most populous urban area of the European Union after Paris, the Ruhr area, Madrid and Milan. It is one of the largest metropolises on the Mediterranean Sea, located on the coast between the mouths of the rivers Llobregat and Besòs, bounded to the west by the Serra de Collserola mountain range.\\nAccording to tradition, Barcelona was founded by either the Phoenicians or the Carthaginians, who had trading posts along the Catalonian coast. In the Middle Ages, Barcelona became the capital of the County of Barcelona. After joining with the Kingdom of Aragon to form the composite monarchy of the Crown of Aragon, Barcelona, which continued to be the capital of the Principality of Catalonia, became the most important city in the Crown of Aragon and its main economic and administrative centre, only to be overtaken by Valencia, wrested from Moorish control by the Catalans, shortly before the dynastic union between the Crown of Castile and the Crown of Aragon in 1516. Barcelona became the centre of Catalan separatism, briefly becoming part of France during the 17th century Reapers' War and again in 1812 until 1814 under Napoleon. Experiencing industrialization and several workers movements during the 19th and early 20th century, it became the capital of autonomous Catalonia in 1931 and it was the epicenter of the revolution experienced by Catalonia during the Spanish Revolution of 1936, until its capture by the fascists in 1939. After the Spanish transition to democracy in the 1970s, Barcelona once again became the capital of an autonomous Catalonia.\\nBarcelona has a rich cultural heritage and is today an important cultural centre and a major tourist destination. Particularly renowned are the architectural works of Antoni Gaudà and LluÃs Domènech i Montaner, which have been designated UNESCO World Heritage Sites. The city is home to two of the most prestigious universities in Spain: the University of Barcelona and Pompeu Fabra University. The headquarters of the Union for the Mediterranean are located in Barcelona. The city is known for hosting the 1992 Summer Olympics as well as world-class conferences and expositions. In addition, many international sport tournaments have been played here.\\nBarcelona is a major cultural, economic, and financial centre in southwestern Europe, as well as the main biotech hub in Spain. As a leading world city, Barcelona's influence in global socio-economic affairs qualifies it for global city status (Beta +).\\nBarcelona is a transport hub, with the Port of Barcelona being one of Europe's principal seaports and busiest European passenger port, an international airport, Barcelona–El Prat Airport, which handles over 50-million passengers per year, an extensive motorway network, and a high-speed rail line with a link to France and the rest of Europe.\", \"title\": \"Barcelona\", \"url\": \"https://en.wikipedia.org/wiki/Barcelona\"}]\n"+ }+ },+ {+ "role": "assistant",+ "json": {+ "text": "Thought: I found information about Barcelona, including its rich cultural heritage and key attractions like the architectural works of Antoni GaudÃ. Now, I will check the current weather conditions in Barcelona. \nFunction Name: OpenMeteoTool\nFunction Input: {\"country\": \"Spain\", \"location_name\": \"Barcelona\"}\nFunction Output: {\"latitude\": 41.4375, \"longitude\": 2.1875, \"generationtime_ms\": 0.0553131103515625, \"utc_offset_seconds\": 0, \"timezone\": \"GMT\", \"timezone_abbreviation\": \"GMT\", \"elevation\": 44.0, \"current_units\": {\"time\": \"iso8601\", \"interval\": \"seconds\", \"temperature_2m\": \"°C\", \"rain\": \"mm\", \"relative_humidity_2m\": \"%\", \"wind_speed_10m\": \"km/h\"}, \"current\": {\"time\": \"2025-08-01T13:45\", \"interval\": 900, \"temperature_2m\": 29.0, \"rain\": 0.0, \"relative_humidity_2m\": 48, \"wind_speed_10m\": 18.8}, \"daily_units\": {\"time\": \"iso8601\", \"temperature_2m_max\": \"°C\", \"temperature_2m_min\": \"°C\", \"rain_sum\": \"mm\"}, \"daily\": {\"time\": [\"2025-08-01\"], \"temperature_2m_max\": [29.0], \"temperature_2m_min\": [20.6], \"rain_sum\": [0.0]}}\n"+ }+ }+ ]+ }+ },+ "322299e937be4455": {+ "input": {+ "success": true,+ "data": [+ {+ "role": "system",+ "json": {+ "text": "# Available functions\nYou can only use the following functions. Always use all required parameters.\n\nFunction Name: Wikipedia\nDescription: Search factual and historical information, including biography, history, politics, geography, society, culture, science, technology, people, animal species, mathematics, and other subjects.\nInput Schema: {\"properties\": {\"full_text\": {\"default\": false, \"description\": \"If set to true, it will return the full text of the page instead of its short summary.\", \"title\": \"Full Text\", \"type\": \"boolean\"}, \"query\": {\"description\": \"Name of the Wikipedia page.\", \"title\": \"Query\", \"type\": \"string\"}}, \"required\": [\"query\"], \"title\": \"WikipediaToolInput\", \"type\": \"object\"}\n\nFunction Name: OpenMeteoTool\nDescription: Retrieve current, past, or future weather forecasts for a location.\nInput Schema: {\"properties\": {\"country\": {\"anyOf\": [{\"type\": \"string\"}, {\"type\": \"null\"}], \"default\": null, \"description\": \"Country name.\", \"title\": \"Country\"}, \"end_date\": {\"anyOf\": [{\"format\": \"date\", \"type\": \"string\"}, {\"type\": \"null\"}], \"default\": null, \"description\": \"End date for the weather forecast in the format YYYY-MM-DD (UTC)\", \"title\": \"End Date\"}, \"location_name\": {\"description\": \"The name of the location to retrieve weather information.\", \"title\": \"Location Name\", \"type\": \"string\"}, \"start_date\": {\"anyOf\": [{\"format\": \"date\", \"type\": \"string\"}, {\"type\": \"null\"}], \"default\": null, \"description\": \"Start date for the weather forecast in the format YYYY-MM-DD (UTC)\", \"title\": \"Start Date\"}, \"temperature_unit\": {\"default\": \"celsius\", \"description\": \"The unit to express temperature\", \"enum\": [\"celsius\", \"fahrenheit\"], \"title\": \"Temperature Unit\", \"type\": \"string\"}}, \"required\": [\"location_name\"], \"title\": \"OpenMeteoToolInput\", \"type\": \"object\"}\n\n# Communication structure\nYou communicate only in instruction lines. The format is: \"Instruction: expected output\". You must only use these instruction lines and must not enter empty lines or anything else between instruction lines.\nYou must skip the instruction lines Function Name, Function Input and Function Output if no function calling is required.\n\nMessage: User's message. You never use this instruction line.\nThought: A single-line step-by-step plan of how to answer the user's message. You can use the available functions defined above. This instruction line must be immediately followed by Function Name if one of the available functions defined above needs to be called, or by Final Answer. Do not provide the answer here.\nFunction Name: Name of the function. This instruction line must be immediately followed by Function Input.\nFunction Input: Function parameters in JSON format adhering to the function's input specification ie. {\"arg1\":\"value1\", \"arg2\":\"value2\"}. Empty object is a valid parameter.\nFunction Output: Output of the function in JSON format.\nThought: Continue your thinking process.\nFinal Answer: Answer the user or ask for more information or clarification. It must always be preceded by Thought.\n\n## Examples\nMessage: Can you translate \"How are you\" into French?\nThought: The user wants to translate a text into French. I can do that.\nFinal Answer: Comment vas-tu?\n\n# Instructions\nUser can only see the Final Answer, all answers must be provided there.\nYou must always use the communication structure and instructions defined above. Do not forget that Thought must be a single-line immediately followed by either Function Name or Final Answer.\nFunctions must be used to retrieve factual or historical information to answer the message.\nIf the user suggests using a function that is not available, answer that the function is not available. You can suggest alternatives if appropriate.\nWhen the message is unclear or you need more information from the user, ask in Final Answer.\n\n# Your capabilities\nPrefer to use these capabilities over functions.\n- You understand these languages: English, Spanish, French.\n- You can translate and summarize, even long documents.\n\n# Notes\n- If you don't know the answer, say that you don't know.\n- The current time and date in ISO format might be found in the last message.\n- When answering the user, use friendly formats for time and date.\n- Use markdown syntax for formatting code snippets, links, JSON, tables, images, files.\n- Sometimes, things don't go as planned. Functions may not provide useful information on the first few tries. You should always try a few different approaches before declaring the problem unsolvable.\n- When the function doesn't give you what you were asking for, you must either use another function or a different function input.\n - When using search engines, you try different formulations of the query, possibly even in a different language.\n- You cannot do complex calculations, computations, or data manipulations without using functions.\n"+ }+ },+ {+ "role": "user",+ "json": {+ "text": "Message: I'm planning a trip to Barcelona, Spain. Can you research key attractions and landmarks I should visit, and also tell me what the current weather conditions are like there?\n\nThis message was created at 2025-08-01T13:56:54+00:00"+ }+ },+ {+ "role": "assistant",+ "json": {+ "text": "Thought: I will first research key attractions and landmarks in Barcelona and then check the current weather conditions there. \nFunction Name: Wikipedia\nFunction Input: {\"query\": \"Tourism in Barcelona\"}\nFunction Output: [{\"description\": \"Barcelona ( BAR-sÉ™-LOH-nÉ™; Catalan: [bəɾsəˈlonÉ™] ; Spanish: [baɾθeˈlona] ) is a city on the northeastern coast of Spain. It is the capital and largest city of the autonomous community of Catalonia, as well as the second-most populous municipality of Spain. With a population of 1.6 million within city limits, its urban area extends to numerous neighbouring municipalities within the province of Barcelona and is home to around 5.3 million people, making it the fifth most populous urban area of the European Union after Paris, the Ruhr area, Madrid and Milan. It is one of the largest metropolises on the Mediterranean Sea, located on the coast between the mouths of the rivers Llobregat and Besòs, bounded to the west by the Serra de Collserola mountain range.\\nAccording to tradition, Barcelona was founded by either the Phoenicians or the Carthaginians, who had trading posts along the Catalonian coast. In the Middle Ages, Barcelona became the capital of the County of Barcelona. After joining with the Kingdom of Aragon to form the composite monarchy of the Crown of Aragon, Barcelona, which continued to be the capital of the Principality of Catalonia, became the most important city in the Crown of Aragon and its main economic and administrative centre, only to be overtaken by Valencia, wrested from Moorish control by the Catalans, shortly before the dynastic union between the Crown of Castile and the Crown of Aragon in 1516. Barcelona became the centre of Catalan separatism, briefly becoming part of France during the 17th century Reapers' War and again in 1812 until 1814 under Napoleon. Experiencing industrialization and several workers movements during the 19th and early 20th century, it became the capital of autonomous Catalonia in 1931 and it was the epicenter of the revolution experienced by Catalonia during the Spanish Revolution of 1936, until its capture by the fascists in 1939. After the Spanish transition to democracy in the 1970s, Barcelona once again became the capital of an autonomous Catalonia.\\nBarcelona has a rich cultural heritage and is today an important cultural centre and a major tourist destination. Particularly renowned are the architectural works of Antoni Gaudà and LluÃs Domènech i Montaner, which have been designated UNESCO World Heritage Sites. The city is home to two of the most prestigious universities in Spain: the University of Barcelona and Pompeu Fabra University. The headquarters of the Union for the Mediterranean are located in Barcelona. The city is known for hosting the 1992 Summer Olympics as well as world-class conferences and expositions. In addition, many international sport tournaments have been played here.\\nBarcelona is a major cultural, economic, and financial centre in southwestern Europe, as well as the main biotech hub in Spain. As a leading world city, Barcelona's influence in global socio-economic affairs qualifies it for global city status (Beta +).\\nBarcelona is a transport hub, with the Port of Barcelona being one of Europe's principal seaports and busiest European passenger port, an international airport, Barcelona–El Prat Airport, which handles over 50-million passengers per year, an extensive motorway network, and a high-speed rail line with a link to France and the rest of Europe.\", \"title\": \"Barcelona\", \"url\": \"https://en.wikipedia.org/wiki/Barcelona\"}]\n"+ }+ },+ {+ "role": "assistant",+ "json": {+ "text": "Thought: I found information about Barcelona, including its rich cultural heritage and key attractions like the architectural works of Antoni GaudÃ. Now, I will check the current weather conditions in Barcelona. \nFunction Name: OpenMeteoTool\nFunction Input: {\"country\": \"Spain\", \"location_name\": \"Barcelona\"}\nFunction Output: {\"latitude\": 41.4375, \"longitude\": 2.1875, \"generationtime_ms\": 0.0553131103515625, \"utc_offset_seconds\": 0, \"timezone\": \"GMT\", \"timezone_abbreviation\": \"GMT\", \"elevation\": 44.0, \"current_units\": {\"time\": \"iso8601\", \"interval\": \"seconds\", \"temperature_2m\": \"°C\", \"rain\": \"mm\", \"relative_humidity_2m\": \"%\", \"wind_speed_10m\": \"km/h\"}, \"current\": {\"time\": \"2025-08-01T13:45\", \"interval\": 900, \"temperature_2m\": 29.0, \"rain\": 0.0, \"relative_humidity_2m\": 48, \"wind_speed_10m\": 18.8}, \"daily_units\": {\"time\": \"iso8601\", \"temperature_2m_max\": \"°C\", \"temperature_2m_min\": \"°C\", \"rain_sum\": \"mm\"}, \"daily\": {\"time\": [\"2025-08-01\"], \"temperature_2m_max\": [29.0], \"temperature_2m_min\": [20.6], \"rain_sum\": [0.0]}}\n"+ }+ },+ {+ "role": "assistant",+ "json": {+ "text": "Barcelona is a vibrant city known for its rich cultural heritage and stunning architecture, particularly the works of Antoni GaudÃ. Here are some key attractions and landmarks you should consider visiting:\n\n1. **Sagrada FamÃlia** - An iconic basilica designed by GaudÃ, still under construction.\n2. **Park Güell** - A colorful park also designed by GaudÃ, filled with artistic structures and beautiful gardens.\n3. **La Rambla** - A famous street in the heart of the city ideal for walking, dining, and shopping.\n4. **Gothic Quarter (Barri Gòtic)** - The historic center of Barcelona with medieval architecture and narrow streets.\n5. **Casa Batlló** - Another masterpiece by GaudÃ, known for its unique design and vibrant colors.\n6. **Casa Milà (La Pedrera)** - A modernist building with a wavy stone facade, also designed by GaudÃ.\n7. **Montjuïc** - A hill offering stunning views of the city, home to several attractions including the Montjuïc Castle and the Magic Fountain.\n\nRegarding the current weather, it is 29°C with no rain, and the humidity is at 48%. It's a great time to explore the city!"+ }+ }+ ]+ },+ "output": {+ "success": true,+ "data": [+ {+ "role": "assistant",+ "content": [+ {+ "type": "text",+ "text": "Barcelona is a vibrant city known for its rich cultural heritage and stunning architecture, particularly the works of Antoni GaudÃ. Here are some key attractions and landmarks you should consider visiting:\n\n1. **Sagrada FamÃlia** - An iconic basilica designed by GaudÃ, still under construction.\n2. **Park Güell** - A colorful park also designed by GaudÃ, filled with artistic structures and beautiful gardens.\n3. **La Rambla** - A famous street in the heart of the city ideal for walking, dining, and shopping.\n4. **Gothic Quarter (Barri Gòtic)** - The historic center of Barcelona with medieval architecture and narrow streets.\n5. **Casa Batlló** - Another masterpiece by GaudÃ, known for its unique design and vibrant colors.\n6. **Casa Milà (La Pedrera)** - A modernist building with a wavy stone facade, also designed by GaudÃ.\n7. **Montjuïc** - A hill offering stunning views of the city, home to several attractions including the Montjuïc Castle and the Magic Fountain.\n\nRegarding the current weather, it is 29°C with no rain, and the humidity is at 48%. It's a great time to explore the city!"+ }+ ]+ }+ ]+ }+ },+ "477d350ab1c6548d": {+ "output": {+ "success": true,+ "data": [+ {+ "json": {+ "latitude": 41.4375,+ "longitude": 2.1875,+ "generationtime_ms": 0.0553131103515625,+ "utc_offset_seconds": 0,+ "timezone": "GMT",+ "timezone_abbreviation": "GMT",+ "elevation": 44,+ "current_units": {+ "time": "iso8601",+ "interval": "seconds",+ "temperature_2m": "°C",+ "rain": "mm",+ "relative_humidity_2m": "%",+ "wind_speed_10m": "km/h"+ },+ "current": {+ "time": "2025-08-01T13:45",+ "interval": 900,+ "temperature_2m": 29,+ "rain": 0,+ "relative_humidity_2m": 48,+ "wind_speed_10m": 18.8+ },+ "daily_units": {+ "time": "iso8601",+ "temperature_2m_max": "°C",+ "temperature_2m_min": "°C",+ "rain_sum": "mm"+ },+ "daily": {+ "time": [+ "2025-08-01"+ ],+ "temperature_2m_max": [+ 29+ ],+ "temperature_2m_min": [+ 20.6+ ],+ "rain_sum": [+ 0+ ]+ }+ }+ }+ ]+ }+ },+ "49b16d9910843ef4": {+ "output": {+ "success": true,+ "data": [+ {+ "json": {+ "description": "Barcelona ( BAR-sÉ™-LOH-nÉ™; Catalan: [bəɾsəˈlonÉ™] ; Spanish: [baɾθeˈlona] ) is a city on the northeastern coast of Spain. It is the capital and largest city of the autonomous community of Catalonia, as well as the second-most populous municipality of Spain. With a population of 1.6 million within city limits, its urban area extends to numerous neighbouring municipalities within the province of Barcelona and is home to around 5.3 million people, making it the fifth most populous urban area of the European Union after Paris, the Ruhr area, Madrid and Milan. It is one of the largest metropolises on the Mediterranean Sea, located on the coast between the mouths of the rivers Llobregat and Besòs, bounded to the west by the Serra de Collserola mountain range.\nAccording to tradition, Barcelona was founded by either the Phoenicians or the Carthaginians, who had trading posts along the Catalonian coast. In the Middle Ages, Barcelona became the capital of the County of Barcelona. After joining with the Kingdom of Aragon to form the composite monarchy of the Crown of Aragon, Barcelona, which continued to be the capital of the Principality of Catalonia, became the most important city in the Crown of Aragon and its main economic and administrative centre, only to be overtaken by Valencia, wrested from Moorish control by the Catalans, shortly before the dynastic union between the Crown of Castile and the Crown of Aragon in 1516. Barcelona became the centre of Catalan separatism, briefly becoming part of France during the 17th century Reapers' War and again in 1812 until 1814 under Napoleon. Experiencing industrialization and several workers movements during the 19th and early 20th century, it became the capital of autonomous Catalonia in 1931 and it was the epicenter of the revolution experienced by Catalonia during the Spanish Revolution of 1936, until its capture by the fascists in 1939. After the Spanish transition to democracy in the 1970s, Barcelona once again became the capital of an autonomous Catalonia.\nBarcelona has a rich cultural heritage and is today an important cultural centre and a major tourist destination. Particularly renowned are the architectural works of Antoni Gaudà and LluÃs Domènech i Montaner, which have been designated UNESCO World Heritage Sites. The city is home to two of the most prestigious universities in Spain: the University of Barcelona and Pompeu Fabra University. The headquarters of the Union for the Mediterranean are located in Barcelona. The city is known for hosting the 1992 Summer Olympics as well as world-class conferences and expositions. In addition, many international sport tournaments have been played here.\nBarcelona is a major cultural, economic, and financial centre in southwestern Europe, as well as the main biotech hub in Spain. As a leading world city, Barcelona's influence in global socio-economic affairs qualifies it for global city status (Beta +).\nBarcelona is a transport hub, with the Port of Barcelona being one of Europe's principal seaports and busiest European passenger port, an international airport, Barcelona–El Prat Airport, which handles over 50-million passengers per year, an extensive motorway network, and a high-speed rail line with a link to France and the rest of Europe.",+ "title": "Barcelona",+ "url": "https://en.wikipedia.org/wiki/Barcelona"+ }+ }+ ]+ }+ },+ "4ab39fcf35639b0c": {+ "output": {+ "success": true,+ "data": [+ {+ "json": {+ "description": "Barcelona ( BAR-sÉ™-LOH-nÉ™; Catalan: [bəɾsəˈlonÉ™] ; Spanish: [baɾθeˈlona] ) is a city on the northeastern coast of Spain. It is the capital and largest city of the autonomous community of Catalonia, as well as the second-most populous municipality of Spain. With a population of 1.6 million within city limits, its urban area extends to numerous neighbouring municipalities within the province of Barcelona and is home to around 5.3 million people, making it the fifth most populous urban area of the European Union after Paris, the Ruhr area, Madrid and Milan. It is one of the largest metropolises on the Mediterranean Sea, located on the coast between the mouths of the rivers Llobregat and Besòs, bounded to the west by the Serra de Collserola mountain range.\nAccording to tradition, Barcelona was founded by either the Phoenicians or the Carthaginians, who had trading posts along the Catalonian coast. In the Middle Ages, Barcelona became the capital of the County of Barcelona. After joining with the Kingdom of Aragon to form the composite monarchy of the Crown of Aragon, Barcelona, which continued to be the capital of the Principality of Catalonia, became the most important city in the Crown of Aragon and its main economic and administrative centre, only to be overtaken by Valencia, wrested from Moorish control by the Catalans, shortly before the dynastic union between the Crown of Castile and the Crown of Aragon in 1516. Barcelona became the centre of Catalan separatism, briefly becoming part of France during the 17th century Reapers' War and again in 1812 until 1814 under Napoleon. Experiencing industrialization and several workers movements during the 19th and early 20th century, it became the capital of autonomous Catalonia in 1931 and it was the epicenter of the revolution experienced by Catalonia during the Spanish Revolution of 1936, until its capture by the fascists in 1939. After the Spanish transition to democracy in the 1970s, Barcelona once again became the capital of an autonomous Catalonia.\nBarcelona has a rich cultural heritage and is today an important cultural centre and a major tourist destination. Particularly renowned are the architectural works of Antoni Gaudà and LluÃs Domènech i Montaner, which have been designated UNESCO World Heritage Sites. The city is home to two of the most prestigious universities in Spain: the University of Barcelona and Pompeu Fabra University. The headquarters of the Union for the Mediterranean are located in Barcelona. The city is known for hosting the 1992 Summer Olympics as well as world-class conferences and expositions. In addition, many international sport tournaments have been played here.\nBarcelona is a major cultural, economic, and financial centre in southwestern Europe, as well as the main biotech hub in Spain. As a leading world city, Barcelona's influence in global socio-economic affairs qualifies it for global city status (Beta +).\nBarcelona is a transport hub, with the Port of Barcelona being one of Europe's principal seaports and busiest European passenger port, an international airport, Barcelona–El Prat Airport, which handles over 50-million passengers per year, an extensive motorway network, and a high-speed rail line with a link to France and the rest of Europe.",+ "title": "Barcelona",+ "url": "https://en.wikipedia.org/wiki/Barcelona"+ }+ }+ ]+ }+ },+ "9381f6df60cf8aa3": {+ "input": {+ "success": true,+ "data": [+ {+ "role": "system",+ "json": {+ "text": "# Available functions\nYou can only use the following functions. Always use all required parameters.\n\nFunction Name: Wikipedia\nDescription: Search factual and historical information, including biography, history, politics, geography, society, culture, science, technology, people, animal species, mathematics, and other subjects.\nInput Schema: {\"properties\": {\"full_text\": {\"default\": false, \"description\": \"If set to true, it will return the full text of the page instead of its short summary.\", \"title\": \"Full Text\", \"type\": \"boolean\"}, \"query\": {\"description\": \"Name of the Wikipedia page.\", \"title\": \"Query\", \"type\": \"string\"}}, \"required\": [\"query\"], \"title\": \"WikipediaToolInput\", \"type\": \"object\"}\n\nFunction Name: OpenMeteoTool\nDescription: Retrieve current, past, or future weather forecasts for a location.\nInput Schema: {\"properties\": {\"country\": {\"anyOf\": [{\"type\": \"string\"}, {\"type\": \"null\"}], \"default\": null, \"description\": \"Country name.\", \"title\": \"Country\"}, \"end_date\": {\"anyOf\": [{\"format\": \"date\", \"type\": \"string\"}, {\"type\": \"null\"}], \"default\": null, \"description\": \"End date for the weather forecast in the format YYYY-MM-DD (UTC)\", \"title\": \"End Date\"}, \"location_name\": {\"description\": \"The name of the location to retrieve weather information.\", \"title\": \"Location Name\", \"type\": \"string\"}, \"start_date\": {\"anyOf\": [{\"format\": \"date\", \"type\": \"string\"}, {\"type\": \"null\"}], \"default\": null, \"description\": \"Start date for the weather forecast in the format YYYY-MM-DD (UTC)\", \"title\": \"Start Date\"}, \"temperature_unit\": {\"default\": \"celsius\", \"description\": \"The unit to express temperature\", \"enum\": [\"celsius\", \"fahrenheit\"], \"title\": \"Temperature Unit\", \"type\": \"string\"}}, \"required\": [\"location_name\"], \"title\": \"OpenMeteoToolInput\", \"type\": \"object\"}\n\n# Communication structure\nYou communicate only in instruction lines. The format is: \"Instruction: expected output\". You must only use these instruction lines and must not enter empty lines or anything else between instruction lines.\nYou must skip the instruction lines Function Name, Function Input and Function Output if no function calling is required.\n\nMessage: User's message. You never use this instruction line.\nThought: A single-line step-by-step plan of how to answer the user's message. You can use the available functions defined above. This instruction line must be immediately followed by Function Name if one of the available functions defined above needs to be called, or by Final Answer. Do not provide the answer here.\nFunction Name: Name of the function. This instruction line must be immediately followed by Function Input.\nFunction Input: Function parameters in JSON format adhering to the function's input specification ie. {\"arg1\":\"value1\", \"arg2\":\"value2\"}. Empty object is a valid parameter.\nFunction Output: Output of the function in JSON format.\nThought: Continue your thinking process.\nFinal Answer: Answer the user or ask for more information or clarification. It must always be preceded by Thought.\n\n## Examples\nMessage: Can you translate \"How are you\" into French?\nThought: The user wants to translate a text into French. I can do that.\nFinal Answer: Comment vas-tu?\n\n# Instructions\nUser can only see the Final Answer, all answers must be provided there.\nYou must always use the communication structure and instructions defined above. Do not forget that Thought must be a single-line immediately followed by either Function Name or Final Answer.\nFunctions must be used to retrieve factual or historical information to answer the message.\nIf the user suggests using a function that is not available, answer that the function is not available. You can suggest alternatives if appropriate.\nWhen the message is unclear or you need more information from the user, ask in Final Answer.\n\n# Your capabilities\nPrefer to use these capabilities over functions.\n- You understand these languages: English, Spanish, French.\n- You can translate and summarize, even long documents.\n\n# Notes\n- If you don't know the answer, say that you don't know.\n- The current time and date in ISO format might be found in the last message.\n- When answering the user, use friendly formats for time and date.\n- Use markdown syntax for formatting code snippets, links, JSON, tables, images, files.\n- Sometimes, things don't go as planned. Functions may not provide useful information on the first few tries. You should always try a few different approaches before declaring the problem unsolvable.\n- When the function doesn't give you what you were asking for, you must either use another function or a different function input.\n - When using search engines, you try different formulations of the query, possibly even in a different language.\n- You cannot do complex calculations, computations, or data manipulations without using functions.\n"+ }+ },+ {+ "role": "user",+ "json": {+ "text": "Message: I'm planning a trip to Barcelona, Spain. Can you research key attractions and landmarks I should visit, and also tell me what the current weather conditions are like there?\n\nThis message was created at 2025-08-01T13:56:54+00:00"+ }+ },+ {+ "role": "assistant",+ "json": {+ "text": "Thought: I will first research key attractions and landmarks in Barcelona and then check the current weather conditions there. \nFunction Name: Wikipedia\nFunction Input: {\"query\": \"Tourism in Barcelona\"}\nFunction Output: [{\"description\": \"Barcelona ( BAR-sÉ™-LOH-nÉ™; Catalan: [bəɾsəˈlonÉ™] ; Spanish: [baɾθeˈlona] ) is a city on the northeastern coast of Spain. It is the capital and largest city of the autonomous community of Catalonia, as well as the second-most populous municipality of Spain. With a population of 1.6 million within city limits, its urban area extends to numerous neighbouring municipalities within the province of Barcelona and is home to around 5.3 million people, making it the fifth most populous urban area of the European Union after Paris, the Ruhr area, Madrid and Milan. It is one of the largest metropolises on the Mediterranean Sea, located on the coast between the mouths of the rivers Llobregat and Besòs, bounded to the west by the Serra de Collserola mountain range.\\nAccording to tradition, Barcelona was founded by either the Phoenicians or the Carthaginians, who had trading posts along the Catalonian coast. In the Middle Ages, Barcelona became the capital of the County of Barcelona. After joining with the Kingdom of Aragon to form the composite monarchy of the Crown of Aragon, Barcelona, which continued to be the capital of the Principality of Catalonia, became the most important city in the Crown of Aragon and its main economic and administrative centre, only to be overtaken by Valencia, wrested from Moorish control by the Catalans, shortly before the dynastic union between the Crown of Castile and the Crown of Aragon in 1516. Barcelona became the centre of Catalan separatism, briefly becoming part of France during the 17th century Reapers' War and again in 1812 until 1814 under Napoleon. Experiencing industrialization and several workers movements during the 19th and early 20th century, it became the capital of autonomous Catalonia in 1931 and it was the epicenter of the revolution experienced by Catalonia during the Spanish Revolution of 1936, until its capture by the fascists in 1939. After the Spanish transition to democracy in the 1970s, Barcelona once again became the capital of an autonomous Catalonia.\\nBarcelona has a rich cultural heritage and is today an important cultural centre and a major tourist destination. Particularly renowned are the architectural works of Antoni Gaudà and LluÃs Domènech i Montaner, which have been designated UNESCO World Heritage Sites. The city is home to two of the most prestigious universities in Spain: the University of Barcelona and Pompeu Fabra University. The headquarters of the Union for the Mediterranean are located in Barcelona. The city is known for hosting the 1992 Summer Olympics as well as world-class conferences and expositions. In addition, many international sport tournaments have been played here.\\nBarcelona is a major cultural, economic, and financial centre in southwestern Europe, as well as the main biotech hub in Spain. As a leading world city, Barcelona's influence in global socio-economic affairs qualifies it for global city status (Beta +).\\nBarcelona is a transport hub, with the Port of Barcelona being one of Europe's principal seaports and busiest European passenger port, an international airport, Barcelona–El Prat Airport, which handles over 50-million passengers per year, an extensive motorway network, and a high-speed rail line with a link to France and the rest of Europe.\", \"title\": \"Barcelona\", \"url\": \"https://en.wikipedia.org/wiki/Barcelona\"}]\n"+ }+ }+ ]+ }+ },+ "96cb191e191a9378": {+ "output": {+ "success": true,+ "data": [+ {+ "json": {+ "latitude": 41.4375,+ "longitude": 2.1875,+ "generationtime_ms": 0.0553131103515625,+ "utc_offset_seconds": 0,+ "timezone": "GMT",+ "timezone_abbreviation": "GMT",+ "elevation": 44,+ "current_units": {+ "time": "iso8601",+ "interval": "seconds",+ "temperature_2m": "°C",+ "rain": "mm",+ "relative_humidity_2m": "%",+ "wind_speed_10m": "km/h"+ },+ "current": {+ "time": "2025-08-01T13:45",+ "interval": 900,+ "temperature_2m": 29,+ "rain": 0,+ "relative_humidity_2m": 48,+ "wind_speed_10m": 18.8+ },+ "daily_units": {+ "time": "iso8601",+ "temperature_2m_max": "°C",+ "temperature_2m_min": "°C",+ "rain_sum": "mm"+ },+ "daily": {+ "time": [+ "2025-08-01"+ ],+ "temperature_2m_max": [+ 29+ ],+ "temperature_2m_min": [+ 20.6+ ],+ "rain_sum": [+ 0+ ]+ }+ }+ }+ ]+ }+ },+ "bd2f100ab98514d4": {+ "output": {+ "success": false,+ "error": {+ "name": "ZodError",+ "message": "[\n {\n \"expected\": \"object\",\n \"code\": \"invalid_type\",\n \"path\": [\n 0\n ],\n \"message\": \"Invalid input: expected object, received string\"\n }\n]"+ }+ }+ },+ "bf28223502262e87": {+ "input": {+ "success": true,+ "data": [+ {+ "role": "system",+ "json": {+ "text": "# Available functions\nYou can only use the following functions. Always use all required parameters.\n\nFunction Name: Wikipedia\nDescription: Search factual and historical information, including biography, history, politics, geography, society, culture, science, technology, people, animal species, mathematics, and other subjects.\nInput Schema: {\"properties\": {\"full_text\": {\"default\": false, \"description\": \"If set to true, it will return the full text of the page instead of its short summary.\", \"title\": \"Full Text\", \"type\": \"boolean\"}, \"query\": {\"description\": \"Name of the Wikipedia page.\", \"title\": \"Query\", \"type\": \"string\"}}, \"required\": [\"query\"], \"title\": \"WikipediaToolInput\", \"type\": \"object\"}\n\nFunction Name: OpenMeteoTool\nDescription: Retrieve current, past, or future weather forecasts for a location.\nInput Schema: {\"properties\": {\"country\": {\"anyOf\": [{\"type\": \"string\"}, {\"type\": \"null\"}], \"default\": null, \"description\": \"Country name.\", \"title\": \"Country\"}, \"end_date\": {\"anyOf\": [{\"format\": \"date\", \"type\": \"string\"}, {\"type\": \"null\"}], \"default\": null, \"description\": \"End date for the weather forecast in the format YYYY-MM-DD (UTC)\", \"title\": \"End Date\"}, \"location_name\": {\"description\": \"The name of the location to retrieve weather information.\", \"title\": \"Location Name\", \"type\": \"string\"}, \"start_date\": {\"anyOf\": [{\"format\": \"date\", \"type\": \"string\"}, {\"type\": \"null\"}], \"default\": null, \"description\": \"Start date for the weather forecast in the format YYYY-MM-DD (UTC)\", \"title\": \"Start Date\"}, \"temperature_unit\": {\"default\": \"celsius\", \"description\": \"The unit to express temperature\", \"enum\": [\"celsius\", \"fahrenheit\"], \"title\": \"Temperature Unit\", \"type\": \"string\"}}, \"required\": [\"location_name\"], \"title\": \"OpenMeteoToolInput\", \"type\": \"object\"}\n\n# Communication structure\nYou communicate only in instruction lines. The format is: \"Instruction: expected output\". You must only use these instruction lines and must not enter empty lines or anything else between instruction lines.\nYou must skip the instruction lines Function Name, Function Input and Function Output if no function calling is required.\n\nMessage: User's message. You never use this instruction line.\nThought: A single-line step-by-step plan of how to answer the user's message. You can use the available functions defined above. This instruction line must be immediately followed by Function Name if one of the available functions defined above needs to be called, or by Final Answer. Do not provide the answer here.\nFunction Name: Name of the function. This instruction line must be immediately followed by Function Input.\nFunction Input: Function parameters in JSON format adhering to the function's input specification ie. {\"arg1\":\"value1\", \"arg2\":\"value2\"}. Empty object is a valid parameter.\nFunction Output: Output of the function in JSON format.\nThought: Continue your thinking process.\nFinal Answer: Answer the user or ask for more information or clarification. It must always be preceded by Thought.\n\n## Examples\nMessage: Can you translate \"How are you\" into French?\nThought: The user wants to translate a text into French. I can do that.\nFinal Answer: Comment vas-tu?\n\n# Instructions\nUser can only see the Final Answer, all answers must be provided there.\nYou must always use the communication structure and instructions defined above. Do not forget that Thought must be a single-line immediately followed by either Function Name or Final Answer.\nFunctions must be used to retrieve factual or historical information to answer the message.\nIf the user suggests using a function that is not available, answer that the function is not available. You can suggest alternatives if appropriate.\nWhen the message is unclear or you need more information from the user, ask in Final Answer.\n\n# Your capabilities\nPrefer to use these capabilities over functions.\n- You understand these languages: English, Spanish, French.\n- You can translate and summarize, even long documents.\n\n# Notes\n- If you don't know the answer, say that you don't know.\n- The current time and date in ISO format might be found in the last message.\n- When answering the user, use friendly formats for time and date.\n- Use markdown syntax for formatting code snippets, links, JSON, tables, images, files.\n- Sometimes, things don't go as planned. Functions may not provide useful information on the first few tries. You should always try a few different approaches before declaring the problem unsolvable.\n- When the function doesn't give you what you were asking for, you must either use another function or a different function input.\n - When using search engines, you try different formulations of the query, possibly even in a different language.\n- You cannot do complex calculations, computations, or data manipulations without using functions.\n"+ }+ },+ {+ "role": "user",+ "json": {+ "text": "Message: I'm planning a trip to Barcelona, Spain. Can you research key attractions and landmarks I should visit, and also tell me what the current weather conditions are like there?\n\nThis message was created at 2025-08-01T13:56:54+00:00"+ }+ }+ ]+ }+ },+ "cb4886242bf214b8": {+ "input": {+ "success": false,+ "error": {+ "name": "ZodError",+ "message": "[\n {\n \"expected\": \"array\",\n \"code\": \"invalid_type\",\n \"path\": [],\n \"message\": \"Invalid input: expected array, received string\"\n }\n]"+ }+ },+ "output": {+ "success": false,+ "error": {+ "name": "ZodError",+ "message": "[\n {\n \"expected\": \"object\",\n \"code\": \"invalid_type\",\n \"path\": [\n 0\n ],\n \"message\": \"Invalid input: expected object, received string\"\n }\n]"+ }+ }+ },+ "fce7074c89470876": {+ "output": {+ "success": true,+ "data": [+ {+ "json": {+ "description": "Barcelona ( BAR-sÉ™-LOH-nÉ™; Catalan: [bəɾsəˈlonÉ™] ; Spanish: [baɾθeˈlona] ) is a city on the northeastern coast of Spain. It is the capital and largest city of the autonomous community of Catalonia, as well as the second-most populous municipality of Spain. With a population of 1.6 million within city limits, its urban area extends to numerous neighbouring municipalities within the province of Barcelona and is home to around 5.3 million people, making it the fifth most populous urban area of the European Union after Paris, the Ruhr area, Madrid and Milan. It is one of the largest metropolises on the Mediterranean Sea, located on the coast between the mouths of the rivers Llobregat and Besòs, bounded to the west by the Serra de Collserola mountain range.\nAccording to tradition, Barcelona was founded by either the Phoenicians or the Carthaginians, who had trading posts along the Catalonian coast. In the Middle Ages, Barcelona became the capital of the County of Barcelona. After joining with the Kingdom of Aragon to form the composite monarchy of the Crown of Aragon, Barcelona, which continued to be the capital of the Principality of Catalonia, became the most important city in the Crown of Aragon and its main economic and administrative centre, only to be overtaken by Valencia, wrested from Moorish control by the Catalans, shortly before the dynastic union between the Crown of Castile and the Crown of Aragon in 1516. Barcelona became the centre of Catalan separatism, briefly becoming part of France during the 17th century Reapers' War and again in 1812 until 1814 under Napoleon. Experiencing industrialization and several workers movements during the 19th and early 20th century, it became the capital of autonomous Catalonia in 1931 and it was the epicenter of the revolution experienced by Catalonia during the Spanish Revolution of 1936, until its capture by the fascists in 1939. After the Spanish transition to democracy in the 1970s, Barcelona once again became the capital of an autonomous Catalonia.\nBarcelona has a rich cultural heritage and is today an important cultural centre and a major tourist destination. Particularly renowned are the architectural works of Antoni Gaudà and LluÃs Domènech i Montaner, which have been designated UNESCO World Heritage Sites. The city is home to two of the most prestigious universities in Spain: the University of Barcelona and Pompeu Fabra University. The headquarters of the Union for the Mediterranean are located in Barcelona. The city is known for hosting the 1992 Summer Olympics as well as world-class conferences and expositions. In addition, many international sport tournaments have been played here.\nBarcelona is a major cultural, economic, and financial centre in southwestern Europe, as well as the main biotech hub in Spain. As a leading world city, Barcelona's influence in global socio-economic affairs qualifies it for global city status (Beta +).\nBarcelona is a transport hub, with the Port of Barcelona being one of Europe's principal seaports and busiest European passenger port, an international airport, Barcelona–El Prat Airport, which handles over 50-million passengers per year, an extensive motorway network, and a high-speed rail line with a link to France and the rest of Europe.",+ "title": "Barcelona",+ "url": "https://en.wikipedia.org/wiki/Barcelona"+ }+ }+ ]+ }+ }+}\ No newline at end of filediff --git a/worker/src/__tests__/chatml/framework-traces/beeai-2025-08-01.trace.json b/worker/src/__tests__/chatml/framework-traces/beeai-2025-08-01.trace.jsonnew file mode 100644index 0000000000..86d475e7bb--- /dev/null+++ b/worker/src/__tests__/chatml/framework-traces/beeai-2025-08-01.trace.json@@ -0,0 +1,2688 @@+{+ "trace": {+ "id": "096fc09a30ab90d2431778f9ee2b3936",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "name": "beeai-framework-main",+ "timestamp": "2025-08-01T13:56:54.163Z",+ "environment": "default",+ "tags": [],+ "bookmarked": false,+ "release": null,+ "version": null,+ "userId": null,+ "sessionId": null,+ "public": true,+ "input": "\"I'm planning a trip to Barcelona, Spain. Can you research key attractions and landmarks I should visit, and also tell me what the current weather conditions are like there?\"",+ "output": "\"{'role': 'assistant', 'text': \\\"Barcelona is a vibrant city known for its rich cultural heritage and stunning architecture, particularly the works of Antoni GaudÃ. Here are some key attractions and landmarks you should consider visiting:\\\\n\\\\n1. **Sagrada FamÃlia** - An iconic basilica designed by GaudÃ, still under construction.\\\\n2. **Park Güell** - A colorful park also designed by GaudÃ, filled with artistic structures and beautiful gardens.\\\\n3. **La Rambla** - A famous street in the heart of the city ideal for walking, dining, and shopping.\\\\n4. **Gothic Quarter (Barri Gòtic)** - The historic center of Barcelona with medieval architecture and narrow streets.\\\\n5. **Casa Batlló** - Another masterpiece by GaudÃ, known for its unique design and vibrant colors.\\\\n6. **Casa Milà (La Pedrera)** - A modernist building with a wavy stone facade, also designed by GaudÃ.\\\\n7. **Montjuïc** - A hill offering stunning views of the city, home to several attractions including the Montjuïc Castle and the Magic Fountain.\\\\n\\\\nRegarding the current weather, it is 29°C with no rain, and the humidity is at 48%. It's a great time to explore the city!\\\"}\"",+ "createdAt": "2025-08-01T13:57:15.000Z",+ "updatedAt": "2025-08-01T13:57:14.194Z",+ "metadata": "{\"attributes\":{\"source\":\"ReActAgent\",\"traceId\":\"0cff2691-3a45-4988-a243-8cb8c508aa25\",\"beeai.version\":\"0.1.33\",\"input.value\":\"I'm planning a trip to Barcelona, Spain. Can you research key attractions and landmarks I should visit, and also tell me what the current weather conditions are like there?\",\"output.value\":\"{'role': 'assistant', 'text': \\\"Barcelona is a vibrant city known for its rich cultural heritage and stunning architecture, particularly the works of Antoni GaudÃ. Here are some key attractions and landmarks you should consider visiting:\\\\n\\\\n1. **Sagrada FamÃlia** - An iconic basilica designed by GaudÃ, still under construction.\\\\n2. **Park Güell** - A colorful park also designed by GaudÃ, filled with artistic structures and beautiful gardens.\\\\n3. **La Rambla** - A famous street in the heart of the city ideal for walking, dining, and shopping.\\\\n4. **Gothic Quarter (Barri Gòtic)** - The historic center of Barcelona with medieval architecture and narrow streets.\\\\n5. **Casa Batlló** - Another masterpiece by GaudÃ, known for its unique design and vibrant colors.\\\\n6. **Casa Milà (La Pedrera)** - A modernist building with a wavy stone facade, also designed by GaudÃ.\\\\n7. **Montjuïc** - A hill offering stunning views of the city, home to several attractions including the Montjuïc Castle and the Magic Fountain.\\\\n\\\\nRegarding the current weather, it is 29°C with no rain, and the humidity is at 48%. It's a great time to explore the city!\\\"}\",\"history\":\"[{'text': '# Available functions\\\\nYou can only use the following functions. Always use all required parameters.\\\\n\\\\nFunction Name: Wikipedia\\\\nDescription: Search factual and historical information, including biography, history, politics, geography, society, culture, science, technology, people, animal species, mathematics, and other subjects.\\\\nInput Schema: {\\\"properties\\\": {\\\"full_text\\\": {\\\"default\\\": false, \\\"description\\\": \\\"If set to true, it will return the full text of the page instead of its short summary.\\\", \\\"title\\\": \\\"Full Text\\\", \\\"type\\\": \\\"boolean\\\"}, \\\"query\\\": {\\\"description\\\": \\\"Name of the Wikipedia page.\\\", \\\"title\\\": \\\"Query\\\", \\\"type\\\": \\\"string\\\"}}, \\\"required\\\": [\\\"query\\\"], \\\"title\\\": \\\"WikipediaToolInput\\\", \\\"type\\\": \\\"object\\\"}\\\\n\\\\nFunction Name: OpenMeteoTool\\\\nDescription: Retrieve current, past, or future weather forecasts for a location.\\\\nInput Schema: {\\\"properties\\\": {\\\"country\\\": {\\\"anyOf\\\": [{\\\"type\\\": \\\"string\\\"}, {\\\"type\\\": \\\"null\\\"}], \\\"default\\\": null, \\\"description\\\": \\\"Country name.\\\", \\\"title\\\": \\\"Country\\\"}, \\\"end_date\\\": {\\\"anyOf\\\": [{\\\"format\\\": \\\"date\\\", \\\"type\\\": \\\"string\\\"}, {\\\"type\\\": \\\"null\\\"}], \\\"default\\\": null, \\\"description\\\": \\\"End date for the weather forecast in the format YYYY-MM-DD (UTC)\\\", \\\"title\\\": \\\"End Date\\\"}, \\\"location_name\\\": {\\\"description\\\": \\\"The name of the location to retrieve weather information.\\\", \\\"title\\\": \\\"Location Name\\\", \\\"type\\\": \\\"string\\\"}, \\\"start_date\\\": {\\\"anyOf\\\": [{\\\"format\\\": \\\"date\\\", \\\"type\\\": \\\"string\\\"}, {\\\"type\\\": \\\"null\\\"}], \\\"default\\\": null, \\\"description\\\": \\\"Start date for the weather forecast in the format YYYY-MM-DD (UTC)\\\", \\\"title\\\": \\\"Start Date\\\"}, \\\"temperature_unit\\\": {\\\"default\\\": \\\"celsius\\\", \\\"description\\\": \\\"The unit to express temperature\\\", \\\"enum\\\": [\\\"celsius\\\", \\\"fahrenheit\\\"], \\\"title\\\": \\\"Temperature Unit\\\", \\\"type\\\": \\\"string\\\"}}, \\\"required\\\": [\\\"location_name\\\"], \\\"title\\\": \\\"OpenMeteoToolInput\\\", \\\"type\\\": \\\"object\\\"}\\\\n\\\\n# Communication structure\\\\nYou communicate only in instruction lines. The format is: \\\"Instruction: expected output\\\". You must only use these instruction lines and must not enter empty lines or anything else between instruction lines.\\\\nYou must skip the instruction lines Function Name, Function Input and Function Output if no function calling is required.\\\\n\\\\nMessage: User\\\\'s message. You never use this instruction line.\\\\nThought: A single-line step-by-step plan of how to answer the user\\\\'s message. You can use the available functions defined above. This instruction line must be immediately followed by Function Name if one of the available functions defined above needs to be called, or by Final Answer. Do not provide the answer here.\\\\nFunction Name: Name of the function. This instruction line must be immediately followed by Function Input.\\\\nFunction Input: Function parameters in JSON format adhering to the function\\\\'s input specification ie. {\\\"arg1\\\":\\\"value1\\\", \\\"arg2\\\":\\\"value2\\\"}. Empty object is a valid parameter.\\\\nFunction Output: Output of the function in JSON format.\\\\nThought: Continue your thinking process.\\\\nFinal Answer: Answer the user or ask for more information or clarification. It must always be preceded by Thought.\\\\n\\\\n## Examples\\\\nMessage: Can you translate \\\"How are you\\\" into French?\\\\nThought: The user wants to translate a text into French. I can do that.\\\\nFinal Answer: Comment vas-tu?\\\\n\\\\n# Instructions\\\\nUser can only see the Final Answer, all answers must be provided there.\\\\nYou must always use the communication structure and instructions defined above. Do not forget that Thought must be a single-line immediately followed by either Function Name or Final Answer.\\\\nFunctions must be used to retrieve factual or historical information to answer the message.\\\\nIf the user suggests using a function that is not available, answer that the function is not available. You can suggest alternatives if appropriate.\\\\nWhen the message is unclear or you need more information from the user, ask in Final Answer.\\\\n\\\\n# Your capabilities\\\\nPrefer to use these capabilities over functions.\\\\n- You understand these languages: English, Spanish, French.\\\\n- You can translate and summarize, even long documents.\\\\n\\\\n# Notes\\\\n- If you don\\\\'t know the answer, say that you don\\\\'t know.\\\\n- The current time and date in ISO format might be found in the last message.\\\\n- When answering the user, use friendly formats for time and date.\\\\n- Use markdown syntax for formatting code snippets, links, JSON, tables, images, files.\\\\n- Sometimes, things don\\\\'t go as planned. Functions may not provide useful information on the first few tries. You should always try a few different approaches before declaring the problem unsolvable.\\\\n- When the function doesn\\\\'t give you what you were asking for, you must either use another function or a different function input.\\\\n - When using search engines, you try different formulations of the query, possibly even in a different language.\\\\n- You cannot do complex calculations, computations, or data manipulations without using functions.\\\\n', 'role': 'system'}, {'text': \\\"Message: I'm planning a trip to Barcelona, Spain. Can you research key attractions and landmarks I should visit, and also tell me what the current weather conditions are like there?\\\\n\\\\nThis message was created at 2025-08-01T13:56:54+00:00\\\", 'role': 'user'}, {'text': 'Thought: I will first research key attractions and landmarks in Barcelona and then check the current weather conditions there. \\\\nFunction Name: Wikipedia\\\\nFunction Input: {\\\"query\\\": \\\"Tourism in Barcelona\\\"}\\\\nFunction Output: [{\\\"description\\\": \\\"Barcelona ( BAR-sÉ™-LOH-nÉ™; Catalan: [bəɾsəˈlonÉ™] ; Spanish: [baɾθeˈlona] ) is a city on the northeastern coast of Spain. It is the capital and largest city of the autonomous community of Catalonia, as well as the second-most populous municipality of Spain. With a population of 1.6 million within city limits, its urban area extends to numerous neighbouring municipalities within the province of Barcelona and is home to around 5.3 million people, making it the fifth most populous urban area of the European Union after Paris, the Ruhr area, Madrid and Milan. It is one of the largest metropolises on the Mediterranean Sea, located on the coast between the mouths of the rivers Llobregat and Besòs, bounded to the west by the Serra de Collserola mountain range.\\\\\\\\nAccording to tradition, Barcelona was founded by either the Phoenicians or the Carthaginians, who had trading posts along the Catalonian coast. In the Middle Ages, Barcelona became the capital of the County of Barcelona. After joining with the Kingdom of Aragon to form the composite monarchy of the Crown of Aragon, Barcelona, which continued to be the capital of the Principality of Catalonia, became the most important city in the Crown of Aragon and its main economic and administrative centre, only to be overtaken by Valencia, wrested from Moorish control by the Catalans, shortly before the dynastic union between the Crown of Castile and the Crown of Aragon in 1516. Barcelona became the centre of Catalan separatism, briefly becoming part of France during the 17th century Reapers\\\\' War and again in 1812 until 1814 under Napoleon. Experiencing industrialization and several workers movements during the 19th and early 20th century, it became the capital of autonomous Catalonia in 1931 and it was the epicenter of the revolution experienced by Catalonia during the Spanish Revolution of 1936, until its capture by the fascists in 1939. After the Spanish transition to democracy in the 1970s, Barcelona once again became the capital of an autonomous Catalonia.\\\\\\\\nBarcelona has a rich cultural heritage and is today an important cultural centre and a major tourist destination. Particularly renowned are the architectural works of Antoni Gaudà and LluÃs Domènech i Montaner, which have been designated UNESCO World Heritage Sites. The city is home to two of the most prestigious universities in Spain: the University of Barcelona and Pompeu Fabra University. The headquarters of the Union for the Mediterranean are located in Barcelona. The city is known for hosting the 1992 Summer Olympics as well as world-class conferences and expositions. In addition, many international sport tournaments have been played here.\\\\\\\\nBarcelona is a major cultural, economic, and financial centre in southwestern Europe, as well as the main biotech hub in Spain. As a leading world city, Barcelona\\\\'s influence in global socio-economic affairs qualifies it for global city status (Beta +).\\\\\\\\nBarcelona is a transport hub, with the Port of Barcelona being one of Europe\\\\'s principal seaports and busiest European passenger port, an international airport, Barcelona–El Prat Airport, which handles over 50-million passengers per year, an extensive motorway network, and a high-speed rail line with a link to France and the rest of Europe.\\\", \\\"title\\\": \\\"Barcelona\\\", \\\"url\\\": \\\"https://en.wikipedia.org/wiki/Barcelona\\\"}]\\\\n', 'role': 'assistant'}, {'text': 'Thought: I found information about Barcelona, including its rich cultural heritage and key attractions like the architectural works of Antoni GaudÃ. Now, I will check the current weather conditions in Barcelona. \\\\nFunction Name: OpenMeteoTool\\\\nFunction Input: {\\\"country\\\": \\\"Spain\\\", \\\"location_name\\\": \\\"Barcelona\\\"}\\\\nFunction Output: {\\\"latitude\\\": 41.4375, \\\"longitude\\\": 2.1875, \\\"generationtime_ms\\\": 0.0553131103515625, \\\"utc_offset_seconds\\\": 0, \\\"timezone\\\": \\\"GMT\\\", \\\"timezone_abbreviation\\\": \\\"GMT\\\", \\\"elevation\\\": 44.0, \\\"current_units\\\": {\\\"time\\\": \\\"iso8601\\\", \\\"interval\\\": \\\"seconds\\\", \\\"temperature_2m\\\": \\\"°C\\\", \\\"rain\\\": \\\"mm\\\", \\\"relative_humidity_2m\\\": \\\"%\\\", \\\"wind_speed_10m\\\": \\\"km/h\\\"}, \\\"current\\\": {\\\"time\\\": \\\"2025-08-01T13:45\\\", \\\"interval\\\": 900, \\\"temperature_2m\\\": 29.0, \\\"rain\\\": 0.0, \\\"relative_humidity_2m\\\": 48, \\\"wind_speed_10m\\\": 18.8}, \\\"daily_units\\\": {\\\"time\\\": \\\"iso8601\\\", \\\"temperature_2m_max\\\": \\\"°C\\\", \\\"temperature_2m_min\\\": \\\"°C\\\", \\\"rain_sum\\\": \\\"mm\\\"}, \\\"daily\\\": {\\\"time\\\": [\\\"2025-08-01\\\"], \\\"temperature_2m_max\\\": [29.0], \\\"temperature_2m_min\\\": [20.6], \\\"rain_sum\\\": [0.0]}}\\\\n', 'role': 'assistant'}, {'text': \\\"Barcelona is a vibrant city known for its rich cultural heritage and stunning architecture, particularly the works of Antoni GaudÃ. Here are some key attractions and landmarks you should consider visiting:\\\\n\\\\n1. **Sagrada FamÃlia** - An iconic basilica designed by GaudÃ, still under construction.\\\\n2. **Park Güell** - A colorful park also designed by GaudÃ, filled with artistic structures and beautiful gardens.\\\\n3. **La Rambla** - A famous street in the heart of the city ideal for walking, dining, and shopping.\\\\n4. **Gothic Quarter (Barri Gòtic)** - The historic center of Barcelona with medieval architecture and narrow streets.\\\\n5. **Casa Batlló** - Another masterpiece by GaudÃ, known for its unique design and vibrant colors.\\\\n6. **Casa Milà (La Pedrera)** - A modernist building with a wavy stone facade, also designed by GaudÃ.\\\\n7. **Montjuïc** - A hill offering stunning views of the city, home to several attractions including the Montjuïc Castle and the Magic Fountain.\\\\n\\\\nRegarding the current weather, it is 29°C with no rain, and the humidity is at 48%. It's a great time to explore the city!\\\", 'role': 'assistant'}]\",\"openinference.span.kind\":\"AGENT\"},\"resourceAttributes\":{\"telemetry.sdk.language\":\"python\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"1.34.1\",\"service.name\":\"unknown_service\"},\"scope\":{\"name\":\"openinference.instrumentation.beeai\",\"version\":\"0.1.33\",\"attributes\":{}}}",+ "scores": [+ {+ "id": "a9a518d9-9b3f-4c21-86d3-ead5e5bf23de",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "environment": "default",+ "name": "hallucination",+ "value": 0.2,+ "source": "EVAL",+ "authorUserId": null,+ "comment": "The generation accurately lists well-known attractions in Barcelona, aligning with established knowledge. However, the current weather conditions are speculative and unverifiable without real-time data access, introducing a degree of hallucination.",+ "configId": null,+ "queueId": null,+ "executionTraceId": null,+ "createdAt": "2025-08-01T13:57:42.000Z",+ "updatedAt": "2025-08-01T13:57:41.767Z",+ "timestamp": "2025-08-01T13:57:41.654Z",+ "traceId": "096fc09a30ab90d2431778f9ee2b3936",+ "sessionId": null,+ "datasetRunId": null,+ "observationId": null,+ "longStringValue": "",+ "stringValue": null,+ "dataType": "NUMERIC",+ "metadata": "{}"+ },+ {+ "id": "96d236ec-d089-49cb-9e77-7c507b112649",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "environment": "default",+ "name": "toxicity",+ "value": 0,+ "source": "EVAL",+ "authorUserId": null,+ "comment": "The generation provides informative and respectful content about Barcelona's attractions and current weather without any harmful or negative language, making it non-toxic.",+ "configId": null,+ "queueId": null,+ "executionTraceId": null,+ "createdAt": "2025-08-01T13:57:41.000Z",+ "updatedAt": "2025-08-01T13:57:40.909Z",+ "timestamp": "2025-08-01T13:57:40.818Z",+ "traceId": "096fc09a30ab90d2431778f9ee2b3936",+ "sessionId": null,+ "datasetRunId": null,+ "observationId": null,+ "longStringValue": "",+ "stringValue": null,+ "dataType": "NUMERIC",+ "metadata": "{}"+ }+ ],+ "corrections": [],+ "latency": 17.173,+ "observations": [+ {+ "id": "1f956cbea34725bd",+ "traceId": "096fc09a30ab90d2431778f9ee2b3936",+ "startTime": "2025-08-01T13:56:54.170Z",+ "endTime": "2025-08-01T13:57:11.333Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "bf28223502262e87",+ "type": "GENERATION",+ "environment": "default",+ "name": "backend.openai.chat.start-14",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-08-01T13:57:14.161Z",+ "updatedAt": "2025-08-01T13:57:14.214Z",+ "input": null,+ "output": null,+ "model": "gpt-4o-mini",+ "internalModelId": "clyrjp56f0000t0mzapoocd7u",+ "modelParameters": {+ "max_tokens": "null",+ "top_p": "null",+ "frequency_penalty": "null",+ "temperature": 0.7,+ "top_k": "null",+ "n": "null",+ "presence_penalty": "null",+ "seed": "null",+ "stop_sequences": "null",+ "stream": "null"+ },+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 17.163,+ "timeToFirstToken": null,+ "usageDetails": {+ "input": 1195,+ "total": 1195+ },+ "costDetails": {+ "input": 0.00017925,+ "total": 0.00017925+ },+ "providedCostDetails": {},+ "inputCost": 0.00017925,+ "outputCost": null,+ "totalCost": 0.00017925,+ "inputUsage": 1195,+ "outputUsage": 0,+ "totalUsage": 1195,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ },+ {+ "id": "4c5c5a7936ca24bc",+ "traceId": "096fc09a30ab90d2431778f9ee2b3936",+ "startTime": "2025-08-01T13:57:03.889Z",+ "endTime": "2025-08-01T13:57:11.334Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "10b12fd4cca3ef99",+ "type": "GENERATION",+ "environment": "default",+ "name": "backend.openai.chat.start-16",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-08-01T13:57:14.162Z",+ "updatedAt": "2025-08-01T13:57:14.239Z",+ "input": null,+ "output": null,+ "model": "gpt-4o-mini",+ "internalModelId": "clyrjp56f0000t0mzapoocd7u",+ "modelParameters": {+ "max_tokens": "null",+ "top_p": "null",+ "frequency_penalty": "null",+ "temperature": 0.7,+ "top_k": "null",+ "n": "null",+ "presence_penalty": "null",+ "seed": "null",+ "stop_sequences": "null",+ "stream": "null"+ },+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 7.445,+ "timeToFirstToken": null,+ "usageDetails": {+ "input": 2359,+ "total": 2359+ },+ "costDetails": {+ "input": 0.00035385,+ "total": 0.00035385+ },+ "providedCostDetails": {},+ "inputCost": 0.00035385,+ "outputCost": null,+ "totalCost": 0.00035385,+ "inputUsage": 2359,+ "outputUsage": 0,+ "totalUsage": 2359,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ },+ {+ "id": "52df0f7f9dad6b23",+ "traceId": "096fc09a30ab90d2431778f9ee2b3936",+ "startTime": "2025-08-01T13:56:57.475Z",+ "endTime": "2025-08-01T13:57:11.334Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "9381f6df60cf8aa3",+ "type": "GENERATION",+ "environment": "default",+ "name": "backend.openai.chat.start-15",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-08-01T13:57:14.169Z",+ "updatedAt": "2025-08-01T13:57:14.245Z",+ "input": null,+ "output": null,+ "model": "gpt-4o-mini",+ "internalModelId": "clyrjp56f0000t0mzapoocd7u",+ "modelParameters": {+ "max_tokens": "null",+ "top_p": "null",+ "frequency_penalty": "null",+ "temperature": 0.7,+ "top_k": "null",+ "n": "null",+ "presence_penalty": "null",+ "seed": "null",+ "stop_sequences": "null",+ "stream": "null"+ },+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 13.859,+ "timeToFirstToken": null,+ "usageDetails": {+ "input": 1988,+ "total": 1988+ },+ "costDetails": {+ "input": 0.0002982,+ "total": 0.0002982+ },+ "providedCostDetails": {},+ "inputCost": 0.0002982,+ "outputCost": null,+ "totalCost": 0.0002982,+ "inputUsage": 1988,+ "outputUsage": 0,+ "totalUsage": 1988,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ },+ {+ "id": "b7b9a79830fe5c6b",+ "traceId": "096fc09a30ab90d2431778f9ee2b3936",+ "startTime": "2025-08-01T13:57:11.330Z",+ "endTime": "2025-08-01T13:57:11.336Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "8b26b3ec668cf146",+ "type": "GENERATION",+ "environment": "default",+ "name": "backend.openai.chat.finish-16",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-08-01T13:57:14.163Z",+ "updatedAt": "2025-08-01T13:57:14.243Z",+ "input": null,+ "output": null,+ "model": "gpt-4o-mini",+ "internalModelId": "clyrjp56f0000t0mzapoocd7u",+ "modelParameters": {+ "max_tokens": "null",+ "top_p": "null",+ "frequency_penalty": "null",+ "temperature": 0.7,+ "top_k": "null",+ "n": "null",+ "presence_penalty": "null",+ "seed": "null",+ "stop_sequences": "null",+ "stream": "null"+ },+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 0.006,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ },+ {+ "id": "f50f7bbf13112df9",+ "traceId": "096fc09a30ab90d2431778f9ee2b3936",+ "startTime": "2025-08-01T13:57:11.328Z",+ "endTime": "2025-08-01T13:57:11.336Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "8b26b3ec668cf146",+ "type": "GENERATION",+ "environment": "default",+ "name": "backend.openai.chat.success-16",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-08-01T13:57:14.163Z",+ "updatedAt": "2025-08-01T13:57:14.239Z",+ "input": null,+ "output": null,+ "model": "gpt-4o-mini",+ "internalModelId": "clyrjp56f0000t0mzapoocd7u",+ "modelParameters": {+ "max_tokens": "null",+ "top_p": "null",+ "frequency_penalty": "null",+ "temperature": 0.7,+ "top_k": "null",+ "n": "null",+ "presence_penalty": "null",+ "seed": "null",+ "stop_sequences": "null",+ "stream": "null"+ },+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 0.008,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ },+ {+ "id": "0eb76c10a47e9086",+ "traceId": "096fc09a30ab90d2431778f9ee2b3936",+ "startTime": "2025-08-01T13:56:57.470Z",+ "endTime": "2025-08-01T13:57:11.334Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "cb4886242bf214b8",+ "type": "SPAN",+ "environment": "default",+ "name": "iteration-2",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-08-01T13:57:14.163Z",+ "updatedAt": "2025-08-01T13:57:14.243Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 13.864,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ },+ {+ "id": "10b12fd4cca3ef99",+ "traceId": "096fc09a30ab90d2431778f9ee2b3936",+ "startTime": "2025-08-01T13:57:03.886Z",+ "endTime": "2025-08-01T13:57:11.335Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "39d661bf29b4dbbd",+ "type": "SPAN",+ "environment": "default",+ "name": "agent.react.start-6",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-08-01T13:57:14.163Z",+ "updatedAt": "2025-08-01T13:57:14.216Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 7.449,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ },+ {+ "id": "1d8ae8c504c576d2",+ "traceId": "096fc09a30ab90d2431778f9ee2b3936",+ "startTime": "2025-08-01T13:56:55.683Z",+ "endTime": "2025-08-01T13:57:11.334Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "ff8b04dfe1f3e047",+ "type": "SPAN",+ "environment": "default",+ "name": "tool.search.wikipedia.start-12",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-08-01T13:57:14.162Z",+ "updatedAt": "2025-08-01T13:57:14.246Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 15.651,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ },+ {+ "id": "2d1f33fc0925a297",+ "traceId": "096fc09a30ab90d2431778f9ee2b3936",+ "startTime": "2025-08-01T13:56:55.541Z",+ "endTime": "2025-08-01T13:57:11.333Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "c48e7d031a4cb886",+ "type": "SPAN",+ "environment": "default",+ "name": "agent.react.update-12",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-08-01T13:57:14.163Z",+ "updatedAt": "2025-08-01T13:57:14.244Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 15.792,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ },+ {+ "id": "322299e937be4455",+ "traceId": "096fc09a30ab90d2431778f9ee2b3936",+ "startTime": "2025-08-01T13:57:11.332Z",+ "endTime": "2025-08-01T13:57:11.336Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "39d661bf29b4dbbd",+ "type": "SPAN",+ "environment": "default",+ "name": "agent.react.success-2",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-08-01T13:57:14.169Z",+ "updatedAt": "2025-08-01T13:57:14.252Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 0.004,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ },+ {+ "id": "376ecc80b166b4a5",+ "traceId": "096fc09a30ab90d2431778f9ee2b3936",+ "startTime": "2025-08-01T13:56:57.468Z",+ "endTime": "2025-08-01T13:57:11.334Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "ff8b04dfe1f3e047",+ "type": "SPAN",+ "environment": "default",+ "name": "tool.search.wikipedia.finish-12",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-08-01T13:57:14.162Z",+ "updatedAt": "2025-08-01T13:57:14.242Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 13.866,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ },+ {+ "id": "39d661bf29b4dbbd",+ "traceId": "096fc09a30ab90d2431778f9ee2b3936",+ "startTime": "2025-08-01T13:57:03.886Z",+ "endTime": "2025-08-01T13:57:11.336Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "cb4886242bf214b8",+ "type": "SPAN",+ "environment": "default",+ "name": "iteration-3",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-08-01T13:57:14.164Z",+ "updatedAt": "2025-08-01T13:57:14.233Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 7.45,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ },+ {+ "id": "477d350ab1c6548d",+ "traceId": "096fc09a30ab90d2431778f9ee2b3936",+ "startTime": "2025-08-01T13:57:03.886Z",+ "endTime": "2025-08-01T13:57:11.334Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "0eb76c10a47e9086",+ "type": "SPAN",+ "environment": "default",+ "name": "agent.react.update-18",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-08-01T13:57:14.163Z",+ "updatedAt": "2025-08-01T13:57:14.211Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 7.448,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ },+ {+ "id": "49b16d9910843ef4",+ "traceId": "096fc09a30ab90d2431778f9ee2b3936",+ "startTime": "2025-08-01T13:56:57.468Z",+ "endTime": "2025-08-01T13:57:11.334Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "ff8b04dfe1f3e047",+ "type": "SPAN",+ "environment": "default",+ "name": "tool.search.wikipedia.success-12",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-08-01T13:57:14.161Z",+ "updatedAt": "2025-08-01T13:57:14.210Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 13.866,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ },+ {+ "id": "4ab39fcf35639b0c",+ "traceId": "096fc09a30ab90d2431778f9ee2b3936",+ "startTime": "2025-08-01T13:56:57.470Z",+ "endTime": "2025-08-01T13:57:11.334Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "c48e7d031a4cb886",+ "type": "SPAN",+ "environment": "default",+ "name": "agent.react.update-14",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-08-01T13:57:14.162Z",+ "updatedAt": "2025-08-01T13:57:14.242Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 13.864,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ },+ {+ "id": "4f7a25ab4555e106",+ "traceId": "096fc09a30ab90d2431778f9ee2b3936",+ "startTime": "2025-08-01T13:57:03.029Z",+ "endTime": "2025-08-01T13:57:11.334Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "0eb76c10a47e9086",+ "type": "SPAN",+ "environment": "default",+ "name": "agent.react.update-15",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-08-01T13:57:14.161Z",+ "updatedAt": "2025-08-01T13:57:14.230Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 8.305,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ },+ {+ "id": "638f1207eba5c924",+ "traceId": "096fc09a30ab90d2431778f9ee2b3936",+ "startTime": "2025-08-01T13:57:05.655Z",+ "endTime": "2025-08-01T13:57:11.335Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "39d661bf29b4dbbd",+ "type": "SPAN",+ "environment": "default",+ "name": "agent.react.update-19",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-08-01T13:57:14.163Z",+ "updatedAt": "2025-08-01T13:57:14.243Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 5.68,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ },+ {+ "id": "6c69cf2f9ea80007",+ "traceId": "096fc09a30ab90d2431778f9ee2b3936",+ "startTime": "2025-08-01T13:57:03.274Z",+ "endTime": "2025-08-01T13:57:11.334Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "0eb76c10a47e9086",+ "type": "SPAN",+ "environment": "default",+ "name": "agent.react.update-16",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-08-01T13:57:14.163Z",+ "updatedAt": "2025-08-01T13:57:14.240Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 8.06,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ },+ {+ "id": "6c9cab010e21d9ef",+ "traceId": "096fc09a30ab90d2431778f9ee2b3936",+ "startTime": "2025-08-01T13:57:03.579Z",+ "endTime": "2025-08-01T13:57:11.334Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "0eb76c10a47e9086",+ "type": "SPAN",+ "environment": "default",+ "name": "agent.react.update-17",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-08-01T13:57:14.162Z",+ "updatedAt": "2025-08-01T13:57:14.256Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 7.755,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ },+ {+ "id": "8b26b3ec668cf146",+ "traceId": "096fc09a30ab90d2431778f9ee2b3936",+ "startTime": "2025-08-01T13:57:11.315Z",+ "endTime": "2025-08-01T13:57:11.336Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "39d661bf29b4dbbd",+ "type": "SPAN",+ "environment": "default",+ "name": "agent.react.partial_update-610",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-08-01T13:57:14.163Z",+ "updatedAt": "2025-08-01T13:57:14.239Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 0.021,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ },+ {+ "id": "8d28081d2ea0b09a",+ "traceId": "096fc09a30ab90d2431778f9ee2b3936",+ "startTime": "2025-08-01T13:56:55.399Z",+ "endTime": "2025-08-01T13:57:11.333Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "c48e7d031a4cb886",+ "type": "SPAN",+ "environment": "default",+ "name": "agent.react.update-11",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-08-01T13:57:14.162Z",+ "updatedAt": "2025-08-01T13:57:14.256Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 15.934,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ },+ {+ "id": "9381f6df60cf8aa3",+ "traceId": "096fc09a30ab90d2431778f9ee2b3936",+ "startTime": "2025-08-01T13:56:57.470Z",+ "endTime": "2025-08-01T13:57:11.334Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "0eb76c10a47e9086",+ "type": "SPAN",+ "environment": "default",+ "name": "agent.react.start-5",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-08-01T13:57:14.161Z",+ "updatedAt": "2025-08-01T13:57:14.237Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 13.864,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ },+ {+ "id": "96cb191e191a9378",+ "traceId": "096fc09a30ab90d2431778f9ee2b3936",+ "startTime": "2025-08-01T13:57:03.885Z",+ "endTime": "2025-08-01T13:57:11.334Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "0eb76c10a47e9086",+ "type": "SPAN",+ "environment": "default",+ "name": "agent.react.partial_update-318",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-08-01T13:57:14.163Z",+ "updatedAt": "2025-08-01T13:57:14.234Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 7.449,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ },+ {+ "id": "bd2f100ab98514d4",+ "traceId": "096fc09a30ab90d2431778f9ee2b3936",+ "startTime": "2025-08-01T13:57:11.331Z",+ "endTime": "2025-08-01T13:57:11.336Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "39d661bf29b4dbbd",+ "type": "SPAN",+ "environment": "default",+ "name": "agent.react.update-20",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-08-01T13:57:14.164Z",+ "updatedAt": "2025-08-01T13:57:14.225Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 0.005,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ },+ {+ "id": "bf28223502262e87",+ "traceId": "096fc09a30ab90d2431778f9ee2b3936",+ "startTime": "2025-08-01T13:56:54.166Z",+ "endTime": "2025-08-01T13:57:11.333Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "c48e7d031a4cb886",+ "type": "SPAN",+ "environment": "default",+ "name": "agent.react.start-4",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-08-01T13:57:14.163Z",+ "updatedAt": "2025-08-01T13:57:14.249Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 17.167,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ },+ {+ "id": "c48e7d031a4cb886",+ "traceId": "096fc09a30ab90d2431778f9ee2b3936",+ "startTime": "2025-08-01T13:56:54.166Z",+ "endTime": "2025-08-01T13:57:11.334Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "cb4886242bf214b8",+ "type": "SPAN",+ "environment": "default",+ "name": "iteration-1",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-08-01T13:57:14.164Z",+ "updatedAt": "2025-08-01T13:57:14.240Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 17.168,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ },+ {+ "id": "cb4886242bf214b8",+ "traceId": "096fc09a30ab90d2431778f9ee2b3936",+ "startTime": "2025-08-01T13:56:54.163Z",+ "endTime": "2025-08-01T13:57:11.336Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": null,+ "type": "SPAN",+ "environment": "default",+ "name": "beeai-framework-main",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-08-01T13:57:14.163Z",+ "updatedAt": "2025-08-01T13:57:14.213Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 17.173,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ },+ {+ "id": "fce7074c89470876",+ "traceId": "096fc09a30ab90d2431778f9ee2b3936",+ "startTime": "2025-08-01T13:56:57.470Z",+ "endTime": "2025-08-01T13:57:11.334Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "c48e7d031a4cb886",+ "type": "SPAN",+ "environment": "default",+ "name": "agent.react.partial_update-263",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-08-01T13:57:14.161Z",+ "updatedAt": "2025-08-01T13:57:14.256Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 13.864,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ },+ {+ "id": "ff8b04dfe1f3e047",+ "traceId": "096fc09a30ab90d2431778f9ee2b3936",+ "startTime": "2025-08-01T13:56:55.682Z",+ "endTime": "2025-08-01T13:57:11.334Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "c48e7d031a4cb886",+ "type": "SPAN",+ "environment": "default",+ "name": "agent.react.update-13",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-08-01T13:57:14.161Z",+ "updatedAt": "2025-08-01T13:57:14.259Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 15.652,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ }+ ]+ },+ "observations": [+ {+ "id": "1f956cbea34725bd",+ "traceId": "096fc09a30ab90d2431778f9ee2b3936",+ "startTime": "2025-08-01T13:56:54.170Z",+ "endTime": "2025-08-01T13:57:11.333Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "bf28223502262e87",+ "type": "GENERATION",+ "environment": "default",+ "name": "backend.openai.chat.start-14",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-08-01T13:57:14.161Z",+ "updatedAt": "2025-08-01T13:57:14.214Z",+ "input": "[{\"role\": \"system\", \"content\": \"# Available functions\\nYou can only use the following functions. Always use all required parameters.\\n\\nFunction Name: Wikipedia\\nDescription: Search factual and historical information, including biography, history, politics, geography, society, culture, science, technology, people, animal species, mathematics, and other subjects.\\nInput Schema: {\\\"properties\\\": {\\\"full_text\\\": {\\\"default\\\": false, \\\"description\\\": \\\"If set to true, it will return the full text of the page instead of its short summary.\\\", \\\"title\\\": \\\"Full Text\\\", \\\"type\\\": \\\"boolean\\\"}, \\\"query\\\": {\\\"description\\\": \\\"Name of the Wikipedia page.\\\", \\\"title\\\": \\\"Query\\\", \\\"type\\\": \\\"string\\\"}}, \\\"required\\\": [\\\"query\\\"], \\\"title\\\": \\\"WikipediaToolInput\\\", \\\"type\\\": \\\"object\\\"}\\n\\nFunction Name: OpenMeteoTool\\nDescription: Retrieve current, past, or future weather forecasts for a location.\\nInput Schema: {\\\"properties\\\": {\\\"country\\\": {\\\"anyOf\\\": [{\\\"type\\\": \\\"string\\\"}, {\\\"type\\\": \\\"null\\\"}], \\\"default\\\": null, \\\"description\\\": \\\"Country name.\\\", \\\"title\\\": \\\"Country\\\"}, \\\"end_date\\\": {\\\"anyOf\\\": [{\\\"format\\\": \\\"date\\\", \\\"type\\\": \\\"string\\\"}, {\\\"type\\\": \\\"null\\\"}], \\\"default\\\": null, \\\"description\\\": \\\"End date for the weather forecast in the format YYYY-MM-DD (UTC)\\\", \\\"title\\\": \\\"End Date\\\"}, \\\"location_name\\\": {\\\"description\\\": \\\"The name of the location to retrieve weather information.\\\", \\\"title\\\": \\\"Location Name\\\", \\\"type\\\": \\\"string\\\"}, \\\"start_date\\\": {\\\"anyOf\\\": [{\\\"format\\\": \\\"date\\\", \\\"type\\\": \\\"string\\\"}, {\\\"type\\\": \\\"null\\\"}], \\\"default\\\": null, \\\"description\\\": \\\"Start date for the weather forecast in the format YYYY-MM-DD (UTC)\\\", \\\"title\\\": \\\"Start Date\\\"}, \\\"temperature_unit\\\": {\\\"default\\\": \\\"celsius\\\", \\\"description\\\": \\\"The unit to express temperature\\\", \\\"enum\\\": [\\\"celsius\\\", \\\"fahrenheit\\\"], \\\"title\\\": \\\"Temperature Unit\\\", \\\"type\\\": \\\"string\\\"}}, \\\"required\\\": [\\\"location_name\\\"], \\\"title\\\": \\\"OpenMeteoToolInput\\\", \\\"type\\\": \\\"object\\\"}\\n\\n# Communication structure\\nYou communicate only in instruction lines. The format is: \\\"Instruction: expected output\\\". You must only use these instruction lines and must not enter empty lines or anything else between instruction lines.\\nYou must skip the instruction lines Function Name, Function Input and Function Output if no function calling is required.\\n\\nMessage: User's message. You never use this instruction line.\\nThought: A single-line step-by-step plan of how to answer the user's message. You can use the available functions defined above. This instruction line must be immediately followed by Function Name if one of the available functions defined above needs to be called, or by Final Answer. Do not provide the answer here.\\nFunction Name: Name of the function. This instruction line must be immediately followed by Function Input.\\nFunction Input: Function parameters in JSON format adhering to the function's input specification ie. {\\\"arg1\\\":\\\"value1\\\", \\\"arg2\\\":\\\"value2\\\"}. Empty object is a valid parameter.\\nFunction Output: Output of the function in JSON format.\\nThought: Continue your thinking process.\\nFinal Answer: Answer the user or ask for more information or clarification. It must always be preceded by Thought.\\n\\n## Examples\\nMessage: Can you translate \\\"How are you\\\" into French?\\nThought: The user wants to translate a text into French. I can do that.\\nFinal Answer: Comment vas-tu?\\n\\n# Instructions\\nUser can only see the Final Answer, all answers must be provided there.\\nYou must always use the communication structure and instructions defined above. Do not forget that Thought must be a single-line immediately followed by either Function Name or Final Answer.\\nFunctions must be used to retrieve factual or historical information to answer the message.\\nIf the user suggests using a function that is not available, answer that the function is not available. You can suggest alternatives if appropriate.\\nWhen the message is unclear or you need more information from the user, ask in Final Answer.\\n\\n# Your capabilities\\nPrefer to use these capabilities over functions.\\n- You understand these languages: English, Spanish, French.\\n- You can translate and summarize, even long documents.\\n\\n# Notes\\n- If you don't know the answer, say that you don't know.\\n- The current time and date in ISO format might be found in the last message.\\n- When answering the user, use friendly formats for time and date.\\n- Use markdown syntax for formatting code snippets, links, JSON, tables, images, files.\\n- Sometimes, things don't go as planned. Functions may not provide useful information on the first few tries. You should always try a few different approaches before declaring the problem unsolvable.\\n- When the function doesn't give you what you were asking for, you must either use another function or a different function input.\\n - When using search engines, you try different formulations of the query, possibly even in a different language.\\n- You cannot do complex calculations, computations, or data manipulations without using functions.\\n\"}, {\"role\": \"user\", \"content\": [{\"type\": \"text\", \"text\": \"Message: I'm planning a trip to Barcelona, Spain. Can you research key attractions and landmarks I should visit, and also tell me what the current weather conditions are like there?\\n\\nThis message was created at 2025-08-01T13:56:54+00:00\"}]}]",+ "output": null,+ "model": "gpt-4o-mini",+ "internalModelId": "clyrjp56f0000t0mzapoocd7u",+ "modelParameters": {+ "max_tokens": "null",+ "top_p": "null",+ "frequency_penalty": "null",+ "temperature": 0.7,+ "top_k": "null",+ "n": "null",+ "presence_penalty": "null",+ "seed": "null",+ "stop_sequences": "null",+ "stream": "null"+ },+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 17.163,+ "timeToFirstToken": null,+ "usageDetails": {+ "input": 1195,+ "total": 1195+ },+ "costDetails": {+ "input": 0.00017925,+ "total": 0.00017925+ },+ "providedCostDetails": {},+ "inputCost": 0.00017925,+ "outputCost": null,+ "totalCost": 0.00017925,+ "inputUsage": 1195,+ "outputUsage": 0,+ "totalUsage": 1195,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"attributes\":{\"target\":\"backend.openai.chat.start\",\"name\":\"start\",\"traceId\":\"0cff2691-3a45-4988-a243-8cb8c508aa25\",\"input.mime_type\":\"application/json\",\"input.value\":\"[{\\\"role\\\": \\\"system\\\", \\\"content\\\": \\\"# Available functions\\\\nYou can only use the following functions. Always use all required parameters.\\\\n\\\\nFunction Name: Wikipedia\\\\nDescription: Search factual and historical information, including biography, history, politics, geography, society, culture, science, technology, people, animal species, mathematics, and other subjects.\\\\nInput Schema: {\\\\\\\"properties\\\\\\\": {\\\\\\\"full_text\\\\\\\": {\\\\\\\"default\\\\\\\": false, \\\\\\\"description\\\\\\\": \\\\\\\"If set to true, it will return the full text of the page instead of its short summary.\\\\\\\", \\\\\\\"title\\\\\\\": \\\\\\\"Full Text\\\\\\\", \\\\\\\"type\\\\\\\": \\\\\\\"boolean\\\\\\\"}, \\\\\\\"query\\\\\\\": {\\\\\\\"description\\\\\\\": \\\\\\\"Name of the Wikipedia page.\\\\\\\", \\\\\\\"title\\\\\\\": \\\\\\\"Query\\\\\\\", \\\\\\\"type\\\\\\\": \\\\\\\"string\\\\\\\"}}, \\\\\\\"required\\\\\\\": [\\\\\\\"query\\\\\\\"], \\\\\\\"title\\\\\\\": \\\\\\\"WikipediaToolInput\\\\\\\", \\\\\\\"type\\\\\\\": \\\\\\\"object\\\\\\\"}\\\\n\\\\nFunction Name: OpenMeteoTool\\\\nDescription: Retrieve current, past, or future weather forecasts for a location.\\\\nInput Schema: {\\\\\\\"properties\\\\\\\": {\\\\\\\"country\\\\\\\": {\\\\\\\"anyOf\\\\\\\": [{\\\\\\\"type\\\\\\\": \\\\\\\"string\\\\\\\"}, {\\\\\\\"type\\\\\\\": \\\\\\\"null\\\\\\\"}], \\\\\\\"default\\\\\\\": null, \\\\\\\"description\\\\\\\": \\\\\\\"Country name.\\\\\\\", \\\\\\\"title\\\\\\\": \\\\\\\"Country\\\\\\\"}, \\\\\\\"end_date\\\\\\\": {\\\\\\\"anyOf\\\\\\\": [{\\\\\\\"format\\\\\\\": \\\\\\\"date\\\\\\\", \\\\\\\"type\\\\\\\": \\\\\\\"string\\\\\\\"}, {\\\\\\\"type\\\\\\\": \\\\\\\"null\\\\\\\"}], \\\\\\\"default\\\\\\\": null, \\\\\\\"description\\\\\\\": \\\\\\\"End date for the weather forecast in the format YYYY-MM-DD (UTC)\\\\\\\", \\\\\\\"title\\\\\\\": \\\\\\\"End Date\\\\\\\"}, \\\\\\\"location_name\\\\\\\": {\\\\\\\"description\\\\\\\": \\\\\\\"The name of the location to retrieve weather information.\\\\\\\", \\\\\\\"title\\\\\\\": \\\\\\\"Location Name\\\\\\\", \\\\\\\"type\\\\\\\": \\\\\\\"string\\\\\\\"}, \\\\\\\"start_date\\\\\\\": {\\\\\\\"anyOf\\\\\\\": [{\\\\\\\"format\\\\\\\": \\\\\\\"date\\\\\\\", \\\\\\\"type\\\\\\\": \\\\\\\"string\\\\\\\"}, {\\\\\\\"type\\\\\\\": \\\\\\\"null\\\\\\\"}], \\\\\\\"default\\\\\\\": null, \\\\\\\"description\\\\\\\": \\\\\\\"Start date for the weather forecast in the format YYYY-MM-DD (UTC)\\\\\\\", \\\\\\\"title\\\\\\\": \\\\\\\"Start Date\\\\\\\"}, \\\\\\\"temperature_unit\\\\\\\": {\\\\\\\"default\\\\\\\": \\\\\\\"celsius\\\\\\\", \\\\\\\"description\\\\\\\": \\\\\\\"The unit to express temperature\\\\\\\", \\\\\\\"enum\\\\\\\": [\\\\\\\"celsius\\\\\\\", \\\\\\\"fahrenheit\\\\\\\"], \\\\\\\"title\\\\\\\": \\\\\\\"Temperature Unit\\\\\\\", \\\\\\\"type\\\\\\\": \\\\\\\"string\\\\\\\"}}, \\\\\\\"required\\\\\\\": [\\\\\\\"location_name\\\\\\\"], \\\\\\\"title\\\\\\\": \\\\\\\"OpenMeteoToolInput\\\\\\\", \\\\\\\"type\\\\\\\": \\\\\\\"object\\\\\\\"}\\\\n\\\\n# Communication structure\\\\nYou communicate only in instruction lines. The format is: \\\\\\\"Instruction: expected output\\\\\\\". You must only use these instruction lines and must not enter empty lines or anything else between instruction lines.\\\\nYou must skip the instruction lines Function Name, Function Input and Function Output if no function calling is required.\\\\n\\\\nMessage: User's message. You never use this instruction line.\\\\nThought: A single-line step-by-step plan of how to answer the user's message. You can use the available functions defined above. This instruction line must be immediately followed by Function Name if one of the available functions defined above needs to be called, or by Final Answer. Do not provide the answer here.\\\\nFunction Name: Name of the function. This instruction line must be immediately followed by Function Input.\\\\nFunction Input: Function parameters in JSON format adhering to the function's input specification ie. {\\\\\\\"arg1\\\\\\\":\\\\\\\"value1\\\\\\\", \\\\\\\"arg2\\\\\\\":\\\\\\\"value2\\\\\\\"}. Empty object is a valid parameter.\\\\nFunction Output: Output of the function in JSON format.\\\\nThought: Continue your thinking process.\\\\nFinal Answer: Answer the user or ask for more information or clarification. It must always be preceded by Thought.\\\\n\\\\n## Examples\\\\nMessage: Can you translate \\\\\\\"How are you\\\\\\\" into French?\\\\nThought: The user wants to translate a text into French. I can do that.\\\\nFinal Answer: Comment vas-tu?\\\\n\\\\n# Instructions\\\\nUser can only see the Final Answer, all answers must be provided there.\\\\nYou must always use the communication structure and instructions defined above. Do not forget that Thought must be a single-line immediately followed by either Function Name or Final Answer.\\\\nFunctions must be used to retrieve factual or historical information to answer the message.\\\\nIf the user suggests using a function that is not available, answer that the function is not available. You can suggest alternatives if appropriate.\\\\nWhen the message is unclear or you need more information from the user, ask in Final Answer.\\\\n\\\\n# Your capabilities\\\\nPrefer to use these capabilities over functions.\\\\n- You understand these languages: English, Spanish, French.\\\\n- You can translate and summarize, even long documents.\\\\n\\\\n# Notes\\\\n- If you don't know the answer, say that you don't know.\\\\n- The current time and date in ISO format might be found in the last message.\\\\n- When answering the user, use friendly formats for time and date.\\\\n- Use markdown syntax for formatting code snippets, links, JSON, tables, images, files.\\\\n- Sometimes, things don't go as planned. Functions may not provide useful information on the first few tries. You should always try a few different approaches before declaring the problem unsolvable.\\\\n- When the function doesn't give you what you were asking for, you must either use another function or a different function input.\\\\n - When using search engines, you try different formulations of the query, possibly even in a different language.\\\\n- You cannot do complex calculations, computations, or data manipulations without using functions.\\\\n\\\"}, {\\\"role\\\": \\\"user\\\", \\\"content\\\": [{\\\"type\\\": \\\"text\\\", \\\"text\\\": \\\"Message: I'm planning a trip to Barcelona, Spain. Can you research key attractions and landmarks I should visit, and also tell me what the current weather conditions are like there?\\\\n\\\\nThis message was created at 2025-08-01T13:56:54+00:00\\\"}]}]\",\"llm.input_messages.0.message.role\":\"system\",\"llm.input_messages.0.message.content\":\"# Available functions\\nYou can only use the following functions. Always use all required parameters.\\n\\nFunction Name: Wikipedia\\nDescription: Search factual and historical information, including biography, history, politics, geography, society, culture, science, technology, people, animal species, mathematics, and other subjects.\\nInput Schema: {\\\"properties\\\": {\\\"full_text\\\": {\\\"default\\\": false, \\\"description\\\": \\\"If set to true, it will return the full text of the page instead of its short summary.\\\", \\\"title\\\": \\\"Full Text\\\", \\\"type\\\": \\\"boolean\\\"}, \\\"query\\\": {\\\"description\\\": \\\"Name of the Wikipedia page.\\\", \\\"title\\\": \\\"Query\\\", \\\"type\\\": \\\"string\\\"}}, \\\"required\\\": [\\\"query\\\"], \\\"title\\\": \\\"WikipediaToolInput\\\", \\\"type\\\": \\\"object\\\"}\\n\\nFunction Name: OpenMeteoTool\\nDescription: Retrieve current, past, or future weather forecasts for a location.\\nInput Schema: {\\\"properties\\\": {\\\"country\\\": {\\\"anyOf\\\": [{\\\"type\\\": \\\"string\\\"}, {\\\"type\\\": \\\"null\\\"}], \\\"default\\\": null, \\\"description\\\": \\\"Country name.\\\", \\\"title\\\": \\\"Country\\\"}, \\\"end_date\\\": {\\\"anyOf\\\": [{\\\"format\\\": \\\"date\\\", \\\"type\\\": \\\"string\\\"}, {\\\"type\\\": \\\"null\\\"}], \\\"default\\\": null, \\\"description\\\": \\\"End date for the weather forecast in the format YYYY-MM-DD (UTC)\\\", \\\"title\\\": \\\"End Date\\\"}, \\\"location_name\\\": {\\\"description\\\": \\\"The name of the location to retrieve weather information.\\\", \\\"title\\\": \\\"Location Name\\\", \\\"type\\\": \\\"string\\\"}, \\\"start_date\\\": {\\\"anyOf\\\": [{\\\"format\\\": \\\"date\\\", \\\"type\\\": \\\"string\\\"}, {\\\"type\\\": \\\"null\\\"}], \\\"default\\\": null, \\\"description\\\": \\\"Start date for the weather forecast in the format YYYY-MM-DD (UTC)\\\", \\\"title\\\": \\\"Start Date\\\"}, \\\"temperature_unit\\\": {\\\"default\\\": \\\"celsius\\\", \\\"description\\\": \\\"The unit to express temperature\\\", \\\"enum\\\": [\\\"celsius\\\", \\\"fahrenheit\\\"], \\\"title\\\": \\\"Temperature Unit\\\", \\\"type\\\": \\\"string\\\"}}, \\\"required\\\": [\\\"location_name\\\"], \\\"title\\\": \\\"OpenMeteoToolInput\\\", \\\"type\\\": \\\"object\\\"}\\n\\n# Communication structure\\nYou communicate only in instruction lines. The format is: \\\"Instruction: expected output\\\". You must only use these instruction lines and must not enter empty lines or anything else between instruction lines.\\nYou must skip the instruction lines Function Name, Function Input and Function Output if no function calling is required.\\n\\nMessage: User's message. You never use this instruction line.\\nThought: A single-line step-by-step plan of how to answer the user's message. You can use the available functions defined above. This instruction line must be immediately followed by Function Name if one of the available functions defined above needs to be called, or by Final Answer. Do not provide the answer here.\\nFunction Name: Name of the function. This instruction line must be immediately followed by Function Input.\\nFunction Input: Function parameters in JSON format adhering to the function's input specification ie. {\\\"arg1\\\":\\\"value1\\\", \\\"arg2\\\":\\\"value2\\\"}. Empty object is a valid parameter.\\nFunction Output: Output of the function in JSON format.\\nThought: Continue your thinking process.\\nFinal Answer: Answer the user or ask for more information or clarification. It must always be preceded by Thought.\\n\\n## Examples\\nMessage: Can you translate \\\"How are you\\\" into French?\\nThought: The user wants to translate a text into French. I can do that.\\nFinal Answer: Comment vas-tu?\\n\\n# Instructions\\nUser can only see the Final Answer, all answers must be provided there.\\nYou must always use the communication structure and instructions defined above. Do not forget that Thought must be a single-line immediately followed by either Function Name or Final Answer.\\nFunctions must be used to retrieve factual or historical information to answer the message.\\nIf the user suggests using a function that is not available, answer that the function is not available. You can suggest alternatives if appropriate.\\nWhen the message is unclear or you need more information from the user, ask in Final Answer.\\n\\n# Your capabilities\\nPrefer to use these capabilities over functions.\\n- You understand these languages: English, Spanish, French.\\n- You can translate and summarize, even long documents.\\n\\n# Notes\\n- If you don't know the answer, say that you don't know.\\n- The current time and date in ISO format might be found in the last message.\\n- When answering the user, use friendly formats for time and date.\\n- Use markdown syntax for formatting code snippets, links, JSON, tables, images, files.\\n- Sometimes, things don't go as planned. Functions may not provide useful information on the first few tries. You should always try a few different approaches before declaring the problem unsolvable.\\n- When the function doesn't give you what you were asking for, you must either use another function or a different function input.\\n - When using search engines, you try different formulations of the query, possibly even in a different language.\\n- You cannot do complex calculations, computations, or data manipulations without using functions.\\n\",\"llm.input_messages.1.message.role\":\"user\",\"llm.input_messages.1.message.content\":\"Message: I'm planning a trip to Barcelona, Spain. Can you research key attractions and landmarks I should visit, and also tell me what the current weather conditions are like there?\\n\\nThis message was created at 2025-08-01T13:56:54+00:00\",\"llm.provider\":\"openai\",\"llm.model_name\":\"gpt-4o-mini\",\"llm.invocation_parameters\":\"{\\\"max_tokens\\\":null,\\\"top_p\\\":null,\\\"frequency_penalty\\\":null,\\\"temperature\\\":0.7,\\\"top_k\\\":null,\\\"n\\\":null,\\\"presence_penalty\\\":null,\\\"seed\\\":null,\\\"stop_sequences\\\":null,\\\"stream\\\":null}\",\"openinference.span.kind\":\"LLM\"},\"resourceAttributes\":{\"telemetry.sdk.language\":\"python\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"1.34.1\",\"service.name\":\"unknown_service\"},\"scope\":{\"name\":\"openinference.instrumentation.beeai\",\"version\":\"0.1.33\",\"attributes\":{}}}",+ "internalModel": "clyrjp56f0000t0mzapoocd7u"+ },+ {+ "id": "4c5c5a7936ca24bc",+ "traceId": "096fc09a30ab90d2431778f9ee2b3936",+ "startTime": "2025-08-01T13:57:03.889Z",+ "endTime": "2025-08-01T13:57:11.334Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "10b12fd4cca3ef99",+ "type": "GENERATION",+ "environment": "default",+ "name": "backend.openai.chat.start-16",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-08-01T13:57:14.162Z",+ "updatedAt": "2025-08-01T13:57:14.239Z",+ "input": "[{\"role\": \"system\", \"content\": \"# Available functions\\nYou can only use the following functions. Always use all required parameters.\\n\\nFunction Name: Wikipedia\\nDescription: Search factual and historical information, including biography, history, politics, geography, society, culture, science, technology, people, animal species, mathematics, and other subjects.\\nInput Schema: {\\\"properties\\\": {\\\"full_text\\\": {\\\"default\\\": false, \\\"description\\\": \\\"If set to true, it will return the full text of the page instead of its short summary.\\\", \\\"title\\\": \\\"Full Text\\\", \\\"type\\\": \\\"boolean\\\"}, \\\"query\\\": {\\\"description\\\": \\\"Name of the Wikipedia page.\\\", \\\"title\\\": \\\"Query\\\", \\\"type\\\": \\\"string\\\"}}, \\\"required\\\": [\\\"query\\\"], \\\"title\\\": \\\"WikipediaToolInput\\\", \\\"type\\\": \\\"object\\\"}\\n\\nFunction Name: OpenMeteoTool\\nDescription: Retrieve current, past, or future weather forecasts for a location.\\nInput Schema: {\\\"properties\\\": {\\\"country\\\": {\\\"anyOf\\\": [{\\\"type\\\": \\\"string\\\"}, {\\\"type\\\": \\\"null\\\"}], \\\"default\\\": null, \\\"description\\\": \\\"Country name.\\\", \\\"title\\\": \\\"Country\\\"}, \\\"end_date\\\": {\\\"anyOf\\\": [{\\\"format\\\": \\\"date\\\", \\\"type\\\": \\\"string\\\"}, {\\\"type\\\": \\\"null\\\"}], \\\"default\\\": null, \\\"description\\\": \\\"End date for the weather forecast in the format YYYY-MM-DD (UTC)\\\", \\\"title\\\": \\\"End Date\\\"}, \\\"location_name\\\": {\\\"description\\\": \\\"The name of the location to retrieve weather information.\\\", \\\"title\\\": \\\"Location Name\\\", \\\"type\\\": \\\"string\\\"}, \\\"start_date\\\": {\\\"anyOf\\\": [{\\\"format\\\": \\\"date\\\", \\\"type\\\": \\\"string\\\"}, {\\\"type\\\": \\\"null\\\"}], \\\"default\\\": null, \\\"description\\\": \\\"Start date for the weather forecast in the format YYYY-MM-DD (UTC)\\\", \\\"title\\\": \\\"Start Date\\\"}, \\\"temperature_unit\\\": {\\\"default\\\": \\\"celsius\\\", \\\"description\\\": \\\"The unit to express temperature\\\", \\\"enum\\\": [\\\"celsius\\\", \\\"fahrenheit\\\"], \\\"title\\\": \\\"Temperature Unit\\\", \\\"type\\\": \\\"string\\\"}}, \\\"required\\\": [\\\"location_name\\\"], \\\"title\\\": \\\"OpenMeteoToolInput\\\", \\\"type\\\": \\\"object\\\"}\\n\\n# Communication structure\\nYou communicate only in instruction lines. The format is: \\\"Instruction: expected output\\\". You must only use these instruction lines and must not enter empty lines or anything else between instruction lines.\\nYou must skip the instruction lines Function Name, Function Input and Function Output if no function calling is required.\\n\\nMessage: User's message. You never use this instruction line.\\nThought: A single-line step-by-step plan of how to answer the user's message. You can use the available functions defined above. This instruction line must be immediately followed by Function Name if one of the available functions defined above needs to be called, or by Final Answer. Do not provide the answer here.\\nFunction Name: Name of the function. This instruction line must be immediately followed by Function Input.\\nFunction Input: Function parameters in JSON format adhering to the function's input specification ie. {\\\"arg1\\\":\\\"value1\\\", \\\"arg2\\\":\\\"value2\\\"}. Empty object is a valid parameter.\\nFunction Output: Output of the function in JSON format.\\nThought: Continue your thinking process.\\nFinal Answer: Answer the user or ask for more information or clarification. It must always be preceded by Thought.\\n\\n## Examples\\nMessage: Can you translate \\\"How are you\\\" into French?\\nThought: The user wants to translate a text into French. I can do that.\\nFinal Answer: Comment vas-tu?\\n\\n# Instructions\\nUser can only see the Final Answer, all answers must be provided there.\\nYou must always use the communication structure and instructions defined above. Do not forget that Thought must be a single-line immediately followed by either Function Name or Final Answer.\\nFunctions must be used to retrieve factual or historical information to answer the message.\\nIf the user suggests using a function that is not available, answer that the function is not available. You can suggest alternatives if appropriate.\\nWhen the message is unclear or you need more information from the user, ask in Final Answer.\\n\\n# Your capabilities\\nPrefer to use these capabilities over functions.\\n- You understand these languages: English, Spanish, French.\\n- You can translate and summarize, even long documents.\\n\\n# Notes\\n- If you don't know the answer, say that you don't know.\\n- The current time and date in ISO format might be found in the last message.\\n- When answering the user, use friendly formats for time and date.\\n- Use markdown syntax for formatting code snippets, links, JSON, tables, images, files.\\n- Sometimes, things don't go as planned. Functions may not provide useful information on the first few tries. You should always try a few different approaches before declaring the problem unsolvable.\\n- When the function doesn't give you what you were asking for, you must either use another function or a different function input.\\n - When using search engines, you try different formulations of the query, possibly even in a different language.\\n- You cannot do complex calculations, computations, or data manipulations without using functions.\\n\"}, {\"role\": \"user\", \"content\": [{\"type\": \"text\", \"text\": \"Message: I'm planning a trip to Barcelona, Spain. Can you research key attractions and landmarks I should visit, and also tell me what the current weather conditions are like there?\\n\\nThis message was created at 2025-08-01T13:56:54+00:00\"}]}, {\"role\": \"assistant\", \"content\": [{\"type\": \"text\", \"text\": \"Thought: I will first research key attractions and landmarks in Barcelona and then check the current weather conditions there. \\nFunction Name: Wikipedia\\nFunction Input: {\\\"query\\\": \\\"Tourism in Barcelona\\\"}\\nFunction Output: [{\\\"description\\\": \\\"Barcelona ( BAR-s\\u0259-LOH-n\\u0259; Catalan: [b\\u0259\\u027es\\u0259\\u02c8lon\\u0259] ; Spanish: [ba\\u027e\\u03b8e\\u02c8lona] ) is a city on the northeastern coast of Spain. It is the capital and largest city of the autonomous community of Catalonia, as well as the second-most populous municipality of Spain. With a population of 1.6 million within city limits, its urban area extends to numerous neighbouring municipalities within the province of Barcelona and is home to around 5.3 million people, making it the fifth most populous urban area of the European Union after Paris, the Ruhr area, Madrid and Milan. It is one of the largest metropolises on the Mediterranean Sea, located on the coast between the mouths of the rivers Llobregat and Bes\\u00f2s, bounded to the west by the Serra de Collserola mountain range.\\\\nAccording to tradition, Barcelona was founded by either the Phoenicians or the Carthaginians, who had trading posts along the Catalonian coast. In the Middle Ages, Barcelona became the capital of the County of Barcelona. After joining with the Kingdom of Aragon to form the composite monarchy of the Crown of Aragon, Barcelona, which continued to be the capital of the Principality of Catalonia, became the most important city in the Crown of Aragon and its main economic and administrative centre, only to be overtaken by Valencia, wrested from Moorish control by the Catalans, shortly before the dynastic union between the Crown of Castile and the Crown of Aragon in 1516. Barcelona became the centre of Catalan separatism, briefly becoming part of France during the 17th century Reapers' War and again in 1812 until 1814 under Napoleon. Experiencing industrialization and several workers movements during the 19th and early 20th century, it became the capital of autonomous Catalonia in 1931 and it was the epicenter of the revolution experienced by Catalonia during the Spanish Revolution of 1936, until its capture by the fascists in 1939. After the Spanish transition to democracy in the 1970s, Barcelona once again became the capital of an autonomous Catalonia.\\\\nBarcelona has a rich cultural heritage and is today an important cultural centre and a major tourist destination. Particularly renowned are the architectural works of Antoni Gaud\\u00ed and Llu\\u00eds Dom\\u00e8nech i Montaner, which have been designated UNESCO World Heritage Sites. The city is home to two of the most prestigious universities in Spain: the University of Barcelona and Pompeu Fabra University. The headquarters of the Union for the Mediterranean are located in Barcelona. The city is known for hosting the 1992 Summer Olympics as well as world-class conferences and expositions. In addition, many international sport tournaments have been played here.\\\\nBarcelona is a major cultural, economic, and financial centre in southwestern Europe, as well as the main biotech hub in Spain. As a leading world city, Barcelona's influence in global socio-economic affairs qualifies it for global city status (Beta +).\\\\nBarcelona is a transport hub, with the Port of Barcelona being one of Europe's principal seaports and busiest European passenger port, an international airport, Barcelona\\u2013El Prat Airport, which handles over 50-million passengers per year, an extensive motorway network, and a high-speed rail line with a link to France and the rest of Europe.\\\", \\\"title\\\": \\\"Barcelona\\\", \\\"url\\\": \\\"https://en.wikipedia.org/wiki/Barcelona\\\"}]\\n\"}]}, {\"role\": \"assistant\", \"content\": [{\"type\": \"text\", \"text\": \"Thought: I found information about Barcelona, including its rich cultural heritage and key attractions like the architectural works of Antoni Gaud\\u00ed. Now, I will check the current weather conditions in Barcelona. \\nFunction Name: OpenMeteoTool\\nFunction Input: {\\\"country\\\": \\\"Spain\\\", \\\"location_name\\\": \\\"Barcelona\\\"}\\nFunction Output: {\\\"latitude\\\": 41.4375, \\\"longitude\\\": 2.1875, \\\"generationtime_ms\\\": 0.0553131103515625, \\\"utc_offset_seconds\\\": 0, \\\"timezone\\\": \\\"GMT\\\", \\\"timezone_abbreviation\\\": \\\"GMT\\\", \\\"elevation\\\": 44.0, \\\"current_units\\\": {\\\"time\\\": \\\"iso8601\\\", \\\"interval\\\": \\\"seconds\\\", \\\"temperature_2m\\\": \\\"\\u00b0C\\\", \\\"rain\\\": \\\"mm\\\", \\\"relative_humidity_2m\\\": \\\"%\\\", \\\"wind_speed_10m\\\": \\\"km/h\\\"}, \\\"current\\\": {\\\"time\\\": \\\"2025-08-01T13:45\\\", \\\"interval\\\": 900, \\\"temperature_2m\\\": 29.0, \\\"rain\\\": 0.0, \\\"relative_humidity_2m\\\": 48, \\\"wind_speed_10m\\\": 18.8}, \\\"daily_units\\\": {\\\"time\\\": \\\"iso8601\\\", \\\"temperature_2m_max\\\": \\\"\\u00b0C\\\", \\\"temperature_2m_min\\\": \\\"\\u00b0C\\\", \\\"rain_sum\\\": \\\"mm\\\"}, \\\"daily\\\": {\\\"time\\\": [\\\"2025-08-01\\\"], \\\"temperature_2m_max\\\": [29.0], \\\"temperature_2m_min\\\": [20.6], \\\"rain_sum\\\": [0.0]}}\\n\"}]}]",+ "output": null,+ "model": "gpt-4o-mini",+ "internalModelId": "clyrjp56f0000t0mzapoocd7u",+ "modelParameters": {+ "max_tokens": "null",+ "top_p": "null",+ "frequency_penalty": "null",+ "temperature": 0.7,+ "top_k": "null",+ "n": "null",+ "presence_penalty": "null",+ "seed": "null",+ "stop_sequences": "null",+ "stream": "null"+ },+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 7.445,+ "timeToFirstToken": null,+ "usageDetails": {+ "input": 2359,+ "total": 2359+ },+ "costDetails": {+ "input": 0.00035385,+ "total": 0.00035385+ },+ "providedCostDetails": {},+ "inputCost": 0.00035385,+ "outputCost": null,+ "totalCost": 0.00035385,+ "inputUsage": 2359,+ "outputUsage": 0,+ "totalUsage": 2359,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"attributes\":{\"target\":\"backend.openai.chat.start\",\"name\":\"start\",\"traceId\":\"0cff2691-3a45-4988-a243-8cb8c508aa25\",\"input.mime_type\":\"application/json\",\"input.value\":\"[{\\\"role\\\": \\\"system\\\", \\\"content\\\": \\\"# Available functions\\\\nYou can only use the following functions. Always use all required parameters.\\\\n\\\\nFunction Name: Wikipedia\\\\nDescription: Search factual and historical information, including biography, history, politics, geography, society, culture, science, technology, people, animal species, mathematics, and other subjects.\\\\nInput Schema: {\\\\\\\"properties\\\\\\\": {\\\\\\\"full_text\\\\\\\": {\\\\\\\"default\\\\\\\": false, \\\\\\\"description\\\\\\\": \\\\\\\"If set to true, it will return the full text of the page instead of its short summary.\\\\\\\", \\\\\\\"title\\\\\\\": \\\\\\\"Full Text\\\\\\\", \\\\\\\"type\\\\\\\": \\\\\\\"boolean\\\\\\\"}, \\\\\\\"query\\\\\\\": {\\\\\\\"description\\\\\\\": \\\\\\\"Name of the Wikipedia page.\\\\\\\", \\\\\\\"title\\\\\\\": \\\\\\\"Query\\\\\\\", \\\\\\\"type\\\\\\\": \\\\\\\"string\\\\\\\"}}, \\\\\\\"required\\\\\\\": [\\\\\\\"query\\\\\\\"], \\\\\\\"title\\\\\\\": \\\\\\\"WikipediaToolInput\\\\\\\", \\\\\\\"type\\\\\\\": \\\\\\\"object\\\\\\\"}\\\\n\\\\nFunction Name: OpenMeteoTool\\\\nDescription: Retrieve current, past, or future weather forecasts for a location.\\\\nInput Schema: {\\\\\\\"properties\\\\\\\": {\\\\\\\"country\\\\\\\": {\\\\\\\"anyOf\\\\\\\": [{\\\\\\\"type\\\\\\\": \\\\\\\"string\\\\\\\"}, {\\\\\\\"type\\\\\\\": \\\\\\\"null\\\\\\\"}], \\\\\\\"default\\\\\\\": null, \\\\\\\"description\\\\\\\": \\\\\\\"Country name.\\\\\\\", \\\\\\\"title\\\\\\\": \\\\\\\"Country\\\\\\\"}, \\\\\\\"end_date\\\\\\\": {\\\\\\\"anyOf\\\\\\\": [{\\\\\\\"format\\\\\\\": \\\\\\\"date\\\\\\\", \\\\\\\"type\\\\\\\": \\\\\\\"string\\\\\\\"}, {\\\\\\\"type\\\\\\\": \\\\\\\"null\\\\\\\"}], \\\\\\\"default\\\\\\\": null, \\\\\\\"description\\\\\\\": \\\\\\\"End date for the weather forecast in the format YYYY-MM-DD (UTC)\\\\\\\", \\\\\\\"title\\\\\\\": \\\\\\\"End Date\\\\\\\"}, \\\\\\\"location_name\\\\\\\": {\\\\\\\"description\\\\\\\": \\\\\\\"The name of the location to retrieve weather information.\\\\\\\", \\\\\\\"title\\\\\\\": \\\\\\\"Location Name\\\\\\\", \\\\\\\"type\\\\\\\": \\\\\\\"string\\\\\\\"}, \\\\\\\"start_date\\\\\\\": {\\\\\\\"anyOf\\\\\\\": [{\\\\\\\"format\\\\\\\": \\\\\\\"date\\\\\\\", \\\\\\\"type\\\\\\\": \\\\\\\"string\\\\\\\"}, {\\\\\\\"type\\\\\\\": \\\\\\\"null\\\\\\\"}], \\\\\\\"default\\\\\\\": null, \\\\\\\"description\\\\\\\": \\\\\\\"Start date for the weather forecast in the format YYYY-MM-DD (UTC)\\\\\\\", \\\\\\\"title\\\\\\\": \\\\\\\"Start Date\\\\\\\"}, \\\\\\\"temperature_unit\\\\\\\": {\\\\\\\"default\\\\\\\": \\\\\\\"celsius\\\\\\\", \\\\\\\"description\\\\\\\": \\\\\\\"The unit to express temperature\\\\\\\", \\\\\\\"enum\\\\\\\": [\\\\\\\"celsius\\\\\\\", \\\\\\\"fahrenheit\\\\\\\"], \\\\\\\"title\\\\\\\": \\\\\\\"Temperature Unit\\\\\\\", \\\\\\\"type\\\\\\\": \\\\\\\"string\\\\\\\"}}, \\\\\\\"required\\\\\\\": [\\\\\\\"location_name\\\\\\\"], \\\\\\\"title\\\\\\\": \\\\\\\"OpenMeteoToolInput\\\\\\\", \\\\\\\"type\\\\\\\": \\\\\\\"object\\\\\\\"}\\\\n\\\\n# Communication structure\\\\nYou communicate only in instruction lines. The format is: \\\\\\\"Instruction: expected output\\\\\\\". You must only use these instruction lines and must not enter empty lines or anything else between instruction lines.\\\\nYou must skip the instruction lines Function Name, Function Input and Function Output if no function calling is required.\\\\n\\\\nMessage: User's message. You never use this instruction line.\\\\nThought: A single-line step-by-step plan of how to answer the user's message. You can use the available functions defined above. This instruction line must be immediately followed by Function Name if one of the available functions defined above needs to be called, or by Final Answer. Do not provide the answer here.\\\\nFunction Name: Name of the function. This instruction line must be immediately followed by Function Input.\\\\nFunction Input: Function parameters in JSON format adhering to the function's input specification ie. {\\\\\\\"arg1\\\\\\\":\\\\\\\"value1\\\\\\\", \\\\\\\"arg2\\\\\\\":\\\\\\\"value2\\\\\\\"}. Empty object is a valid parameter.\\\\nFunction Output: Output of the function in JSON format.\\\\nThought: Continue your thinking process.\\\\nFinal Answer: Answer the user or ask for more information or clarification. It must always be preceded by Thought.\\\\n\\\\n## Examples\\\\nMessage: Can you translate \\\\\\\"How are you\\\\\\\" into French?\\\\nThought: The user wants to translate a text into French. I can do that.\\\\nFinal Answer: Comment vas-tu?\\\\n\\\\n# Instructions\\\\nUser can only see the Final Answer, all answers must be provided there.\\\\nYou must always use the communication structure and instructions defined above. Do not forget that Thought must be a single-line immediately followed by either Function Name or Final Answer.\\\\nFunctions must be used to retrieve factual or historical information to answer the message.\\\\nIf the user suggests using a function that is not available, answer that the function is not available. You can suggest alternatives if appropriate.\\\\nWhen the message is unclear or you need more information from the user, ask in Final Answer.\\\\n\\\\n# Your capabilities\\\\nPrefer to use these capabilities over functions.\\\\n- You understand these languages: English, Spanish, French.\\\\n- You can translate and summarize, even long documents.\\\\n\\\\n# Notes\\\\n- If you don't know the answer, say that you don't know.\\\\n- The current time and date in ISO format might be found in the last message.\\\\n- When answering the user, use friendly formats for time and date.\\\\n- Use markdown syntax for formatting code snippets, links, JSON, tables, images, files.\\\\n- Sometimes, things don't go as planned. Functions may not provide useful information on the first few tries. You should always try a few different approaches before declaring the problem unsolvable.\\\\n- When the function doesn't give you what you were asking for, you must either use another function or a different function input.\\\\n - When using search engines, you try different formulations of the query, possibly even in a different language.\\\\n- You cannot do complex calculations, computations, or data manipulations without using functions.\\\\n\\\"}, {\\\"role\\\": \\\"user\\\", \\\"content\\\": [{\\\"type\\\": \\\"text\\\", \\\"text\\\": \\\"Message: I'm planning a trip to Barcelona, Spain. Can you research key attractions and landmarks I should visit, and also tell me what the current weather conditions are like there?\\\\n\\\\nThis message was created at 2025-08-01T13:56:54+00:00\\\"}]}, {\\\"role\\\": \\\"assistant\\\", \\\"content\\\": [{\\\"type\\\": \\\"text\\\", \\\"text\\\": \\\"Thought: I will first research key attractions and landmarks in Barcelona and then check the current weather conditions there. \\\\nFunction Name: Wikipedia\\\\nFunction Input: {\\\\\\\"query\\\\\\\": \\\\\\\"Tourism in Barcelona\\\\\\\"}\\\\nFunction Output: [{\\\\\\\"description\\\\\\\": \\\\\\\"Barcelona ( BAR-s\\\\u0259-LOH-n\\\\u0259; Catalan: [b\\\\u0259\\\\u027es\\\\u0259\\\\u02c8lon\\\\u0259] ; Spanish: [ba\\\\u027e\\\\u03b8e\\\\u02c8lona] ) is a city on the northeastern coast of Spain. It is the capital and largest city of the autonomous community of Catalonia, as well as the second-most populous municipality of Spain. With a population of 1.6 million within city limits, its urban area extends to numerous neighbouring municipalities within the province of Barcelona and is home to around 5.3 million people, making it the fifth most populous urban area of the European Union after Paris, the Ruhr area, Madrid and Milan. It is one of the largest metropolises on the Mediterranean Sea, located on the coast between the mouths of the rivers Llobregat and Bes\\\\u00f2s, bounded to the west by the Serra de Collserola mountain range.\\\\\\\\nAccording to tradition, Barcelona was founded by either the Phoenicians or the Carthaginians, who had trading posts along the Catalonian coast. In the Middle Ages, Barcelona became the capital of the County of Barcelona. After joining with the Kingdom of Aragon to form the composite monarchy of the Crown of Aragon, Barcelona, which continued to be the capital of the Principality of Catalonia, became the most important city in the Crown of Aragon and its main economic and administrative centre, only to be overtaken by Valencia, wrested from Moorish control by the Catalans, shortly before the dynastic union between the Crown of Castile and the Crown of Aragon in 1516. Barcelona became the centre of Catalan separatism, briefly becoming part of France during the 17th century Reapers' War and again in 1812 until 1814 under Napoleon. Experiencing industrialization and several workers movements during the 19th and early 20th century, it became the capital of autonomous Catalonia in 1931 and it was the epicenter of the revolution experienced by Catalonia during the Spanish Revolution of 1936, until its capture by the fascists in 1939. After the Spanish transition to democracy in the 1970s, Barcelona once again became the capital of an autonomous Catalonia.\\\\\\\\nBarcelona has a rich cultural heritage and is today an important cultural centre and a major tourist destination. Particularly renowned are the architectural works of Antoni Gaud\\\\u00ed and Llu\\\\u00eds Dom\\\\u00e8nech i Montaner, which have been designated UNESCO World Heritage Sites. The city is home to two of the most prestigious universities in Spain: the University of Barcelona and Pompeu Fabra University. The headquarters of the Union for the Mediterranean are located in Barcelona. The city is known for hosting the 1992 Summer Olympics as well as world-class conferences and expositions. In addition, many international sport tournaments have been played here.\\\\\\\\nBarcelona is a major cultural, economic, and financial centre in southwestern Europe, as well as the main biotech hub in Spain. As a leading world city, Barcelona's influence in global socio-economic affairs qualifies it for global city status (Beta +).\\\\\\\\nBarcelona is a transport hub, with the Port of Barcelona being one of Europe's principal seaports and busiest European passenger port, an international airport, Barcelona\\\\u2013El Prat Airport, which handles over 50-million passengers per year, an extensive motorway network, and a high-speed rail line with a link to France and the rest of Europe.\\\\\\\", \\\\\\\"title\\\\\\\": \\\\\\\"Barcelona\\\\\\\", \\\\\\\"url\\\\\\\": \\\\\\\"https://en.wikipedia.org/wiki/Barcelona\\\\\\\"}]\\\\n\\\"}]}, {\\\"role\\\": \\\"assistant\\\", \\\"content\\\": [{\\\"type\\\": \\\"text\\\", \\\"text\\\": \\\"Thought: I found information about Barcelona, including its rich cultural heritage and key attractions like the architectural works of Antoni Gaud\\\\u00ed. Now, I will check the current weather conditions in Barcelona. \\\\nFunction Name: OpenMeteoTool\\\\nFunction Input: {\\\\\\\"country\\\\\\\": \\\\\\\"Spain\\\\\\\", \\\\\\\"location_name\\\\\\\": \\\\\\\"Barcelona\\\\\\\"}\\\\nFunction Output: {\\\\\\\"latitude\\\\\\\": 41.4375, \\\\\\\"longitude\\\\\\\": 2.1875, \\\\\\\"generationtime_ms\\\\\\\": 0.0553131103515625, \\\\\\\"utc_offset_seconds\\\\\\\": 0, \\\\\\\"timezone\\\\\\\": \\\\\\\"GMT\\\\\\\", \\\\\\\"timezone_abbreviation\\\\\\\": \\\\\\\"GMT\\\\\\\", \\\\\\\"elevation\\\\\\\": 44.0, \\\\\\\"current_units\\\\\\\": {\\\\\\\"time\\\\\\\": \\\\\\\"iso8601\\\\\\\", \\\\\\\"interval\\\\\\\": \\\\\\\"seconds\\\\\\\", \\\\\\\"temperature_2m\\\\\\\": \\\\\\\"\\\\u00b0C\\\\\\\", \\\\\\\"rain\\\\\\\": \\\\\\\"mm\\\\\\\", \\\\\\\"relative_humidity_2m\\\\\\\": \\\\\\\"%\\\\\\\", \\\\\\\"wind_speed_10m\\\\\\\": \\\\\\\"km/h\\\\\\\"}, \\\\\\\"current\\\\\\\": {\\\\\\\"time\\\\\\\": \\\\\\\"2025-08-01T13:45\\\\\\\", \\\\\\\"interval\\\\\\\": 900, \\\\\\\"temperature_2m\\\\\\\": 29.0, \\\\\\\"rain\\\\\\\": 0.0, \\\\\\\"relative_humidity_2m\\\\\\\": 48, \\\\\\\"wind_speed_10m\\\\\\\": 18.8}, \\\\\\\"daily_units\\\\\\\": {\\\\\\\"time\\\\\\\": \\\\\\\"iso8601\\\\\\\", \\\\\\\"temperature_2m_max\\\\\\\": \\\\\\\"\\\\u00b0C\\\\\\\", \\\\\\\"temperature_2m_min\\\\\\\": \\\\\\\"\\\\u00b0C\\\\\\\", \\\\\\\"rain_sum\\\\\\\": \\\\\\\"mm\\\\\\\"}, \\\\\\\"daily\\\\\\\": {\\\\\\\"time\\\\\\\": [\\\\\\\"2025-08-01\\\\\\\"], \\\\\\\"temperature_2m_max\\\\\\\": [29.0], \\\\\\\"temperature_2m_min\\\\\\\": [20.6], \\\\\\\"rain_sum\\\\\\\": [0.0]}}\\\\n\\\"}]}]\",\"llm.input_messages.0.message.role\":\"system\",\"llm.input_messages.0.message.content\":\"# Available functions\\nYou can only use the following functions. Always use all required parameters.\\n\\nFunction Name: Wikipedia\\nDescription: Search factual and historical information, including biography, history, politics, geography, society, culture, science, technology, people, animal species, mathematics, and other subjects.\\nInput Schema: {\\\"properties\\\": {\\\"full_text\\\": {\\\"default\\\": false, \\\"description\\\": \\\"If set to true, it will return the full text of the page instead of its short summary.\\\", \\\"title\\\": \\\"Full Text\\\", \\\"type\\\": \\\"boolean\\\"}, \\\"query\\\": {\\\"description\\\": \\\"Name of the Wikipedia page.\\\", \\\"title\\\": \\\"Query\\\", \\\"type\\\": \\\"string\\\"}}, \\\"required\\\": [\\\"query\\\"], \\\"title\\\": \\\"WikipediaToolInput\\\", \\\"type\\\": \\\"object\\\"}\\n\\nFunction Name: OpenMeteoTool\\nDescription: Retrieve current, past, or future weather forecasts for a location.\\nInput Schema: {\\\"properties\\\": {\\\"country\\\": {\\\"anyOf\\\": [{\\\"type\\\": \\\"string\\\"}, {\\\"type\\\": \\\"null\\\"}], \\\"default\\\": null, \\\"description\\\": \\\"Country name.\\\", \\\"title\\\": \\\"Country\\\"}, \\\"end_date\\\": {\\\"anyOf\\\": [{\\\"format\\\": \\\"date\\\", \\\"type\\\": \\\"string\\\"}, {\\\"type\\\": \\\"null\\\"}], \\\"default\\\": null, \\\"description\\\": \\\"End date for the weather forecast in the format YYYY-MM-DD (UTC)\\\", \\\"title\\\": \\\"End Date\\\"}, \\\"location_name\\\": {\\\"description\\\": \\\"The name of the location to retrieve weather information.\\\", \\\"title\\\": \\\"Location Name\\\", \\\"type\\\": \\\"string\\\"}, \\\"start_date\\\": {\\\"anyOf\\\": [{\\\"format\\\": \\\"date\\\", \\\"type\\\": \\\"string\\\"}, {\\\"type\\\": \\\"null\\\"}], \\\"default\\\": null, \\\"description\\\": \\\"Start date for the weather forecast in the format YYYY-MM-DD (UTC)\\\", \\\"title\\\": \\\"Start Date\\\"}, \\\"temperature_unit\\\": {\\\"default\\\": \\\"celsius\\\", \\\"description\\\": \\\"The unit to express temperature\\\", \\\"enum\\\": [\\\"celsius\\\", \\\"fahrenheit\\\"], \\\"title\\\": \\\"Temperature Unit\\\", \\\"type\\\": \\\"string\\\"}}, \\\"required\\\": [\\\"location_name\\\"], \\\"title\\\": \\\"OpenMeteoToolInput\\\", \\\"type\\\": \\\"object\\\"}\\n\\n# Communication structure\\nYou communicate only in instruction lines. The format is: \\\"Instruction: expected output\\\". You must only use these instruction lines and must not enter empty lines or anything else between instruction lines.\\nYou must skip the instruction lines Function Name, Function Input and Function Output if no function calling is required.\\n\\nMessage: User's message. You never use this instruction line.\\nThought: A single-line step-by-step plan of how to answer the user's message. You can use the available functions defined above. This instruction line must be immediately followed by Function Name if one of the available functions defined above needs to be called, or by Final Answer. Do not provide the answer here.\\nFunction Name: Name of the function. This instruction line must be immediately followed by Function Input.\\nFunction Input: Function parameters in JSON format adhering to the function's input specification ie. {\\\"arg1\\\":\\\"value1\\\", \\\"arg2\\\":\\\"value2\\\"}. Empty object is a valid parameter.\\nFunction Output: Output of the function in JSON format.\\nThought: Continue your thinking process.\\nFinal Answer: Answer the user or ask for more information or clarification. It must always be preceded by Thought.\\n\\n## Examples\\nMessage: Can you translate \\\"How are you\\\" into French?\\nThought: The user wants to translate a text into French. I can do that.\\nFinal Answer: Comment vas-tu?\\n\\n# Instructions\\nUser can only see the Final Answer, all answers must be provided there.\\nYou must always use the communication structure and instructions defined above. Do not forget that Thought must be a single-line immediately followed by either Function Name or Final Answer.\\nFunctions must be used to retrieve factual or historical information to answer the message.\\nIf the user suggests using a function that is not available, answer that the function is not available. You can suggest alternatives if appropriate.\\nWhen the message is unclear or you need more information from the user, ask in Final Answer.\\n\\n# Your capabilities\\nPrefer to use these capabilities over functions.\\n- You understand these languages: English, Spanish, French.\\n- You can translate and summarize, even long documents.\\n\\n# Notes\\n- If you don't know the answer, say that you don't know.\\n- The current time and date in ISO format might be found in the last message.\\n- When answering the user, use friendly formats for time and date.\\n- Use markdown syntax for formatting code snippets, links, JSON, tables, images, files.\\n- Sometimes, things don't go as planned. Functions may not provide useful information on the first few tries. You should always try a few different approaches before declaring the problem unsolvable.\\n- When the function doesn't give you what you were asking for, you must either use another function or a different function input.\\n - When using search engines, you try different formulations of the query, possibly even in a different language.\\n- You cannot do complex calculations, computations, or data manipulations without using functions.\\n\",\"llm.input_messages.1.message.role\":\"user\",\"llm.input_messages.1.message.content\":\"Message: I'm planning a trip to Barcelona, Spain. Can you research key attractions and landmarks I should visit, and also tell me what the current weather conditions are like there?\\n\\nThis message was created at 2025-08-01T13:56:54+00:00\",\"llm.input_messages.2.message.role\":\"assistant\",\"llm.input_messages.2.message.content\":\"Thought: I will first research key attractions and landmarks in Barcelona and then check the current weather conditions there. \\nFunction Name: Wikipedia\\nFunction Input: {\\\"query\\\": \\\"Tourism in Barcelona\\\"}\\nFunction Output: [{\\\"description\\\": \\\"Barcelona ( BAR-sÉ™-LOH-nÉ™; Catalan: [bəɾsəˈlonÉ™] ; Spanish: [baɾθeˈlona] ) is a city on the northeastern coast of Spain. It is the capital and largest city of the autonomous community of Catalonia, as well as the second-most populous municipality of Spain. With a population of 1.6 million within city limits, its urban area extends to numerous neighbouring municipalities within the province of Barcelona and is home to around 5.3 million people, making it the fifth most populous urban area of the European Union after Paris, the Ruhr area, Madrid and Milan. It is one of the largest metropolises on the Mediterranean Sea, located on the coast between the mouths of the rivers Llobregat and Besòs, bounded to the west by the Serra de Collserola mountain range.\\\\nAccording to tradition, Barcelona was founded by either the Phoenicians or the Carthaginians, who had trading posts along the Catalonian coast. In the Middle Ages, Barcelona became the capital of the County of Barcelona. After joining with the Kingdom of Aragon to form the composite monarchy of the Crown of Aragon, Barcelona, which continued to be the capital of the Principality of Catalonia, became the most important city in the Crown of Aragon and its main economic and administrative centre, only to be overtaken by Valencia, wrested from Moorish control by the Catalans, shortly before the dynastic union between the Crown of Castile and the Crown of Aragon in 1516. Barcelona became the centre of Catalan separatism, briefly becoming part of France during the 17th century Reapers' War and again in 1812 until 1814 under Napoleon. Experiencing industrialization and several workers movements during the 19th and early 20th century, it became the capital of autonomous Catalonia in 1931 and it was the epicenter of the revolution experienced by Catalonia during the Spanish Revolution of 1936, until its capture by the fascists in 1939. After the Spanish transition to democracy in the 1970s, Barcelona once again became the capital of an autonomous Catalonia.\\\\nBarcelona has a rich cultural heritage and is today an important cultural centre and a major tourist destination. Particularly renowned are the architectural works of Antoni Gaudà and LluÃs Domènech i Montaner, which have been designated UNESCO World Heritage Sites. The city is home to two of the most prestigious universities in Spain: the University of Barcelona and Pompeu Fabra University. The headquarters of the Union for the Mediterranean are located in Barcelona. The city is known for hosting the 1992 Summer Olympics as well as world-class conferences and expositions. In addition, many international sport tournaments have been played here.\\\\nBarcelona is a major cultural, economic, and financial centre in southwestern Europe, as well as the main biotech hub in Spain. As a leading world city, Barcelona's influence in global socio-economic affairs qualifies it for global city status (Beta +).\\\\nBarcelona is a transport hub, with the Port of Barcelona being one of Europe's principal seaports and busiest European passenger port, an international airport, Barcelona–El Prat Airport, which handles over 50-million passengers per year, an extensive motorway network, and a high-speed rail line with a link to France and the rest of Europe.\\\", \\\"title\\\": \\\"Barcelona\\\", \\\"url\\\": \\\"https://en.wikipedia.org/wiki/Barcelona\\\"}]\\n\",\"llm.input_messages.3.message.role\":\"assistant\",\"llm.input_messages.3.message.content\":\"Thought: I found information about Barcelona, including its rich cultural heritage and key attractions like the architectural works of Antoni GaudÃ. Now, I will check the current weather conditions in Barcelona. \\nFunction Name: OpenMeteoTool\\nFunction Input: {\\\"country\\\": \\\"Spain\\\", \\\"location_name\\\": \\\"Barcelona\\\"}\\nFunction Output: {\\\"latitude\\\": 41.4375, \\\"longitude\\\": 2.1875, \\\"generationtime_ms\\\": 0.0553131103515625, \\\"utc_offset_seconds\\\": 0, \\\"timezone\\\": \\\"GMT\\\", \\\"timezone_abbreviation\\\": \\\"GMT\\\", \\\"elevation\\\": 44.0, \\\"current_units\\\": {\\\"time\\\": \\\"iso8601\\\", \\\"interval\\\": \\\"seconds\\\", \\\"temperature_2m\\\": \\\"°C\\\", \\\"rain\\\": \\\"mm\\\", \\\"relative_humidity_2m\\\": \\\"%\\\", \\\"wind_speed_10m\\\": \\\"km/h\\\"}, \\\"current\\\": {\\\"time\\\": \\\"2025-08-01T13:45\\\", \\\"interval\\\": 900, \\\"temperature_2m\\\": 29.0, \\\"rain\\\": 0.0, \\\"relative_humidity_2m\\\": 48, \\\"wind_speed_10m\\\": 18.8}, \\\"daily_units\\\": {\\\"time\\\": \\\"iso8601\\\", \\\"temperature_2m_max\\\": \\\"°C\\\", \\\"temperature_2m_min\\\": \\\"°C\\\", \\\"rain_sum\\\": \\\"mm\\\"}, \\\"daily\\\": {\\\"time\\\": [\\\"2025-08-01\\\"], \\\"temperature_2m_max\\\": [29.0], \\\"temperature_2m_min\\\": [20.6], \\\"rain_sum\\\": [0.0]}}\\n\",\"llm.provider\":\"openai\",\"llm.model_name\":\"gpt-4o-mini\",\"llm.invocation_parameters\":\"{\\\"max_tokens\\\":null,\\\"top_p\\\":null,\\\"frequency_penalty\\\":null,\\\"temperature\\\":0.7,\\\"top_k\\\":null,\\\"n\\\":null,\\\"presence_penalty\\\":null,\\\"seed\\\":null,\\\"stop_sequences\\\":null,\\\"stream\\\":null}\",\"openinference.span.kind\":\"LLM\"},\"resourceAttributes\":{\"telemetry.sdk.language\":\"python\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"1.34.1\",\"service.name\":\"unknown_service\"},\"scope\":{\"name\":\"openinference.instrumentation.beeai\",\"version\":\"0.1.33\",\"attributes\":{}}}",+ "internalModel": "clyrjp56f0000t0mzapoocd7u"+ },+ {+ "id": "52df0f7f9dad6b23",+ "traceId": "096fc09a30ab90d2431778f9ee2b3936",+ "startTime": "2025-08-01T13:56:57.475Z",+ "endTime": "2025-08-01T13:57:11.334Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "9381f6df60cf8aa3",+ "type": "GENERATION",+ "environment": "default",+ "name": "backend.openai.chat.start-15",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-08-01T13:57:14.169Z",+ "updatedAt": "2025-08-01T13:57:14.245Z",+ "input": "[{\"role\": \"system\", \"content\": \"# Available functions\\nYou can only use the following functions. Always use all required parameters.\\n\\nFunction Name: Wikipedia\\nDescription: Search factual and historical information, including biography, history, politics, geography, society, culture, science, technology, people, animal species, mathematics, and other subjects.\\nInput Schema: {\\\"properties\\\": {\\\"full_text\\\": {\\\"default\\\": false, \\\"description\\\": \\\"If set to true, it will return the full text of the page instead of its short summary.\\\", \\\"title\\\": \\\"Full Text\\\", \\\"type\\\": \\\"boolean\\\"}, \\\"query\\\": {\\\"description\\\": \\\"Name of the Wikipedia page.\\\", \\\"title\\\": \\\"Query\\\", \\\"type\\\": \\\"string\\\"}}, \\\"required\\\": [\\\"query\\\"], \\\"title\\\": \\\"WikipediaToolInput\\\", \\\"type\\\": \\\"object\\\"}\\n\\nFunction Name: OpenMeteoTool\\nDescription: Retrieve current, past, or future weather forecasts for a location.\\nInput Schema: {\\\"properties\\\": {\\\"country\\\": {\\\"anyOf\\\": [{\\\"type\\\": \\\"string\\\"}, {\\\"type\\\": \\\"null\\\"}], \\\"default\\\": null, \\\"description\\\": \\\"Country name.\\\", \\\"title\\\": \\\"Country\\\"}, \\\"end_date\\\": {\\\"anyOf\\\": [{\\\"format\\\": \\\"date\\\", \\\"type\\\": \\\"string\\\"}, {\\\"type\\\": \\\"null\\\"}], \\\"default\\\": null, \\\"description\\\": \\\"End date for the weather forecast in the format YYYY-MM-DD (UTC)\\\", \\\"title\\\": \\\"End Date\\\"}, \\\"location_name\\\": {\\\"description\\\": \\\"The name of the location to retrieve weather information.\\\", \\\"title\\\": \\\"Location Name\\\", \\\"type\\\": \\\"string\\\"}, \\\"start_date\\\": {\\\"anyOf\\\": [{\\\"format\\\": \\\"date\\\", \\\"type\\\": \\\"string\\\"}, {\\\"type\\\": \\\"null\\\"}], \\\"default\\\": null, \\\"description\\\": \\\"Start date for the weather forecast in the format YYYY-MM-DD (UTC)\\\", \\\"title\\\": \\\"Start Date\\\"}, \\\"temperature_unit\\\": {\\\"default\\\": \\\"celsius\\\", \\\"description\\\": \\\"The unit to express temperature\\\", \\\"enum\\\": [\\\"celsius\\\", \\\"fahrenheit\\\"], \\\"title\\\": \\\"Temperature Unit\\\", \\\"type\\\": \\\"string\\\"}}, \\\"required\\\": [\\\"location_name\\\"], \\\"title\\\": \\\"OpenMeteoToolInput\\\", \\\"type\\\": \\\"object\\\"}\\n\\n# Communication structure\\nYou communicate only in instruction lines. The format is: \\\"Instruction: expected output\\\". You must only use these instruction lines and must not enter empty lines or anything else between instruction lines.\\nYou must skip the instruction lines Function Name, Function Input and Function Output if no function calling is required.\\n\\nMessage: User's message. You never use this instruction line.\\nThought: A single-line step-by-step plan of how to answer the user's message. You can use the available functions defined above. This instruction line must be immediately followed by Function Name if one of the available functions defined above needs to be called, or by Final Answer. Do not provide the answer here.\\nFunction Name: Name of the function. This instruction line must be immediately followed by Function Input.\\nFunction Input: Function parameters in JSON format adhering to the function's input specification ie. {\\\"arg1\\\":\\\"value1\\\", \\\"arg2\\\":\\\"value2\\\"}. Empty object is a valid parameter.\\nFunction Output: Output of the function in JSON format.\\nThought: Continue your thinking process.\\nFinal Answer: Answer the user or ask for more information or clarification. It must always be preceded by Thought.\\n\\n## Examples\\nMessage: Can you translate \\\"How are you\\\" into French?\\nThought: The user wants to translate a text into French. I can do that.\\nFinal Answer: Comment vas-tu?\\n\\n# Instructions\\nUser can only see the Final Answer, all answers must be provided there.\\nYou must always use the communication structure and instructions defined above. Do not forget that Thought must be a single-line immediately followed by either Function Name or Final Answer.\\nFunctions must be used to retrieve factual or historical information to answer the message.\\nIf the user suggests using a function that is not available, answer that the function is not available. You can suggest alternatives if appropriate.\\nWhen the message is unclear or you need more information from the user, ask in Final Answer.\\n\\n# Your capabilities\\nPrefer to use these capabilities over functions.\\n- You understand these languages: English, Spanish, French.\\n- You can translate and summarize, even long documents.\\n\\n# Notes\\n- If you don't know the answer, say that you don't know.\\n- The current time and date in ISO format might be found in the last message.\\n- When answering the user, use friendly formats for time and date.\\n- Use markdown syntax for formatting code snippets, links, JSON, tables, images, files.\\n- Sometimes, things don't go as planned. Functions may not provide useful information on the first few tries. You should always try a few different approaches before declaring the problem unsolvable.\\n- When the function doesn't give you what you were asking for, you must either use another function or a different function input.\\n - When using search engines, you try different formulations of the query, possibly even in a different language.\\n- You cannot do complex calculations, computations, or data manipulations without using functions.\\n\"}, {\"role\": \"user\", \"content\": [{\"type\": \"text\", \"text\": \"Message: I'm planning a trip to Barcelona, Spain. Can you research key attractions and landmarks I should visit, and also tell me what the current weather conditions are like there?\\n\\nThis message was created at 2025-08-01T13:56:54+00:00\"}]}, {\"role\": \"assistant\", \"content\": [{\"type\": \"text\", \"text\": \"Thought: I will first research key attractions and landmarks in Barcelona and then check the current weather conditions there. \\nFunction Name: Wikipedia\\nFunction Input: {\\\"query\\\": \\\"Tourism in Barcelona\\\"}\\nFunction Output: [{\\\"description\\\": \\\"Barcelona ( BAR-s\\u0259-LOH-n\\u0259; Catalan: [b\\u0259\\u027es\\u0259\\u02c8lon\\u0259] ; Spanish: [ba\\u027e\\u03b8e\\u02c8lona] ) is a city on the northeastern coast of Spain. It is the capital and largest city of the autonomous community of Catalonia, as well as the second-most populous municipality of Spain. With a population of 1.6 million within city limits, its urban area extends to numerous neighbouring municipalities within the province of Barcelona and is home to around 5.3 million people, making it the fifth most populous urban area of the European Union after Paris, the Ruhr area, Madrid and Milan. It is one of the largest metropolises on the Mediterranean Sea, located on the coast between the mouths of the rivers Llobregat and Bes\\u00f2s, bounded to the west by the Serra de Collserola mountain range.\\\\nAccording to tradition, Barcelona was founded by either the Phoenicians or the Carthaginians, who had trading posts along the Catalonian coast. In the Middle Ages, Barcelona became the capital of the County of Barcelona. After joining with the Kingdom of Aragon to form the composite monarchy of the Crown of Aragon, Barcelona, which continued to be the capital of the Principality of Catalonia, became the most important city in the Crown of Aragon and its main economic and administrative centre, only to be overtaken by Valencia, wrested from Moorish control by the Catalans, shortly before the dynastic union between the Crown of Castile and the Crown of Aragon in 1516. Barcelona became the centre of Catalan separatism, briefly becoming part of France during the 17th century Reapers' War and again in 1812 until 1814 under Napoleon. Experiencing industrialization and several workers movements during the 19th and early 20th century, it became the capital of autonomous Catalonia in 1931 and it was the epicenter of the revolution experienced by Catalonia during the Spanish Revolution of 1936, until its capture by the fascists in 1939. After the Spanish transition to democracy in the 1970s, Barcelona once again became the capital of an autonomous Catalonia.\\\\nBarcelona has a rich cultural heritage and is today an important cultural centre and a major tourist destination. Particularly renowned are the architectural works of Antoni Gaud\\u00ed and Llu\\u00eds Dom\\u00e8nech i Montaner, which have been designated UNESCO World Heritage Sites. The city is home to two of the most prestigious universities in Spain: the University of Barcelona and Pompeu Fabra University. The headquarters of the Union for the Mediterranean are located in Barcelona. The city is known for hosting the 1992 Summer Olympics as well as world-class conferences and expositions. In addition, many international sport tournaments have been played here.\\\\nBarcelona is a major cultural, economic, and financial centre in southwestern Europe, as well as the main biotech hub in Spain. As a leading world city, Barcelona's influence in global socio-economic affairs qualifies it for global city status (Beta +).\\\\nBarcelona is a transport hub, with the Port of Barcelona being one of Europe's principal seaports and busiest European passenger port, an international airport, Barcelona\\u2013El Prat Airport, which handles over 50-million passengers per year, an extensive motorway network, and a high-speed rail line with a link to France and the rest of Europe.\\\", \\\"title\\\": \\\"Barcelona\\\", \\\"url\\\": \\\"https://en.wikipedia.org/wiki/Barcelona\\\"}]\\n\"}]}]",+ "output": null,+ "model": "gpt-4o-mini",+ "internalModelId": "clyrjp56f0000t0mzapoocd7u",+ "modelParameters": {+ "max_tokens": "null",+ "top_p": "null",+ "frequency_penalty": "null",+ "temperature": 0.7,+ "top_k": "null",+ "n": "null",+ "presence_penalty": "null",+ "seed": "null",+ "stop_sequences": "null",+ "stream": "null"+ },+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 13.859,+ "timeToFirstToken": null,+ "usageDetails": {+ "input": 1988,+ "total": 1988+ },+ "costDetails": {+ "input": 0.0002982,+ "total": 0.0002982+ },+ "providedCostDetails": {},+ "inputCost": 0.0002982,+ "outputCost": null,+ "totalCost": 0.0002982,+ "inputUsage": 1988,+ "outputUsage": 0,+ "totalUsage": 1988,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"attributes\":{\"target\":\"backend.openai.chat.start\",\"name\":\"start\",\"traceId\":\"0cff2691-3a45-4988-a243-8cb8c508aa25\",\"input.mime_type\":\"application/json\",\"input.value\":\"[{\\\"role\\\": \\\"system\\\", \\\"content\\\": \\\"# Available functions\\\\nYou can only use the following functions. Always use all required parameters.\\\\n\\\\nFunction Name: Wikipedia\\\\nDescription: Search factual and historical information, including biography, history, politics, geography, society, culture, science, technology, people, animal species, mathematics, and other subjects.\\\\nInput Schema: {\\\\\\\"properties\\\\\\\": {\\\\\\\"full_text\\\\\\\": {\\\\\\\"default\\\\\\\": false, \\\\\\\"description\\\\\\\": \\\\\\\"If set to true, it will return the full text of the page instead of its short summary.\\\\\\\", \\\\\\\"title\\\\\\\": \\\\\\\"Full Text\\\\\\\", \\\\\\\"type\\\\\\\": \\\\\\\"boolean\\\\\\\"}, \\\\\\\"query\\\\\\\": {\\\\\\\"description\\\\\\\": \\\\\\\"Name of the Wikipedia page.\\\\\\\", \\\\\\\"title\\\\\\\": \\\\\\\"Query\\\\\\\", \\\\\\\"type\\\\\\\": \\\\\\\"string\\\\\\\"}}, \\\\\\\"required\\\\\\\": [\\\\\\\"query\\\\\\\"], \\\\\\\"title\\\\\\\": \\\\\\\"WikipediaToolInput\\\\\\\", \\\\\\\"type\\\\\\\": \\\\\\\"object\\\\\\\"}\\\\n\\\\nFunction Name: OpenMeteoTool\\\\nDescription: Retrieve current, past, or future weather forecasts for a location.\\\\nInput Schema: {\\\\\\\"properties\\\\\\\": {\\\\\\\"country\\\\\\\": {\\\\\\\"anyOf\\\\\\\": [{\\\\\\\"type\\\\\\\": \\\\\\\"string\\\\\\\"}, {\\\\\\\"type\\\\\\\": \\\\\\\"null\\\\\\\"}], \\\\\\\"default\\\\\\\": null, \\\\\\\"description\\\\\\\": \\\\\\\"Country name.\\\\\\\", \\\\\\\"title\\\\\\\": \\\\\\\"Country\\\\\\\"}, \\\\\\\"end_date\\\\\\\": {\\\\\\\"anyOf\\\\\\\": [{\\\\\\\"format\\\\\\\": \\\\\\\"date\\\\\\\", \\\\\\\"type\\\\\\\": \\\\\\\"string\\\\\\\"}, {\\\\\\\"type\\\\\\\": \\\\\\\"null\\\\\\\"}], \\\\\\\"default\\\\\\\": null, \\\\\\\"description\\\\\\\": \\\\\\\"End date for the weather forecast in the format YYYY-MM-DD (UTC)\\\\\\\", \\\\\\\"title\\\\\\\": \\\\\\\"End Date\\\\\\\"}, \\\\\\\"location_name\\\\\\\": {\\\\\\\"description\\\\\\\": \\\\\\\"The name of the location to retrieve weather information.\\\\\\\", \\\\\\\"title\\\\\\\": \\\\\\\"Location Name\\\\\\\", \\\\\\\"type\\\\\\\": \\\\\\\"string\\\\\\\"}, \\\\\\\"start_date\\\\\\\": {\\\\\\\"anyOf\\\\\\\": [{\\\\\\\"format\\\\\\\": \\\\\\\"date\\\\\\\", \\\\\\\"type\\\\\\\": \\\\\\\"string\\\\\\\"}, {\\\\\\\"type\\\\\\\": \\\\\\\"null\\\\\\\"}], \\\\\\\"default\\\\\\\": null, \\\\\\\"description\\\\\\\": \\\\\\\"Start date for the weather forecast in the format YYYY-MM-DD (UTC)\\\\\\\", \\\\\\\"title\\\\\\\": \\\\\\\"Start Date\\\\\\\"}, \\\\\\\"temperature_unit\\\\\\\": {\\\\\\\"default\\\\\\\": \\\\\\\"celsius\\\\\\\", \\\\\\\"description\\\\\\\": \\\\\\\"The unit to express temperature\\\\\\\", \\\\\\\"enum\\\\\\\": [\\\\\\\"celsius\\\\\\\", \\\\\\\"fahrenheit\\\\\\\"], \\\\\\\"title\\\\\\\": \\\\\\\"Temperature Unit\\\\\\\", \\\\\\\"type\\\\\\\": \\\\\\\"string\\\\\\\"}}, \\\\\\\"required\\\\\\\": [\\\\\\\"location_name\\\\\\\"], \\\\\\\"title\\\\\\\": \\\\\\\"OpenMeteoToolInput\\\\\\\", \\\\\\\"type\\\\\\\": \\\\\\\"object\\\\\\\"}\\\\n\\\\n# Communication structure\\\\nYou communicate only in instruction lines. The format is: \\\\\\\"Instruction: expected output\\\\\\\". You must only use these instruction lines and must not enter empty lines or anything else between instruction lines.\\\\nYou must skip the instruction lines Function Name, Function Input and Function Output if no function calling is required.\\\\n\\\\nMessage: User's message. You never use this instruction line.\\\\nThought: A single-line step-by-step plan of how to answer the user's message. You can use the available functions defined above. This instruction line must be immediately followed by Function Name if one of the available functions defined above needs to be called, or by Final Answer. Do not provide the answer here.\\\\nFunction Name: Name of the function. This instruction line must be immediately followed by Function Input.\\\\nFunction Input: Function parameters in JSON format adhering to the function's input specification ie. {\\\\\\\"arg1\\\\\\\":\\\\\\\"value1\\\\\\\", \\\\\\\"arg2\\\\\\\":\\\\\\\"value2\\\\\\\"}. Empty object is a valid parameter.\\\\nFunction Output: Output of the function in JSON format.\\\\nThought: Continue your thinking process.\\\\nFinal Answer: Answer the user or ask for more information or clarification. It must always be preceded by Thought.\\\\n\\\\n## Examples\\\\nMessage: Can you translate \\\\\\\"How are you\\\\\\\" into French?\\\\nThought: The user wants to translate a text into French. I can do that.\\\\nFinal Answer: Comment vas-tu?\\\\n\\\\n# Instructions\\\\nUser can only see the Final Answer, all answers must be provided there.\\\\nYou must always use the communication structure and instructions defined above. Do not forget that Thought must be a single-line immediately followed by either Function Name or Final Answer.\\\\nFunctions must be used to retrieve factual or historical information to answer the message.\\\\nIf the user suggests using a function that is not available, answer that the function is not available. You can suggest alternatives if appropriate.\\\\nWhen the message is unclear or you need more information from the user, ask in Final Answer.\\\\n\\\\n# Your capabilities\\\\nPrefer to use these capabilities over functions.\\\\n- You understand these languages: English, Spanish, French.\\\\n- You can translate and summarize, even long documents.\\\\n\\\\n# Notes\\\\n- If you don't know the answer, say that you don't know.\\\\n- The current time and date in ISO format might be found in the last message.\\\\n- When answering the user, use friendly formats for time and date.\\\\n- Use markdown syntax for formatting code snippets, links, JSON, tables, images, files.\\\\n- Sometimes, things don't go as planned. Functions may not provide useful information on the first few tries. You should always try a few different approaches before declaring the problem unsolvable.\\\\n- When the function doesn't give you what you were asking for, you must either use another function or a different function input.\\\\n - When using search engines, you try different formulations of the query, possibly even in a different language.\\\\n- You cannot do complex calculations, computations, or data manipulations without using functions.\\\\n\\\"}, {\\\"role\\\": \\\"user\\\", \\\"content\\\": [{\\\"type\\\": \\\"text\\\", \\\"text\\\": \\\"Message: I'm planning a trip to Barcelona, Spain. Can you research key attractions and landmarks I should visit, and also tell me what the current weather conditions are like there?\\\\n\\\\nThis message was created at 2025-08-01T13:56:54+00:00\\\"}]}, {\\\"role\\\": \\\"assistant\\\", \\\"content\\\": [{\\\"type\\\": \\\"text\\\", \\\"text\\\": \\\"Thought: I will first research key attractions and landmarks in Barcelona and then check the current weather conditions there. \\\\nFunction Name: Wikipedia\\\\nFunction Input: {\\\\\\\"query\\\\\\\": \\\\\\\"Tourism in Barcelona\\\\\\\"}\\\\nFunction Output: [{\\\\\\\"description\\\\\\\": \\\\\\\"Barcelona ( BAR-s\\\\u0259-LOH-n\\\\u0259; Catalan: [b\\\\u0259\\\\u027es\\\\u0259\\\\u02c8lon\\\\u0259] ; Spanish: [ba\\\\u027e\\\\u03b8e\\\\u02c8lona] ) is a city on the northeastern coast of Spain. It is the capital and largest city of the autonomous community of Catalonia, as well as the second-most populous municipality of Spain. With a population of 1.6 million within city limits, its urban area extends to numerous neighbouring municipalities within the province of Barcelona and is home to around 5.3 million people, making it the fifth most populous urban area of the European Union after Paris, the Ruhr area, Madrid and Milan. It is one of the largest metropolises on the Mediterranean Sea, located on the coast between the mouths of the rivers Llobregat and Bes\\\\u00f2s, bounded to the west by the Serra de Collserola mountain range.\\\\\\\\nAccording to tradition, Barcelona was founded by either the Phoenicians or the Carthaginians, who had trading posts along the Catalonian coast. In the Middle Ages, Barcelona became the capital of the County of Barcelona. After joining with the Kingdom of Aragon to form the composite monarchy of the Crown of Aragon, Barcelona, which continued to be the capital of the Principality of Catalonia, became the most important city in the Crown of Aragon and its main economic and administrative centre, only to be overtaken by Valencia, wrested from Moorish control by the Catalans, shortly before the dynastic union between the Crown of Castile and the Crown of Aragon in 1516. Barcelona became the centre of Catalan separatism, briefly becoming part of France during the 17th century Reapers' War and again in 1812 until 1814 under Napoleon. Experiencing industrialization and several workers movements during the 19th and early 20th century, it became the capital of autonomous Catalonia in 1931 and it was the epicenter of the revolution experienced by Catalonia during the Spanish Revolution of 1936, until its capture by the fascists in 1939. After the Spanish transition to democracy in the 1970s, Barcelona once again became the capital of an autonomous Catalonia.\\\\\\\\nBarcelona has a rich cultural heritage and is today an important cultural centre and a major tourist destination. Particularly renowned are the architectural works of Antoni Gaud\\\\u00ed and Llu\\\\u00eds Dom\\\\u00e8nech i Montaner, which have been designated UNESCO World Heritage Sites. The city is home to two of the most prestigious universities in Spain: the University of Barcelona and Pompeu Fabra University. The headquarters of the Union for the Mediterranean are located in Barcelona. The city is known for hosting the 1992 Summer Olympics as well as world-class conferences and expositions. In addition, many international sport tournaments have been played here.\\\\\\\\nBarcelona is a major cultural, economic, and financial centre in southwestern Europe, as well as the main biotech hub in Spain. As a leading world city, Barcelona's influence in global socio-economic affairs qualifies it for global city status (Beta +).\\\\\\\\nBarcelona is a transport hub, with the Port of Barcelona being one of Europe's principal seaports and busiest European passenger port, an international airport, Barcelona\\\\u2013El Prat Airport, which handles over 50-million passengers per year, an extensive motorway network, and a high-speed rail line with a link to France and the rest of Europe.\\\\\\\", \\\\\\\"title\\\\\\\": \\\\\\\"Barcelona\\\\\\\", \\\\\\\"url\\\\\\\": \\\\\\\"https://en.wikipedia.org/wiki/Barcelona\\\\\\\"}]\\\\n\\\"}]}]\",\"llm.input_messages.0.message.role\":\"system\",\"llm.input_messages.0.message.content\":\"# Available functions\\nYou can only use the following functions. Always use all required parameters.\\n\\nFunction Name: Wikipedia\\nDescription: Search factual and historical information, including biography, history, politics, geography, society, culture, science, technology, people, animal species, mathematics, and other subjects.\\nInput Schema: {\\\"properties\\\": {\\\"full_text\\\": {\\\"default\\\": false, \\\"description\\\": \\\"If set to true, it will return the full text of the page instead of its short summary.\\\", \\\"title\\\": \\\"Full Text\\\", \\\"type\\\": \\\"boolean\\\"}, \\\"query\\\": {\\\"description\\\": \\\"Name of the Wikipedia page.\\\", \\\"title\\\": \\\"Query\\\", \\\"type\\\": \\\"string\\\"}}, \\\"required\\\": [\\\"query\\\"], \\\"title\\\": \\\"WikipediaToolInput\\\", \\\"type\\\": \\\"object\\\"}\\n\\nFunction Name: OpenMeteoTool\\nDescription: Retrieve current, past, or future weather forecasts for a location.\\nInput Schema: {\\\"properties\\\": {\\\"country\\\": {\\\"anyOf\\\": [{\\\"type\\\": \\\"string\\\"}, {\\\"type\\\": \\\"null\\\"}], \\\"default\\\": null, \\\"description\\\": \\\"Country name.\\\", \\\"title\\\": \\\"Country\\\"}, \\\"end_date\\\": {\\\"anyOf\\\": [{\\\"format\\\": \\\"date\\\", \\\"type\\\": \\\"string\\\"}, {\\\"type\\\": \\\"null\\\"}], \\\"default\\\": null, \\\"description\\\": \\\"End date for the weather forecast in the format YYYY-MM-DD (UTC)\\\", \\\"title\\\": \\\"End Date\\\"}, \\\"location_name\\\": {\\\"description\\\": \\\"The name of the location to retrieve weather information.\\\", \\\"title\\\": \\\"Location Name\\\", \\\"type\\\": \\\"string\\\"}, \\\"start_date\\\": {\\\"anyOf\\\": [{\\\"format\\\": \\\"date\\\", \\\"type\\\": \\\"string\\\"}, {\\\"type\\\": \\\"null\\\"}], \\\"default\\\": null, \\\"description\\\": \\\"Start date for the weather forecast in the format YYYY-MM-DD (UTC)\\\", \\\"title\\\": \\\"Start Date\\\"}, \\\"temperature_unit\\\": {\\\"default\\\": \\\"celsius\\\", \\\"description\\\": \\\"The unit to express temperature\\\", \\\"enum\\\": [\\\"celsius\\\", \\\"fahrenheit\\\"], \\\"title\\\": \\\"Temperature Unit\\\", \\\"type\\\": \\\"string\\\"}}, \\\"required\\\": [\\\"location_name\\\"], \\\"title\\\": \\\"OpenMeteoToolInput\\\", \\\"type\\\": \\\"object\\\"}\\n\\n# Communication structure\\nYou communicate only in instruction lines. The format is: \\\"Instruction: expected output\\\". You must only use these instruction lines and must not enter empty lines or anything else between instruction lines.\\nYou must skip the instruction lines Function Name, Function Input and Function Output if no function calling is required.\\n\\nMessage: User's message. You never use this instruction line.\\nThought: A single-line step-by-step plan of how to answer the user's message. You can use the available functions defined above. This instruction line must be immediately followed by Function Name if one of the available functions defined above needs to be called, or by Final Answer. Do not provide the answer here.\\nFunction Name: Name of the function. This instruction line must be immediately followed by Function Input.\\nFunction Input: Function parameters in JSON format adhering to the function's input specification ie. {\\\"arg1\\\":\\\"value1\\\", \\\"arg2\\\":\\\"value2\\\"}. Empty object is a valid parameter.\\nFunction Output: Output of the function in JSON format.\\nThought: Continue your thinking process.\\nFinal Answer: Answer the user or ask for more information or clarification. It must always be preceded by Thought.\\n\\n## Examples\\nMessage: Can you translate \\\"How are you\\\" into French?\\nThought: The user wants to translate a text into French. I can do that.\\nFinal Answer: Comment vas-tu?\\n\\n# Instructions\\nUser can only see the Final Answer, all answers must be provided there.\\nYou must always use the communication structure and instructions defined above. Do not forget that Thought must be a single-line immediately followed by either Function Name or Final Answer.\\nFunctions must be used to retrieve factual or historical information to answer the message.\\nIf the user suggests using a function that is not available, answer that the function is not available. You can suggest alternatives if appropriate.\\nWhen the message is unclear or you need more information from the user, ask in Final Answer.\\n\\n# Your capabilities\\nPrefer to use these capabilities over functions.\\n- You understand these languages: English, Spanish, French.\\n- You can translate and summarize, even long documents.\\n\\n# Notes\\n- If you don't know the answer, say that you don't know.\\n- The current time and date in ISO format might be found in the last message.\\n- When answering the user, use friendly formats for time and date.\\n- Use markdown syntax for formatting code snippets, links, JSON, tables, images, files.\\n- Sometimes, things don't go as planned. Functions may not provide useful information on the first few tries. You should always try a few different approaches before declaring the problem unsolvable.\\n- When the function doesn't give you what you were asking for, you must either use another function or a different function input.\\n - When using search engines, you try different formulations of the query, possibly even in a different language.\\n- You cannot do complex calculations, computations, or data manipulations without using functions.\\n\",\"llm.input_messages.1.message.role\":\"user\",\"llm.input_messages.1.message.content\":\"Message: I'm planning a trip to Barcelona, Spain. Can you research key attractions and landmarks I should visit, and also tell me what the current weather conditions are like there?\\n\\nThis message was created at 2025-08-01T13:56:54+00:00\",\"llm.input_messages.2.message.role\":\"assistant\",\"llm.input_messages.2.message.content\":\"Thought: I will first research key attractions and landmarks in Barcelona and then check the current weather conditions there. \\nFunction Name: Wikipedia\\nFunction Input: {\\\"query\\\": \\\"Tourism in Barcelona\\\"}\\nFunction Output: [{\\\"description\\\": \\\"Barcelona ( BAR-sÉ™-LOH-nÉ™; Catalan: [bəɾsəˈlonÉ™] ; Spanish: [baɾθeˈlona] ) is a city on the northeastern coast of Spain. It is the capital and largest city of the autonomous community of Catalonia, as well as the second-most populous municipality of Spain. With a population of 1.6 million within city limits, its urban area extends to numerous neighbouring municipalities within the province of Barcelona and is home to around 5.3 million people, making it the fifth most populous urban area of the European Union after Paris, the Ruhr area, Madrid and Milan. It is one of the largest metropolises on the Mediterranean Sea, located on the coast between the mouths of the rivers Llobregat and Besòs, bounded to the west by the Serra de Collserola mountain range.\\\\nAccording to tradition, Barcelona was founded by either the Phoenicians or the Carthaginians, who had trading posts along the Catalonian coast. In the Middle Ages, Barcelona became the capital of the County of Barcelona. After joining with the Kingdom of Aragon to form the composite monarchy of the Crown of Aragon, Barcelona, which continued to be the capital of the Principality of Catalonia, became the most important city in the Crown of Aragon and its main economic and administrative centre, only to be overtaken by Valencia, wrested from Moorish control by the Catalans, shortly before the dynastic union between the Crown of Castile and the Crown of Aragon in 1516. Barcelona became the centre of Catalan separatism, briefly becoming part of France during the 17th century Reapers' War and again in 1812 until 1814 under Napoleon. Experiencing industrialization and several workers movements during the 19th and early 20th century, it became the capital of autonomous Catalonia in 1931 and it was the epicenter of the revolution experienced by Catalonia during the Spanish Revolution of 1936, until its capture by the fascists in 1939. After the Spanish transition to democracy in the 1970s, Barcelona once again became the capital of an autonomous Catalonia.\\\\nBarcelona has a rich cultural heritage and is today an important cultural centre and a major tourist destination. Particularly renowned are the architectural works of Antoni Gaudà and LluÃs Domènech i Montaner, which have been designated UNESCO World Heritage Sites. The city is home to two of the most prestigious universities in Spain: the University of Barcelona and Pompeu Fabra University. The headquarters of the Union for the Mediterranean are located in Barcelona. The city is known for hosting the 1992 Summer Olympics as well as world-class conferences and expositions. In addition, many international sport tournaments have been played here.\\\\nBarcelona is a major cultural, economic, and financial centre in southwestern Europe, as well as the main biotech hub in Spain. As a leading world city, Barcelona's influence in global socio-economic affairs qualifies it for global city status (Beta +).\\\\nBarcelona is a transport hub, with the Port of Barcelona being one of Europe's principal seaports and busiest European passenger port, an international airport, Barcelona–El Prat Airport, which handles over 50-million passengers per year, an extensive motorway network, and a high-speed rail line with a link to France and the rest of Europe.\\\", \\\"title\\\": \\\"Barcelona\\\", \\\"url\\\": \\\"https://en.wikipedia.org/wiki/Barcelona\\\"}]\\n\",\"llm.provider\":\"openai\",\"llm.model_name\":\"gpt-4o-mini\",\"llm.invocation_parameters\":\"{\\\"max_tokens\\\":null,\\\"top_p\\\":null,\\\"frequency_penalty\\\":null,\\\"temperature\\\":0.7,\\\"top_k\\\":null,\\\"n\\\":null,\\\"presence_penalty\\\":null,\\\"seed\\\":null,\\\"stop_sequences\\\":null,\\\"stream\\\":null}\",\"openinference.span.kind\":\"LLM\"},\"resourceAttributes\":{\"telemetry.sdk.language\":\"python\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"1.34.1\",\"service.name\":\"unknown_service\"},\"scope\":{\"name\":\"openinference.instrumentation.beeai\",\"version\":\"0.1.33\",\"attributes\":{}}}",+ "internalModel": "clyrjp56f0000t0mzapoocd7u"+ },+ {+ "id": "b7b9a79830fe5c6b",+ "traceId": "096fc09a30ab90d2431778f9ee2b3936",+ "startTime": "2025-08-01T13:57:11.330Z",+ "endTime": "2025-08-01T13:57:11.336Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "8b26b3ec668cf146",+ "type": "GENERATION",+ "environment": "default",+ "name": "backend.openai.chat.finish-16",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-08-01T13:57:14.163Z",+ "updatedAt": "2025-08-01T13:57:14.243Z",+ "input": null,+ "output": null,+ "model": "gpt-4o-mini",+ "internalModelId": "clyrjp56f0000t0mzapoocd7u",+ "modelParameters": {+ "max_tokens": "null",+ "top_p": "null",+ "frequency_penalty": "null",+ "temperature": 0.7,+ "top_k": "null",+ "n": "null",+ "presence_penalty": "null",+ "seed": "null",+ "stop_sequences": "null",+ "stream": "null"+ },+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 0.006,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"attributes\":{\"target\":\"backend.openai.chat.finish\",\"name\":\"finish\",\"traceId\":\"0cff2691-3a45-4988-a243-8cb8c508aa25\",\"llm.provider\":\"openai\",\"llm.model_name\":\"gpt-4o-mini\",\"llm.invocation_parameters\":\"{\\\"max_tokens\\\":null,\\\"top_p\\\":null,\\\"frequency_penalty\\\":null,\\\"temperature\\\":0.7,\\\"top_k\\\":null,\\\"n\\\":null,\\\"presence_penalty\\\":null,\\\"seed\\\":null,\\\"stop_sequences\\\":null,\\\"stream\\\":null}\",\"openinference.span.kind\":\"LLM\"},\"resourceAttributes\":{\"telemetry.sdk.language\":\"python\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"1.34.1\",\"service.name\":\"unknown_service\"},\"scope\":{\"name\":\"openinference.instrumentation.beeai\",\"version\":\"0.1.33\",\"attributes\":{}}}",+ "internalModel": "clyrjp56f0000t0mzapoocd7u"+ },+ {+ "id": "f50f7bbf13112df9",+ "traceId": "096fc09a30ab90d2431778f9ee2b3936",+ "startTime": "2025-08-01T13:57:11.328Z",+ "endTime": "2025-08-01T13:57:11.336Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "8b26b3ec668cf146",+ "type": "GENERATION",+ "environment": "default",+ "name": "backend.openai.chat.success-16",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-08-01T13:57:14.163Z",+ "updatedAt": "2025-08-01T13:57:14.239Z",+ "input": null,+ "output": null,+ "model": "gpt-4o-mini",+ "internalModelId": "clyrjp56f0000t0mzapoocd7u",+ "modelParameters": {+ "max_tokens": "null",+ "top_p": "null",+ "frequency_penalty": "null",+ "temperature": 0.7,+ "top_k": "null",+ "n": "null",+ "presence_penalty": "null",+ "seed": "null",+ "stop_sequences": "null",+ "stream": "null"+ },+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 0.008,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"attributes\":{\"llm.output_messages.233.message.role\":\"assistant\",\"llm.output_messages.233.message.content\":\".\",\"llm.output_messages.234.message.role\":\"assistant\",\"llm.output_messages.234.message.content\":\" **\",\"llm.output_messages.235.message.role\":\"assistant\",\"llm.output_messages.235.message.content\":\"Mont\",\"llm.output_messages.236.message.role\":\"assistant\",\"llm.output_messages.236.message.content\":\"ju\",\"llm.output_messages.237.message.role\":\"assistant\",\"llm.output_messages.237.message.content\":\"ïc\",\"llm.output_messages.238.message.role\":\"assistant\",\"llm.output_messages.238.message.content\":\"**\",\"llm.output_messages.239.message.role\":\"assistant\",\"llm.output_messages.239.message.content\":\" -\",\"llm.output_messages.240.message.role\":\"assistant\",\"llm.output_messages.240.message.content\":\" A\",\"llm.output_messages.241.message.role\":\"assistant\",\"llm.output_messages.241.message.content\":\" hill\",\"llm.output_messages.242.message.role\":\"assistant\",\"llm.output_messages.242.message.content\":\" offering\",\"llm.output_messages.243.message.role\":\"assistant\",\"llm.output_messages.243.message.content\":\" stunning\",\"llm.output_messages.244.message.role\":\"assistant\",\"llm.output_messages.244.message.content\":\" views\",\"llm.output_messages.245.message.role\":\"assistant\",\"llm.output_messages.245.message.content\":\" of\",\"llm.output_messages.246.message.role\":\"assistant\",\"llm.output_messages.246.message.content\":\" the\",\"llm.output_messages.247.message.role\":\"assistant\",\"llm.output_messages.247.message.content\":\" city\",\"llm.output_messages.248.message.role\":\"assistant\",\"llm.output_messages.248.message.content\":\",\",\"llm.output_messages.249.message.role\":\"assistant\",\"llm.output_messages.249.message.content\":\" home\",\"llm.output_messages.250.message.role\":\"assistant\",\"llm.output_messages.250.message.content\":\" to\",\"llm.output_messages.251.message.role\":\"assistant\",\"llm.output_messages.251.message.content\":\" several\",\"llm.output_messages.252.message.role\":\"assistant\",\"llm.output_messages.252.message.content\":\" attractions\",\"llm.output_messages.253.message.role\":\"assistant\",\"llm.output_messages.253.message.content\":\" including\",\"llm.output_messages.254.message.role\":\"assistant\",\"llm.output_messages.254.message.content\":\" the\",\"llm.output_messages.255.message.role\":\"assistant\",\"llm.output_messages.255.message.content\":\" Mont\",\"llm.output_messages.256.message.role\":\"assistant\",\"llm.output_messages.256.message.content\":\"ju\",\"llm.output_messages.257.message.role\":\"assistant\",\"llm.output_messages.257.message.content\":\"ïc\",\"llm.output_messages.258.message.role\":\"assistant\",\"llm.output_messages.258.message.content\":\" Castle\",\"llm.output_messages.259.message.role\":\"assistant\",\"llm.output_messages.259.message.content\":\" and\",\"llm.output_messages.260.message.role\":\"assistant\",\"llm.output_messages.260.message.content\":\" the\",\"llm.output_messages.261.message.role\":\"assistant\",\"llm.output_messages.261.message.content\":\" Magic\",\"llm.output_messages.262.message.role\":\"assistant\",\"llm.output_messages.262.message.content\":\" Fountain\",\"llm.output_messages.263.message.role\":\"assistant\",\"llm.output_messages.263.message.content\":\".\\n\\n\",\"llm.output_messages.264.message.role\":\"assistant\",\"llm.output_messages.264.message.content\":\"Regarding\",\"llm.output_messages.265.message.role\":\"assistant\",\"llm.output_messages.265.message.content\":\" the\",\"llm.output_messages.266.message.role\":\"assistant\",\"llm.output_messages.266.message.content\":\" current\",\"llm.output_messages.267.message.role\":\"assistant\",\"llm.output_messages.267.message.content\":\" weather\",\"llm.output_messages.268.message.role\":\"assistant\",\"llm.output_messages.268.message.content\":\",\",\"llm.output_messages.269.message.role\":\"assistant\",\"llm.output_messages.269.message.content\":\" it\",\"llm.output_messages.270.message.role\":\"assistant\",\"llm.output_messages.270.message.content\":\" is\",\"llm.output_messages.271.message.role\":\"assistant\",\"llm.output_messages.271.message.content\":\" \",\"llm.output_messages.272.message.role\":\"assistant\",\"llm.output_messages.272.message.content\":\"29\",\"llm.output_messages.273.message.role\":\"assistant\",\"llm.output_messages.273.message.content\":\"°C\",\"llm.output_messages.274.message.role\":\"assistant\",\"llm.output_messages.274.message.content\":\" with\",\"llm.output_messages.275.message.role\":\"assistant\",\"llm.output_messages.275.message.content\":\" no\",\"llm.output_messages.276.message.role\":\"assistant\",\"llm.output_messages.276.message.content\":\" rain\",\"llm.output_messages.277.message.role\":\"assistant\",\"llm.output_messages.277.message.content\":\",\",\"llm.output_messages.278.message.role\":\"assistant\",\"llm.output_messages.278.message.content\":\" and\",\"llm.output_messages.279.message.role\":\"assistant\",\"llm.output_messages.279.message.content\":\" the\",\"llm.output_messages.280.message.role\":\"assistant\",\"llm.output_messages.280.message.content\":\" humidity\",\"llm.output_messages.281.message.role\":\"assistant\",\"llm.output_messages.281.message.content\":\" is\",\"llm.output_messages.282.message.role\":\"assistant\",\"llm.output_messages.282.message.content\":\" at\",\"llm.output_messages.283.message.role\":\"assistant\",\"llm.output_messages.283.message.content\":\" \",\"llm.output_messages.284.message.role\":\"assistant\",\"llm.output_messages.284.message.content\":\"48\",\"llm.output_messages.285.message.role\":\"assistant\",\"llm.output_messages.285.message.content\":\"%.\",\"llm.output_messages.286.message.role\":\"assistant\",\"llm.output_messages.286.message.content\":\" It's\",\"llm.output_messages.287.message.role\":\"assistant\",\"llm.output_messages.287.message.content\":\" a\",\"llm.output_messages.288.message.role\":\"assistant\",\"llm.output_messages.288.message.content\":\" great\",\"llm.output_messages.289.message.role\":\"assistant\",\"llm.output_messages.289.message.content\":\" time\",\"llm.output_messages.290.message.role\":\"assistant\",\"llm.output_messages.290.message.content\":\" to\",\"llm.output_messages.291.message.role\":\"assistant\",\"llm.output_messages.291.message.content\":\" explore\",\"llm.output_messages.292.message.role\":\"assistant\",\"llm.output_messages.292.message.content\":\" the\",\"llm.output_messages.293.message.role\":\"assistant\",\"llm.output_messages.293.message.content\":\" city\",\"llm.output_messages.294.message.role\":\"assistant\",\"llm.output_messages.294.message.content\":\"!\",\"llm.provider\":\"openai\",\"llm.model_name\":\"gpt-4o-mini\",\"llm.invocation_parameters\":\"{\\\"max_tokens\\\":null,\\\"top_p\\\":null,\\\"frequency_penalty\\\":null,\\\"temperature\\\":0.7,\\\"top_k\\\":null,\\\"n\\\":null,\\\"presence_penalty\\\":null,\\\"seed\\\":null,\\\"stop_sequences\\\":null,\\\"stream\\\":null}\",\"openinference.span.kind\":\"LLM\"},\"resourceAttributes\":{\"telemetry.sdk.language\":\"python\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"1.34.1\",\"service.name\":\"unknown_service\"},\"scope\":{\"name\":\"openinference.instrumentation.beeai\",\"version\":\"0.1.33\",\"attributes\":{}}}",+ "internalModel": "clyrjp56f0000t0mzapoocd7u"+ },+ {+ "id": "0eb76c10a47e9086",+ "traceId": "096fc09a30ab90d2431778f9ee2b3936",+ "startTime": "2025-08-01T13:56:57.470Z",+ "endTime": "2025-08-01T13:57:11.334Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "cb4886242bf214b8",+ "type": "SPAN",+ "environment": "default",+ "name": "iteration-2",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-08-01T13:57:14.163Z",+ "updatedAt": "2025-08-01T13:57:14.243Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 13.864,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"attributes\":{\"target\":\"groupId\",\"name\":\"iteration-2\",\"traceId\":\"0cff2691-3a45-4988-a243-8cb8c508aa25\",\"openinference.span.kind\":\"CHAIN\"},\"resourceAttributes\":{\"telemetry.sdk.language\":\"python\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"1.34.1\",\"service.name\":\"unknown_service\"},\"scope\":{\"name\":\"openinference.instrumentation.beeai\",\"version\":\"0.1.33\",\"attributes\":{}}}",+ "internalModel": null+ },+ {+ "id": "10b12fd4cca3ef99",+ "traceId": "096fc09a30ab90d2431778f9ee2b3936",+ "startTime": "2025-08-01T13:57:03.886Z",+ "endTime": "2025-08-01T13:57:11.335Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "39d661bf29b4dbbd",+ "type": "SPAN",+ "environment": "default",+ "name": "agent.react.start-6",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-08-01T13:57:14.163Z",+ "updatedAt": "2025-08-01T13:57:14.216Z",+ "input": "[{\"text\": \"# Available functions\\nYou can only use the following functions. Always use all required parameters.\\n\\nFunction Name: Wikipedia\\nDescription: Search factual and historical information, including biography, history, politics, geography, society, culture, science, technology, people, animal species, mathematics, and other subjects.\\nInput Schema: {\\\"properties\\\": {\\\"full_text\\\": {\\\"default\\\": false, \\\"description\\\": \\\"If set to true, it will return the full text of the page instead of its short summary.\\\", \\\"title\\\": \\\"Full Text\\\", \\\"type\\\": \\\"boolean\\\"}, \\\"query\\\": {\\\"description\\\": \\\"Name of the Wikipedia page.\\\", \\\"title\\\": \\\"Query\\\", \\\"type\\\": \\\"string\\\"}}, \\\"required\\\": [\\\"query\\\"], \\\"title\\\": \\\"WikipediaToolInput\\\", \\\"type\\\": \\\"object\\\"}\\n\\nFunction Name: OpenMeteoTool\\nDescription: Retrieve current, past, or future weather forecasts for a location.\\nInput Schema: {\\\"properties\\\": {\\\"country\\\": {\\\"anyOf\\\": [{\\\"type\\\": \\\"string\\\"}, {\\\"type\\\": \\\"null\\\"}], \\\"default\\\": null, \\\"description\\\": \\\"Country name.\\\", \\\"title\\\": \\\"Country\\\"}, \\\"end_date\\\": {\\\"anyOf\\\": [{\\\"format\\\": \\\"date\\\", \\\"type\\\": \\\"string\\\"}, {\\\"type\\\": \\\"null\\\"}], \\\"default\\\": null, \\\"description\\\": \\\"End date for the weather forecast in the format YYYY-MM-DD (UTC)\\\", \\\"title\\\": \\\"End Date\\\"}, \\\"location_name\\\": {\\\"description\\\": \\\"The name of the location to retrieve weather information.\\\", \\\"title\\\": \\\"Location Name\\\", \\\"type\\\": \\\"string\\\"}, \\\"start_date\\\": {\\\"anyOf\\\": [{\\\"format\\\": \\\"date\\\", \\\"type\\\": \\\"string\\\"}, {\\\"type\\\": \\\"null\\\"}], \\\"default\\\": null, \\\"description\\\": \\\"Start date for the weather forecast in the format YYYY-MM-DD (UTC)\\\", \\\"title\\\": \\\"Start Date\\\"}, \\\"temperature_unit\\\": {\\\"default\\\": \\\"celsius\\\", \\\"description\\\": \\\"The unit to express temperature\\\", \\\"enum\\\": [\\\"celsius\\\", \\\"fahrenheit\\\"], \\\"title\\\": \\\"Temperature Unit\\\", \\\"type\\\": \\\"string\\\"}}, \\\"required\\\": [\\\"location_name\\\"], \\\"title\\\": \\\"OpenMeteoToolInput\\\", \\\"type\\\": \\\"object\\\"}\\n\\n# Communication structure\\nYou communicate only in instruction lines. The format is: \\\"Instruction: expected output\\\". You must only use these instruction lines and must not enter empty lines or anything else between instruction lines.\\nYou must skip the instruction lines Function Name, Function Input and Function Output if no function calling is required.\\n\\nMessage: User's message. You never use this instruction line.\\nThought: A single-line step-by-step plan of how to answer the user's message. You can use the available functions defined above. This instruction line must be immediately followed by Function Name if one of the available functions defined above needs to be called, or by Final Answer. Do not provide the answer here.\\nFunction Name: Name of the function. This instruction line must be immediately followed by Function Input.\\nFunction Input: Function parameters in JSON format adhering to the function's input specification ie. {\\\"arg1\\\":\\\"value1\\\", \\\"arg2\\\":\\\"value2\\\"}. Empty object is a valid parameter.\\nFunction Output: Output of the function in JSON format.\\nThought: Continue your thinking process.\\nFinal Answer: Answer the user or ask for more information or clarification. It must always be preceded by Thought.\\n\\n## Examples\\nMessage: Can you translate \\\"How are you\\\" into French?\\nThought: The user wants to translate a text into French. I can do that.\\nFinal Answer: Comment vas-tu?\\n\\n# Instructions\\nUser can only see the Final Answer, all answers must be provided there.\\nYou must always use the communication structure and instructions defined above. Do not forget that Thought must be a single-line immediately followed by either Function Name or Final Answer.\\nFunctions must be used to retrieve factual or historical information to answer the message.\\nIf the user suggests using a function that is not available, answer that the function is not available. You can suggest alternatives if appropriate.\\nWhen the message is unclear or you need more information from the user, ask in Final Answer.\\n\\n# Your capabilities\\nPrefer to use these capabilities over functions.\\n- You understand these languages: English, Spanish, French.\\n- You can translate and summarize, even long documents.\\n\\n# Notes\\n- If you don't know the answer, say that you don't know.\\n- The current time and date in ISO format might be found in the last message.\\n- When answering the user, use friendly formats for time and date.\\n- Use markdown syntax for formatting code snippets, links, JSON, tables, images, files.\\n- Sometimes, things don't go as planned. Functions may not provide useful information on the first few tries. You should always try a few different approaches before declaring the problem unsolvable.\\n- When the function doesn't give you what you were asking for, you must either use another function or a different function input.\\n - When using search engines, you try different formulations of the query, possibly even in a different language.\\n- You cannot do complex calculations, computations, or data manipulations without using functions.\\n\", \"role\": \"system\"}, {\"text\": \"Message: I'm planning a trip to Barcelona, Spain. Can you research key attractions and landmarks I should visit, and also tell me what the current weather conditions are like there?\\n\\nThis message was created at 2025-08-01T13:56:54+00:00\", \"role\": \"user\"}, {\"text\": \"Thought: I will first research key attractions and landmarks in Barcelona and then check the current weather conditions there. \\nFunction Name: Wikipedia\\nFunction Input: {\\\"query\\\": \\\"Tourism in Barcelona\\\"}\\nFunction Output: [{\\\"description\\\": \\\"Barcelona ( BAR-s\\u0259-LOH-n\\u0259; Catalan: [b\\u0259\\u027es\\u0259\\u02c8lon\\u0259] ; Spanish: [ba\\u027e\\u03b8e\\u02c8lona] ) is a city on the northeastern coast of Spain. It is the capital and largest city of the autonomous community of Catalonia, as well as the second-most populous municipality of Spain. With a population of 1.6 million within city limits, its urban area extends to numerous neighbouring municipalities within the province of Barcelona and is home to around 5.3 million people, making it the fifth most populous urban area of the European Union after Paris, the Ruhr area, Madrid and Milan. It is one of the largest metropolises on the Mediterranean Sea, located on the coast between the mouths of the rivers Llobregat and Bes\\u00f2s, bounded to the west by the Serra de Collserola mountain range.\\\\nAccording to tradition, Barcelona was founded by either the Phoenicians or the Carthaginians, who had trading posts along the Catalonian coast. In the Middle Ages, Barcelona became the capital of the County of Barcelona. After joining with the Kingdom of Aragon to form the composite monarchy of the Crown of Aragon, Barcelona, which continued to be the capital of the Principality of Catalonia, became the most important city in the Crown of Aragon and its main economic and administrative centre, only to be overtaken by Valencia, wrested from Moorish control by the Catalans, shortly before the dynastic union between the Crown of Castile and the Crown of Aragon in 1516. Barcelona became the centre of Catalan separatism, briefly becoming part of France during the 17th century Reapers' War and again in 1812 until 1814 under Napoleon. Experiencing industrialization and several workers movements during the 19th and early 20th century, it became the capital of autonomous Catalonia in 1931 and it was the epicenter of the revolution experienced by Catalonia during the Spanish Revolution of 1936, until its capture by the fascists in 1939. After the Spanish transition to democracy in the 1970s, Barcelona once again became the capital of an autonomous Catalonia.\\\\nBarcelona has a rich cultural heritage and is today an important cultural centre and a major tourist destination. Particularly renowned are the architectural works of Antoni Gaud\\u00ed and Llu\\u00eds Dom\\u00e8nech i Montaner, which have been designated UNESCO World Heritage Sites. The city is home to two of the most prestigious universities in Spain: the University of Barcelona and Pompeu Fabra University. The headquarters of the Union for the Mediterranean are located in Barcelona. The city is known for hosting the 1992 Summer Olympics as well as world-class conferences and expositions. In addition, many international sport tournaments have been played here.\\\\nBarcelona is a major cultural, economic, and financial centre in southwestern Europe, as well as the main biotech hub in Spain. As a leading world city, Barcelona's influence in global socio-economic affairs qualifies it for global city status (Beta +).\\\\nBarcelona is a transport hub, with the Port of Barcelona being one of Europe's principal seaports and busiest European passenger port, an international airport, Barcelona\\u2013El Prat Airport, which handles over 50-million passengers per year, an extensive motorway network, and a high-speed rail line with a link to France and the rest of Europe.\\\", \\\"title\\\": \\\"Barcelona\\\", \\\"url\\\": \\\"https://en.wikipedia.org/wiki/Barcelona\\\"}]\\n\", \"role\": \"assistant\"}, {\"text\": \"Thought: I found information about Barcelona, including its rich cultural heritage and key attractions like the architectural works of Antoni Gaud\\u00ed. Now, I will check the current weather conditions in Barcelona. \\nFunction Name: OpenMeteoTool\\nFunction Input: {\\\"country\\\": \\\"Spain\\\", \\\"location_name\\\": \\\"Barcelona\\\"}\\nFunction Output: {\\\"latitude\\\": 41.4375, \\\"longitude\\\": 2.1875, \\\"generationtime_ms\\\": 0.0553131103515625, \\\"utc_offset_seconds\\\": 0, \\\"timezone\\\": \\\"GMT\\\", \\\"timezone_abbreviation\\\": \\\"GMT\\\", \\\"elevation\\\": 44.0, \\\"current_units\\\": {\\\"time\\\": \\\"iso8601\\\", \\\"interval\\\": \\\"seconds\\\", \\\"temperature_2m\\\": \\\"\\u00b0C\\\", \\\"rain\\\": \\\"mm\\\", \\\"relative_humidity_2m\\\": \\\"%\\\", \\\"wind_speed_10m\\\": \\\"km/h\\\"}, \\\"current\\\": {\\\"time\\\": \\\"2025-08-01T13:45\\\", \\\"interval\\\": 900, \\\"temperature_2m\\\": 29.0, \\\"rain\\\": 0.0, \\\"relative_humidity_2m\\\": 48, \\\"wind_speed_10m\\\": 18.8}, \\\"daily_units\\\": {\\\"time\\\": \\\"iso8601\\\", \\\"temperature_2m_max\\\": \\\"\\u00b0C\\\", \\\"temperature_2m_min\\\": \\\"\\u00b0C\\\", \\\"rain_sum\\\": \\\"mm\\\"}, \\\"daily\\\": {\\\"time\\\": [\\\"2025-08-01\\\"], \\\"temperature_2m_max\\\": [29.0], \\\"temperature_2m_min\\\": [20.6], \\\"rain_sum\\\": [0.0]}}\\n\", \"role\": \"assistant\"}]",+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 7.449,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"attributes\":{\"target\":\"agent.react.start\",\"name\":\"start\",\"traceId\":\"0cff2691-3a45-4988-a243-8cb8c508aa25\",\"iteration\":\"3\",\"llm.tools\":\"[{\\\"tool.name\\\": \\\"Wikipedia\\\", \\\"tool.description\\\": \\\"Search factual and historical information, including biography, history, politics, geography, society, culture, science, technology, people, animal species, mathematics, and other subjects.\\\", \\\"tool.options\\\": \\\"null\\\"}, {\\\"tool.name\\\": \\\"OpenMeteoTool\\\", \\\"tool.description\\\": \\\"Retrieve current, past, or future weather forecasts for a location.\\\", \\\"tool.options\\\": \\\"null\\\"}]\",\"input.mime_type\":\"application/json\",\"input.value\":\"[{\\\"text\\\": \\\"# Available functions\\\\nYou can only use the following functions. Always use all required parameters.\\\\n\\\\nFunction Name: Wikipedia\\\\nDescription: Search factual and historical information, including biography, history, politics, geography, society, culture, science, technology, people, animal species, mathematics, and other subjects.\\\\nInput Schema: {\\\\\\\"properties\\\\\\\": {\\\\\\\"full_text\\\\\\\": {\\\\\\\"default\\\\\\\": false, \\\\\\\"description\\\\\\\": \\\\\\\"If set to true, it will return the full text of the page instead of its short summary.\\\\\\\", \\\\\\\"title\\\\\\\": \\\\\\\"Full Text\\\\\\\", \\\\\\\"type\\\\\\\": \\\\\\\"boolean\\\\\\\"}, \\\\\\\"query\\\\\\\": {\\\\\\\"description\\\\\\\": \\\\\\\"Name of the Wikipedia page.\\\\\\\", \\\\\\\"title\\\\\\\": \\\\\\\"Query\\\\\\\", \\\\\\\"type\\\\\\\": \\\\\\\"string\\\\\\\"}}, \\\\\\\"required\\\\\\\": [\\\\\\\"query\\\\\\\"], \\\\\\\"title\\\\\\\": \\\\\\\"WikipediaToolInput\\\\\\\", \\\\\\\"type\\\\\\\": \\\\\\\"object\\\\\\\"}\\\\n\\\\nFunction Name: OpenMeteoTool\\\\nDescription: Retrieve current, past, or future weather forecasts for a location.\\\\nInput Schema: {\\\\\\\"properties\\\\\\\": {\\\\\\\"country\\\\\\\": {\\\\\\\"anyOf\\\\\\\": [{\\\\\\\"type\\\\\\\": \\\\\\\"string\\\\\\\"}, {\\\\\\\"type\\\\\\\": \\\\\\\"null\\\\\\\"}], \\\\\\\"default\\\\\\\": null, \\\\\\\"description\\\\\\\": \\\\\\\"Country name.\\\\\\\", \\\\\\\"title\\\\\\\": \\\\\\\"Country\\\\\\\"}, \\\\\\\"end_date\\\\\\\": {\\\\\\\"anyOf\\\\\\\": [{\\\\\\\"format\\\\\\\": \\\\\\\"date\\\\\\\", \\\\\\\"type\\\\\\\": \\\\\\\"string\\\\\\\"}, {\\\\\\\"type\\\\\\\": \\\\\\\"null\\\\\\\"}], \\\\\\\"default\\\\\\\": null, \\\\\\\"description\\\\\\\": \\\\\\\"End date for the weather forecast in the format YYYY-MM-DD (UTC)\\\\\\\", \\\\\\\"title\\\\\\\": \\\\\\\"End Date\\\\\\\"}, \\\\\\\"location_name\\\\\\\": {\\\\\\\"description\\\\\\\": \\\\\\\"The name of the location to retrieve weather information.\\\\\\\", \\\\\\\"title\\\\\\\": \\\\\\\"Location Name\\\\\\\", \\\\\\\"type\\\\\\\": \\\\\\\"string\\\\\\\"}, \\\\\\\"start_date\\\\\\\": {\\\\\\\"anyOf\\\\\\\": [{\\\\\\\"format\\\\\\\": \\\\\\\"date\\\\\\\", \\\\\\\"type\\\\\\\": \\\\\\\"string\\\\\\\"}, {\\\\\\\"type\\\\\\\": \\\\\\\"null\\\\\\\"}], \\\\\\\"default\\\\\\\": null, \\\\\\\"description\\\\\\\": \\\\\\\"Start date for the weather forecast in the format YYYY-MM-DD (UTC)\\\\\\\", \\\\\\\"title\\\\\\\": \\\\\\\"Start Date\\\\\\\"}, \\\\\\\"temperature_unit\\\\\\\": {\\\\\\\"default\\\\\\\": \\\\\\\"celsius\\\\\\\", \\\\\\\"description\\\\\\\": \\\\\\\"The unit to express temperature\\\\\\\", \\\\\\\"enum\\\\\\\": [\\\\\\\"celsius\\\\\\\", \\\\\\\"fahrenheit\\\\\\\"], \\\\\\\"title\\\\\\\": \\\\\\\"Temperature Unit\\\\\\\", \\\\\\\"type\\\\\\\": \\\\\\\"string\\\\\\\"}}, \\\\\\\"required\\\\\\\": [\\\\\\\"location_name\\\\\\\"], \\\\\\\"title\\\\\\\": \\\\\\\"OpenMeteoToolInput\\\\\\\", \\\\\\\"type\\\\\\\": \\\\\\\"object\\\\\\\"}\\\\n\\\\n# Communication structure\\\\nYou communicate only in instruction lines. The format is: \\\\\\\"Instruction: expected output\\\\\\\". You must only use these instruction lines and must not enter empty lines or anything else between instruction lines.\\\\nYou must skip the instruction lines Function Name, Function Input and Function Output if no function calling is required.\\\\n\\\\nMessage: User's message. You never use this instruction line.\\\\nThought: A single-line step-by-step plan of how to answer the user's message. You can use the available functions defined above. This instruction line must be immediately followed by Function Name if one of the available functions defined above needs to be called, or by Final Answer. Do not provide the answer here.\\\\nFunction Name: Name of the function. This instruction line must be immediately followed by Function Input.\\\\nFunction Input: Function parameters in JSON format adhering to the function's input specification ie. {\\\\\\\"arg1\\\\\\\":\\\\\\\"value1\\\\\\\", \\\\\\\"arg2\\\\\\\":\\\\\\\"value2\\\\\\\"}. Empty object is a valid parameter.\\\\nFunction Output: Output of the function in JSON format.\\\\nThought: Continue your thinking process.\\\\nFinal Answer: Answer the user or ask for more information or clarification. It must always be preceded by Thought.\\\\n\\\\n## Examples\\\\nMessage: Can you translate \\\\\\\"How are you\\\\\\\" into French?\\\\nThought: The user wants to translate a text into French. I can do that.\\\\nFinal Answer: Comment vas-tu?\\\\n\\\\n# Instructions\\\\nUser can only see the Final Answer, all answers must be provided there.\\\\nYou must always use the communication structure and instructions defined above. Do not forget that Thought must be a single-line immediately followed by either Function Name or Final Answer.\\\\nFunctions must be used to retrieve factual or historical information to answer the message.\\\\nIf the user suggests using a function that is not available, answer that the function is not available. You can suggest alternatives if appropriate.\\\\nWhen the message is unclear or you need more information from the user, ask in Final Answer.\\\\n\\\\n# Your capabilities\\\\nPrefer to use these capabilities over functions.\\\\n- You understand these languages: English, Spanish, French.\\\\n- You can translate and summarize, even long documents.\\\\n\\\\n# Notes\\\\n- If you don't know the answer, say that you don't know.\\\\n- The current time and date in ISO format might be found in the last message.\\\\n- When answering the user, use friendly formats for time and date.\\\\n- Use markdown syntax for formatting code snippets, links, JSON, tables, images, files.\\\\n- Sometimes, things don't go as planned. Functions may not provide useful information on the first few tries. You should always try a few different approaches before declaring the problem unsolvable.\\\\n- When the function doesn't give you what you were asking for, you must either use another function or a different function input.\\\\n - When using search engines, you try different formulations of the query, possibly even in a different language.\\\\n- You cannot do complex calculations, computations, or data manipulations without using functions.\\\\n\\\", \\\"role\\\": \\\"system\\\"}, {\\\"text\\\": \\\"Message: I'm planning a trip to Barcelona, Spain. Can you research key attractions and landmarks I should visit, and also tell me what the current weather conditions are like there?\\\\n\\\\nThis message was created at 2025-08-01T13:56:54+00:00\\\", \\\"role\\\": \\\"user\\\"}, {\\\"text\\\": \\\"Thought: I will first research key attractions and landmarks in Barcelona and then check the current weather conditions there. \\\\nFunction Name: Wikipedia\\\\nFunction Input: {\\\\\\\"query\\\\\\\": \\\\\\\"Tourism in Barcelona\\\\\\\"}\\\\nFunction Output: [{\\\\\\\"description\\\\\\\": \\\\\\\"Barcelona ( BAR-s\\\\u0259-LOH-n\\\\u0259; Catalan: [b\\\\u0259\\\\u027es\\\\u0259\\\\u02c8lon\\\\u0259] ; Spanish: [ba\\\\u027e\\\\u03b8e\\\\u02c8lona] ) is a city on the northeastern coast of Spain. It is the capital and largest city of the autonomous community of Catalonia, as well as the second-most populous municipality of Spain. With a population of 1.6 million within city limits, its urban area extends to numerous neighbouring municipalities within the province of Barcelona and is home to around 5.3 million people, making it the fifth most populous urban area of the European Union after Paris, the Ruhr area, Madrid and Milan. It is one of the largest metropolises on the Mediterranean Sea, located on the coast between the mouths of the rivers Llobregat and Bes\\\\u00f2s, bounded to the west by the Serra de Collserola mountain range.\\\\\\\\nAccording to tradition, Barcelona was founded by either the Phoenicians or the Carthaginians, who had trading posts along the Catalonian coast. In the Middle Ages, Barcelona became the capital of the County of Barcelona. After joining with the Kingdom of Aragon to form the composite monarchy of the Crown of Aragon, Barcelona, which continued to be the capital of the Principality of Catalonia, became the most important city in the Crown of Aragon and its main economic and administrative centre, only to be overtaken by Valencia, wrested from Moorish control by the Catalans, shortly before the dynastic union between the Crown of Castile and the Crown of Aragon in 1516. Barcelona became the centre of Catalan separatism, briefly becoming part of France during the 17th century Reapers' War and again in 1812 until 1814 under Napoleon. Experiencing industrialization and several workers movements during the 19th and early 20th century, it became the capital of autonomous Catalonia in 1931 and it was the epicenter of the revolution experienced by Catalonia during the Spanish Revolution of 1936, until its capture by the fascists in 1939. After the Spanish transition to democracy in the 1970s, Barcelona once again became the capital of an autonomous Catalonia.\\\\\\\\nBarcelona has a rich cultural heritage and is today an important cultural centre and a major tourist destination. Particularly renowned are the architectural works of Antoni Gaud\\\\u00ed and Llu\\\\u00eds Dom\\\\u00e8nech i Montaner, which have been designated UNESCO World Heritage Sites. The city is home to two of the most prestigious universities in Spain: the University of Barcelona and Pompeu Fabra University. The headquarters of the Union for the Mediterranean are located in Barcelona. The city is known for hosting the 1992 Summer Olympics as well as world-class conferences and expositions. In addition, many international sport tournaments have been played here.\\\\\\\\nBarcelona is a major cultural, economic, and financial centre in southwestern Europe, as well as the main biotech hub in Spain. As a leading world city, Barcelona's influence in global socio-economic affairs qualifies it for global city status (Beta +).\\\\\\\\nBarcelona is a transport hub, with the Port of Barcelona being one of Europe's principal seaports and busiest European passenger port, an international airport, Barcelona\\\\u2013El Prat Airport, which handles over 50-million passengers per year, an extensive motorway network, and a high-speed rail line with a link to France and the rest of Europe.\\\\\\\", \\\\\\\"title\\\\\\\": \\\\\\\"Barcelona\\\\\\\", \\\\\\\"url\\\\\\\": \\\\\\\"https://en.wikipedia.org/wiki/Barcelona\\\\\\\"}]\\\\n\\\", \\\"role\\\": \\\"assistant\\\"}, {\\\"text\\\": \\\"Thought: I found information about Barcelona, including its rich cultural heritage and key attractions like the architectural works of Antoni Gaud\\\\u00ed. Now, I will check the current weather conditions in Barcelona. \\\\nFunction Name: OpenMeteoTool\\\\nFunction Input: {\\\\\\\"country\\\\\\\": \\\\\\\"Spain\\\\\\\", \\\\\\\"location_name\\\\\\\": \\\\\\\"Barcelona\\\\\\\"}\\\\nFunction Output: {\\\\\\\"latitude\\\\\\\": 41.4375, \\\\\\\"longitude\\\\\\\": 2.1875, \\\\\\\"generationtime_ms\\\\\\\": 0.0553131103515625, \\\\\\\"utc_offset_seconds\\\\\\\": 0, \\\\\\\"timezone\\\\\\\": \\\\\\\"GMT\\\\\\\", \\\\\\\"timezone_abbreviation\\\\\\\": \\\\\\\"GMT\\\\\\\", \\\\\\\"elevation\\\\\\\": 44.0, \\\\\\\"current_units\\\\\\\": {\\\\\\\"time\\\\\\\": \\\\\\\"iso8601\\\\\\\", \\\\\\\"interval\\\\\\\": \\\\\\\"seconds\\\\\\\", \\\\\\\"temperature_2m\\\\\\\": \\\\\\\"\\\\u00b0C\\\\\\\", \\\\\\\"rain\\\\\\\": \\\\\\\"mm\\\\\\\", \\\\\\\"relative_humidity_2m\\\\\\\": \\\\\\\"%\\\\\\\", \\\\\\\"wind_speed_10m\\\\\\\": \\\\\\\"km/h\\\\\\\"}, \\\\\\\"current\\\\\\\": {\\\\\\\"time\\\\\\\": \\\\\\\"2025-08-01T13:45\\\\\\\", \\\\\\\"interval\\\\\\\": 900, \\\\\\\"temperature_2m\\\\\\\": 29.0, \\\\\\\"rain\\\\\\\": 0.0, \\\\\\\"relative_humidity_2m\\\\\\\": 48, \\\\\\\"wind_speed_10m\\\\\\\": 18.8}, \\\\\\\"daily_units\\\\\\\": {\\\\\\\"time\\\\\\\": \\\\\\\"iso8601\\\\\\\", \\\\\\\"temperature_2m_max\\\\\\\": \\\\\\\"\\\\u00b0C\\\\\\\", \\\\\\\"temperature_2m_min\\\\\\\": \\\\\\\"\\\\u00b0C\\\\\\\", \\\\\\\"rain_sum\\\\\\\": \\\\\\\"mm\\\\\\\"}, \\\\\\\"daily\\\\\\\": {\\\\\\\"time\\\\\\\": [\\\\\\\"2025-08-01\\\\\\\"], \\\\\\\"temperature_2m_max\\\\\\\": [29.0], \\\\\\\"temperature_2m_min\\\\\\\": [20.6], \\\\\\\"rain_sum\\\\\\\": [0.0]}}\\\\n\\\", \\\"role\\\": \\\"assistant\\\"}]\",\"openinference.span.kind\":\"AGENT\"},\"resourceAttributes\":{\"telemetry.sdk.language\":\"python\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"1.34.1\",\"service.name\":\"unknown_service\"},\"scope\":{\"name\":\"openinference.instrumentation.beeai\",\"version\":\"0.1.33\",\"attributes\":{}}}",+ "internalModel": null+ },+ {+ "id": "1d8ae8c504c576d2",+ "traceId": "096fc09a30ab90d2431778f9ee2b3936",+ "startTime": "2025-08-01T13:56:55.683Z",+ "endTime": "2025-08-01T13:57:11.334Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "ff8b04dfe1f3e047",+ "type": "SPAN",+ "environment": "default",+ "name": "tool.search.wikipedia.start-12",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-08-01T13:57:14.162Z",+ "updatedAt": "2025-08-01T13:57:14.246Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 15.651,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"attributes\":{\"target\":\"tool.search.wikipedia.start\",\"name\":\"start\",\"traceId\":\"0cff2691-3a45-4988-a243-8cb8c508aa25\",\"tool.parameters\":\"{\\\"query\\\":\\\"Tourism in Barcelona\\\",\\\"full_text\\\":false}\",\"openinference.span.kind\":\"TOOL\"},\"resourceAttributes\":{\"telemetry.sdk.language\":\"python\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"1.34.1\",\"service.name\":\"unknown_service\"},\"scope\":{\"name\":\"openinference.instrumentation.beeai\",\"version\":\"0.1.33\",\"attributes\":{}}}",+ "internalModel": null+ },+ {+ "id": "2d1f33fc0925a297",+ "traceId": "096fc09a30ab90d2431778f9ee2b3936",+ "startTime": "2025-08-01T13:56:55.541Z",+ "endTime": "2025-08-01T13:57:11.333Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "c48e7d031a4cb886",+ "type": "SPAN",+ "environment": "default",+ "name": "agent.react.update-12",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-08-01T13:57:14.163Z",+ "updatedAt": "2025-08-01T13:57:14.244Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 15.792,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"attributes\":{\"target\":\"agent.react.update\",\"name\":\"update\",\"traceId\":\"0cff2691-3a45-4988-a243-8cb8c508aa25\",\"output.mime_type\":\"application/json\",\"thought\":\"I will first research key attractions and landmarks in Barcelona and then check the current weather conditions there. \",\"tool.name\":\"Wikipedia\",\"tool.parameters\":\"null\",\"openinference.span.kind\":\"AGENT\"},\"resourceAttributes\":{\"telemetry.sdk.language\":\"python\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"1.34.1\",\"service.name\":\"unknown_service\"},\"scope\":{\"name\":\"openinference.instrumentation.beeai\",\"version\":\"0.1.33\",\"attributes\":{}}}",+ "internalModel": null+ },+ {+ "id": "322299e937be4455",+ "traceId": "096fc09a30ab90d2431778f9ee2b3936",+ "startTime": "2025-08-01T13:57:11.332Z",+ "endTime": "2025-08-01T13:57:11.336Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "39d661bf29b4dbbd",+ "type": "SPAN",+ "environment": "default",+ "name": "agent.react.success-2",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-08-01T13:57:14.169Z",+ "updatedAt": "2025-08-01T13:57:14.252Z",+ "input": "[{\"text\": \"# Available functions\\nYou can only use the following functions. Always use all required parameters.\\n\\nFunction Name: Wikipedia\\nDescription: Search factual and historical information, including biography, history, politics, geography, society, culture, science, technology, people, animal species, mathematics, and other subjects.\\nInput Schema: {\\\"properties\\\": {\\\"full_text\\\": {\\\"default\\\": false, \\\"description\\\": \\\"If set to true, it will return the full text of the page instead of its short summary.\\\", \\\"title\\\": \\\"Full Text\\\", \\\"type\\\": \\\"boolean\\\"}, \\\"query\\\": {\\\"description\\\": \\\"Name of the Wikipedia page.\\\", \\\"title\\\": \\\"Query\\\", \\\"type\\\": \\\"string\\\"}}, \\\"required\\\": [\\\"query\\\"], \\\"title\\\": \\\"WikipediaToolInput\\\", \\\"type\\\": \\\"object\\\"}\\n\\nFunction Name: OpenMeteoTool\\nDescription: Retrieve current, past, or future weather forecasts for a location.\\nInput Schema: {\\\"properties\\\": {\\\"country\\\": {\\\"anyOf\\\": [{\\\"type\\\": \\\"string\\\"}, {\\\"type\\\": \\\"null\\\"}], \\\"default\\\": null, \\\"description\\\": \\\"Country name.\\\", \\\"title\\\": \\\"Country\\\"}, \\\"end_date\\\": {\\\"anyOf\\\": [{\\\"format\\\": \\\"date\\\", \\\"type\\\": \\\"string\\\"}, {\\\"type\\\": \\\"null\\\"}], \\\"default\\\": null, \\\"description\\\": \\\"End date for the weather forecast in the format YYYY-MM-DD (UTC)\\\", \\\"title\\\": \\\"End Date\\\"}, \\\"location_name\\\": {\\\"description\\\": \\\"The name of the location to retrieve weather information.\\\", \\\"title\\\": \\\"Location Name\\\", \\\"type\\\": \\\"string\\\"}, \\\"start_date\\\": {\\\"anyOf\\\": [{\\\"format\\\": \\\"date\\\", \\\"type\\\": \\\"string\\\"}, {\\\"type\\\": \\\"null\\\"}], \\\"default\\\": null, \\\"description\\\": \\\"Start date for the weather forecast in the format YYYY-MM-DD (UTC)\\\", \\\"title\\\": \\\"Start Date\\\"}, \\\"temperature_unit\\\": {\\\"default\\\": \\\"celsius\\\", \\\"description\\\": \\\"The unit to express temperature\\\", \\\"enum\\\": [\\\"celsius\\\", \\\"fahrenheit\\\"], \\\"title\\\": \\\"Temperature Unit\\\", \\\"type\\\": \\\"string\\\"}}, \\\"required\\\": [\\\"location_name\\\"], \\\"title\\\": \\\"OpenMeteoToolInput\\\", \\\"type\\\": \\\"object\\\"}\\n\\n# Communication structure\\nYou communicate only in instruction lines. The format is: \\\"Instruction: expected output\\\". You must only use these instruction lines and must not enter empty lines or anything else between instruction lines.\\nYou must skip the instruction lines Function Name, Function Input and Function Output if no function calling is required.\\n\\nMessage: User's message. You never use this instruction line.\\nThought: A single-line step-by-step plan of how to answer the user's message. You can use the available functions defined above. This instruction line must be immediately followed by Function Name if one of the available functions defined above needs to be called, or by Final Answer. Do not provide the answer here.\\nFunction Name: Name of the function. This instruction line must be immediately followed by Function Input.\\nFunction Input: Function parameters in JSON format adhering to the function's input specification ie. {\\\"arg1\\\":\\\"value1\\\", \\\"arg2\\\":\\\"value2\\\"}. Empty object is a valid parameter.\\nFunction Output: Output of the function in JSON format.\\nThought: Continue your thinking process.\\nFinal Answer: Answer the user or ask for more information or clarification. It must always be preceded by Thought.\\n\\n## Examples\\nMessage: Can you translate \\\"How are you\\\" into French?\\nThought: The user wants to translate a text into French. I can do that.\\nFinal Answer: Comment vas-tu?\\n\\n# Instructions\\nUser can only see the Final Answer, all answers must be provided there.\\nYou must always use the communication structure and instructions defined above. Do not forget that Thought must be a single-line immediately followed by either Function Name or Final Answer.\\nFunctions must be used to retrieve factual or historical information to answer the message.\\nIf the user suggests using a function that is not available, answer that the function is not available. You can suggest alternatives if appropriate.\\nWhen the message is unclear or you need more information from the user, ask in Final Answer.\\n\\n# Your capabilities\\nPrefer to use these capabilities over functions.\\n- You understand these languages: English, Spanish, French.\\n- You can translate and summarize, even long documents.\\n\\n# Notes\\n- If you don't know the answer, say that you don't know.\\n- The current time and date in ISO format might be found in the last message.\\n- When answering the user, use friendly formats for time and date.\\n- Use markdown syntax for formatting code snippets, links, JSON, tables, images, files.\\n- Sometimes, things don't go as planned. Functions may not provide useful information on the first few tries. You should always try a few different approaches before declaring the problem unsolvable.\\n- When the function doesn't give you what you were asking for, you must either use another function or a different function input.\\n - When using search engines, you try different formulations of the query, possibly even in a different language.\\n- You cannot do complex calculations, computations, or data manipulations without using functions.\\n\", \"role\": \"system\"}, {\"text\": \"Message: I'm planning a trip to Barcelona, Spain. Can you research key attractions and landmarks I should visit, and also tell me what the current weather conditions are like there?\\n\\nThis message was created at 2025-08-01T13:56:54+00:00\", \"role\": \"user\"}, {\"text\": \"Thought: I will first research key attractions and landmarks in Barcelona and then check the current weather conditions there. \\nFunction Name: Wikipedia\\nFunction Input: {\\\"query\\\": \\\"Tourism in Barcelona\\\"}\\nFunction Output: [{\\\"description\\\": \\\"Barcelona ( BAR-s\\u0259-LOH-n\\u0259; Catalan: [b\\u0259\\u027es\\u0259\\u02c8lon\\u0259] ; Spanish: [ba\\u027e\\u03b8e\\u02c8lona] ) is a city on the northeastern coast of Spain. It is the capital and largest city of the autonomous community of Catalonia, as well as the second-most populous municipality of Spain. With a population of 1.6 million within city limits, its urban area extends to numerous neighbouring municipalities within the province of Barcelona and is home to around 5.3 million people, making it the fifth most populous urban area of the European Union after Paris, the Ruhr area, Madrid and Milan. It is one of the largest metropolises on the Mediterranean Sea, located on the coast between the mouths of the rivers Llobregat and Bes\\u00f2s, bounded to the west by the Serra de Collserola mountain range.\\\\nAccording to tradition, Barcelona was founded by either the Phoenicians or the Carthaginians, who had trading posts along the Catalonian coast. In the Middle Ages, Barcelona became the capital of the County of Barcelona. After joining with the Kingdom of Aragon to form the composite monarchy of the Crown of Aragon, Barcelona, which continued to be the capital of the Principality of Catalonia, became the most important city in the Crown of Aragon and its main economic and administrative centre, only to be overtaken by Valencia, wrested from Moorish control by the Catalans, shortly before the dynastic union between the Crown of Castile and the Crown of Aragon in 1516. Barcelona became the centre of Catalan separatism, briefly becoming part of France during the 17th century Reapers' War and again in 1812 until 1814 under Napoleon. Experiencing industrialization and several workers movements during the 19th and early 20th century, it became the capital of autonomous Catalonia in 1931 and it was the epicenter of the revolution experienced by Catalonia during the Spanish Revolution of 1936, until its capture by the fascists in 1939. After the Spanish transition to democracy in the 1970s, Barcelona once again became the capital of an autonomous Catalonia.\\\\nBarcelona has a rich cultural heritage and is today an important cultural centre and a major tourist destination. Particularly renowned are the architectural works of Antoni Gaud\\u00ed and Llu\\u00eds Dom\\u00e8nech i Montaner, which have been designated UNESCO World Heritage Sites. The city is home to two of the most prestigious universities in Spain: the University of Barcelona and Pompeu Fabra University. The headquarters of the Union for the Mediterranean are located in Barcelona. The city is known for hosting the 1992 Summer Olympics as well as world-class conferences and expositions. In addition, many international sport tournaments have been played here.\\\\nBarcelona is a major cultural, economic, and financial centre in southwestern Europe, as well as the main biotech hub in Spain. As a leading world city, Barcelona's influence in global socio-economic affairs qualifies it for global city status (Beta +).\\\\nBarcelona is a transport hub, with the Port of Barcelona being one of Europe's principal seaports and busiest European passenger port, an international airport, Barcelona\\u2013El Prat Airport, which handles over 50-million passengers per year, an extensive motorway network, and a high-speed rail line with a link to France and the rest of Europe.\\\", \\\"title\\\": \\\"Barcelona\\\", \\\"url\\\": \\\"https://en.wikipedia.org/wiki/Barcelona\\\"}]\\n\", \"role\": \"assistant\"}, {\"text\": \"Thought: I found information about Barcelona, including its rich cultural heritage and key attractions like the architectural works of Antoni Gaud\\u00ed. Now, I will check the current weather conditions in Barcelona. \\nFunction Name: OpenMeteoTool\\nFunction Input: {\\\"country\\\": \\\"Spain\\\", \\\"location_name\\\": \\\"Barcelona\\\"}\\nFunction Output: {\\\"latitude\\\": 41.4375, \\\"longitude\\\": 2.1875, \\\"generationtime_ms\\\": 0.0553131103515625, \\\"utc_offset_seconds\\\": 0, \\\"timezone\\\": \\\"GMT\\\", \\\"timezone_abbreviation\\\": \\\"GMT\\\", \\\"elevation\\\": 44.0, \\\"current_units\\\": {\\\"time\\\": \\\"iso8601\\\", \\\"interval\\\": \\\"seconds\\\", \\\"temperature_2m\\\": \\\"\\u00b0C\\\", \\\"rain\\\": \\\"mm\\\", \\\"relative_humidity_2m\\\": \\\"%\\\", \\\"wind_speed_10m\\\": \\\"km/h\\\"}, \\\"current\\\": {\\\"time\\\": \\\"2025-08-01T13:45\\\", \\\"interval\\\": 900, \\\"temperature_2m\\\": 29.0, \\\"rain\\\": 0.0, \\\"relative_humidity_2m\\\": 48, \\\"wind_speed_10m\\\": 18.8}, \\\"daily_units\\\": {\\\"time\\\": \\\"iso8601\\\", \\\"temperature_2m_max\\\": \\\"\\u00b0C\\\", \\\"temperature_2m_min\\\": \\\"\\u00b0C\\\", \\\"rain_sum\\\": \\\"mm\\\"}, \\\"daily\\\": {\\\"time\\\": [\\\"2025-08-01\\\"], \\\"temperature_2m_max\\\": [29.0], \\\"temperature_2m_min\\\": [20.6], \\\"rain_sum\\\": [0.0]}}\\n\", \"role\": \"assistant\"}, {\"text\": \"Barcelona is a vibrant city known for its rich cultural heritage and stunning architecture, particularly the works of Antoni Gaud\\u00ed. Here are some key attractions and landmarks you should consider visiting:\\n\\n1. **Sagrada Fam\\u00edlia** - An iconic basilica designed by Gaud\\u00ed, still under construction.\\n2. **Park G\\u00fcell** - A colorful park also designed by Gaud\\u00ed, filled with artistic structures and beautiful gardens.\\n3. **La Rambla** - A famous street in the heart of the city ideal for walking, dining, and shopping.\\n4. **Gothic Quarter (Barri G\\u00f2tic)** - The historic center of Barcelona with medieval architecture and narrow streets.\\n5. **Casa Batll\\u00f3** - Another masterpiece by Gaud\\u00ed, known for its unique design and vibrant colors.\\n6. **Casa Mil\\u00e0 (La Pedrera)** - A modernist building with a wavy stone facade, also designed by Gaud\\u00ed.\\n7. **Montju\\u00efc** - A hill offering stunning views of the city, home to several attractions including the Montju\\u00efc Castle and the Magic Fountain.\\n\\nRegarding the current weather, it is 29\\u00b0C with no rain, and the humidity is at 48%. It's a great time to explore the city!\", \"role\": \"assistant\"}]",+ "output": "{\"role\": \"assistant\", \"content\": [{\"type\": \"text\", \"text\": \"Barcelona is a vibrant city known for its rich cultural heritage and stunning architecture, particularly the works of Antoni Gaud\\u00ed. Here are some key attractions and landmarks you should consider visiting:\\n\\n1. **Sagrada Fam\\u00edlia** - An iconic basilica designed by Gaud\\u00ed, still under construction.\\n2. **Park G\\u00fcell** - A colorful park also designed by Gaud\\u00ed, filled with artistic structures and beautiful gardens.\\n3. **La Rambla** - A famous street in the heart of the city ideal for walking, dining, and shopping.\\n4. **Gothic Quarter (Barri G\\u00f2tic)** - The historic center of Barcelona with medieval architecture and narrow streets.\\n5. **Casa Batll\\u00f3** - Another masterpiece by Gaud\\u00ed, known for its unique design and vibrant colors.\\n6. **Casa Mil\\u00e0 (La Pedrera)** - A modernist building with a wavy stone facade, also designed by Gaud\\u00ed.\\n7. **Montju\\u00efc** - A hill offering stunning views of the city, home to several attractions including the Montju\\u00efc Castle and the Magic Fountain.\\n\\nRegarding the current weather, it is 29\\u00b0C with no rain, and the humidity is at 48%. It's a great time to explore the city!\"}]}",+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 0.004,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"attributes\":{\"target\":\"agent.react.success\",\"name\":\"success\",\"traceId\":\"0cff2691-3a45-4988-a243-8cb8c508aa25\",\"iteration\":\"3\",\"input.mime_type\":\"application/json\",\"input.value\":\"[{\\\"text\\\": \\\"# Available functions\\\\nYou can only use the following functions. Always use all required parameters.\\\\n\\\\nFunction Name: Wikipedia\\\\nDescription: Search factual and historical information, including biography, history, politics, geography, society, culture, science, technology, people, animal species, mathematics, and other subjects.\\\\nInput Schema: {\\\\\\\"properties\\\\\\\": {\\\\\\\"full_text\\\\\\\": {\\\\\\\"default\\\\\\\": false, \\\\\\\"description\\\\\\\": \\\\\\\"If set to true, it will return the full text of the page instead of its short summary.\\\\\\\", \\\\\\\"title\\\\\\\": \\\\\\\"Full Text\\\\\\\", \\\\\\\"type\\\\\\\": \\\\\\\"boolean\\\\\\\"}, \\\\\\\"query\\\\\\\": {\\\\\\\"description\\\\\\\": \\\\\\\"Name of the Wikipedia page.\\\\\\\", \\\\\\\"title\\\\\\\": \\\\\\\"Query\\\\\\\", \\\\\\\"type\\\\\\\": \\\\\\\"string\\\\\\\"}}, \\\\\\\"required\\\\\\\": [\\\\\\\"query\\\\\\\"], \\\\\\\"title\\\\\\\": \\\\\\\"WikipediaToolInput\\\\\\\", \\\\\\\"type\\\\\\\": \\\\\\\"object\\\\\\\"}\\\\n\\\\nFunction Name: OpenMeteoTool\\\\nDescription: Retrieve current, past, or future weather forecasts for a location.\\\\nInput Schema: {\\\\\\\"properties\\\\\\\": {\\\\\\\"country\\\\\\\": {\\\\\\\"anyOf\\\\\\\": [{\\\\\\\"type\\\\\\\": \\\\\\\"string\\\\\\\"}, {\\\\\\\"type\\\\\\\": \\\\\\\"null\\\\\\\"}], \\\\\\\"default\\\\\\\": null, \\\\\\\"description\\\\\\\": \\\\\\\"Country name.\\\\\\\", \\\\\\\"title\\\\\\\": \\\\\\\"Country\\\\\\\"}, \\\\\\\"end_date\\\\\\\": {\\\\\\\"anyOf\\\\\\\": [{\\\\\\\"format\\\\\\\": \\\\\\\"date\\\\\\\", \\\\\\\"type\\\\\\\": \\\\\\\"string\\\\\\\"}, {\\\\\\\"type\\\\\\\": \\\\\\\"null\\\\\\\"}], \\\\\\\"default\\\\\\\": null, \\\\\\\"description\\\\\\\": \\\\\\\"End date for the weather forecast in the format YYYY-MM-DD (UTC)\\\\\\\", \\\\\\\"title\\\\\\\": \\\\\\\"End Date\\\\\\\"}, \\\\\\\"location_name\\\\\\\": {\\\\\\\"description\\\\\\\": \\\\\\\"The name of the location to retrieve weather information.\\\\\\\", \\\\\\\"title\\\\\\\": \\\\\\\"Location Name\\\\\\\", \\\\\\\"type\\\\\\\": \\\\\\\"string\\\\\\\"}, \\\\\\\"start_date\\\\\\\": {\\\\\\\"anyOf\\\\\\\": [{\\\\\\\"format\\\\\\\": \\\\\\\"date\\\\\\\", \\\\\\\"type\\\\\\\": \\\\\\\"string\\\\\\\"}, {\\\\\\\"type\\\\\\\": \\\\\\\"null\\\\\\\"}], \\\\\\\"default\\\\\\\": null, \\\\\\\"description\\\\\\\": \\\\\\\"Start date for the weather forecast in the format YYYY-MM-DD (UTC)\\\\\\\", \\\\\\\"title\\\\\\\": \\\\\\\"Start Date\\\\\\\"}, \\\\\\\"temperature_unit\\\\\\\": {\\\\\\\"default\\\\\\\": \\\\\\\"celsius\\\\\\\", \\\\\\\"description\\\\\\\": \\\\\\\"The unit to express temperature\\\\\\\", \\\\\\\"enum\\\\\\\": [\\\\\\\"celsius\\\\\\\", \\\\\\\"fahrenheit\\\\\\\"], \\\\\\\"title\\\\\\\": \\\\\\\"Temperature Unit\\\\\\\", \\\\\\\"type\\\\\\\": \\\\\\\"string\\\\\\\"}}, \\\\\\\"required\\\\\\\": [\\\\\\\"location_name\\\\\\\"], \\\\\\\"title\\\\\\\": \\\\\\\"OpenMeteoToolInput\\\\\\\", \\\\\\\"type\\\\\\\": \\\\\\\"object\\\\\\\"}\\\\n\\\\n# Communication structure\\\\nYou communicate only in instruction lines. The format is: \\\\\\\"Instruction: expected output\\\\\\\". You must only use these instruction lines and must not enter empty lines or anything else between instruction lines.\\\\nYou must skip the instruction lines Function Name, Function Input and Function Output if no function calling is required.\\\\n\\\\nMessage: User's message. You never use this instruction line.\\\\nThought: A single-line step-by-step plan of how to answer the user's message. You can use the available functions defined above. This instruction line must be immediately followed by Function Name if one of the available functions defined above needs to be called, or by Final Answer. Do not provide the answer here.\\\\nFunction Name: Name of the function. This instruction line must be immediately followed by Function Input.\\\\nFunction Input: Function parameters in JSON format adhering to the function's input specification ie. {\\\\\\\"arg1\\\\\\\":\\\\\\\"value1\\\\\\\", \\\\\\\"arg2\\\\\\\":\\\\\\\"value2\\\\\\\"}. Empty object is a valid parameter.\\\\nFunction Output: Output of the function in JSON format.\\\\nThought: Continue your thinking process.\\\\nFinal Answer: Answer the user or ask for more information or clarification. It must always be preceded by Thought.\\\\n\\\\n## Examples\\\\nMessage: Can you translate \\\\\\\"How are you\\\\\\\" into French?\\\\nThought: The user wants to translate a text into French. I can do that.\\\\nFinal Answer: Comment vas-tu?\\\\n\\\\n# Instructions\\\\nUser can only see the Final Answer, all answers must be provided there.\\\\nYou must always use the communication structure and instructions defined above. Do not forget that Thought must be a single-line immediately followed by either Function Name or Final Answer.\\\\nFunctions must be used to retrieve factual or historical information to answer the message.\\\\nIf the user suggests using a function that is not available, answer that the function is not available. You can suggest alternatives if appropriate.\\\\nWhen the message is unclear or you need more information from the user, ask in Final Answer.\\\\n\\\\n# Your capabilities\\\\nPrefer to use these capabilities over functions.\\\\n- You understand these languages: English, Spanish, French.\\\\n- You can translate and summarize, even long documents.\\\\n\\\\n# Notes\\\\n- If you don't know the answer, say that you don't know.\\\\n- The current time and date in ISO format might be found in the last message.\\\\n- When answering the user, use friendly formats for time and date.\\\\n- Use markdown syntax for formatting code snippets, links, JSON, tables, images, files.\\\\n- Sometimes, things don't go as planned. Functions may not provide useful information on the first few tries. You should always try a few different approaches before declaring the problem unsolvable.\\\\n- When the function doesn't give you what you were asking for, you must either use another function or a different function input.\\\\n - When using search engines, you try different formulations of the query, possibly even in a different language.\\\\n- You cannot do complex calculations, computations, or data manipulations without using functions.\\\\n\\\", \\\"role\\\": \\\"system\\\"}, {\\\"text\\\": \\\"Message: I'm planning a trip to Barcelona, Spain. Can you research key attractions and landmarks I should visit, and also tell me what the current weather conditions are like there?\\\\n\\\\nThis message was created at 2025-08-01T13:56:54+00:00\\\", \\\"role\\\": \\\"user\\\"}, {\\\"text\\\": \\\"Thought: I will first research key attractions and landmarks in Barcelona and then check the current weather conditions there. \\\\nFunction Name: Wikipedia\\\\nFunction Input: {\\\\\\\"query\\\\\\\": \\\\\\\"Tourism in Barcelona\\\\\\\"}\\\\nFunction Output: [{\\\\\\\"description\\\\\\\": \\\\\\\"Barcelona ( BAR-s\\\\u0259-LOH-n\\\\u0259; Catalan: [b\\\\u0259\\\\u027es\\\\u0259\\\\u02c8lon\\\\u0259] ; Spanish: [ba\\\\u027e\\\\u03b8e\\\\u02c8lona] ) is a city on the northeastern coast of Spain. It is the capital and largest city of the autonomous community of Catalonia, as well as the second-most populous municipality of Spain. With a population of 1.6 million within city limits, its urban area extends to numerous neighbouring municipalities within the province of Barcelona and is home to around 5.3 million people, making it the fifth most populous urban area of the European Union after Paris, the Ruhr area, Madrid and Milan. It is one of the largest metropolises on the Mediterranean Sea, located on the coast between the mouths of the rivers Llobregat and Bes\\\\u00f2s, bounded to the west by the Serra de Collserola mountain range.\\\\\\\\nAccording to tradition, Barcelona was founded by either the Phoenicians or the Carthaginians, who had trading posts along the Catalonian coast. In the Middle Ages, Barcelona became the capital of the County of Barcelona. After joining with the Kingdom of Aragon to form the composite monarchy of the Crown of Aragon, Barcelona, which continued to be the capital of the Principality of Catalonia, became the most important city in the Crown of Aragon and its main economic and administrative centre, only to be overtaken by Valencia, wrested from Moorish control by the Catalans, shortly before the dynastic union between the Crown of Castile and the Crown of Aragon in 1516. Barcelona became the centre of Catalan separatism, briefly becoming part of France during the 17th century Reapers' War and again in 1812 until 1814 under Napoleon. Experiencing industrialization and several workers movements during the 19th and early 20th century, it became the capital of autonomous Catalonia in 1931 and it was the epicenter of the revolution experienced by Catalonia during the Spanish Revolution of 1936, until its capture by the fascists in 1939. After the Spanish transition to democracy in the 1970s, Barcelona once again became the capital of an autonomous Catalonia.\\\\\\\\nBarcelona has a rich cultural heritage and is today an important cultural centre and a major tourist destination. Particularly renowned are the architectural works of Antoni Gaud\\\\u00ed and Llu\\\\u00eds Dom\\\\u00e8nech i Montaner, which have been designated UNESCO World Heritage Sites. The city is home to two of the most prestigious universities in Spain: the University of Barcelona and Pompeu Fabra University. The headquarters of the Union for the Mediterranean are located in Barcelona. The city is known for hosting the 1992 Summer Olympics as well as world-class conferences and expositions. In addition, many international sport tournaments have been played here.\\\\\\\\nBarcelona is a major cultural, economic, and financial centre in southwestern Europe, as well as the main biotech hub in Spain. As a leading world city, Barcelona's influence in global socio-economic affairs qualifies it for global city status (Beta +).\\\\\\\\nBarcelona is a transport hub, with the Port of Barcelona being one of Europe's principal seaports and busiest European passenger port, an international airport, Barcelona\\\\u2013El Prat Airport, which handles over 50-million passengers per year, an extensive motorway network, and a high-speed rail line with a link to France and the rest of Europe.\\\\\\\", \\\\\\\"title\\\\\\\": \\\\\\\"Barcelona\\\\\\\", \\\\\\\"url\\\\\\\": \\\\\\\"https://en.wikipedia.org/wiki/Barcelona\\\\\\\"}]\\\\n\\\", \\\"role\\\": \\\"assistant\\\"}, {\\\"text\\\": \\\"Thought: I found information about Barcelona, including its rich cultural heritage and key attractions like the architectural works of Antoni Gaud\\\\u00ed. Now, I will check the current weather conditions in Barcelona. \\\\nFunction Name: OpenMeteoTool\\\\nFunction Input: {\\\\\\\"country\\\\\\\": \\\\\\\"Spain\\\\\\\", \\\\\\\"location_name\\\\\\\": \\\\\\\"Barcelona\\\\\\\"}\\\\nFunction Output: {\\\\\\\"latitude\\\\\\\": 41.4375, \\\\\\\"longitude\\\\\\\": 2.1875, \\\\\\\"generationtime_ms\\\\\\\": 0.0553131103515625, \\\\\\\"utc_offset_seconds\\\\\\\": 0, \\\\\\\"timezone\\\\\\\": \\\\\\\"GMT\\\\\\\", \\\\\\\"timezone_abbreviation\\\\\\\": \\\\\\\"GMT\\\\\\\", \\\\\\\"elevation\\\\\\\": 44.0, \\\\\\\"current_units\\\\\\\": {\\\\\\\"time\\\\\\\": \\\\\\\"iso8601\\\\\\\", \\\\\\\"interval\\\\\\\": \\\\\\\"seconds\\\\\\\", \\\\\\\"temperature_2m\\\\\\\": \\\\\\\"\\\\u00b0C\\\\\\\", \\\\\\\"rain\\\\\\\": \\\\\\\"mm\\\\\\\", \\\\\\\"relative_humidity_2m\\\\\\\": \\\\\\\"%\\\\\\\", \\\\\\\"wind_speed_10m\\\\\\\": \\\\\\\"km/h\\\\\\\"}, \\\\\\\"current\\\\\\\": {\\\\\\\"time\\\\\\\": \\\\\\\"2025-08-01T13:45\\\\\\\", \\\\\\\"interval\\\\\\\": 900, \\\\\\\"temperature_2m\\\\\\\": 29.0, \\\\\\\"rain\\\\\\\": 0.0, \\\\\\\"relative_humidity_2m\\\\\\\": 48, \\\\\\\"wind_speed_10m\\\\\\\": 18.8}, \\\\\\\"daily_units\\\\\\\": {\\\\\\\"time\\\\\\\": \\\\\\\"iso8601\\\\\\\", \\\\\\\"temperature_2m_max\\\\\\\": \\\\\\\"\\\\u00b0C\\\\\\\", \\\\\\\"temperature_2m_min\\\\\\\": \\\\\\\"\\\\u00b0C\\\\\\\", \\\\\\\"rain_sum\\\\\\\": \\\\\\\"mm\\\\\\\"}, \\\\\\\"daily\\\\\\\": {\\\\\\\"time\\\\\\\": [\\\\\\\"2025-08-01\\\\\\\"], \\\\\\\"temperature_2m_max\\\\\\\": [29.0], \\\\\\\"temperature_2m_min\\\\\\\": [20.6], \\\\\\\"rain_sum\\\\\\\": [0.0]}}\\\\n\\\", \\\"role\\\": \\\"assistant\\\"}, {\\\"text\\\": \\\"Barcelona is a vibrant city known for its rich cultural heritage and stunning architecture, particularly the works of Antoni Gaud\\\\u00ed. Here are some key attractions and landmarks you should consider visiting:\\\\n\\\\n1. **Sagrada Fam\\\\u00edlia** - An iconic basilica designed by Gaud\\\\u00ed, still under construction.\\\\n2. **Park G\\\\u00fcell** - A colorful park also designed by Gaud\\\\u00ed, filled with artistic structures and beautiful gardens.\\\\n3. **La Rambla** - A famous street in the heart of the city ideal for walking, dining, and shopping.\\\\n4. **Gothic Quarter (Barri G\\\\u00f2tic)** - The historic center of Barcelona with medieval architecture and narrow streets.\\\\n5. **Casa Batll\\\\u00f3** - Another masterpiece by Gaud\\\\u00ed, known for its unique design and vibrant colors.\\\\n6. **Casa Mil\\\\u00e0 (La Pedrera)** - A modernist building with a wavy stone facade, also designed by Gaud\\\\u00ed.\\\\n7. **Montju\\\\u00efc** - A hill offering stunning views of the city, home to several attractions including the Montju\\\\u00efc Castle and the Magic Fountain.\\\\n\\\\nRegarding the current weather, it is 29\\\\u00b0C with no rain, and the humidity is at 48%. It's a great time to explore the city!\\\", \\\"role\\\": \\\"assistant\\\"}]\",\"output.mime_type\":\"application/json\",\"output.value\":\"{\\\"role\\\": \\\"assistant\\\", \\\"content\\\": [{\\\"type\\\": \\\"text\\\", \\\"text\\\": \\\"Barcelona is a vibrant city known for its rich cultural heritage and stunning architecture, particularly the works of Antoni Gaud\\\\u00ed. Here are some key attractions and landmarks you should consider visiting:\\\\n\\\\n1. **Sagrada Fam\\\\u00edlia** - An iconic basilica designed by Gaud\\\\u00ed, still under construction.\\\\n2. **Park G\\\\u00fcell** - A colorful park also designed by Gaud\\\\u00ed, filled with artistic structures and beautiful gardens.\\\\n3. **La Rambla** - A famous street in the heart of the city ideal for walking, dining, and shopping.\\\\n4. **Gothic Quarter (Barri G\\\\u00f2tic)** - The historic center of Barcelona with medieval architecture and narrow streets.\\\\n5. **Casa Batll\\\\u00f3** - Another masterpiece by Gaud\\\\u00ed, known for its unique design and vibrant colors.\\\\n6. **Casa Mil\\\\u00e0 (La Pedrera)** - A modernist building with a wavy stone facade, also designed by Gaud\\\\u00ed.\\\\n7. **Montju\\\\u00efc** - A hill offering stunning views of the city, home to several attractions including the Montju\\\\u00efc Castle and the Magic Fountain.\\\\n\\\\nRegarding the current weather, it is 29\\\\u00b0C with no rain, and the humidity is at 48%. It's a great time to explore the city!\\\"}]}\",\"openinference.span.kind\":\"AGENT\"},\"resourceAttributes\":{\"telemetry.sdk.language\":\"python\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"1.34.1\",\"service.name\":\"unknown_service\"},\"scope\":{\"name\":\"openinference.instrumentation.beeai\",\"version\":\"0.1.33\",\"attributes\":{}}}",+ "internalModel": null+ },+ {+ "id": "376ecc80b166b4a5",+ "traceId": "096fc09a30ab90d2431778f9ee2b3936",+ "startTime": "2025-08-01T13:56:57.468Z",+ "endTime": "2025-08-01T13:57:11.334Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "ff8b04dfe1f3e047",+ "type": "SPAN",+ "environment": "default",+ "name": "tool.search.wikipedia.finish-12",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-08-01T13:57:14.162Z",+ "updatedAt": "2025-08-01T13:57:14.242Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 13.866,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"attributes\":{\"target\":\"tool.search.wikipedia.finish\",\"name\":\"finish\",\"traceId\":\"0cff2691-3a45-4988-a243-8cb8c508aa25\",\"openinference.span.kind\":\"TOOL\"},\"resourceAttributes\":{\"telemetry.sdk.language\":\"python\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"1.34.1\",\"service.name\":\"unknown_service\"},\"scope\":{\"name\":\"openinference.instrumentation.beeai\",\"version\":\"0.1.33\",\"attributes\":{}}}",+ "internalModel": null+ },+ {+ "id": "39d661bf29b4dbbd",+ "traceId": "096fc09a30ab90d2431778f9ee2b3936",+ "startTime": "2025-08-01T13:57:03.886Z",+ "endTime": "2025-08-01T13:57:11.336Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "cb4886242bf214b8",+ "type": "SPAN",+ "environment": "default",+ "name": "iteration-3",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-08-01T13:57:14.164Z",+ "updatedAt": "2025-08-01T13:57:14.233Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 7.45,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"attributes\":{\"target\":\"groupId\",\"name\":\"iteration-3\",\"traceId\":\"0cff2691-3a45-4988-a243-8cb8c508aa25\",\"openinference.span.kind\":\"CHAIN\"},\"resourceAttributes\":{\"telemetry.sdk.language\":\"python\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"1.34.1\",\"service.name\":\"unknown_service\"},\"scope\":{\"name\":\"openinference.instrumentation.beeai\",\"version\":\"0.1.33\",\"attributes\":{}}}",+ "internalModel": null+ },+ {+ "id": "477d350ab1c6548d",+ "traceId": "096fc09a30ab90d2431778f9ee2b3936",+ "startTime": "2025-08-01T13:57:03.886Z",+ "endTime": "2025-08-01T13:57:11.334Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "0eb76c10a47e9086",+ "type": "SPAN",+ "environment": "default",+ "name": "agent.react.update-18",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-08-01T13:57:14.163Z",+ "updatedAt": "2025-08-01T13:57:14.211Z",+ "input": null,+ "output": "{\"latitude\": 41.4375, \"longitude\": 2.1875, \"generationtime_ms\": 0.0553131103515625, \"utc_offset_seconds\": 0, \"timezone\": \"GMT\", \"timezone_abbreviation\": \"GMT\", \"elevation\": 44.0, \"current_units\": {\"time\": \"iso8601\", \"interval\": \"seconds\", \"temperature_2m\": \"°C\", \"rain\": \"mm\", \"relative_humidity_2m\": \"%\", \"wind_speed_10m\": \"km/h\"}, \"current\": {\"time\": \"2025-08-01T13:45\", \"interval\": 900, \"temperature_2m\": 29.0, \"rain\": 0.0, \"relative_humidity_2m\": 48, \"wind_speed_10m\": 18.8}, \"daily_units\": {\"time\": \"iso8601\", \"temperature_2m_max\": \"°C\", \"temperature_2m_min\": \"°C\", \"rain_sum\": \"mm\"}, \"daily\": {\"time\": [\"2025-08-01\"], \"temperature_2m_max\": [29.0], \"temperature_2m_min\": [20.6], \"rain_sum\": [0.0]}}",+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 7.448,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"attributes\":{\"target\":\"agent.react.update\",\"name\":\"update\",\"traceId\":\"0cff2691-3a45-4988-a243-8cb8c508aa25\",\"output.value\":\"{\\\"latitude\\\": 41.4375, \\\"longitude\\\": 2.1875, \\\"generationtime_ms\\\": 0.0553131103515625, \\\"utc_offset_seconds\\\": 0, \\\"timezone\\\": \\\"GMT\\\", \\\"timezone_abbreviation\\\": \\\"GMT\\\", \\\"elevation\\\": 44.0, \\\"current_units\\\": {\\\"time\\\": \\\"iso8601\\\", \\\"interval\\\": \\\"seconds\\\", \\\"temperature_2m\\\": \\\"°C\\\", \\\"rain\\\": \\\"mm\\\", \\\"relative_humidity_2m\\\": \\\"%\\\", \\\"wind_speed_10m\\\": \\\"km/h\\\"}, \\\"current\\\": {\\\"time\\\": \\\"2025-08-01T13:45\\\", \\\"interval\\\": 900, \\\"temperature_2m\\\": 29.0, \\\"rain\\\": 0.0, \\\"relative_humidity_2m\\\": 48, \\\"wind_speed_10m\\\": 18.8}, \\\"daily_units\\\": {\\\"time\\\": \\\"iso8601\\\", \\\"temperature_2m_max\\\": \\\"°C\\\", \\\"temperature_2m_min\\\": \\\"°C\\\", \\\"rain_sum\\\": \\\"mm\\\"}, \\\"daily\\\": {\\\"time\\\": [\\\"2025-08-01\\\"], \\\"temperature_2m_max\\\": [29.0], \\\"temperature_2m_min\\\": [20.6], \\\"rain_sum\\\": [0.0]}}\",\"output.mime_type\":\"application/json\",\"thought\":\"I found information about Barcelona, including its rich cultural heritage and key attractions like the architectural works of Antoni GaudÃ. Now, I will check the current weather conditions in Barcelona. \",\"tool.name\":\"OpenMeteoTool\",\"tool.parameters\":\"{\\\"location_name\\\": \\\"Barcelona\\\", \\\"country\\\": \\\"Spain\\\"}\",\"openinference.span.kind\":\"AGENT\"},\"resourceAttributes\":{\"telemetry.sdk.language\":\"python\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"1.34.1\",\"service.name\":\"unknown_service\"},\"scope\":{\"name\":\"openinference.instrumentation.beeai\",\"version\":\"0.1.33\",\"attributes\":{}}}",+ "internalModel": null+ },+ {+ "id": "49b16d9910843ef4",+ "traceId": "096fc09a30ab90d2431778f9ee2b3936",+ "startTime": "2025-08-01T13:56:57.468Z",+ "endTime": "2025-08-01T13:57:11.334Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "ff8b04dfe1f3e047",+ "type": "SPAN",+ "environment": "default",+ "name": "tool.search.wikipedia.success-12",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-08-01T13:57:14.161Z",+ "updatedAt": "2025-08-01T13:57:14.210Z",+ "input": null,+ "output": "[{\"description\": \"Barcelona ( BAR-sÉ™-LOH-nÉ™; Catalan: [bəɾsəˈlonÉ™] ; Spanish: [baɾθeˈlona] ) is a city on the northeastern coast of Spain. It is the capital and largest city of the autonomous community of Catalonia, as well as the second-most populous municipality of Spain. With a population of 1.6 million within city limits, its urban area extends to numerous neighbouring municipalities within the province of Barcelona and is home to around 5.3 million people, making it the fifth most populous urban area of the European Union after Paris, the Ruhr area, Madrid and Milan. It is one of the largest metropolises on the Mediterranean Sea, located on the coast between the mouths of the rivers Llobregat and Besòs, bounded to the west by the Serra de Collserola mountain range.\\nAccording to tradition, Barcelona was founded by either the Phoenicians or the Carthaginians, who had trading posts along the Catalonian coast. In the Middle Ages, Barcelona became the capital of the County of Barcelona. After joining with the Kingdom of Aragon to form the composite monarchy of the Crown of Aragon, Barcelona, which continued to be the capital of the Principality of Catalonia, became the most important city in the Crown of Aragon and its main economic and administrative centre, only to be overtaken by Valencia, wrested from Moorish control by the Catalans, shortly before the dynastic union between the Crown of Castile and the Crown of Aragon in 1516. Barcelona became the centre of Catalan separatism, briefly becoming part of France during the 17th century Reapers' War and again in 1812 until 1814 under Napoleon. Experiencing industrialization and several workers movements during the 19th and early 20th century, it became the capital of autonomous Catalonia in 1931 and it was the epicenter of the revolution experienced by Catalonia during the Spanish Revolution of 1936, until its capture by the fascists in 1939. After the Spanish transition to democracy in the 1970s, Barcelona once again became the capital of an autonomous Catalonia.\\nBarcelona has a rich cultural heritage and is today an important cultural centre and a major tourist destination. Particularly renowned are the architectural works of Antoni Gaudà and LluÃs Domènech i Montaner, which have been designated UNESCO World Heritage Sites. The city is home to two of the most prestigious universities in Spain: the University of Barcelona and Pompeu Fabra University. The headquarters of the Union for the Mediterranean are located in Barcelona. The city is known for hosting the 1992 Summer Olympics as well as world-class conferences and expositions. In addition, many international sport tournaments have been played here.\\nBarcelona is a major cultural, economic, and financial centre in southwestern Europe, as well as the main biotech hub in Spain. As a leading world city, Barcelona's influence in global socio-economic affairs qualifies it for global city status (Beta +).\\nBarcelona is a transport hub, with the Port of Barcelona being one of Europe's principal seaports and busiest European passenger port, an international airport, Barcelona–El Prat Airport, which handles over 50-million passengers per year, an extensive motorway network, and a high-speed rail line with a link to France and the rest of Europe.\", \"title\": \"Barcelona\", \"url\": \"https://en.wikipedia.org/wiki/Barcelona\"}]",+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 13.866,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"attributes\":{\"target\":\"tool.search.wikipedia.success\",\"name\":\"success\",\"traceId\":\"0cff2691-3a45-4988-a243-8cb8c508aa25\",\"output.value\":\"[{\\\"description\\\": \\\"Barcelona ( BAR-sÉ™-LOH-nÉ™; Catalan: [bəɾsəˈlonÉ™] ; Spanish: [baɾθeˈlona] ) is a city on the northeastern coast of Spain. It is the capital and largest city of the autonomous community of Catalonia, as well as the second-most populous municipality of Spain. With a population of 1.6 million within city limits, its urban area extends to numerous neighbouring municipalities within the province of Barcelona and is home to around 5.3 million people, making it the fifth most populous urban area of the European Union after Paris, the Ruhr area, Madrid and Milan. It is one of the largest metropolises on the Mediterranean Sea, located on the coast between the mouths of the rivers Llobregat and Besòs, bounded to the west by the Serra de Collserola mountain range.\\\\nAccording to tradition, Barcelona was founded by either the Phoenicians or the Carthaginians, who had trading posts along the Catalonian coast. In the Middle Ages, Barcelona became the capital of the County of Barcelona. After joining with the Kingdom of Aragon to form the composite monarchy of the Crown of Aragon, Barcelona, which continued to be the capital of the Principality of Catalonia, became the most important city in the Crown of Aragon and its main economic and administrative centre, only to be overtaken by Valencia, wrested from Moorish control by the Catalans, shortly before the dynastic union between the Crown of Castile and the Crown of Aragon in 1516. Barcelona became the centre of Catalan separatism, briefly becoming part of France during the 17th century Reapers' War and again in 1812 until 1814 under Napoleon. Experiencing industrialization and several workers movements during the 19th and early 20th century, it became the capital of autonomous Catalonia in 1931 and it was the epicenter of the revolution experienced by Catalonia during the Spanish Revolution of 1936, until its capture by the fascists in 1939. After the Spanish transition to democracy in the 1970s, Barcelona once again became the capital of an autonomous Catalonia.\\\\nBarcelona has a rich cultural heritage and is today an important cultural centre and a major tourist destination. Particularly renowned are the architectural works of Antoni Gaudà and LluÃs Domènech i Montaner, which have been designated UNESCO World Heritage Sites. The city is home to two of the most prestigious universities in Spain: the University of Barcelona and Pompeu Fabra University. The headquarters of the Union for the Mediterranean are located in Barcelona. The city is known for hosting the 1992 Summer Olympics as well as world-class conferences and expositions. In addition, many international sport tournaments have been played here.\\\\nBarcelona is a major cultural, economic, and financial centre in southwestern Europe, as well as the main biotech hub in Spain. As a leading world city, Barcelona's influence in global socio-economic affairs qualifies it for global city status (Beta +).\\\\nBarcelona is a transport hub, with the Port of Barcelona being one of Europe's principal seaports and busiest European passenger port, an international airport, Barcelona–El Prat Airport, which handles over 50-million passengers per year, an extensive motorway network, and a high-speed rail line with a link to France and the rest of Europe.\\\", \\\"title\\\": \\\"Barcelona\\\", \\\"url\\\": \\\"https://en.wikipedia.org/wiki/Barcelona\\\"}]\",\"tool.parameters\":\"{\\\"query\\\":\\\"Tourism in Barcelona\\\",\\\"full_text\\\":false}\",\"openinference.span.kind\":\"TOOL\"},\"resourceAttributes\":{\"telemetry.sdk.language\":\"python\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"1.34.1\",\"service.name\":\"unknown_service\"},\"scope\":{\"name\":\"openinference.instrumentation.beeai\",\"version\":\"0.1.33\",\"attributes\":{}}}",+ "internalModel": null+ },+ {+ "id": "4ab39fcf35639b0c",+ "traceId": "096fc09a30ab90d2431778f9ee2b3936",+ "startTime": "2025-08-01T13:56:57.470Z",+ "endTime": "2025-08-01T13:57:11.334Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "c48e7d031a4cb886",+ "type": "SPAN",+ "environment": "default",+ "name": "agent.react.update-14",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-08-01T13:57:14.162Z",+ "updatedAt": "2025-08-01T13:57:14.242Z",+ "input": null,+ "output": "[{\"description\": \"Barcelona ( BAR-sÉ™-LOH-nÉ™; Catalan: [bəɾsəˈlonÉ™] ; Spanish: [baɾθeˈlona] ) is a city on the northeastern coast of Spain. It is the capital and largest city of the autonomous community of Catalonia, as well as the second-most populous municipality of Spain. With a population of 1.6 million within city limits, its urban area extends to numerous neighbouring municipalities within the province of Barcelona and is home to around 5.3 million people, making it the fifth most populous urban area of the European Union after Paris, the Ruhr area, Madrid and Milan. It is one of the largest metropolises on the Mediterranean Sea, located on the coast between the mouths of the rivers Llobregat and Besòs, bounded to the west by the Serra de Collserola mountain range.\\nAccording to tradition, Barcelona was founded by either the Phoenicians or the Carthaginians, who had trading posts along the Catalonian coast. In the Middle Ages, Barcelona became the capital of the County of Barcelona. After joining with the Kingdom of Aragon to form the composite monarchy of the Crown of Aragon, Barcelona, which continued to be the capital of the Principality of Catalonia, became the most important city in the Crown of Aragon and its main economic and administrative centre, only to be overtaken by Valencia, wrested from Moorish control by the Catalans, shortly before the dynastic union between the Crown of Castile and the Crown of Aragon in 1516. Barcelona became the centre of Catalan separatism, briefly becoming part of France during the 17th century Reapers' War and again in 1812 until 1814 under Napoleon. Experiencing industrialization and several workers movements during the 19th and early 20th century, it became the capital of autonomous Catalonia in 1931 and it was the epicenter of the revolution experienced by Catalonia during the Spanish Revolution of 1936, until its capture by the fascists in 1939. After the Spanish transition to democracy in the 1970s, Barcelona once again became the capital of an autonomous Catalonia.\\nBarcelona has a rich cultural heritage and is today an important cultural centre and a major tourist destination. Particularly renowned are the architectural works of Antoni Gaudà and LluÃs Domènech i Montaner, which have been designated UNESCO World Heritage Sites. The city is home to two of the most prestigious universities in Spain: the University of Barcelona and Pompeu Fabra University. The headquarters of the Union for the Mediterranean are located in Barcelona. The city is known for hosting the 1992 Summer Olympics as well as world-class conferences and expositions. In addition, many international sport tournaments have been played here.\\nBarcelona is a major cultural, economic, and financial centre in southwestern Europe, as well as the main biotech hub in Spain. As a leading world city, Barcelona's influence in global socio-economic affairs qualifies it for global city status (Beta +).\\nBarcelona is a transport hub, with the Port of Barcelona being one of Europe's principal seaports and busiest European passenger port, an international airport, Barcelona–El Prat Airport, which handles over 50-million passengers per year, an extensive motorway network, and a high-speed rail line with a link to France and the rest of Europe.\", \"title\": \"Barcelona\", \"url\": \"https://en.wikipedia.org/wiki/Barcelona\"}]",+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 13.864,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"attributes\":{\"target\":\"agent.react.update\",\"name\":\"update\",\"traceId\":\"0cff2691-3a45-4988-a243-8cb8c508aa25\",\"output.value\":\"[{\\\"description\\\": \\\"Barcelona ( BAR-sÉ™-LOH-nÉ™; Catalan: [bəɾsəˈlonÉ™] ; Spanish: [baɾθeˈlona] ) is a city on the northeastern coast of Spain. It is the capital and largest city of the autonomous community of Catalonia, as well as the second-most populous municipality of Spain. With a population of 1.6 million within city limits, its urban area extends to numerous neighbouring municipalities within the province of Barcelona and is home to around 5.3 million people, making it the fifth most populous urban area of the European Union after Paris, the Ruhr area, Madrid and Milan. It is one of the largest metropolises on the Mediterranean Sea, located on the coast between the mouths of the rivers Llobregat and Besòs, bounded to the west by the Serra de Collserola mountain range.\\\\nAccording to tradition, Barcelona was founded by either the Phoenicians or the Carthaginians, who had trading posts along the Catalonian coast. In the Middle Ages, Barcelona became the capital of the County of Barcelona. After joining with the Kingdom of Aragon to form the composite monarchy of the Crown of Aragon, Barcelona, which continued to be the capital of the Principality of Catalonia, became the most important city in the Crown of Aragon and its main economic and administrative centre, only to be overtaken by Valencia, wrested from Moorish control by the Catalans, shortly before the dynastic union between the Crown of Castile and the Crown of Aragon in 1516. Barcelona became the centre of Catalan separatism, briefly becoming part of France during the 17th century Reapers' War and again in 1812 until 1814 under Napoleon. Experiencing industrialization and several workers movements during the 19th and early 20th century, it became the capital of autonomous Catalonia in 1931 and it was the epicenter of the revolution experienced by Catalonia during the Spanish Revolution of 1936, until its capture by the fascists in 1939. After the Spanish transition to democracy in the 1970s, Barcelona once again became the capital of an autonomous Catalonia.\\\\nBarcelona has a rich cultural heritage and is today an important cultural centre and a major tourist destination. Particularly renowned are the architectural works of Antoni Gaudà and LluÃs Domènech i Montaner, which have been designated UNESCO World Heritage Sites. The city is home to two of the most prestigious universities in Spain: the University of Barcelona and Pompeu Fabra University. The headquarters of the Union for the Mediterranean are located in Barcelona. The city is known for hosting the 1992 Summer Olympics as well as world-class conferences and expositions. In addition, many international sport tournaments have been played here.\\\\nBarcelona is a major cultural, economic, and financial centre in southwestern Europe, as well as the main biotech hub in Spain. As a leading world city, Barcelona's influence in global socio-economic affairs qualifies it for global city status (Beta +).\\\\nBarcelona is a transport hub, with the Port of Barcelona being one of Europe's principal seaports and busiest European passenger port, an international airport, Barcelona–El Prat Airport, which handles over 50-million passengers per year, an extensive motorway network, and a high-speed rail line with a link to France and the rest of Europe.\\\", \\\"title\\\": \\\"Barcelona\\\", \\\"url\\\": \\\"https://en.wikipedia.org/wiki/Barcelona\\\"}]\",\"output.mime_type\":\"application/json\",\"thought\":\"I will first research key attractions and landmarks in Barcelona and then check the current weather conditions there. \",\"tool.name\":\"Wikipedia\",\"tool.parameters\":\"{\\\"query\\\": \\\"Tourism in Barcelona\\\"}\",\"openinference.span.kind\":\"AGENT\"},\"resourceAttributes\":{\"telemetry.sdk.language\":\"python\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"1.34.1\",\"service.name\":\"unknown_service\"},\"scope\":{\"name\":\"openinference.instrumentation.beeai\",\"version\":\"0.1.33\",\"attributes\":{}}}",+ "internalModel": null+ },+ {+ "id": "4f7a25ab4555e106",+ "traceId": "096fc09a30ab90d2431778f9ee2b3936",+ "startTime": "2025-08-01T13:57:03.029Z",+ "endTime": "2025-08-01T13:57:11.334Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "0eb76c10a47e9086",+ "type": "SPAN",+ "environment": "default",+ "name": "agent.react.update-15",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-08-01T13:57:14.161Z",+ "updatedAt": "2025-08-01T13:57:14.230Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 8.305,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"attributes\":{\"target\":\"agent.react.update\",\"name\":\"update\",\"traceId\":\"0cff2691-3a45-4988-a243-8cb8c508aa25\",\"output.mime_type\":\"application/json\",\"thought\":\"I found information about Barcelona, including its rich cultural heritage and key attractions like the architectural works of Antoni GaudÃ. Now, I will check the current weather conditions in Barcelona. \",\"tool.parameters\":\"null\",\"openinference.span.kind\":\"AGENT\"},\"resourceAttributes\":{\"telemetry.sdk.language\":\"python\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"1.34.1\",\"service.name\":\"unknown_service\"},\"scope\":{\"name\":\"openinference.instrumentation.beeai\",\"version\":\"0.1.33\",\"attributes\":{}}}",+ "internalModel": null+ },+ {+ "id": "638f1207eba5c924",+ "traceId": "096fc09a30ab90d2431778f9ee2b3936",+ "startTime": "2025-08-01T13:57:05.655Z",+ "endTime": "2025-08-01T13:57:11.335Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "39d661bf29b4dbbd",+ "type": "SPAN",+ "environment": "default",+ "name": "agent.react.update-19",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-08-01T13:57:14.163Z",+ "updatedAt": "2025-08-01T13:57:14.243Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 5.68,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"attributes\":{\"target\":\"agent.react.update\",\"name\":\"update\",\"traceId\":\"0cff2691-3a45-4988-a243-8cb8c508aa25\",\"output.mime_type\":\"application/json\",\"thought\":\"I now have the current weather conditions in Barcelona, which indicate a temperature of 29°C with no rain. I will compile the information about key attractions and the weather together for the user. \",\"tool.parameters\":\"null\",\"openinference.span.kind\":\"AGENT\"},\"resourceAttributes\":{\"telemetry.sdk.language\":\"python\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"1.34.1\",\"service.name\":\"unknown_service\"},\"scope\":{\"name\":\"openinference.instrumentation.beeai\",\"version\":\"0.1.33\",\"attributes\":{}}}",+ "internalModel": null+ },+ {+ "id": "6c69cf2f9ea80007",+ "traceId": "096fc09a30ab90d2431778f9ee2b3936",+ "startTime": "2025-08-01T13:57:03.274Z",+ "endTime": "2025-08-01T13:57:11.334Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "0eb76c10a47e9086",+ "type": "SPAN",+ "environment": "default",+ "name": "agent.react.update-16",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-08-01T13:57:14.163Z",+ "updatedAt": "2025-08-01T13:57:14.240Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 8.06,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"attributes\":{\"target\":\"agent.react.update\",\"name\":\"update\",\"traceId\":\"0cff2691-3a45-4988-a243-8cb8c508aa25\",\"output.mime_type\":\"application/json\",\"thought\":\"I found information about Barcelona, including its rich cultural heritage and key attractions like the architectural works of Antoni GaudÃ. Now, I will check the current weather conditions in Barcelona. \",\"tool.name\":\"OpenMeteoTool\",\"tool.parameters\":\"null\",\"openinference.span.kind\":\"AGENT\"},\"resourceAttributes\":{\"telemetry.sdk.language\":\"python\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"1.34.1\",\"service.name\":\"unknown_service\"},\"scope\":{\"name\":\"openinference.instrumentation.beeai\",\"version\":\"0.1.33\",\"attributes\":{}}}",+ "internalModel": null+ },+ {+ "id": "6c9cab010e21d9ef",+ "traceId": "096fc09a30ab90d2431778f9ee2b3936",+ "startTime": "2025-08-01T13:57:03.579Z",+ "endTime": "2025-08-01T13:57:11.334Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "0eb76c10a47e9086",+ "type": "SPAN",+ "environment": "default",+ "name": "agent.react.update-17",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-08-01T13:57:14.162Z",+ "updatedAt": "2025-08-01T13:57:14.256Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 7.755,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"attributes\":{\"target\":\"agent.react.update\",\"name\":\"update\",\"traceId\":\"0cff2691-3a45-4988-a243-8cb8c508aa25\",\"output.mime_type\":\"application/json\",\"thought\":\"I found information about Barcelona, including its rich cultural heritage and key attractions like the architectural works of Antoni GaudÃ. Now, I will check the current weather conditions in Barcelona. \",\"tool.name\":\"OpenMeteoTool\",\"tool.parameters\":\"{\\\"location_name\\\": \\\"Barcelona\\\", \\\"country\\\": \\\"Spain\\\"}\",\"openinference.span.kind\":\"AGENT\"},\"resourceAttributes\":{\"telemetry.sdk.language\":\"python\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"1.34.1\",\"service.name\":\"unknown_service\"},\"scope\":{\"name\":\"openinference.instrumentation.beeai\",\"version\":\"0.1.33\",\"attributes\":{}}}",+ "internalModel": null+ },+ {+ "id": "8b26b3ec668cf146",+ "traceId": "096fc09a30ab90d2431778f9ee2b3936",+ "startTime": "2025-08-01T13:57:11.315Z",+ "endTime": "2025-08-01T13:57:11.336Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "39d661bf29b4dbbd",+ "type": "SPAN",+ "environment": "default",+ "name": "agent.react.partial_update-610",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-08-01T13:57:14.163Z",+ "updatedAt": "2025-08-01T13:57:14.239Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 0.021,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"attributes\":{\"target\":\"agent.react.partial_update\",\"name\":\"partial_update\",\"traceId\":\"0cff2691-3a45-4988-a243-8cb8c508aa25\",\"output.mime_type\":\"application/json\",\"thought\":\"I now have the current weather conditions in Barcelona, which indicate a temperature of 29°C with no rain. I will compile the information about key attractions and the weather together for the user. \",\"tool.parameters\":\"null\",\"openinference.span.kind\":\"AGENT\"},\"resourceAttributes\":{\"telemetry.sdk.language\":\"python\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"1.34.1\",\"service.name\":\"unknown_service\"},\"scope\":{\"name\":\"openinference.instrumentation.beeai\",\"version\":\"0.1.33\",\"attributes\":{}}}",+ "internalModel": null+ },+ {+ "id": "8d28081d2ea0b09a",+ "traceId": "096fc09a30ab90d2431778f9ee2b3936",+ "startTime": "2025-08-01T13:56:55.399Z",+ "endTime": "2025-08-01T13:57:11.333Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "c48e7d031a4cb886",+ "type": "SPAN",+ "environment": "default",+ "name": "agent.react.update-11",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-08-01T13:57:14.162Z",+ "updatedAt": "2025-08-01T13:57:14.256Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 15.934,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"attributes\":{\"target\":\"agent.react.update\",\"name\":\"update\",\"traceId\":\"0cff2691-3a45-4988-a243-8cb8c508aa25\",\"output.mime_type\":\"application/json\",\"thought\":\"I will first research key attractions and landmarks in Barcelona and then check the current weather conditions there. \",\"tool.parameters\":\"null\",\"openinference.span.kind\":\"AGENT\"},\"resourceAttributes\":{\"telemetry.sdk.language\":\"python\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"1.34.1\",\"service.name\":\"unknown_service\"},\"scope\":{\"name\":\"openinference.instrumentation.beeai\",\"version\":\"0.1.33\",\"attributes\":{}}}",+ "internalModel": null+ },+ {+ "id": "9381f6df60cf8aa3",+ "traceId": "096fc09a30ab90d2431778f9ee2b3936",+ "startTime": "2025-08-01T13:56:57.470Z",+ "endTime": "2025-08-01T13:57:11.334Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "0eb76c10a47e9086",+ "type": "SPAN",+ "environment": "default",+ "name": "agent.react.start-5",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-08-01T13:57:14.161Z",+ "updatedAt": "2025-08-01T13:57:14.237Z",+ "input": "[{\"text\": \"# Available functions\\nYou can only use the following functions. Always use all required parameters.\\n\\nFunction Name: Wikipedia\\nDescription: Search factual and historical information, including biography, history, politics, geography, society, culture, science, technology, people, animal species, mathematics, and other subjects.\\nInput Schema: {\\\"properties\\\": {\\\"full_text\\\": {\\\"default\\\": false, \\\"description\\\": \\\"If set to true, it will return the full text of the page instead of its short summary.\\\", \\\"title\\\": \\\"Full Text\\\", \\\"type\\\": \\\"boolean\\\"}, \\\"query\\\": {\\\"description\\\": \\\"Name of the Wikipedia page.\\\", \\\"title\\\": \\\"Query\\\", \\\"type\\\": \\\"string\\\"}}, \\\"required\\\": [\\\"query\\\"], \\\"title\\\": \\\"WikipediaToolInput\\\", \\\"type\\\": \\\"object\\\"}\\n\\nFunction Name: OpenMeteoTool\\nDescription: Retrieve current, past, or future weather forecasts for a location.\\nInput Schema: {\\\"properties\\\": {\\\"country\\\": {\\\"anyOf\\\": [{\\\"type\\\": \\\"string\\\"}, {\\\"type\\\": \\\"null\\\"}], \\\"default\\\": null, \\\"description\\\": \\\"Country name.\\\", \\\"title\\\": \\\"Country\\\"}, \\\"end_date\\\": {\\\"anyOf\\\": [{\\\"format\\\": \\\"date\\\", \\\"type\\\": \\\"string\\\"}, {\\\"type\\\": \\\"null\\\"}], \\\"default\\\": null, \\\"description\\\": \\\"End date for the weather forecast in the format YYYY-MM-DD (UTC)\\\", \\\"title\\\": \\\"End Date\\\"}, \\\"location_name\\\": {\\\"description\\\": \\\"The name of the location to retrieve weather information.\\\", \\\"title\\\": \\\"Location Name\\\", \\\"type\\\": \\\"string\\\"}, \\\"start_date\\\": {\\\"anyOf\\\": [{\\\"format\\\": \\\"date\\\", \\\"type\\\": \\\"string\\\"}, {\\\"type\\\": \\\"null\\\"}], \\\"default\\\": null, \\\"description\\\": \\\"Start date for the weather forecast in the format YYYY-MM-DD (UTC)\\\", \\\"title\\\": \\\"Start Date\\\"}, \\\"temperature_unit\\\": {\\\"default\\\": \\\"celsius\\\", \\\"description\\\": \\\"The unit to express temperature\\\", \\\"enum\\\": [\\\"celsius\\\", \\\"fahrenheit\\\"], \\\"title\\\": \\\"Temperature Unit\\\", \\\"type\\\": \\\"string\\\"}}, \\\"required\\\": [\\\"location_name\\\"], \\\"title\\\": \\\"OpenMeteoToolInput\\\", \\\"type\\\": \\\"object\\\"}\\n\\n# Communication structure\\nYou communicate only in instruction lines. The format is: \\\"Instruction: expected output\\\". You must only use these instruction lines and must not enter empty lines or anything else between instruction lines.\\nYou must skip the instruction lines Function Name, Function Input and Function Output if no function calling is required.\\n\\nMessage: User's message. You never use this instruction line.\\nThought: A single-line step-by-step plan of how to answer the user's message. You can use the available functions defined above. This instruction line must be immediately followed by Function Name if one of the available functions defined above needs to be called, or by Final Answer. Do not provide the answer here.\\nFunction Name: Name of the function. This instruction line must be immediately followed by Function Input.\\nFunction Input: Function parameters in JSON format adhering to the function's input specification ie. {\\\"arg1\\\":\\\"value1\\\", \\\"arg2\\\":\\\"value2\\\"}. Empty object is a valid parameter.\\nFunction Output: Output of the function in JSON format.\\nThought: Continue your thinking process.\\nFinal Answer: Answer the user or ask for more information or clarification. It must always be preceded by Thought.\\n\\n## Examples\\nMessage: Can you translate \\\"How are you\\\" into French?\\nThought: The user wants to translate a text into French. I can do that.\\nFinal Answer: Comment vas-tu?\\n\\n# Instructions\\nUser can only see the Final Answer, all answers must be provided there.\\nYou must always use the communication structure and instructions defined above. Do not forget that Thought must be a single-line immediately followed by either Function Name or Final Answer.\\nFunctions must be used to retrieve factual or historical information to answer the message.\\nIf the user suggests using a function that is not available, answer that the function is not available. You can suggest alternatives if appropriate.\\nWhen the message is unclear or you need more information from the user, ask in Final Answer.\\n\\n# Your capabilities\\nPrefer to use these capabilities over functions.\\n- You understand these languages: English, Spanish, French.\\n- You can translate and summarize, even long documents.\\n\\n# Notes\\n- If you don't know the answer, say that you don't know.\\n- The current time and date in ISO format might be found in the last message.\\n- When answering the user, use friendly formats for time and date.\\n- Use markdown syntax for formatting code snippets, links, JSON, tables, images, files.\\n- Sometimes, things don't go as planned. Functions may not provide useful information on the first few tries. You should always try a few different approaches before declaring the problem unsolvable.\\n- When the function doesn't give you what you were asking for, you must either use another function or a different function input.\\n - When using search engines, you try different formulations of the query, possibly even in a different language.\\n- You cannot do complex calculations, computations, or data manipulations without using functions.\\n\", \"role\": \"system\"}, {\"text\": \"Message: I'm planning a trip to Barcelona, Spain. Can you research key attractions and landmarks I should visit, and also tell me what the current weather conditions are like there?\\n\\nThis message was created at 2025-08-01T13:56:54+00:00\", \"role\": \"user\"}, {\"text\": \"Thought: I will first research key attractions and landmarks in Barcelona and then check the current weather conditions there. \\nFunction Name: Wikipedia\\nFunction Input: {\\\"query\\\": \\\"Tourism in Barcelona\\\"}\\nFunction Output: [{\\\"description\\\": \\\"Barcelona ( BAR-s\\u0259-LOH-n\\u0259; Catalan: [b\\u0259\\u027es\\u0259\\u02c8lon\\u0259] ; Spanish: [ba\\u027e\\u03b8e\\u02c8lona] ) is a city on the northeastern coast of Spain. It is the capital and largest city of the autonomous community of Catalonia, as well as the second-most populous municipality of Spain. With a population of 1.6 million within city limits, its urban area extends to numerous neighbouring municipalities within the province of Barcelona and is home to around 5.3 million people, making it the fifth most populous urban area of the European Union after Paris, the Ruhr area, Madrid and Milan. It is one of the largest metropolises on the Mediterranean Sea, located on the coast between the mouths of the rivers Llobregat and Bes\\u00f2s, bounded to the west by the Serra de Collserola mountain range.\\\\nAccording to tradition, Barcelona was founded by either the Phoenicians or the Carthaginians, who had trading posts along the Catalonian coast. In the Middle Ages, Barcelona became the capital of the County of Barcelona. After joining with the Kingdom of Aragon to form the composite monarchy of the Crown of Aragon, Barcelona, which continued to be the capital of the Principality of Catalonia, became the most important city in the Crown of Aragon and its main economic and administrative centre, only to be overtaken by Valencia, wrested from Moorish control by the Catalans, shortly before the dynastic union between the Crown of Castile and the Crown of Aragon in 1516. Barcelona became the centre of Catalan separatism, briefly becoming part of France during the 17th century Reapers' War and again in 1812 until 1814 under Napoleon. Experiencing industrialization and several workers movements during the 19th and early 20th century, it became the capital of autonomous Catalonia in 1931 and it was the epicenter of the revolution experienced by Catalonia during the Spanish Revolution of 1936, until its capture by the fascists in 1939. After the Spanish transition to democracy in the 1970s, Barcelona once again became the capital of an autonomous Catalonia.\\\\nBarcelona has a rich cultural heritage and is today an important cultural centre and a major tourist destination. Particularly renowned are the architectural works of Antoni Gaud\\u00ed and Llu\\u00eds Dom\\u00e8nech i Montaner, which have been designated UNESCO World Heritage Sites. The city is home to two of the most prestigious universities in Spain: the University of Barcelona and Pompeu Fabra University. The headquarters of the Union for the Mediterranean are located in Barcelona. The city is known for hosting the 1992 Summer Olympics as well as world-class conferences and expositions. In addition, many international sport tournaments have been played here.\\\\nBarcelona is a major cultural, economic, and financial centre in southwestern Europe, as well as the main biotech hub in Spain. As a leading world city, Barcelona's influence in global socio-economic affairs qualifies it for global city status (Beta +).\\\\nBarcelona is a transport hub, with the Port of Barcelona being one of Europe's principal seaports and busiest European passenger port, an international airport, Barcelona\\u2013El Prat Airport, which handles over 50-million passengers per year, an extensive motorway network, and a high-speed rail line with a link to France and the rest of Europe.\\\", \\\"title\\\": \\\"Barcelona\\\", \\\"url\\\": \\\"https://en.wikipedia.org/wiki/Barcelona\\\"}]\\n\", \"role\": \"assistant\"}]",+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 13.864,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"attributes\":{\"target\":\"agent.react.start\",\"name\":\"start\",\"traceId\":\"0cff2691-3a45-4988-a243-8cb8c508aa25\",\"iteration\":\"2\",\"llm.tools\":\"[{\\\"tool.name\\\": \\\"Wikipedia\\\", \\\"tool.description\\\": \\\"Search factual and historical information, including biography, history, politics, geography, society, culture, science, technology, people, animal species, mathematics, and other subjects.\\\", \\\"tool.options\\\": \\\"null\\\"}, {\\\"tool.name\\\": \\\"OpenMeteoTool\\\", \\\"tool.description\\\": \\\"Retrieve current, past, or future weather forecasts for a location.\\\", \\\"tool.options\\\": \\\"null\\\"}]\",\"input.mime_type\":\"application/json\",\"input.value\":\"[{\\\"text\\\": \\\"# Available functions\\\\nYou can only use the following functions. Always use all required parameters.\\\\n\\\\nFunction Name: Wikipedia\\\\nDescription: Search factual and historical information, including biography, history, politics, geography, society, culture, science, technology, people, animal species, mathematics, and other subjects.\\\\nInput Schema: {\\\\\\\"properties\\\\\\\": {\\\\\\\"full_text\\\\\\\": {\\\\\\\"default\\\\\\\": false, \\\\\\\"description\\\\\\\": \\\\\\\"If set to true, it will return the full text of the page instead of its short summary.\\\\\\\", \\\\\\\"title\\\\\\\": \\\\\\\"Full Text\\\\\\\", \\\\\\\"type\\\\\\\": \\\\\\\"boolean\\\\\\\"}, \\\\\\\"query\\\\\\\": {\\\\\\\"description\\\\\\\": \\\\\\\"Name of the Wikipedia page.\\\\\\\", \\\\\\\"title\\\\\\\": \\\\\\\"Query\\\\\\\", \\\\\\\"type\\\\\\\": \\\\\\\"string\\\\\\\"}}, \\\\\\\"required\\\\\\\": [\\\\\\\"query\\\\\\\"], \\\\\\\"title\\\\\\\": \\\\\\\"WikipediaToolInput\\\\\\\", \\\\\\\"type\\\\\\\": \\\\\\\"object\\\\\\\"}\\\\n\\\\nFunction Name: OpenMeteoTool\\\\nDescription: Retrieve current, past, or future weather forecasts for a location.\\\\nInput Schema: {\\\\\\\"properties\\\\\\\": {\\\\\\\"country\\\\\\\": {\\\\\\\"anyOf\\\\\\\": [{\\\\\\\"type\\\\\\\": \\\\\\\"string\\\\\\\"}, {\\\\\\\"type\\\\\\\": \\\\\\\"null\\\\\\\"}], \\\\\\\"default\\\\\\\": null, \\\\\\\"description\\\\\\\": \\\\\\\"Country name.\\\\\\\", \\\\\\\"title\\\\\\\": \\\\\\\"Country\\\\\\\"}, \\\\\\\"end_date\\\\\\\": {\\\\\\\"anyOf\\\\\\\": [{\\\\\\\"format\\\\\\\": \\\\\\\"date\\\\\\\", \\\\\\\"type\\\\\\\": \\\\\\\"string\\\\\\\"}, {\\\\\\\"type\\\\\\\": \\\\\\\"null\\\\\\\"}], \\\\\\\"default\\\\\\\": null, \\\\\\\"description\\\\\\\": \\\\\\\"End date for the weather forecast in the format YYYY-MM-DD (UTC)\\\\\\\", \\\\\\\"title\\\\\\\": \\\\\\\"End Date\\\\\\\"}, \\\\\\\"location_name\\\\\\\": {\\\\\\\"description\\\\\\\": \\\\\\\"The name of the location to retrieve weather information.\\\\\\\", \\\\\\\"title\\\\\\\": \\\\\\\"Location Name\\\\\\\", \\\\\\\"type\\\\\\\": \\\\\\\"string\\\\\\\"}, \\\\\\\"start_date\\\\\\\": {\\\\\\\"anyOf\\\\\\\": [{\\\\\\\"format\\\\\\\": \\\\\\\"date\\\\\\\", \\\\\\\"type\\\\\\\": \\\\\\\"string\\\\\\\"}, {\\\\\\\"type\\\\\\\": \\\\\\\"null\\\\\\\"}], \\\\\\\"default\\\\\\\": null, \\\\\\\"description\\\\\\\": \\\\\\\"Start date for the weather forecast in the format YYYY-MM-DD (UTC)\\\\\\\", \\\\\\\"title\\\\\\\": \\\\\\\"Start Date\\\\\\\"}, \\\\\\\"temperature_unit\\\\\\\": {\\\\\\\"default\\\\\\\": \\\\\\\"celsius\\\\\\\", \\\\\\\"description\\\\\\\": \\\\\\\"The unit to express temperature\\\\\\\", \\\\\\\"enum\\\\\\\": [\\\\\\\"celsius\\\\\\\", \\\\\\\"fahrenheit\\\\\\\"], \\\\\\\"title\\\\\\\": \\\\\\\"Temperature Unit\\\\\\\", \\\\\\\"type\\\\\\\": \\\\\\\"string\\\\\\\"}}, \\\\\\\"required\\\\\\\": [\\\\\\\"location_name\\\\\\\"], \\\\\\\"title\\\\\\\": \\\\\\\"OpenMeteoToolInput\\\\\\\", \\\\\\\"type\\\\\\\": \\\\\\\"object\\\\\\\"}\\\\n\\\\n# Communication structure\\\\nYou communicate only in instruction lines. The format is: \\\\\\\"Instruction: expected output\\\\\\\". You must only use these instruction lines and must not enter empty lines or anything else between instruction lines.\\\\nYou must skip the instruction lines Function Name, Function Input and Function Output if no function calling is required.\\\\n\\\\nMessage: User's message. You never use this instruction line.\\\\nThought: A single-line step-by-step plan of how to answer the user's message. You can use the available functions defined above. This instruction line must be immediately followed by Function Name if one of the available functions defined above needs to be called, or by Final Answer. Do not provide the answer here.\\\\nFunction Name: Name of the function. This instruction line must be immediately followed by Function Input.\\\\nFunction Input: Function parameters in JSON format adhering to the function's input specification ie. {\\\\\\\"arg1\\\\\\\":\\\\\\\"value1\\\\\\\", \\\\\\\"arg2\\\\\\\":\\\\\\\"value2\\\\\\\"}. Empty object is a valid parameter.\\\\nFunction Output: Output of the function in JSON format.\\\\nThought: Continue your thinking process.\\\\nFinal Answer: Answer the user or ask for more information or clarification. It must always be preceded by Thought.\\\\n\\\\n## Examples\\\\nMessage: Can you translate \\\\\\\"How are you\\\\\\\" into French?\\\\nThought: The user wants to translate a text into French. I can do that.\\\\nFinal Answer: Comment vas-tu?\\\\n\\\\n# Instructions\\\\nUser can only see the Final Answer, all answers must be provided there.\\\\nYou must always use the communication structure and instructions defined above. Do not forget that Thought must be a single-line immediately followed by either Function Name or Final Answer.\\\\nFunctions must be used to retrieve factual or historical information to answer the message.\\\\nIf the user suggests using a function that is not available, answer that the function is not available. You can suggest alternatives if appropriate.\\\\nWhen the message is unclear or you need more information from the user, ask in Final Answer.\\\\n\\\\n# Your capabilities\\\\nPrefer to use these capabilities over functions.\\\\n- You understand these languages: English, Spanish, French.\\\\n- You can translate and summarize, even long documents.\\\\n\\\\n# Notes\\\\n- If you don't know the answer, say that you don't know.\\\\n- The current time and date in ISO format might be found in the last message.\\\\n- When answering the user, use friendly formats for time and date.\\\\n- Use markdown syntax for formatting code snippets, links, JSON, tables, images, files.\\\\n- Sometimes, things don't go as planned. Functions may not provide useful information on the first few tries. You should always try a few different approaches before declaring the problem unsolvable.\\\\n- When the function doesn't give you what you were asking for, you must either use another function or a different function input.\\\\n - When using search engines, you try different formulations of the query, possibly even in a different language.\\\\n- You cannot do complex calculations, computations, or data manipulations without using functions.\\\\n\\\", \\\"role\\\": \\\"system\\\"}, {\\\"text\\\": \\\"Message: I'm planning a trip to Barcelona, Spain. Can you research key attractions and landmarks I should visit, and also tell me what the current weather conditions are like there?\\\\n\\\\nThis message was created at 2025-08-01T13:56:54+00:00\\\", \\\"role\\\": \\\"user\\\"}, {\\\"text\\\": \\\"Thought: I will first research key attractions and landmarks in Barcelona and then check the current weather conditions there. \\\\nFunction Name: Wikipedia\\\\nFunction Input: {\\\\\\\"query\\\\\\\": \\\\\\\"Tourism in Barcelona\\\\\\\"}\\\\nFunction Output: [{\\\\\\\"description\\\\\\\": \\\\\\\"Barcelona ( BAR-s\\\\u0259-LOH-n\\\\u0259; Catalan: [b\\\\u0259\\\\u027es\\\\u0259\\\\u02c8lon\\\\u0259] ; Spanish: [ba\\\\u027e\\\\u03b8e\\\\u02c8lona] ) is a city on the northeastern coast of Spain. It is the capital and largest city of the autonomous community of Catalonia, as well as the second-most populous municipality of Spain. With a population of 1.6 million within city limits, its urban area extends to numerous neighbouring municipalities within the province of Barcelona and is home to around 5.3 million people, making it the fifth most populous urban area of the European Union after Paris, the Ruhr area, Madrid and Milan. It is one of the largest metropolises on the Mediterranean Sea, located on the coast between the mouths of the rivers Llobregat and Bes\\\\u00f2s, bounded to the west by the Serra de Collserola mountain range.\\\\\\\\nAccording to tradition, Barcelona was founded by either the Phoenicians or the Carthaginians, who had trading posts along the Catalonian coast. In the Middle Ages, Barcelona became the capital of the County of Barcelona. After joining with the Kingdom of Aragon to form the composite monarchy of the Crown of Aragon, Barcelona, which continued to be the capital of the Principality of Catalonia, became the most important city in the Crown of Aragon and its main economic and administrative centre, only to be overtaken by Valencia, wrested from Moorish control by the Catalans, shortly before the dynastic union between the Crown of Castile and the Crown of Aragon in 1516. Barcelona became the centre of Catalan separatism, briefly becoming part of France during the 17th century Reapers' War and again in 1812 until 1814 under Napoleon. Experiencing industrialization and several workers movements during the 19th and early 20th century, it became the capital of autonomous Catalonia in 1931 and it was the epicenter of the revolution experienced by Catalonia during the Spanish Revolution of 1936, until its capture by the fascists in 1939. After the Spanish transition to democracy in the 1970s, Barcelona once again became the capital of an autonomous Catalonia.\\\\\\\\nBarcelona has a rich cultural heritage and is today an important cultural centre and a major tourist destination. Particularly renowned are the architectural works of Antoni Gaud\\\\u00ed and Llu\\\\u00eds Dom\\\\u00e8nech i Montaner, which have been designated UNESCO World Heritage Sites. The city is home to two of the most prestigious universities in Spain: the University of Barcelona and Pompeu Fabra University. The headquarters of the Union for the Mediterranean are located in Barcelona. The city is known for hosting the 1992 Summer Olympics as well as world-class conferences and expositions. In addition, many international sport tournaments have been played here.\\\\\\\\nBarcelona is a major cultural, economic, and financial centre in southwestern Europe, as well as the main biotech hub in Spain. As a leading world city, Barcelona's influence in global socio-economic affairs qualifies it for global city status (Beta +).\\\\\\\\nBarcelona is a transport hub, with the Port of Barcelona being one of Europe's principal seaports and busiest European passenger port, an international airport, Barcelona\\\\u2013El Prat Airport, which handles over 50-million passengers per year, an extensive motorway network, and a high-speed rail line with a link to France and the rest of Europe.\\\\\\\", \\\\\\\"title\\\\\\\": \\\\\\\"Barcelona\\\\\\\", \\\\\\\"url\\\\\\\": \\\\\\\"https://en.wikipedia.org/wiki/Barcelona\\\\\\\"}]\\\\n\\\", \\\"role\\\": \\\"assistant\\\"}]\",\"openinference.span.kind\":\"AGENT\"},\"resourceAttributes\":{\"telemetry.sdk.language\":\"python\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"1.34.1\",\"service.name\":\"unknown_service\"},\"scope\":{\"name\":\"openinference.instrumentation.beeai\",\"version\":\"0.1.33\",\"attributes\":{}}}",+ "internalModel": null+ },+ {+ "id": "96cb191e191a9378",+ "traceId": "096fc09a30ab90d2431778f9ee2b3936",+ "startTime": "2025-08-01T13:57:03.885Z",+ "endTime": "2025-08-01T13:57:11.334Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "0eb76c10a47e9086",+ "type": "SPAN",+ "environment": "default",+ "name": "agent.react.partial_update-318",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-08-01T13:57:14.163Z",+ "updatedAt": "2025-08-01T13:57:14.234Z",+ "input": null,+ "output": "{\"latitude\": 41.4375, \"longitude\": 2.1875, \"generationtime_ms\": 0.0553131103515625, \"utc_offset_seconds\": 0, \"timezone\": \"GMT\", \"timezone_abbreviation\": \"GMT\", \"elevation\": 44.0, \"current_units\": {\"time\": \"iso8601\", \"interval\": \"seconds\", \"temperature_2m\": \"°C\", \"rain\": \"mm\", \"relative_humidity_2m\": \"%\", \"wind_speed_10m\": \"km/h\"}, \"current\": {\"time\": \"2025-08-01T13:45\", \"interval\": 900, \"temperature_2m\": 29.0, \"rain\": 0.0, \"relative_humidity_2m\": 48, \"wind_speed_10m\": 18.8}, \"daily_units\": {\"time\": \"iso8601\", \"temperature_2m_max\": \"°C\", \"temperature_2m_min\": \"°C\", \"rain_sum\": \"mm\"}, \"daily\": {\"time\": [\"2025-08-01\"], \"temperature_2m_max\": [29.0], \"temperature_2m_min\": [20.6], \"rain_sum\": [0.0]}}",+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 7.449,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"attributes\":{\"target\":\"agent.react.partial_update\",\"name\":\"partial_update\",\"traceId\":\"0cff2691-3a45-4988-a243-8cb8c508aa25\",\"output.value\":\"{\\\"latitude\\\": 41.4375, \\\"longitude\\\": 2.1875, \\\"generationtime_ms\\\": 0.0553131103515625, \\\"utc_offset_seconds\\\": 0, \\\"timezone\\\": \\\"GMT\\\", \\\"timezone_abbreviation\\\": \\\"GMT\\\", \\\"elevation\\\": 44.0, \\\"current_units\\\": {\\\"time\\\": \\\"iso8601\\\", \\\"interval\\\": \\\"seconds\\\", \\\"temperature_2m\\\": \\\"°C\\\", \\\"rain\\\": \\\"mm\\\", \\\"relative_humidity_2m\\\": \\\"%\\\", \\\"wind_speed_10m\\\": \\\"km/h\\\"}, \\\"current\\\": {\\\"time\\\": \\\"2025-08-01T13:45\\\", \\\"interval\\\": 900, \\\"temperature_2m\\\": 29.0, \\\"rain\\\": 0.0, \\\"relative_humidity_2m\\\": 48, \\\"wind_speed_10m\\\": 18.8}, \\\"daily_units\\\": {\\\"time\\\": \\\"iso8601\\\", \\\"temperature_2m_max\\\": \\\"°C\\\", \\\"temperature_2m_min\\\": \\\"°C\\\", \\\"rain_sum\\\": \\\"mm\\\"}, \\\"daily\\\": {\\\"time\\\": [\\\"2025-08-01\\\"], \\\"temperature_2m_max\\\": [29.0], \\\"temperature_2m_min\\\": [20.6], \\\"rain_sum\\\": [0.0]}}\",\"output.mime_type\":\"application/json\",\"thought\":\"I found information about Barcelona, including its rich cultural heritage and key attractions like the architectural works of Antoni GaudÃ. Now, I will check the current weather conditions in Barcelona. \",\"tool.name\":\"OpenMeteoTool\",\"tool.parameters\":\"{\\\"location_name\\\": \\\"Barcelona\\\", \\\"country\\\": \\\"Spain\\\"}\",\"openinference.span.kind\":\"AGENT\"},\"resourceAttributes\":{\"telemetry.sdk.language\":\"python\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"1.34.1\",\"service.name\":\"unknown_service\"},\"scope\":{\"name\":\"openinference.instrumentation.beeai\",\"version\":\"0.1.33\",\"attributes\":{}}}",+ "internalModel": null+ },+ {+ "id": "bd2f100ab98514d4",+ "traceId": "096fc09a30ab90d2431778f9ee2b3936",+ "startTime": "2025-08-01T13:57:11.331Z",+ "endTime": "2025-08-01T13:57:11.336Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "39d661bf29b4dbbd",+ "type": "SPAN",+ "environment": "default",+ "name": "agent.react.update-20",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-08-01T13:57:14.164Z",+ "updatedAt": "2025-08-01T13:57:14.225Z",+ "input": null,+ "output": "Barcelona is a vibrant city known for its rich cultural heritage and stunning architecture, particularly the works of Antoni GaudÃ. Here are some key attractions and landmarks you should consider visiting:\n\n1. **Sagrada FamÃlia** - An iconic basilica designed by GaudÃ, still under construction.\n2. **Park Güell** - A colorful park also designed by GaudÃ, filled with artistic structures and beautiful gardens.\n3. **La Rambla** - A famous street in the heart of the city ideal for walking, dining, and shopping.\n4. **Gothic Quarter (Barri Gòtic)** - The historic center of Barcelona with medieval architecture and narrow streets.\n5. **Casa Batlló** - Another masterpiece by GaudÃ, known for its unique design and vibrant colors.\n6. **Casa Milà (La Pedrera)** - A modernist building with a wavy stone facade, also designed by GaudÃ.\n7. **Montjuïc** - A hill offering stunning views of the city, home to several attractions including the Montjuïc Castle and the Magic Fountain.\n\nRegarding the current weather, it is 29°C with no rain, and the humidity is at 48%. It's a great time to explore the city!",+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 0.005,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"attributes\":{\"target\":\"agent.react.update\",\"name\":\"update\",\"traceId\":\"0cff2691-3a45-4988-a243-8cb8c508aa25\",\"output.value\":\"Barcelona is a vibrant city known for its rich cultural heritage and stunning architecture, particularly the works of Antoni GaudÃ. Here are some key attractions and landmarks you should consider visiting:\\n\\n1. **Sagrada FamÃlia** - An iconic basilica designed by GaudÃ, still under construction.\\n2. **Park Güell** - A colorful park also designed by GaudÃ, filled with artistic structures and beautiful gardens.\\n3. **La Rambla** - A famous street in the heart of the city ideal for walking, dining, and shopping.\\n4. **Gothic Quarter (Barri Gòtic)** - The historic center of Barcelona with medieval architecture and narrow streets.\\n5. **Casa Batlló** - Another masterpiece by GaudÃ, known for its unique design and vibrant colors.\\n6. **Casa Milà (La Pedrera)** - A modernist building with a wavy stone facade, also designed by GaudÃ.\\n7. **Montjuïc** - A hill offering stunning views of the city, home to several attractions including the Montjuïc Castle and the Magic Fountain.\\n\\nRegarding the current weather, it is 29°C with no rain, and the humidity is at 48%. It's a great time to explore the city!\",\"output.mime_type\":\"application/json\",\"thought\":\"I now have the current weather conditions in Barcelona, which indicate a temperature of 29°C with no rain. I will compile the information about key attractions and the weather together for the user. \",\"tool.parameters\":\"null\",\"openinference.span.kind\":\"AGENT\"},\"resourceAttributes\":{\"telemetry.sdk.language\":\"python\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"1.34.1\",\"service.name\":\"unknown_service\"},\"scope\":{\"name\":\"openinference.instrumentation.beeai\",\"version\":\"0.1.33\",\"attributes\":{}}}",+ "internalModel": null+ },+ {+ "id": "bf28223502262e87",+ "traceId": "096fc09a30ab90d2431778f9ee2b3936",+ "startTime": "2025-08-01T13:56:54.166Z",+ "endTime": "2025-08-01T13:57:11.333Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "c48e7d031a4cb886",+ "type": "SPAN",+ "environment": "default",+ "name": "agent.react.start-4",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-08-01T13:57:14.163Z",+ "updatedAt": "2025-08-01T13:57:14.249Z",+ "input": "[{\"text\": \"# Available functions\\nYou can only use the following functions. Always use all required parameters.\\n\\nFunction Name: Wikipedia\\nDescription: Search factual and historical information, including biography, history, politics, geography, society, culture, science, technology, people, animal species, mathematics, and other subjects.\\nInput Schema: {\\\"properties\\\": {\\\"full_text\\\": {\\\"default\\\": false, \\\"description\\\": \\\"If set to true, it will return the full text of the page instead of its short summary.\\\", \\\"title\\\": \\\"Full Text\\\", \\\"type\\\": \\\"boolean\\\"}, \\\"query\\\": {\\\"description\\\": \\\"Name of the Wikipedia page.\\\", \\\"title\\\": \\\"Query\\\", \\\"type\\\": \\\"string\\\"}}, \\\"required\\\": [\\\"query\\\"], \\\"title\\\": \\\"WikipediaToolInput\\\", \\\"type\\\": \\\"object\\\"}\\n\\nFunction Name: OpenMeteoTool\\nDescription: Retrieve current, past, or future weather forecasts for a location.\\nInput Schema: {\\\"properties\\\": {\\\"country\\\": {\\\"anyOf\\\": [{\\\"type\\\": \\\"string\\\"}, {\\\"type\\\": \\\"null\\\"}], \\\"default\\\": null, \\\"description\\\": \\\"Country name.\\\", \\\"title\\\": \\\"Country\\\"}, \\\"end_date\\\": {\\\"anyOf\\\": [{\\\"format\\\": \\\"date\\\", \\\"type\\\": \\\"string\\\"}, {\\\"type\\\": \\\"null\\\"}], \\\"default\\\": null, \\\"description\\\": \\\"End date for the weather forecast in the format YYYY-MM-DD (UTC)\\\", \\\"title\\\": \\\"End Date\\\"}, \\\"location_name\\\": {\\\"description\\\": \\\"The name of the location to retrieve weather information.\\\", \\\"title\\\": \\\"Location Name\\\", \\\"type\\\": \\\"string\\\"}, \\\"start_date\\\": {\\\"anyOf\\\": [{\\\"format\\\": \\\"date\\\", \\\"type\\\": \\\"string\\\"}, {\\\"type\\\": \\\"null\\\"}], \\\"default\\\": null, \\\"description\\\": \\\"Start date for the weather forecast in the format YYYY-MM-DD (UTC)\\\", \\\"title\\\": \\\"Start Date\\\"}, \\\"temperature_unit\\\": {\\\"default\\\": \\\"celsius\\\", \\\"description\\\": \\\"The unit to express temperature\\\", \\\"enum\\\": [\\\"celsius\\\", \\\"fahrenheit\\\"], \\\"title\\\": \\\"Temperature Unit\\\", \\\"type\\\": \\\"string\\\"}}, \\\"required\\\": [\\\"location_name\\\"], \\\"title\\\": \\\"OpenMeteoToolInput\\\", \\\"type\\\": \\\"object\\\"}\\n\\n# Communication structure\\nYou communicate only in instruction lines. The format is: \\\"Instruction: expected output\\\". You must only use these instruction lines and must not enter empty lines or anything else between instruction lines.\\nYou must skip the instruction lines Function Name, Function Input and Function Output if no function calling is required.\\n\\nMessage: User's message. You never use this instruction line.\\nThought: A single-line step-by-step plan of how to answer the user's message. You can use the available functions defined above. This instruction line must be immediately followed by Function Name if one of the available functions defined above needs to be called, or by Final Answer. Do not provide the answer here.\\nFunction Name: Name of the function. This instruction line must be immediately followed by Function Input.\\nFunction Input: Function parameters in JSON format adhering to the function's input specification ie. {\\\"arg1\\\":\\\"value1\\\", \\\"arg2\\\":\\\"value2\\\"}. Empty object is a valid parameter.\\nFunction Output: Output of the function in JSON format.\\nThought: Continue your thinking process.\\nFinal Answer: Answer the user or ask for more information or clarification. It must always be preceded by Thought.\\n\\n## Examples\\nMessage: Can you translate \\\"How are you\\\" into French?\\nThought: The user wants to translate a text into French. I can do that.\\nFinal Answer: Comment vas-tu?\\n\\n# Instructions\\nUser can only see the Final Answer, all answers must be provided there.\\nYou must always use the communication structure and instructions defined above. Do not forget that Thought must be a single-line immediately followed by either Function Name or Final Answer.\\nFunctions must be used to retrieve factual or historical information to answer the message.\\nIf the user suggests using a function that is not available, answer that the function is not available. You can suggest alternatives if appropriate.\\nWhen the message is unclear or you need more information from the user, ask in Final Answer.\\n\\n# Your capabilities\\nPrefer to use these capabilities over functions.\\n- You understand these languages: English, Spanish, French.\\n- You can translate and summarize, even long documents.\\n\\n# Notes\\n- If you don't know the answer, say that you don't know.\\n- The current time and date in ISO format might be found in the last message.\\n- When answering the user, use friendly formats for time and date.\\n- Use markdown syntax for formatting code snippets, links, JSON, tables, images, files.\\n- Sometimes, things don't go as planned. Functions may not provide useful information on the first few tries. You should always try a few different approaches before declaring the problem unsolvable.\\n- When the function doesn't give you what you were asking for, you must either use another function or a different function input.\\n - When using search engines, you try different formulations of the query, possibly even in a different language.\\n- You cannot do complex calculations, computations, or data manipulations without using functions.\\n\", \"role\": \"system\"}, {\"text\": \"Message: I'm planning a trip to Barcelona, Spain. Can you research key attractions and landmarks I should visit, and also tell me what the current weather conditions are like there?\\n\\nThis message was created at 2025-08-01T13:56:54+00:00\", \"role\": \"user\"}]",+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 17.167,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"attributes\":{\"target\":\"agent.react.start\",\"name\":\"start\",\"traceId\":\"0cff2691-3a45-4988-a243-8cb8c508aa25\",\"iteration\":\"1\",\"llm.tools\":\"[{\\\"tool.name\\\": \\\"Wikipedia\\\", \\\"tool.description\\\": \\\"Search factual and historical information, including biography, history, politics, geography, society, culture, science, technology, people, animal species, mathematics, and other subjects.\\\", \\\"tool.options\\\": \\\"null\\\"}, {\\\"tool.name\\\": \\\"OpenMeteoTool\\\", \\\"tool.description\\\": \\\"Retrieve current, past, or future weather forecasts for a location.\\\", \\\"tool.options\\\": \\\"null\\\"}]\",\"input.mime_type\":\"application/json\",\"input.value\":\"[{\\\"text\\\": \\\"# Available functions\\\\nYou can only use the following functions. Always use all required parameters.\\\\n\\\\nFunction Name: Wikipedia\\\\nDescription: Search factual and historical information, including biography, history, politics, geography, society, culture, science, technology, people, animal species, mathematics, and other subjects.\\\\nInput Schema: {\\\\\\\"properties\\\\\\\": {\\\\\\\"full_text\\\\\\\": {\\\\\\\"default\\\\\\\": false, \\\\\\\"description\\\\\\\": \\\\\\\"If set to true, it will return the full text of the page instead of its short summary.\\\\\\\", \\\\\\\"title\\\\\\\": \\\\\\\"Full Text\\\\\\\", \\\\\\\"type\\\\\\\": \\\\\\\"boolean\\\\\\\"}, \\\\\\\"query\\\\\\\": {\\\\\\\"description\\\\\\\": \\\\\\\"Name of the Wikipedia page.\\\\\\\", \\\\\\\"title\\\\\\\": \\\\\\\"Query\\\\\\\", \\\\\\\"type\\\\\\\": \\\\\\\"string\\\\\\\"}}, \\\\\\\"required\\\\\\\": [\\\\\\\"query\\\\\\\"], \\\\\\\"title\\\\\\\": \\\\\\\"WikipediaToolInput\\\\\\\", \\\\\\\"type\\\\\\\": \\\\\\\"object\\\\\\\"}\\\\n\\\\nFunction Name: OpenMeteoTool\\\\nDescription: Retrieve current, past, or future weather forecasts for a location.\\\\nInput Schema: {\\\\\\\"properties\\\\\\\": {\\\\\\\"country\\\\\\\": {\\\\\\\"anyOf\\\\\\\": [{\\\\\\\"type\\\\\\\": \\\\\\\"string\\\\\\\"}, {\\\\\\\"type\\\\\\\": \\\\\\\"null\\\\\\\"}], \\\\\\\"default\\\\\\\": null, \\\\\\\"description\\\\\\\": \\\\\\\"Country name.\\\\\\\", \\\\\\\"title\\\\\\\": \\\\\\\"Country\\\\\\\"}, \\\\\\\"end_date\\\\\\\": {\\\\\\\"anyOf\\\\\\\": [{\\\\\\\"format\\\\\\\": \\\\\\\"date\\\\\\\", \\\\\\\"type\\\\\\\": \\\\\\\"string\\\\\\\"}, {\\\\\\\"type\\\\\\\": \\\\\\\"null\\\\\\\"}], \\\\\\\"default\\\\\\\": null, \\\\\\\"description\\\\\\\": \\\\\\\"End date for the weather forecast in the format YYYY-MM-DD (UTC)\\\\\\\", \\\\\\\"title\\\\\\\": \\\\\\\"End Date\\\\\\\"}, \\\\\\\"location_name\\\\\\\": {\\\\\\\"description\\\\\\\": \\\\\\\"The name of the location to retrieve weather information.\\\\\\\", \\\\\\\"title\\\\\\\": \\\\\\\"Location Name\\\\\\\", \\\\\\\"type\\\\\\\": \\\\\\\"string\\\\\\\"}, \\\\\\\"start_date\\\\\\\": {\\\\\\\"anyOf\\\\\\\": [{\\\\\\\"format\\\\\\\": \\\\\\\"date\\\\\\\", \\\\\\\"type\\\\\\\": \\\\\\\"string\\\\\\\"}, {\\\\\\\"type\\\\\\\": \\\\\\\"null\\\\\\\"}], \\\\\\\"default\\\\\\\": null, \\\\\\\"description\\\\\\\": \\\\\\\"Start date for the weather forecast in the format YYYY-MM-DD (UTC)\\\\\\\", \\\\\\\"title\\\\\\\": \\\\\\\"Start Date\\\\\\\"}, \\\\\\\"temperature_unit\\\\\\\": {\\\\\\\"default\\\\\\\": \\\\\\\"celsius\\\\\\\", \\\\\\\"description\\\\\\\": \\\\\\\"The unit to express temperature\\\\\\\", \\\\\\\"enum\\\\\\\": [\\\\\\\"celsius\\\\\\\", \\\\\\\"fahrenheit\\\\\\\"], \\\\\\\"title\\\\\\\": \\\\\\\"Temperature Unit\\\\\\\", \\\\\\\"type\\\\\\\": \\\\\\\"string\\\\\\\"}}, \\\\\\\"required\\\\\\\": [\\\\\\\"location_name\\\\\\\"], \\\\\\\"title\\\\\\\": \\\\\\\"OpenMeteoToolInput\\\\\\\", \\\\\\\"type\\\\\\\": \\\\\\\"object\\\\\\\"}\\\\n\\\\n# Communication structure\\\\nYou communicate only in instruction lines. The format is: \\\\\\\"Instruction: expected output\\\\\\\". You must only use these instruction lines and must not enter empty lines or anything else between instruction lines.\\\\nYou must skip the instruction lines Function Name, Function Input and Function Output if no function calling is required.\\\\n\\\\nMessage: User's message. You never use this instruction line.\\\\nThought: A single-line step-by-step plan of how to answer the user's message. You can use the available functions defined above. This instruction line must be immediately followed by Function Name if one of the available functions defined above needs to be called, or by Final Answer. Do not provide the answer here.\\\\nFunction Name: Name of the function. This instruction line must be immediately followed by Function Input.\\\\nFunction Input: Function parameters in JSON format adhering to the function's input specification ie. {\\\\\\\"arg1\\\\\\\":\\\\\\\"value1\\\\\\\", \\\\\\\"arg2\\\\\\\":\\\\\\\"value2\\\\\\\"}. Empty object is a valid parameter.\\\\nFunction Output: Output of the function in JSON format.\\\\nThought: Continue your thinking process.\\\\nFinal Answer: Answer the user or ask for more information or clarification. It must always be preceded by Thought.\\\\n\\\\n## Examples\\\\nMessage: Can you translate \\\\\\\"How are you\\\\\\\" into French?\\\\nThought: The user wants to translate a text into French. I can do that.\\\\nFinal Answer: Comment vas-tu?\\\\n\\\\n# Instructions\\\\nUser can only see the Final Answer, all answers must be provided there.\\\\nYou must always use the communication structure and instructions defined above. Do not forget that Thought must be a single-line immediately followed by either Function Name or Final Answer.\\\\nFunctions must be used to retrieve factual or historical information to answer the message.\\\\nIf the user suggests using a function that is not available, answer that the function is not available. You can suggest alternatives if appropriate.\\\\nWhen the message is unclear or you need more information from the user, ask in Final Answer.\\\\n\\\\n# Your capabilities\\\\nPrefer to use these capabilities over functions.\\\\n- You understand these languages: English, Spanish, French.\\\\n- You can translate and summarize, even long documents.\\\\n\\\\n# Notes\\\\n- If you don't know the answer, say that you don't know.\\\\n- The current time and date in ISO format might be found in the last message.\\\\n- When answering the user, use friendly formats for time and date.\\\\n- Use markdown syntax for formatting code snippets, links, JSON, tables, images, files.\\\\n- Sometimes, things don't go as planned. Functions may not provide useful information on the first few tries. You should always try a few different approaches before declaring the problem unsolvable.\\\\n- When the function doesn't give you what you were asking for, you must either use another function or a different function input.\\\\n - When using search engines, you try different formulations of the query, possibly even in a different language.\\\\n- You cannot do complex calculations, computations, or data manipulations without using functions.\\\\n\\\", \\\"role\\\": \\\"system\\\"}, {\\\"text\\\": \\\"Message: I'm planning a trip to Barcelona, Spain. Can you research key attractions and landmarks I should visit, and also tell me what the current weather conditions are like there?\\\\n\\\\nThis message was created at 2025-08-01T13:56:54+00:00\\\", \\\"role\\\": \\\"user\\\"}]\",\"openinference.span.kind\":\"AGENT\"},\"resourceAttributes\":{\"telemetry.sdk.language\":\"python\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"1.34.1\",\"service.name\":\"unknown_service\"},\"scope\":{\"name\":\"openinference.instrumentation.beeai\",\"version\":\"0.1.33\",\"attributes\":{}}}",+ "internalModel": null+ },+ {+ "id": "c48e7d031a4cb886",+ "traceId": "096fc09a30ab90d2431778f9ee2b3936",+ "startTime": "2025-08-01T13:56:54.166Z",+ "endTime": "2025-08-01T13:57:11.334Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "cb4886242bf214b8",+ "type": "SPAN",+ "environment": "default",+ "name": "iteration-1",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-08-01T13:57:14.164Z",+ "updatedAt": "2025-08-01T13:57:14.240Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 17.168,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"attributes\":{\"target\":\"groupId\",\"name\":\"iteration-1\",\"traceId\":\"0cff2691-3a45-4988-a243-8cb8c508aa25\",\"openinference.span.kind\":\"CHAIN\"},\"resourceAttributes\":{\"telemetry.sdk.language\":\"python\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"1.34.1\",\"service.name\":\"unknown_service\"},\"scope\":{\"name\":\"openinference.instrumentation.beeai\",\"version\":\"0.1.33\",\"attributes\":{}}}",+ "internalModel": null+ },+ {+ "id": "cb4886242bf214b8",+ "traceId": "096fc09a30ab90d2431778f9ee2b3936",+ "startTime": "2025-08-01T13:56:54.163Z",+ "endTime": "2025-08-01T13:57:11.336Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": null,+ "type": "SPAN",+ "environment": "default",+ "name": "beeai-framework-main",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-08-01T13:57:14.163Z",+ "updatedAt": "2025-08-01T13:57:14.213Z",+ "input": "I'm planning a trip to Barcelona, Spain. Can you research key attractions and landmarks I should visit, and also tell me what the current weather conditions are like there?",+ "output": "{'role': 'assistant', 'text': \"Barcelona is a vibrant city known for its rich cultural heritage and stunning architecture, particularly the works of Antoni GaudÃ. Here are some key attractions and landmarks you should consider visiting:\\n\\n1. **Sagrada FamÃlia** - An iconic basilica designed by GaudÃ, still under construction.\\n2. **Park Güell** - A colorful park also designed by GaudÃ, filled with artistic structures and beautiful gardens.\\n3. **La Rambla** - A famous street in the heart of the city ideal for walking, dining, and shopping.\\n4. **Gothic Quarter (Barri Gòtic)** - The historic center of Barcelona with medieval architecture and narrow streets.\\n5. **Casa Batlló** - Another masterpiece by GaudÃ, known for its unique design and vibrant colors.\\n6. **Casa Milà (La Pedrera)** - A modernist building with a wavy stone facade, also designed by GaudÃ.\\n7. **Montjuïc** - A hill offering stunning views of the city, home to several attractions including the Montjuïc Castle and the Magic Fountain.\\n\\nRegarding the current weather, it is 29°C with no rain, and the humidity is at 48%. It's a great time to explore the city!\"}",+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 17.173,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"attributes\":{\"source\":\"ReActAgent\",\"traceId\":\"0cff2691-3a45-4988-a243-8cb8c508aa25\",\"beeai.version\":\"0.1.33\",\"input.value\":\"I'm planning a trip to Barcelona, Spain. Can you research key attractions and landmarks I should visit, and also tell me what the current weather conditions are like there?\",\"output.value\":\"{'role': 'assistant', 'text': \\\"Barcelona is a vibrant city known for its rich cultural heritage and stunning architecture, particularly the works of Antoni GaudÃ. Here are some key attractions and landmarks you should consider visiting:\\\\n\\\\n1. **Sagrada FamÃlia** - An iconic basilica designed by GaudÃ, still under construction.\\\\n2. **Park Güell** - A colorful park also designed by GaudÃ, filled with artistic structures and beautiful gardens.\\\\n3. **La Rambla** - A famous street in the heart of the city ideal for walking, dining, and shopping.\\\\n4. **Gothic Quarter (Barri Gòtic)** - The historic center of Barcelona with medieval architecture and narrow streets.\\\\n5. **Casa Batlló** - Another masterpiece by GaudÃ, known for its unique design and vibrant colors.\\\\n6. **Casa Milà (La Pedrera)** - A modernist building with a wavy stone facade, also designed by GaudÃ.\\\\n7. **Montjuïc** - A hill offering stunning views of the city, home to several attractions including the Montjuïc Castle and the Magic Fountain.\\\\n\\\\nRegarding the current weather, it is 29°C with no rain, and the humidity is at 48%. It's a great time to explore the city!\\\"}\",\"history\":\"[{'text': '# Available functions\\\\nYou can only use the following functions. Always use all required parameters.\\\\n\\\\nFunction Name: Wikipedia\\\\nDescription: Search factual and historical information, including biography, history, politics, geography, society, culture, science, technology, people, animal species, mathematics, and other subjects.\\\\nInput Schema: {\\\"properties\\\": {\\\"full_text\\\": {\\\"default\\\": false, \\\"description\\\": \\\"If set to true, it will return the full text of the page instead of its short summary.\\\", \\\"title\\\": \\\"Full Text\\\", \\\"type\\\": \\\"boolean\\\"}, \\\"query\\\": {\\\"description\\\": \\\"Name of the Wikipedia page.\\\", \\\"title\\\": \\\"Query\\\", \\\"type\\\": \\\"string\\\"}}, \\\"required\\\": [\\\"query\\\"], \\\"title\\\": \\\"WikipediaToolInput\\\", \\\"type\\\": \\\"object\\\"}\\\\n\\\\nFunction Name: OpenMeteoTool\\\\nDescription: Retrieve current, past, or future weather forecasts for a location.\\\\nInput Schema: {\\\"properties\\\": {\\\"country\\\": {\\\"anyOf\\\": [{\\\"type\\\": \\\"string\\\"}, {\\\"type\\\": \\\"null\\\"}], \\\"default\\\": null, \\\"description\\\": \\\"Country name.\\\", \\\"title\\\": \\\"Country\\\"}, \\\"end_date\\\": {\\\"anyOf\\\": [{\\\"format\\\": \\\"date\\\", \\\"type\\\": \\\"string\\\"}, {\\\"type\\\": \\\"null\\\"}], \\\"default\\\": null, \\\"description\\\": \\\"End date for the weather forecast in the format YYYY-MM-DD (UTC)\\\", \\\"title\\\": \\\"End Date\\\"}, \\\"location_name\\\": {\\\"description\\\": \\\"The name of the location to retrieve weather information.\\\", \\\"title\\\": \\\"Location Name\\\", \\\"type\\\": \\\"string\\\"}, \\\"start_date\\\": {\\\"anyOf\\\": [{\\\"format\\\": \\\"date\\\", \\\"type\\\": \\\"string\\\"}, {\\\"type\\\": \\\"null\\\"}], \\\"default\\\": null, \\\"description\\\": \\\"Start date for the weather forecast in the format YYYY-MM-DD (UTC)\\\", \\\"title\\\": \\\"Start Date\\\"}, \\\"temperature_unit\\\": {\\\"default\\\": \\\"celsius\\\", \\\"description\\\": \\\"The unit to express temperature\\\", \\\"enum\\\": [\\\"celsius\\\", \\\"fahrenheit\\\"], \\\"title\\\": \\\"Temperature Unit\\\", \\\"type\\\": \\\"string\\\"}}, \\\"required\\\": [\\\"location_name\\\"], \\\"title\\\": \\\"OpenMeteoToolInput\\\", \\\"type\\\": \\\"object\\\"}\\\\n\\\\n# Communication structure\\\\nYou communicate only in instruction lines. The format is: \\\"Instruction: expected output\\\". You must only use these instruction lines and must not enter empty lines or anything else between instruction lines.\\\\nYou must skip the instruction lines Function Name, Function Input and Function Output if no function calling is required.\\\\n\\\\nMessage: User\\\\'s message. You never use this instruction line.\\\\nThought: A single-line step-by-step plan of how to answer the user\\\\'s message. You can use the available functions defined above. This instruction line must be immediately followed by Function Name if one of the available functions defined above needs to be called, or by Final Answer. Do not provide the answer here.\\\\nFunction Name: Name of the function. This instruction line must be immediately followed by Function Input.\\\\nFunction Input: Function parameters in JSON format adhering to the function\\\\'s input specification ie. {\\\"arg1\\\":\\\"value1\\\", \\\"arg2\\\":\\\"value2\\\"}. Empty object is a valid parameter.\\\\nFunction Output: Output of the function in JSON format.\\\\nThought: Continue your thinking process.\\\\nFinal Answer: Answer the user or ask for more information or clarification. It must always be preceded by Thought.\\\\n\\\\n## Examples\\\\nMessage: Can you translate \\\"How are you\\\" into French?\\\\nThought: The user wants to translate a text into French. I can do that.\\\\nFinal Answer: Comment vas-tu?\\\\n\\\\n# Instructions\\\\nUser can only see the Final Answer, all answers must be provided there.\\\\nYou must always use the communication structure and instructions defined above. Do not forget that Thought must be a single-line immediately followed by either Function Name or Final Answer.\\\\nFunctions must be used to retrieve factual or historical information to answer the message.\\\\nIf the user suggests using a function that is not available, answer that the function is not available. You can suggest alternatives if appropriate.\\\\nWhen the message is unclear or you need more information from the user, ask in Final Answer.\\\\n\\\\n# Your capabilities\\\\nPrefer to use these capabilities over functions.\\\\n- You understand these languages: English, Spanish, French.\\\\n- You can translate and summarize, even long documents.\\\\n\\\\n# Notes\\\\n- If you don\\\\'t know the answer, say that you don\\\\'t know.\\\\n- The current time and date in ISO format might be found in the last message.\\\\n- When answering the user, use friendly formats for time and date.\\\\n- Use markdown syntax for formatting code snippets, links, JSON, tables, images, files.\\\\n- Sometimes, things don\\\\'t go as planned. Functions may not provide useful information on the first few tries. You should always try a few different approaches before declaring the problem unsolvable.\\\\n- When the function doesn\\\\'t give you what you were asking for, you must either use another function or a different function input.\\\\n - When using search engines, you try different formulations of the query, possibly even in a different language.\\\\n- You cannot do complex calculations, computations, or data manipulations without using functions.\\\\n', 'role': 'system'}, {'text': \\\"Message: I'm planning a trip to Barcelona, Spain. Can you research key attractions and landmarks I should visit, and also tell me what the current weather conditions are like there?\\\\n\\\\nThis message was created at 2025-08-01T13:56:54+00:00\\\", 'role': 'user'}, {'text': 'Thought: I will first research key attractions and landmarks in Barcelona and then check the current weather conditions there. \\\\nFunction Name: Wikipedia\\\\nFunction Input: {\\\"query\\\": \\\"Tourism in Barcelona\\\"}\\\\nFunction Output: [{\\\"description\\\": \\\"Barcelona ( BAR-sÉ™-LOH-nÉ™; Catalan: [bəɾsəˈlonÉ™] ; Spanish: [baɾθeˈlona] ) is a city on the northeastern coast of Spain. It is the capital and largest city of the autonomous community of Catalonia, as well as the second-most populous municipality of Spain. With a population of 1.6 million within city limits, its urban area extends to numerous neighbouring municipalities within the province of Barcelona and is home to around 5.3 million people, making it the fifth most populous urban area of the European Union after Paris, the Ruhr area, Madrid and Milan. It is one of the largest metropolises on the Mediterranean Sea, located on the coast between the mouths of the rivers Llobregat and Besòs, bounded to the west by the Serra de Collserola mountain range.\\\\\\\\nAccording to tradition, Barcelona was founded by either the Phoenicians or the Carthaginians, who had trading posts along the Catalonian coast. In the Middle Ages, Barcelona became the capital of the County of Barcelona. After joining with the Kingdom of Aragon to form the composite monarchy of the Crown of Aragon, Barcelona, which continued to be the capital of the Principality of Catalonia, became the most important city in the Crown of Aragon and its main economic and administrative centre, only to be overtaken by Valencia, wrested from Moorish control by the Catalans, shortly before the dynastic union between the Crown of Castile and the Crown of Aragon in 1516. Barcelona became the centre of Catalan separatism, briefly becoming part of France during the 17th century Reapers\\\\' War and again in 1812 until 1814 under Napoleon. Experiencing industrialization and several workers movements during the 19th and early 20th century, it became the capital of autonomous Catalonia in 1931 and it was the epicenter of the revolution experienced by Catalonia during the Spanish Revolution of 1936, until its capture by the fascists in 1939. After the Spanish transition to democracy in the 1970s, Barcelona once again became the capital of an autonomous Catalonia.\\\\\\\\nBarcelona has a rich cultural heritage and is today an important cultural centre and a major tourist destination. Particularly renowned are the architectural works of Antoni Gaudà and LluÃs Domènech i Montaner, which have been designated UNESCO World Heritage Sites. The city is home to two of the most prestigious universities in Spain: the University of Barcelona and Pompeu Fabra University. The headquarters of the Union for the Mediterranean are located in Barcelona. The city is known for hosting the 1992 Summer Olympics as well as world-class conferences and expositions. In addition, many international sport tournaments have been played here.\\\\\\\\nBarcelona is a major cultural, economic, and financial centre in southwestern Europe, as well as the main biotech hub in Spain. As a leading world city, Barcelona\\\\'s influence in global socio-economic affairs qualifies it for global city status (Beta +).\\\\\\\\nBarcelona is a transport hub, with the Port of Barcelona being one of Europe\\\\'s principal seaports and busiest European passenger port, an international airport, Barcelona–El Prat Airport, which handles over 50-million passengers per year, an extensive motorway network, and a high-speed rail line with a link to France and the rest of Europe.\\\", \\\"title\\\": \\\"Barcelona\\\", \\\"url\\\": \\\"https://en.wikipedia.org/wiki/Barcelona\\\"}]\\\\n', 'role': 'assistant'}, {'text': 'Thought: I found information about Barcelona, including its rich cultural heritage and key attractions like the architectural works of Antoni GaudÃ. Now, I will check the current weather conditions in Barcelona. \\\\nFunction Name: OpenMeteoTool\\\\nFunction Input: {\\\"country\\\": \\\"Spain\\\", \\\"location_name\\\": \\\"Barcelona\\\"}\\\\nFunction Output: {\\\"latitude\\\": 41.4375, \\\"longitude\\\": 2.1875, \\\"generationtime_ms\\\": 0.0553131103515625, \\\"utc_offset_seconds\\\": 0, \\\"timezone\\\": \\\"GMT\\\", \\\"timezone_abbreviation\\\": \\\"GMT\\\", \\\"elevation\\\": 44.0, \\\"current_units\\\": {\\\"time\\\": \\\"iso8601\\\", \\\"interval\\\": \\\"seconds\\\", \\\"temperature_2m\\\": \\\"°C\\\", \\\"rain\\\": \\\"mm\\\", \\\"relative_humidity_2m\\\": \\\"%\\\", \\\"wind_speed_10m\\\": \\\"km/h\\\"}, \\\"current\\\": {\\\"time\\\": \\\"2025-08-01T13:45\\\", \\\"interval\\\": 900, \\\"temperature_2m\\\": 29.0, \\\"rain\\\": 0.0, \\\"relative_humidity_2m\\\": 48, \\\"wind_speed_10m\\\": 18.8}, \\\"daily_units\\\": {\\\"time\\\": \\\"iso8601\\\", \\\"temperature_2m_max\\\": \\\"°C\\\", \\\"temperature_2m_min\\\": \\\"°C\\\", \\\"rain_sum\\\": \\\"mm\\\"}, \\\"daily\\\": {\\\"time\\\": [\\\"2025-08-01\\\"], \\\"temperature_2m_max\\\": [29.0], \\\"temperature_2m_min\\\": [20.6], \\\"rain_sum\\\": [0.0]}}\\\\n', 'role': 'assistant'}, {'text': \\\"Barcelona is a vibrant city known for its rich cultural heritage and stunning architecture, particularly the works of Antoni GaudÃ. Here are some key attractions and landmarks you should consider visiting:\\\\n\\\\n1. **Sagrada FamÃlia** - An iconic basilica designed by GaudÃ, still under construction.\\\\n2. **Park Güell** - A colorful park also designed by GaudÃ, filled with artistic structures and beautiful gardens.\\\\n3. **La Rambla** - A famous street in the heart of the city ideal for walking, dining, and shopping.\\\\n4. **Gothic Quarter (Barri Gòtic)** - The historic center of Barcelona with medieval architecture and narrow streets.\\\\n5. **Casa Batlló** - Another masterpiece by GaudÃ, known for its unique design and vibrant colors.\\\\n6. **Casa Milà (La Pedrera)** - A modernist building with a wavy stone facade, also designed by GaudÃ.\\\\n7. **Montjuïc** - A hill offering stunning views of the city, home to several attractions including the Montjuïc Castle and the Magic Fountain.\\\\n\\\\nRegarding the current weather, it is 29°C with no rain, and the humidity is at 48%. It's a great time to explore the city!\\\", 'role': 'assistant'}]\",\"openinference.span.kind\":\"AGENT\"},\"resourceAttributes\":{\"telemetry.sdk.language\":\"python\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"1.34.1\",\"service.name\":\"unknown_service\"},\"scope\":{\"name\":\"openinference.instrumentation.beeai\",\"version\":\"0.1.33\",\"attributes\":{}}}",+ "internalModel": null+ },+ {+ "id": "fce7074c89470876",+ "traceId": "096fc09a30ab90d2431778f9ee2b3936",+ "startTime": "2025-08-01T13:56:57.470Z",+ "endTime": "2025-08-01T13:57:11.334Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "c48e7d031a4cb886",+ "type": "SPAN",+ "environment": "default",+ "name": "agent.react.partial_update-263",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-08-01T13:57:14.161Z",+ "updatedAt": "2025-08-01T13:57:14.256Z",+ "input": null,+ "output": "[{\"description\": \"Barcelona ( BAR-sÉ™-LOH-nÉ™; Catalan: [bəɾsəˈlonÉ™] ; Spanish: [baɾθeˈlona] ) is a city on the northeastern coast of Spain. It is the capital and largest city of the autonomous community of Catalonia, as well as the second-most populous municipality of Spain. With a population of 1.6 million within city limits, its urban area extends to numerous neighbouring municipalities within the province of Barcelona and is home to around 5.3 million people, making it the fifth most populous urban area of the European Union after Paris, the Ruhr area, Madrid and Milan. It is one of the largest metropolises on the Mediterranean Sea, located on the coast between the mouths of the rivers Llobregat and Besòs, bounded to the west by the Serra de Collserola mountain range.\\nAccording to tradition, Barcelona was founded by either the Phoenicians or the Carthaginians, who had trading posts along the Catalonian coast. In the Middle Ages, Barcelona became the capital of the County of Barcelona. After joining with the Kingdom of Aragon to form the composite monarchy of the Crown of Aragon, Barcelona, which continued to be the capital of the Principality of Catalonia, became the most important city in the Crown of Aragon and its main economic and administrative centre, only to be overtaken by Valencia, wrested from Moorish control by the Catalans, shortly before the dynastic union between the Crown of Castile and the Crown of Aragon in 1516. Barcelona became the centre of Catalan separatism, briefly becoming part of France during the 17th century Reapers' War and again in 1812 until 1814 under Napoleon. Experiencing industrialization and several workers movements during the 19th and early 20th century, it became the capital of autonomous Catalonia in 1931 and it was the epicenter of the revolution experienced by Catalonia during the Spanish Revolution of 1936, until its capture by the fascists in 1939. After the Spanish transition to democracy in the 1970s, Barcelona once again became the capital of an autonomous Catalonia.\\nBarcelona has a rich cultural heritage and is today an important cultural centre and a major tourist destination. Particularly renowned are the architectural works of Antoni Gaudà and LluÃs Domènech i Montaner, which have been designated UNESCO World Heritage Sites. The city is home to two of the most prestigious universities in Spain: the University of Barcelona and Pompeu Fabra University. The headquarters of the Union for the Mediterranean are located in Barcelona. The city is known for hosting the 1992 Summer Olympics as well as world-class conferences and expositions. In addition, many international sport tournaments have been played here.\\nBarcelona is a major cultural, economic, and financial centre in southwestern Europe, as well as the main biotech hub in Spain. As a leading world city, Barcelona's influence in global socio-economic affairs qualifies it for global city status (Beta +).\\nBarcelona is a transport hub, with the Port of Barcelona being one of Europe's principal seaports and busiest European passenger port, an international airport, Barcelona–El Prat Airport, which handles over 50-million passengers per year, an extensive motorway network, and a high-speed rail line with a link to France and the rest of Europe.\", \"title\": \"Barcelona\", \"url\": \"https://en.wikipedia.org/wiki/Barcelona\"}]",+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 13.864,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"attributes\":{\"target\":\"agent.react.partial_update\",\"name\":\"partial_update\",\"traceId\":\"0cff2691-3a45-4988-a243-8cb8c508aa25\",\"output.value\":\"[{\\\"description\\\": \\\"Barcelona ( BAR-sÉ™-LOH-nÉ™; Catalan: [bəɾsəˈlonÉ™] ; Spanish: [baɾθeˈlona] ) is a city on the northeastern coast of Spain. It is the capital and largest city of the autonomous community of Catalonia, as well as the second-most populous municipality of Spain. With a population of 1.6 million within city limits, its urban area extends to numerous neighbouring municipalities within the province of Barcelona and is home to around 5.3 million people, making it the fifth most populous urban area of the European Union after Paris, the Ruhr area, Madrid and Milan. It is one of the largest metropolises on the Mediterranean Sea, located on the coast between the mouths of the rivers Llobregat and Besòs, bounded to the west by the Serra de Collserola mountain range.\\\\nAccording to tradition, Barcelona was founded by either the Phoenicians or the Carthaginians, who had trading posts along the Catalonian coast. In the Middle Ages, Barcelona became the capital of the County of Barcelona. After joining with the Kingdom of Aragon to form the composite monarchy of the Crown of Aragon, Barcelona, which continued to be the capital of the Principality of Catalonia, became the most important city in the Crown of Aragon and its main economic and administrative centre, only to be overtaken by Valencia, wrested from Moorish control by the Catalans, shortly before the dynastic union between the Crown of Castile and the Crown of Aragon in 1516. Barcelona became the centre of Catalan separatism, briefly becoming part of France during the 17th century Reapers' War and again in 1812 until 1814 under Napoleon. Experiencing industrialization and several workers movements during the 19th and early 20th century, it became the capital of autonomous Catalonia in 1931 and it was the epicenter of the revolution experienced by Catalonia during the Spanish Revolution of 1936, until its capture by the fascists in 1939. After the Spanish transition to democracy in the 1970s, Barcelona once again became the capital of an autonomous Catalonia.\\\\nBarcelona has a rich cultural heritage and is today an important cultural centre and a major tourist destination. Particularly renowned are the architectural works of Antoni Gaudà and LluÃs Domènech i Montaner, which have been designated UNESCO World Heritage Sites. The city is home to two of the most prestigious universities in Spain: the University of Barcelona and Pompeu Fabra University. The headquarters of the Union for the Mediterranean are located in Barcelona. The city is known for hosting the 1992 Summer Olympics as well as world-class conferences and expositions. In addition, many international sport tournaments have been played here.\\\\nBarcelona is a major cultural, economic, and financial centre in southwestern Europe, as well as the main biotech hub in Spain. As a leading world city, Barcelona's influence in global socio-economic affairs qualifies it for global city status (Beta +).\\\\nBarcelona is a transport hub, with the Port of Barcelona being one of Europe's principal seaports and busiest European passenger port, an international airport, Barcelona–El Prat Airport, which handles over 50-million passengers per year, an extensive motorway network, and a high-speed rail line with a link to France and the rest of Europe.\\\", \\\"title\\\": \\\"Barcelona\\\", \\\"url\\\": \\\"https://en.wikipedia.org/wiki/Barcelona\\\"}]\",\"output.mime_type\":\"application/json\",\"thought\":\"I will first research key attractions and landmarks in Barcelona and then check the current weather conditions there. \",\"tool.name\":\"Wikipedia\",\"tool.parameters\":\"{\\\"query\\\": \\\"Tourism in Barcelona\\\"}\",\"openinference.span.kind\":\"AGENT\"},\"resourceAttributes\":{\"telemetry.sdk.language\":\"python\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"1.34.1\",\"service.name\":\"unknown_service\"},\"scope\":{\"name\":\"openinference.instrumentation.beeai\",\"version\":\"0.1.33\",\"attributes\":{}}}",+ "internalModel": null+ },+ {+ "id": "ff8b04dfe1f3e047",+ "traceId": "096fc09a30ab90d2431778f9ee2b3936",+ "startTime": "2025-08-01T13:56:55.682Z",+ "endTime": "2025-08-01T13:57:11.334Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "c48e7d031a4cb886",+ "type": "SPAN",+ "environment": "default",+ "name": "agent.react.update-13",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-08-01T13:57:14.161Z",+ "updatedAt": "2025-08-01T13:57:14.259Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 15.652,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"attributes\":{\"target\":\"agent.react.update\",\"name\":\"update\",\"traceId\":\"0cff2691-3a45-4988-a243-8cb8c508aa25\",\"output.mime_type\":\"application/json\",\"thought\":\"I will first research key attractions and landmarks in Barcelona and then check the current weather conditions there. \",\"tool.name\":\"Wikipedia\",\"tool.parameters\":\"{\\\"query\\\": \\\"Tourism in Barcelona\\\"}\",\"openinference.span.kind\":\"AGENT\"},\"resourceAttributes\":{\"telemetry.sdk.language\":\"python\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"1.34.1\",\"service.name\":\"unknown_service\"},\"scope\":{\"name\":\"openinference.instrumentation.beeai\",\"version\":\"0.1.33\",\"attributes\":{}}}",+ "internalModel": null+ }+ ]+}diff --git a/worker/src/__tests__/chatml/framework-traces/claude-agent-2025-12-22.chatml.json b/worker/src/__tests__/chatml/framework-traces/claude-agent-2025-12-22.chatml.jsonnew file mode 100644index 0000000000..966863d770--- /dev/null+++ b/worker/src/__tests__/chatml/framework-traces/claude-agent-2025-12-22.chatml.json@@ -0,0 +1,169 @@+{+ "2cc13e77781787fd": {+ "input": {+ "success": false,+ "error": {+ "name": "ZodError",+ "message": "[\n {\n \"expected\": \"array\",\n \"code\": \"invalid_type\",\n \"path\": [],\n \"message\": \"Invalid input: expected array, received object\"\n }\n]"+ }+ },+ "output": {+ "success": true,+ "data": [+ {+ "role": "assistant",+ "content": [+ {+ "type": "tool_use",+ "id": "toolu_01TKoqQLvY2UWuC49qnD48y7",+ "name": "mcp__weather__get_weather",+ "input": {+ "city": "Berlin"+ }+ }+ ]+ }+ ]+ }+ },+ "371496f71d82baed": {+ "input": {+ "success": false,+ "error": {+ "name": "ZodError",+ "message": "[\n {\n \"expected\": \"array\",\n \"code\": \"invalid_type\",\n \"path\": [],\n \"message\": \"Invalid input: expected array, received object\"\n }\n]"+ }+ },+ "output": {+ "success": true,+ "data": [+ {+ "role": "assistant",+ "content": [+ {+ "type": "text",+ "text": "Great! Here's the current weather for both cities:\n\n**Berlin**: Cloudy, 59°F (15°C)\n**New York**: Sunny, 75°F (24°C)\n\nNew York is enjoying warmer, sunny weather while Berlin is a bit cooler with cloudy skies. Is there anything else you'd like to know about these destinations?"+ }+ ]+ }+ ]+ }+ },+ "e9aac170e5d48125": {+ "input": {+ "success": false,+ "error": {+ "name": "ZodError",+ "message": "[\n {\n \"expected\": \"array\",\n \"code\": \"invalid_type\",\n \"path\": [],\n \"message\": \"Invalid input: expected array, received object\"\n }\n]"+ }+ },+ "output": {+ "success": true,+ "data": [+ {+ "role": "assistant",+ "content": [+ {+ "type": "text",+ "text": "I'll check the weather in both Berlin and New York for you."+ }+ ]+ }+ ]+ }+ },+ "f8e8f040dc94e67e": {+ "input": {+ "success": false,+ "error": {+ "name": "ZodError",+ "message": "[\n {\n \"expected\": \"array\",\n \"code\": \"invalid_type\",\n \"path\": [],\n \"message\": \"Invalid input: expected array, received object\"\n }\n]"+ }+ },+ "output": {+ "success": true,+ "data": [+ {+ "role": "assistant",+ "content": [+ {+ "type": "tool_use",+ "id": "toolu_01NtVat4vJLFfVd5TqdLHcA7",+ "name": "mcp__weather__get_weather",+ "input": {+ "city": "New York"+ }+ }+ ]+ }+ ]+ }+ },+ "805dc5dff9e33e32": {+ "input": {+ "success": false,+ "error": {+ "name": "ZodError",+ "message": "[\n {\n \"expected\": \"array\",\n \"code\": \"invalid_type\",\n \"path\": [],\n \"message\": \"Invalid input: expected array, received object\"\n }\n]"+ }+ },+ "output": {+ "success": true,+ "data": [+ {+ "role": "assistant",+ "content": [+ {+ "type": "text",+ "text": "Great! Here's the current weather for both cities:\n\n**Berlin**: Cloudy, 59°F (15°C)\n**New York**: Sunny, 75°F (24°C)\n\nNew York is enjoying warmer, sunny weather while Berlin is a bit cooler with cloudy skies. Is there anything else you'd like to know about these destinations?"+ }+ ]+ }+ ]+ }+ },+ "edbd987c5f361fdf": {+ "input": {+ "success": false,+ "error": {+ "name": "ZodError",+ "message": "[\n {\n \"expected\": \"array\",\n \"code\": \"invalid_type\",\n \"path\": [],\n \"message\": \"Invalid input: expected array, received object\"\n }\n]"+ }+ },+ "output": {+ "success": true,+ "data": [+ {+ "content": [+ {+ "type": "text",+ "text": "Weather in New York: Sunny, 75°F"+ }+ ]+ }+ ]+ }+ },+ "f411dab686a064b1": {+ "input": {+ "success": false,+ "error": {+ "name": "ZodError",+ "message": "[\n {\n \"expected\": \"array\",\n \"code\": \"invalid_type\",\n \"path\": [],\n \"message\": \"Invalid input: expected array, received object\"\n }\n]"+ }+ },+ "output": {+ "success": true,+ "data": [+ {+ "content": [+ {+ "type": "text",+ "text": "Weather in Berlin: Cloudy, 59°F"+ }+ ]+ }+ ]+ }+ }+}\ No newline at end of filediff --git a/worker/src/__tests__/chatml/framework-traces/claude-agent-2025-12-22.trace.json b/worker/src/__tests__/chatml/framework-traces/claude-agent-2025-12-22.trace.jsonnew file mode 100644index 0000000000..6fc8ce4d59--- /dev/null+++ b/worker/src/__tests__/chatml/framework-traces/claude-agent-2025-12-22.trace.json@@ -0,0 +1,776 @@+{+ "trace": {+ "id": "097f1d8982fa909b8cffb14a166ec272",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "name": "claude.conversation",+ "timestamp": "2025-12-22T10:46:15.528Z",+ "environment": "default",+ "tags": [],+ "bookmarked": true,+ "release": null,+ "version": null,+ "userId": null,+ "sessionId": null,+ "public": true,+ "input": "\"{\\\"prompt\\\":\\\"What's the weather like in Berlin and New York?\\\",\\\"system\\\":\\\"You are a friendly travel assistant who helps with weather information.\\\"}\"",+ "output": "\"{\\\"content\\\":[{\\\"type\\\":\\\"text\\\",\\\"text\\\":\\\"Great! Here's the current weather for both cities:\\\\n\\\\n**Berlin**: Cloudy, 59°F (15°C)\\\\n**New York**: Sunny, 75°F (24°C)\\\\n\\\\nNew York is enjoying warmer, sunny weather while Berlin is a bit cooler with cloudy skies. Is there anything else you'd like to know about these destinations?\\\"}],\\\"role\\\":\\\"assistant\\\"}\"",+ "createdAt": "2025-12-22T10:46:21.000Z",+ "updatedAt": "2025-12-22T10:46:25.857Z",+ "metadata": "{\"attributes\":{\"gen_ai.operation.name\":\"chain\",\"langsmith.span.kind\":\"chain\",\"langsmith.trace.name\":\"claude.conversation\",\"langsmith.trace.session_name\":\"default\",\"gen_ai.system\":\"langchain\",\"langsmith.metadata.model\":\"claude-sonnet-4-5-20250929\",\"langsmith.metadata.ls_method\":\"trace\",\"langsmith.metadata.num_turns\":\"3\",\"langsmith.metadata.session_id\":\"6fb9b4b8-dd4d-4d41-8d4f-c0c0799a6559\",\"langsmith.metadata.duration_ms\":\"7062\",\"langsmith.metadata.duration_api_ms\":\"14791\",\"langsmith.metadata.is_error\":\"false\",\"langsmith.metadata.LANGSMITH_OTEL_ENABLED\":\"true\",\"langsmith.metadata.LANGSMITH_OTEL_ONLY\":\"true\",\"langsmith.metadata.LANGSMITH_TRACING\":\"true\"},\"resourceAttributes\":{\"telemetry.sdk.language\":\"python\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"1.37.0\",\"service.name\":\"unknown_service\"},\"scope\":{\"name\":\"langsmith\",\"attributes\":{}}}",+ "scores": [+ {+ "id": "38b67864-8102-44c1-af54-749902c4b93a",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "environment": "default",+ "name": "correctness",+ "value": 0,+ "source": "EVAL",+ "authorUserId": null,+ "comment": "The generation does not provide any factual information about the weather in Berlin and New York, which is the key fact required by the query.",+ "configId": null,+ "queueId": null,+ "executionTraceId": "3373d108b22dafa5aef57b613790095d",+ "createdAt": "2026-02-10T17:15:57.000Z",+ "updatedAt": "2026-02-10T17:15:57.034Z",+ "timestamp": "2026-02-10T17:15:56.965Z",+ "traceId": "097f1d8982fa909b8cffb14a166ec272",+ "sessionId": null,+ "datasetRunId": null,+ "observationId": null,+ "longStringValue": "",+ "stringValue": null,+ "dataType": "NUMERIC",+ "metadata": "{\"job_execution_id\":\"4de958ad-5279-443f-b38e-979b60ea206b\",\"job_configuration_id\":\"f41f3331-fea7-4447-aeb3-edfd022bcec0\",\"target_trace_id\":\"097f1d8982fa909b8cffb14a166ec272\"}"+ },+ {+ "id": "4dfe7d0a-3a97-4813-9405-ffe7b6e54825",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "environment": "default",+ "name": "hallucination",+ "value": 1,+ "source": "EVAL",+ "authorUserId": null,+ "comment": "The response provides specific current weather conditions and temperatures for Berlin and New York without access to real-time or date-specific data, making the precise details unverifiable and likely fabricated for the present moment; this is a common hallucination pattern for LLMs when generating time-bound factual content.",+ "configId": null,+ "queueId": null,+ "executionTraceId": "47fee41c751611eb6423a1cef15b0819",+ "createdAt": "2025-12-22T10:47:03.000Z",+ "updatedAt": "2025-12-22T10:47:03.025Z",+ "timestamp": "2025-12-22T10:47:02.961Z",+ "traceId": "097f1d8982fa909b8cffb14a166ec272",+ "sessionId": null,+ "datasetRunId": null,+ "observationId": null,+ "longStringValue": "",+ "stringValue": null,+ "dataType": "NUMERIC",+ "metadata": "{\"job_execution_id\":\"7666fdb5-03e9-4102-8ce0-b9c33b2264b8\",\"job_configuration_id\":\"af94c82e-ac66-400d-add5-75cdfa77915d\",\"target_trace_id\":\"097f1d8982fa909b8cffb14a166ec272\"}"+ },+ {+ "id": "37cd5b20-36af-4bf6-97dc-dd5a4798c7ab",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "environment": "default",+ "name": "toxicity",+ "value": 0,+ "source": "EVAL",+ "authorUserId": null,+ "comment": "The generation provides factual weather information in a friendly manner without any harmful or disrespectful language, making it non-toxic.",+ "configId": null,+ "queueId": null,+ "executionTraceId": "52608594b2b179dcf41662ab7eda3866",+ "createdAt": "2025-12-22T10:47:03.000Z",+ "updatedAt": "2025-12-22T10:47:02.533Z",+ "timestamp": "2025-12-22T10:47:02.451Z",+ "traceId": "097f1d8982fa909b8cffb14a166ec272",+ "sessionId": null,+ "datasetRunId": null,+ "observationId": null,+ "longStringValue": "",+ "stringValue": null,+ "dataType": "NUMERIC",+ "metadata": "{\"job_execution_id\":\"a8fdee36-4012-4065-a664-dc72dad6b2be\",\"job_configuration_id\":\"12436733-36b3-4b19-be24-b97a1a6063ad\",\"target_trace_id\":\"097f1d8982fa909b8cffb14a166ec272\"}"+ }+ ],+ "corrections": [],+ "latency": 7.36,+ "observations": [+ {+ "id": "2cc13e77781787fd",+ "traceId": "097f1d8982fa909b8cffb14a166ec272",+ "startTime": "2025-12-22T10:46:18.725Z",+ "endTime": "2025-12-22T10:46:18.977Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "805dc5dff9e33e32",+ "type": "GENERATION",+ "environment": "default",+ "name": "claude.assistant.turn",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-12-22T10:46:20.575Z",+ "updatedAt": "2025-12-22T10:46:20.576Z",+ "input": null,+ "output": null,+ "model": "claude-sonnet-4-5-20250929",+ "internalModelId": "c5qmrqolku82tra3vgdixmys",+ "modelParameters": {},+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 0.252,+ "timeToFirstToken": null,+ "usageDetails": {+ "input": 5,+ "output": 53,+ "total": 58+ },+ "costDetails": {+ "input": 0.000015,+ "output": 0.000795,+ "total": 0.00081+ },+ "providedCostDetails": {},+ "inputCost": 0.000015,+ "outputCost": 0.000795,+ "totalCost": 0.00081,+ "inputUsage": 5,+ "outputUsage": 53,+ "totalUsage": 58,+ "usagePricingTierId": "c5qmrqolku82tra3vgdixmys_tier_default",+ "usagePricingTierName": "Standard",+ "toolDefinitions": {},+ "toolCalls": [+ "{\"id\":\"toolu_01TKoqQLvY2UWuC49qnD48y7\",\"arguments\":\"{\\\"city\\\":\\\"Berlin\\\"}\",\"type\":\"tool_use\",\"index\":0}"+ ],+ "toolCallNames": [+ "mcp__weather__get_weather"+ ],+ "metadata": "{}"+ },+ {+ "id": "371496f71d82baed",+ "traceId": "097f1d8982fa909b8cffb14a166ec272",+ "startTime": "2025-12-22T10:46:19.155Z",+ "endTime": "2025-12-22T10:46:22.888Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "805dc5dff9e33e32",+ "type": "GENERATION",+ "environment": "default",+ "name": "claude.assistant.turn",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-12-22T10:46:25.773Z",+ "updatedAt": "2025-12-22T10:46:25.773Z",+ "input": null,+ "output": null,+ "model": "claude-sonnet-4-5-20250929",+ "internalModelId": "c5qmrqolku82tra3vgdixmys",+ "modelParameters": {},+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 3.733,+ "timeToFirstToken": null,+ "usageDetails": {+ "input": 5,+ "output": 94,+ "total": 99+ },+ "costDetails": {+ "input": 0.000015,+ "output": 0.00141,+ "total": 0.001425+ },+ "providedCostDetails": {},+ "inputCost": 0.000015,+ "outputCost": 0.00141,+ "totalCost": 0.001425,+ "inputUsage": 5,+ "outputUsage": 94,+ "totalUsage": 99,+ "usagePricingTierId": "c5qmrqolku82tra3vgdixmys_tier_default",+ "usagePricingTierName": "Standard",+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ },+ {+ "id": "e9aac170e5d48125",+ "traceId": "097f1d8982fa909b8cffb14a166ec272",+ "startTime": "2025-12-22T10:46:15.528Z",+ "endTime": "2025-12-22T10:46:18.725Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "805dc5dff9e33e32",+ "type": "GENERATION",+ "environment": "default",+ "name": "claude.assistant.turn",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-12-22T10:46:20.575Z",+ "updatedAt": "2025-12-22T10:46:20.575Z",+ "input": null,+ "output": null,+ "model": "claude-sonnet-4-5-20250929",+ "internalModelId": "c5qmrqolku82tra3vgdixmys",+ "modelParameters": {},+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 3.197,+ "timeToFirstToken": null,+ "usageDetails": {+ "input": 19,+ "output": 29,+ "total": 48+ },+ "costDetails": {+ "input": 0.000057,+ "output": 0.000435,+ "total": 0.000492+ },+ "providedCostDetails": {},+ "inputCost": 0.000057,+ "outputCost": 0.000435,+ "totalCost": 0.000492,+ "inputUsage": 19,+ "outputUsage": 29,+ "totalUsage": 48,+ "usagePricingTierId": "c5qmrqolku82tra3vgdixmys_tier_default",+ "usagePricingTierName": "Standard",+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ },+ {+ "id": "f8e8f040dc94e67e",+ "traceId": "097f1d8982fa909b8cffb14a166ec272",+ "startTime": "2025-12-22T10:46:18.977Z",+ "endTime": "2025-12-22T10:46:22.849Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "805dc5dff9e33e32",+ "type": "GENERATION",+ "environment": "default",+ "name": "claude.assistant.turn",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-12-22T10:46:25.773Z",+ "updatedAt": "2025-12-22T10:46:25.773Z",+ "input": null,+ "output": null,+ "model": "claude-sonnet-4-5-20250929",+ "internalModelId": "c5qmrqolku82tra3vgdixmys",+ "modelParameters": {},+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 3.872,+ "timeToFirstToken": null,+ "usageDetails": {+ "input": 5,+ "output": 56,+ "total": 61+ },+ "costDetails": {+ "input": 0.000015,+ "output": 0.00084,+ "total": 0.000855+ },+ "providedCostDetails": {},+ "inputCost": 0.000015,+ "outputCost": 0.00084,+ "totalCost": 0.000855,+ "inputUsage": 5,+ "outputUsage": 56,+ "totalUsage": 61,+ "usagePricingTierId": "c5qmrqolku82tra3vgdixmys_tier_default",+ "usagePricingTierName": "Standard",+ "toolDefinitions": {},+ "toolCalls": [+ "{\"id\":\"toolu_01NtVat4vJLFfVd5TqdLHcA7\",\"arguments\":\"{\\\"city\\\":\\\"New York\\\"}\",\"type\":\"tool_use\",\"index\":0}"+ ],+ "toolCallNames": [+ "mcp__weather__get_weather"+ ],+ "metadata": "{}"+ },+ {+ "id": "805dc5dff9e33e32",+ "traceId": "097f1d8982fa909b8cffb14a166ec272",+ "startTime": "2025-12-22T10:46:15.529Z",+ "endTime": "2025-12-22T10:46:22.888Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": null,+ "type": "SPAN",+ "environment": "default",+ "name": "claude.conversation",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-12-22T10:46:25.773Z",+ "updatedAt": "2025-12-22T10:46:25.773Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 7.359,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ },+ {+ "id": "edbd987c5f361fdf",+ "traceId": "097f1d8982fa909b8cffb14a166ec272",+ "startTime": "2025-12-22T10:46:19.093Z",+ "endTime": "2025-12-22T10:46:19.134Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "805dc5dff9e33e32",+ "type": "TOOL",+ "environment": "default",+ "name": "mcp__weather__get_weather",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-12-22T10:46:20.575Z",+ "updatedAt": "2025-12-22T10:46:20.575Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": {},+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 0.041,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ },+ {+ "id": "f411dab686a064b1",+ "traceId": "097f1d8982fa909b8cffb14a166ec272",+ "startTime": "2025-12-22T10:46:19.027Z",+ "endTime": "2025-12-22T10:46:19.068Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "805dc5dff9e33e32",+ "type": "TOOL",+ "environment": "default",+ "name": "mcp__weather__get_weather",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-12-22T10:46:20.575Z",+ "updatedAt": "2025-12-22T10:46:20.575Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": {},+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 0.041,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ }+ ]+ },+ "observations": [+ {+ "id": "2cc13e77781787fd",+ "traceId": "097f1d8982fa909b8cffb14a166ec272",+ "startTime": "2025-12-22T10:46:18.725Z",+ "endTime": "2025-12-22T10:46:18.977Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "805dc5dff9e33e32",+ "type": "GENERATION",+ "environment": "default",+ "name": "claude.assistant.turn",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-12-22T10:46:20.575Z",+ "updatedAt": "2025-12-22T10:46:20.576Z",+ "input": "{\"content\":\"role\"}",+ "output": "{\"content\":[{\"type\":\"tool_use\",\"id\":\"toolu_01TKoqQLvY2UWuC49qnD48y7\",\"name\":\"mcp__weather__get_weather\",\"input\":{\"city\":\"Berlin\"}}],\"role\":\"assistant\"}",+ "model": "claude-sonnet-4-5-20250929",+ "internalModelId": "c5qmrqolku82tra3vgdixmys",+ "modelParameters": {},+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 0.252,+ "timeToFirstToken": null,+ "usageDetails": {+ "input": 5,+ "output": 53,+ "total": 58+ },+ "costDetails": {+ "input": 0.000015,+ "output": 0.000795,+ "total": 0.00081+ },+ "providedCostDetails": {},+ "inputCost": 0.000015,+ "outputCost": 0.000795,+ "totalCost": 0.00081,+ "inputUsage": 5,+ "outputUsage": 53,+ "totalUsage": 58,+ "usagePricingTierId": "c5qmrqolku82tra3vgdixmys_tier_default",+ "usagePricingTierName": "Standard",+ "toolDefinitions": {},+ "toolCalls": [+ "{\"id\":\"toolu_01TKoqQLvY2UWuC49qnD48y7\",\"arguments\":\"{\\\"city\\\":\\\"Berlin\\\"}\",\"type\":\"tool_use\",\"index\":0}"+ ],+ "toolCallNames": [+ "mcp__weather__get_weather"+ ],+ "metadata": "{\"attributes\":{\"gen_ai.operation.name\":\"chat\",\"gen_ai.serialized.name\":\"claude.assistant.turn\",\"langsmith.span.kind\":\"llm\",\"langsmith.trace.name\":\"claude.assistant.turn\",\"langsmith.trace.session_name\":\"default\",\"gen_ai.system\":\"anthropic\",\"gen_ai.request.model\":\"claude-sonnet-4-5-20250929\",\"langsmith.metadata.ls_model_name\":\"claude-sonnet-4-5-20250929\",\"langsmith.metadata.LANGSMITH_OTEL_ENABLED\":\"true\",\"langsmith.metadata.LANGSMITH_OTEL_ONLY\":\"true\",\"langsmith.metadata.LANGSMITH_TRACING\":\"true\"},\"resourceAttributes\":{\"telemetry.sdk.language\":\"python\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"1.37.0\",\"service.name\":\"unknown_service\"},\"scope\":{\"name\":\"langsmith\",\"attributes\":{}}}",+ "internalModel": "c5qmrqolku82tra3vgdixmys"+ },+ {+ "id": "371496f71d82baed",+ "traceId": "097f1d8982fa909b8cffb14a166ec272",+ "startTime": "2025-12-22T10:46:19.155Z",+ "endTime": "2025-12-22T10:46:22.888Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "805dc5dff9e33e32",+ "type": "GENERATION",+ "environment": "default",+ "name": "claude.assistant.turn",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-12-22T10:46:25.773Z",+ "updatedAt": "2025-12-22T10:46:25.773Z",+ "input": "{\"content\":\"role\"}",+ "output": "{\"content\":[{\"type\":\"text\",\"text\":\"Great! Here's the current weather for both cities:\\n\\n**Berlin**: Cloudy, 59°F (15°C)\\n**New York**: Sunny, 75°F (24°C)\\n\\nNew York is enjoying warmer, sunny weather while Berlin is a bit cooler with cloudy skies. Is there anything else you'd like to know about these destinations?\"}],\"role\":\"assistant\"}",+ "model": "claude-sonnet-4-5-20250929",+ "internalModelId": "c5qmrqolku82tra3vgdixmys",+ "modelParameters": {},+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 3.733,+ "timeToFirstToken": null,+ "usageDetails": {+ "input": 5,+ "output": 94,+ "total": 99+ },+ "costDetails": {+ "input": 0.000015,+ "output": 0.00141,+ "total": 0.001425+ },+ "providedCostDetails": {},+ "inputCost": 0.000015,+ "outputCost": 0.00141,+ "totalCost": 0.001425,+ "inputUsage": 5,+ "outputUsage": 94,+ "totalUsage": 99,+ "usagePricingTierId": "c5qmrqolku82tra3vgdixmys_tier_default",+ "usagePricingTierName": "Standard",+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"attributes\":{\"langsmith.span.kind\":\"llm\",\"langsmith.trace.name\":\"claude.assistant.turn\",\"langsmith.trace.session_name\":\"default\",\"gen_ai.operation.name\":\"chat\",\"gen_ai.system\":\"anthropic\",\"gen_ai.request.model\":\"claude-sonnet-4-5-20250929\",\"langsmith.metadata.ls_model_name\":\"claude-sonnet-4-5-20250929\",\"langsmith.metadata.LANGSMITH_OTEL_ENABLED\":\"true\",\"langsmith.metadata.LANGSMITH_OTEL_ONLY\":\"true\",\"langsmith.metadata.LANGSMITH_TRACING\":\"true\",\"gen_ai.serialized.name\":\"claude.assistant.turn\"},\"resourceAttributes\":{\"telemetry.sdk.language\":\"python\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"1.37.0\",\"service.name\":\"unknown_service\"},\"scope\":{\"name\":\"langsmith\",\"attributes\":{}}}",+ "internalModel": "c5qmrqolku82tra3vgdixmys"+ },+ {+ "id": "e9aac170e5d48125",+ "traceId": "097f1d8982fa909b8cffb14a166ec272",+ "startTime": "2025-12-22T10:46:15.528Z",+ "endTime": "2025-12-22T10:46:18.725Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "805dc5dff9e33e32",+ "type": "GENERATION",+ "environment": "default",+ "name": "claude.assistant.turn",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-12-22T10:46:20.575Z",+ "updatedAt": "2025-12-22T10:46:20.575Z",+ "input": "{\"content\":\"What's the weather like in Berlin and New York?\",\"role\":\"user\"}",+ "output": "{\"content\":[{\"type\":\"text\",\"text\":\"I'll check the weather in both Berlin and New York for you.\"}],\"role\":\"assistant\"}",+ "model": "claude-sonnet-4-5-20250929",+ "internalModelId": "c5qmrqolku82tra3vgdixmys",+ "modelParameters": {},+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 3.197,+ "timeToFirstToken": null,+ "usageDetails": {+ "input": 19,+ "output": 29,+ "total": 48+ },+ "costDetails": {+ "input": 0.000057,+ "output": 0.000435,+ "total": 0.000492+ },+ "providedCostDetails": {},+ "inputCost": 0.000057,+ "outputCost": 0.000435,+ "totalCost": 0.000492,+ "inputUsage": 19,+ "outputUsage": 29,+ "totalUsage": 48,+ "usagePricingTierId": "c5qmrqolku82tra3vgdixmys_tier_default",+ "usagePricingTierName": "Standard",+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"attributes\":{\"gen_ai.operation.name\":\"chat\",\"gen_ai.serialized.name\":\"claude.assistant.turn\",\"langsmith.span.kind\":\"llm\",\"langsmith.trace.name\":\"claude.assistant.turn\",\"langsmith.trace.session_name\":\"default\",\"gen_ai.system\":\"anthropic\",\"gen_ai.request.model\":\"claude-sonnet-4-5-20250929\",\"langsmith.metadata.ls_model_name\":\"claude-sonnet-4-5-20250929\",\"langsmith.metadata.LANGSMITH_OTEL_ENABLED\":\"true\",\"langsmith.metadata.LANGSMITH_OTEL_ONLY\":\"true\",\"langsmith.metadata.LANGSMITH_TRACING\":\"true\"},\"resourceAttributes\":{\"telemetry.sdk.language\":\"python\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"1.37.0\",\"service.name\":\"unknown_service\"},\"scope\":{\"name\":\"langsmith\",\"attributes\":{}}}",+ "internalModel": "c5qmrqolku82tra3vgdixmys"+ },+ {+ "id": "f8e8f040dc94e67e",+ "traceId": "097f1d8982fa909b8cffb14a166ec272",+ "startTime": "2025-12-22T10:46:18.977Z",+ "endTime": "2025-12-22T10:46:22.849Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "805dc5dff9e33e32",+ "type": "GENERATION",+ "environment": "default",+ "name": "claude.assistant.turn",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-12-22T10:46:25.773Z",+ "updatedAt": "2025-12-22T10:46:25.773Z",+ "input": "{\"content\":\"role\"}",+ "output": "{\"content\":[{\"type\":\"tool_use\",\"id\":\"toolu_01NtVat4vJLFfVd5TqdLHcA7\",\"name\":\"mcp__weather__get_weather\",\"input\":{\"city\":\"New York\"}}],\"role\":\"assistant\"}",+ "model": "claude-sonnet-4-5-20250929",+ "internalModelId": "c5qmrqolku82tra3vgdixmys",+ "modelParameters": {},+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 3.872,+ "timeToFirstToken": null,+ "usageDetails": {+ "input": 5,+ "output": 56,+ "total": 61+ },+ "costDetails": {+ "input": 0.000015,+ "output": 0.00084,+ "total": 0.000855+ },+ "providedCostDetails": {},+ "inputCost": 0.000015,+ "outputCost": 0.00084,+ "totalCost": 0.000855,+ "inputUsage": 5,+ "outputUsage": 56,+ "totalUsage": 61,+ "usagePricingTierId": "c5qmrqolku82tra3vgdixmys_tier_default",+ "usagePricingTierName": "Standard",+ "toolDefinitions": {},+ "toolCalls": [+ "{\"id\":\"toolu_01NtVat4vJLFfVd5TqdLHcA7\",\"arguments\":\"{\\\"city\\\":\\\"New York\\\"}\",\"type\":\"tool_use\",\"index\":0}"+ ],+ "toolCallNames": [+ "mcp__weather__get_weather"+ ],+ "metadata": "{\"attributes\":{\"gen_ai.operation.name\":\"chat\",\"gen_ai.serialized.name\":\"claude.assistant.turn\",\"langsmith.span.kind\":\"llm\",\"langsmith.trace.name\":\"claude.assistant.turn\",\"langsmith.trace.session_name\":\"default\",\"gen_ai.system\":\"anthropic\",\"gen_ai.request.model\":\"claude-sonnet-4-5-20250929\",\"langsmith.metadata.ls_model_name\":\"claude-sonnet-4-5-20250929\",\"langsmith.metadata.LANGSMITH_OTEL_ENABLED\":\"true\",\"langsmith.metadata.LANGSMITH_OTEL_ONLY\":\"true\",\"langsmith.metadata.LANGSMITH_TRACING\":\"true\"},\"resourceAttributes\":{\"telemetry.sdk.language\":\"python\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"1.37.0\",\"service.name\":\"unknown_service\"},\"scope\":{\"name\":\"langsmith\",\"attributes\":{}}}",+ "internalModel": "c5qmrqolku82tra3vgdixmys"+ },+ {+ "id": "805dc5dff9e33e32",+ "traceId": "097f1d8982fa909b8cffb14a166ec272",+ "startTime": "2025-12-22T10:46:15.529Z",+ "endTime": "2025-12-22T10:46:22.888Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": null,+ "type": "SPAN",+ "environment": "default",+ "name": "claude.conversation",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-12-22T10:46:25.773Z",+ "updatedAt": "2025-12-22T10:46:25.773Z",+ "input": "{\"prompt\":\"What's the weather like in Berlin and New York?\",\"system\":\"You are a friendly travel assistant who helps with weather information.\"}",+ "output": "{\"content\":[{\"type\":\"text\",\"text\":\"Great! Here's the current weather for both cities:\\n\\n**Berlin**: Cloudy, 59°F (15°C)\\n**New York**: Sunny, 75°F (24°C)\\n\\nNew York is enjoying warmer, sunny weather while Berlin is a bit cooler with cloudy skies. Is there anything else you'd like to know about these destinations?\"}],\"role\":\"assistant\"}",+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 7.359,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"attributes\":{\"gen_ai.operation.name\":\"chain\",\"langsmith.span.kind\":\"chain\",\"langsmith.trace.name\":\"claude.conversation\",\"langsmith.trace.session_name\":\"default\",\"gen_ai.system\":\"langchain\",\"langsmith.metadata.model\":\"claude-sonnet-4-5-20250929\",\"langsmith.metadata.ls_method\":\"trace\",\"langsmith.metadata.num_turns\":\"3\",\"langsmith.metadata.session_id\":\"6fb9b4b8-dd4d-4d41-8d4f-c0c0799a6559\",\"langsmith.metadata.duration_ms\":\"7062\",\"langsmith.metadata.duration_api_ms\":\"14791\",\"langsmith.metadata.is_error\":\"false\",\"langsmith.metadata.LANGSMITH_OTEL_ENABLED\":\"true\",\"langsmith.metadata.LANGSMITH_OTEL_ONLY\":\"true\",\"langsmith.metadata.LANGSMITH_TRACING\":\"true\"},\"resourceAttributes\":{\"telemetry.sdk.language\":\"python\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"1.37.0\",\"service.name\":\"unknown_service\"},\"scope\":{\"name\":\"langsmith\",\"attributes\":{}}}",+ "internalModel": null+ },+ {+ "id": "edbd987c5f361fdf",+ "traceId": "097f1d8982fa909b8cffb14a166ec272",+ "startTime": "2025-12-22T10:46:19.093Z",+ "endTime": "2025-12-22T10:46:19.134Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "805dc5dff9e33e32",+ "type": "TOOL",+ "environment": "default",+ "name": "mcp__weather__get_weather",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-12-22T10:46:20.575Z",+ "updatedAt": "2025-12-22T10:46:20.575Z",+ "input": "{\"input\":{\"city\":\"New York\"}}",+ "output": "{\"content\":[{\"type\":\"text\",\"text\":\"Weather in New York: Sunny, 75°F\"}]}",+ "model": null,+ "internalModelId": null,+ "modelParameters": {},+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 0.041,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"attributes\":{\"langsmith.span.kind\":\"tool\",\"langsmith.trace.name\":\"mcp__weather__get_weather\",\"langsmith.trace.session_name\":\"default\",\"gen_ai.operation.name\":\"execute_tool\",\"gen_ai.system\":\"langchain\"},\"resourceAttributes\":{\"telemetry.sdk.language\":\"python\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"1.37.0\",\"service.name\":\"unknown_service\"},\"scope\":{\"name\":\"langsmith\",\"attributes\":{}}}",+ "internalModel": null+ },+ {+ "id": "f411dab686a064b1",+ "traceId": "097f1d8982fa909b8cffb14a166ec272",+ "startTime": "2025-12-22T10:46:19.027Z",+ "endTime": "2025-12-22T10:46:19.068Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "805dc5dff9e33e32",+ "type": "TOOL",+ "environment": "default",+ "name": "mcp__weather__get_weather",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-12-22T10:46:20.575Z",+ "updatedAt": "2025-12-22T10:46:20.575Z",+ "input": "{\"input\":{\"city\":\"Berlin\"}}",+ "output": "{\"content\":[{\"type\":\"text\",\"text\":\"Weather in Berlin: Cloudy, 59°F\"}]}",+ "model": null,+ "internalModelId": null,+ "modelParameters": {},+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 0.041,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"attributes\":{\"langsmith.span.kind\":\"tool\",\"langsmith.trace.name\":\"mcp__weather__get_weather\",\"langsmith.trace.session_name\":\"default\",\"gen_ai.operation.name\":\"execute_tool\",\"gen_ai.system\":\"langchain\"},\"resourceAttributes\":{\"telemetry.sdk.language\":\"python\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"1.37.0\",\"service.name\":\"unknown_service\"},\"scope\":{\"name\":\"langsmith\",\"attributes\":{}}}",+ "internalModel": null+ }+ ]+}diff --git a/worker/src/__tests__/chatml/framework-traces/crewai-2025-07-11.chatml.json b/worker/src/__tests__/chatml/framework-traces/crewai-2025-07-11.chatml.jsonnew file mode 100644index 0000000000..ea2fa4227f--- /dev/null+++ b/worker/src/__tests__/chatml/framework-traces/crewai-2025-07-11.chatml.json@@ -0,0 +1,74 @@+{+ "231c43964b7e7e63": {+ "input": {+ "success": true,+ "data": [+ {+ "role": "system",+ "content": "You are Software developer. An expert coder with a keen eye for software trends.\nYour personal goal is: Write clear, concise code on demand\nTo give my best complete final answer to the task respond using the exact following format:\n\nThought: I now can give a great answer\nFinal Answer: Your final answer must be the great and the most complete as possible, it must be outcome described.\n\nI MUST use these formats, my job depends on it!"+ },+ {+ "role": "user",+ "content": "\nCurrent Task: Define the HTML for making a simple website with heading- Hello World! Langfuse monitors your CrewAI agent!\n\nThis is the expected criteria for your final answer: A clear and concise HTML code\nyou MUST return the actual complete content as the final answer, not a summary.\n\nBegin! This is VERY important to you, use the tools available and give your best Final Answer, your job depends on it!\n\nThought:"+ }+ ]+ },+ "output": {+ "success": false,+ "error": {+ "name": "ZodError",+ "message": "[\n {\n \"expected\": \"object\",\n \"code\": \"invalid_type\",\n \"path\": [\n 0\n ],\n \"message\": \"Invalid input: expected object, received string\"\n }\n]"+ }+ }+ },+ "0dd92fffb354f15b": {+ "output": {+ "success": true,+ "data": [+ {+ "json": {+ "raw": "```html\n<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"UTF-8\">\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n <title>Hello World</title>\n <style>\n body {\n font-family: Arial, sans-serif;\n display: flex;\n justify-content: center;\n align-items: center;\n height: 100vh;\n background-color: #f0f0f0;\n }\n h1 {\n color: #333;\n }\n </style>\n</head>\n<body>\n <h1>Hello World! Langfuse monitors your CrewAI agent!</h1>\n</body>\n</html>\n```",+ "pydantic": null,+ "json_dict": null,+ "tasks_output": [+ {+ "description": "Define the HTML for making a simple website with heading- Hello World! Langfuse monitors your CrewAI agent!",+ "name": null,+ "expected_output": "A clear and concise HTML code",+ "summary": "Define the HTML for making a simple website with heading-...",+ "raw": "```html\n<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"UTF-8\">\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n <title>Hello World</title>\n <style>\n body {\n font-family: Arial, sans-serif;\n display: flex;\n justify-content: center;\n align-items: center;\n height: 100vh;\n background-color: #f0f0f0;\n }\n h1 {\n color: #333;\n }\n </style>\n</head>\n<body>\n <h1>Hello World! Langfuse monitors your CrewAI agent!</h1>\n</body>\n</html>\n```",+ "pydantic": null,+ "json_dict": null,+ "agent": "Software developer",+ "output_format": "raw"+ }+ ],+ "token_usage": {+ "total_tokens": 354,+ "prompt_tokens": 190,+ "cached_prompt_tokens": 0,+ "completion_tokens": 164,+ "successful_requests": 1+ }+ }+ }+ ]+ }+ },+ "a8bf77474d6f9a1d": {+ "input": {+ "success": false,+ "error": {+ "name": "ZodError",+ "message": "[\n {\n \"expected\": \"array\",\n \"code\": \"invalid_type\",\n \"path\": [],\n \"message\": \"Invalid input: expected array, received object\"\n }\n]"+ }+ },+ "output": {+ "success": false,+ "error": {+ "name": "ZodError",+ "message": "[\n {\n \"expected\": \"string\",\n \"code\": \"invalid_type\",\n \"path\": [\n 0,\n \"name\"\n ],\n \"message\": \"Invalid input: expected string, received null\"\n }\n]"+ }+ }+ }+}\ No newline at end of filediff --git a/worker/src/__tests__/chatml/framework-traces/crewai-2025-07-11.trace.json b/worker/src/__tests__/chatml/framework-traces/crewai-2025-07-11.trace.jsonnew file mode 100644index 0000000000..de0cd8790c--- /dev/null+++ b/worker/src/__tests__/chatml/framework-traces/crewai-2025-07-11.trace.json@@ -0,0 +1,619 @@+{+ "trace": {+ "id": "a287bb31e317433610d8827617471140",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "name": "crewai-index-trace",+ "timestamp": "2025-07-11T07:45:13.601Z",+ "environment": "default",+ "tags": [],+ "bookmarked": false,+ "release": null,+ "version": null,+ "userId": null,+ "sessionId": null,+ "public": true,+ "input": null,+ "output": null,+ "createdAt": "2025-07-11T07:45:16.000Z",+ "updatedAt": "2025-07-11T07:45:17.611Z",+ "metadata": "{\"resourceAttributes\":{\"telemetry.sdk.language\":\"python\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"1.34.1\",\"service.name\":\"unknown_service\"},\"scope\":{\"name\":\"langfuse-sdk\",\"version\":\"3.1.3\",\"attributes\":{\"public_key\":\"pk-lf-e2080f6d-1ccd-46a0-b8b2-28db9001017b\"}}}",+ "scores": [+ {+ "id": "ec5f5e3e-9077-4d15-9455-02104fd97296",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "environment": "default",+ "name": "toxicity",+ "value": 0.8,+ "source": "EVAL",+ "authorUserId": null,+ "comment": "The generation contains aggressive and dismissive language that undermines trust in professionals and promotes a negative view of the public's intelligence, which is harmful and disrespectful.",+ "configId": null,+ "queueId": null,+ "executionTraceId": null,+ "createdAt": "2025-07-11T07:45:44.000Z",+ "updatedAt": "2025-07-11T07:45:43.264Z",+ "timestamp": "2025-07-11T07:45:43.035Z",+ "traceId": "a287bb31e317433610d8827617471140",+ "sessionId": null,+ "datasetRunId": null,+ "observationId": null,+ "longStringValue": "",+ "stringValue": null,+ "dataType": "NUMERIC",+ "metadata": "{}"+ },+ {+ "id": "ec3a3e2c-1b54-4f28-8bb4-ee8c9ac672d3",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "environment": "default",+ "name": "hallucination",+ "value": 1,+ "source": "EVAL",+ "authorUserId": null,+ "comment": "The generation does not align with established knowledge or verifiable data, and includes elements that are implausible and fictional.",+ "configId": null,+ "queueId": null,+ "executionTraceId": null,+ "createdAt": "2025-07-11T07:45:43.000Z",+ "updatedAt": "2025-07-11T07:45:42.432Z",+ "timestamp": "2025-07-11T07:45:42.303Z",+ "traceId": "a287bb31e317433610d8827617471140",+ "sessionId": null,+ "datasetRunId": null,+ "observationId": null,+ "longStringValue": "",+ "stringValue": null,+ "dataType": "NUMERIC",+ "metadata": "{}"+ }+ ],+ "corrections": [],+ "latency": 3.75,+ "observations": [+ {+ "id": "231c43964b7e7e63",+ "traceId": "a287bb31e317433610d8827617471140",+ "startTime": "2025-07-11T07:45:13.644Z",+ "endTime": "2025-07-11T07:45:17.338Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "a8bf77474d6f9a1d",+ "type": "GENERATION",+ "environment": "default",+ "name": "completion",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-07-11T07:45:17.500Z",+ "updatedAt": "2025-07-11T07:45:17.791Z",+ "input": null,+ "output": null,+ "model": "gpt-4o-mini",+ "internalModelId": "clyrjp56f0000t0mzapoocd7u",+ "modelParameters": {+ "model": "gpt-4o-mini",+ "stop": "[\"\\nObservation:\"]",+ "stream": "false"+ },+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 3.694,+ "timeToFirstToken": null,+ "usageDetails": {+ "input": 190,+ "prompt_details.cache_read": 0,+ "prompt_details.audio": 0,+ "output": 164,+ "completion_details.reasoning": 0,+ "completion_details.audio": 0,+ "total": 354+ },+ "costDetails": {+ "input": 0.0000285,+ "output": 0.0000984,+ "total": 0.0001269+ },+ "providedCostDetails": {},+ "inputCost": 0.0000285,+ "outputCost": 0.0000984,+ "totalCost": 0.0001269,+ "inputUsage": 190,+ "outputUsage": 164,+ "totalUsage": 354,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ },+ {+ "id": "0dd92fffb354f15b",+ "traceId": "a287bb31e317433610d8827617471140",+ "startTime": "2025-07-11T07:45:13.600Z",+ "endTime": "2025-07-11T07:45:17.350Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "839dad620fa92594",+ "type": "SPAN",+ "environment": "default",+ "name": "Crew.kickoff",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-07-11T07:45:17.496Z",+ "updatedAt": "2025-07-11T07:45:17.662Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 3.75,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ },+ {+ "id": "120aa490d3449d5a",+ "traceId": "a287bb31e317433610d8827617471140",+ "startTime": "2025-07-11T07:45:13.641Z",+ "endTime": "2025-07-11T07:45:13.641Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "a8bf77474d6f9a1d",+ "type": "SPAN",+ "environment": "default",+ "name": "Task Created",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-07-11T07:45:15.588Z",+ "updatedAt": "2025-07-11T07:45:15.626Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 0,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ },+ {+ "id": "69490dfd171f730b",+ "traceId": "a287bb31e317433610d8827617471140",+ "startTime": "2025-07-11T07:45:13.601Z",+ "endTime": "2025-07-11T07:45:13.618Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "0dd92fffb354f15b",+ "type": "SPAN",+ "environment": "default",+ "name": "Crew Created",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-07-11T07:45:15.588Z",+ "updatedAt": "2025-07-11T07:45:15.628Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 0.017,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ },+ {+ "id": "839dad620fa92594",+ "traceId": "a287bb31e317433610d8827617471140",+ "startTime": "2025-07-11T07:45:13.600Z",+ "endTime": "2025-07-11T07:45:17.350Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": null,+ "type": "SPAN",+ "environment": "default",+ "name": "crewai-index-trace",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-07-11T07:45:17.498Z",+ "updatedAt": "2025-07-11T07:45:17.631Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 3.75,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ },+ {+ "id": "a8bf77474d6f9a1d",+ "traceId": "a287bb31e317433610d8827617471140",+ "startTime": "2025-07-11T07:45:13.641Z",+ "endTime": "2025-07-11T07:45:17.341Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "0dd92fffb354f15b",+ "type": "SPAN",+ "environment": "default",+ "name": "Task._execute_core",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-07-11T07:45:17.496Z",+ "updatedAt": "2025-07-11T07:45:17.628Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 3.7,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ }+ ]+ },+ "observations": [+ {+ "id": "231c43964b7e7e63",+ "traceId": "a287bb31e317433610d8827617471140",+ "startTime": "2025-07-11T07:45:13.644Z",+ "endTime": "2025-07-11T07:45:17.338Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "a8bf77474d6f9a1d",+ "type": "GENERATION",+ "environment": "default",+ "name": "completion",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-07-11T07:45:17.500Z",+ "updatedAt": "2025-07-11T07:45:17.791Z",+ "input": "{\"messages\": [{\"role\": \"system\", \"content\": \"You are Software developer. An expert coder with a keen eye for software trends.\\nYour personal goal is: Write clear, concise code on demand\\nTo give my best complete final answer to the task respond using the exact following format:\\n\\nThought: I now can give a great answer\\nFinal Answer: Your final answer must be the great and the most complete as possible, it must be outcome described.\\n\\nI MUST use these formats, my job depends on it!\"}, {\"role\": \"user\", \"content\": \"\\nCurrent Task: Define the HTML for making a simple website with heading- Hello World! Langfuse monitors your CrewAI agent!\\n\\nThis is the expected criteria for your final answer: A clear and concise HTML code\\nyou MUST return the actual complete content as the final answer, not a summary.\\n\\nBegin! This is VERY important to you, use the tools available and give your best Final Answer, your job depends on it!\\n\\nThought:\"}]}",+ "output": "I now can give a great answer \nFinal Answer: \n```html\n<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"UTF-8\">\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n <title>Hello World</title>\n <style>\n body {\n font-family: Arial, sans-serif;\n display: flex;\n justify-content: center;\n align-items: center;\n height: 100vh;\n background-color: #f0f0f0;\n }\n h1 {\n color: #333;\n }\n </style>\n</head>\n<body>\n <h1>Hello World! Langfuse monitors your CrewAI agent!</h1>\n</body>\n</html>\n```",+ "model": "gpt-4o-mini",+ "internalModelId": "clyrjp56f0000t0mzapoocd7u",+ "modelParameters": {+ "model": "gpt-4o-mini",+ "stop": "[\"\\nObservation:\"]",+ "stream": "false"+ },+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 3.694,+ "timeToFirstToken": null,+ "usageDetails": {+ "input": 190,+ "prompt_details.cache_read": 0,+ "prompt_details.audio": 0,+ "output": 164,+ "completion_details.reasoning": 0,+ "completion_details.audio": 0,+ "total": 354+ },+ "costDetails": {+ "input": 0.0000285,+ "output": 0.0000984,+ "total": 0.0001269+ },+ "providedCostDetails": {},+ "inputCost": 0.0000285,+ "outputCost": 0.0000984,+ "totalCost": 0.0001269,+ "inputUsage": 190,+ "outputUsage": 164,+ "totalUsage": 354,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"attributes\":{\"llm.model_name\":\"gpt-4o-mini\",\"llm.input_messages.0.message.role\":\"system\",\"llm.input_messages.0.message.content\":\"You are Software developer. An expert coder with a keen eye for software trends.\\nYour personal goal is: Write clear, concise code on demand\\nTo give my best complete final answer to the task respond using the exact following format:\\n\\nThought: I now can give a great answer\\nFinal Answer: Your final answer must be the great and the most complete as possible, it must be outcome described.\\n\\nI MUST use these formats, my job depends on it!\",\"llm.input_messages.1.message.role\":\"user\",\"llm.input_messages.1.message.content\":\"\\nCurrent Task: Define the HTML for making a simple website with heading- Hello World! Langfuse monitors your CrewAI agent!\\n\\nThis is the expected criteria for your final answer: A clear and concise HTML code\\nyou MUST return the actual complete content as the final answer, not a summary.\\n\\nBegin! This is VERY important to you, use the tools available and give your best Final Answer, your job depends on it!\\n\\nThought:\",\"input.value\":\"{\\\"messages\\\": [{\\\"role\\\": \\\"system\\\", \\\"content\\\": \\\"You are Software developer. An expert coder with a keen eye for software trends.\\\\nYour personal goal is: Write clear, concise code on demand\\\\nTo give my best complete final answer to the task respond using the exact following format:\\\\n\\\\nThought: I now can give a great answer\\\\nFinal Answer: Your final answer must be the great and the most complete as possible, it must be outcome described.\\\\n\\\\nI MUST use these formats, my job depends on it!\\\"}, {\\\"role\\\": \\\"user\\\", \\\"content\\\": \\\"\\\\nCurrent Task: Define the HTML for making a simple website with heading- Hello World! Langfuse monitors your CrewAI agent!\\\\n\\\\nThis is the expected criteria for your final answer: A clear and concise HTML code\\\\nyou MUST return the actual complete content as the final answer, not a summary.\\\\n\\\\nBegin! This is VERY important to you, use the tools available and give your best Final Answer, your job depends on it!\\\\n\\\\nThought:\\\"}]}\",\"input.mime_type\":\"application/json\",\"llm.invocation_parameters\":\"{\\\"model\\\": \\\"gpt-4o-mini\\\", \\\"stop\\\": [\\\"\\\\nObservation:\\\"], \\\"stream\\\": false}\",\"output.value\":\"I now can give a great answer \\nFinal Answer: \\n```html\\n<!DOCTYPE html>\\n<html lang=\\\"en\\\">\\n<head>\\n <meta charset=\\\"UTF-8\\\">\\n <meta name=\\\"viewport\\\" content=\\\"width=device-width, initial-scale=1.0\\\">\\n <title>Hello World</title>\\n <style>\\n body {\\n font-family: Arial, sans-serif;\\n display: flex;\\n justify-content: center;\\n align-items: center;\\n height: 100vh;\\n background-color: #f0f0f0;\\n }\\n h1 {\\n color: #333;\\n }\\n </style>\\n</head>\\n<body>\\n <h1>Hello World! Langfuse monitors your CrewAI agent!</h1>\\n</body>\\n</html>\\n```\",\"llm.output_messages.0.message.role\":\"assistant\",\"llm.output_messages.0.message.content\":\"I now can give a great answer \\nFinal Answer: \\n```html\\n<!DOCTYPE html>\\n<html lang=\\\"en\\\">\\n<head>\\n <meta charset=\\\"UTF-8\\\">\\n <meta name=\\\"viewport\\\" content=\\\"width=device-width, initial-scale=1.0\\\">\\n <title>Hello World</title>\\n <style>\\n body {\\n font-family: Arial, sans-serif;\\n display: flex;\\n justify-content: center;\\n align-items: center;\\n height: 100vh;\\n background-color: #f0f0f0;\\n }\\n h1 {\\n color: #333;\\n }\\n </style>\\n</head>\\n<body>\\n <h1>Hello World! Langfuse monitors your CrewAI agent!</h1>\\n</body>\\n</html>\\n```\",\"llm.token_count.prompt\":\"190\",\"llm.token_count.prompt_details.cache_read\":\"0\",\"llm.token_count.prompt_details.audio\":\"0\",\"llm.token_count.completion\":\"164\",\"llm.token_count.completion_details.reasoning\":\"0\",\"llm.token_count.completion_details.audio\":\"0\",\"llm.token_count.total\":\"354\",\"openinference.span.kind\":\"LLM\"},\"resourceAttributes\":{\"telemetry.sdk.language\":\"python\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"1.34.1\",\"service.name\":\"unknown_service\"},\"scope\":{\"name\":\"openinference.instrumentation.litellm\",\"version\":\"0.1.23\",\"attributes\":{}}}",+ "internalModel": "clyrjp56f0000t0mzapoocd7u"+ },+ {+ "id": "0dd92fffb354f15b",+ "traceId": "a287bb31e317433610d8827617471140",+ "startTime": "2025-07-11T07:45:13.600Z",+ "endTime": "2025-07-11T07:45:17.350Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "839dad620fa92594",+ "type": "SPAN",+ "environment": "default",+ "name": "Crew.kickoff",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-07-11T07:45:17.496Z",+ "updatedAt": "2025-07-11T07:45:17.662Z",+ "input": null,+ "output": "{\"raw\": \"```html\\n<!DOCTYPE html>\\n<html lang=\\\"en\\\">\\n<head>\\n <meta charset=\\\"UTF-8\\\">\\n <meta name=\\\"viewport\\\" content=\\\"width=device-width, initial-scale=1.0\\\">\\n <title>Hello World</title>\\n <style>\\n body {\\n font-family: Arial, sans-serif;\\n display: flex;\\n justify-content: center;\\n align-items: center;\\n height: 100vh;\\n background-color: #f0f0f0;\\n }\\n h1 {\\n color: #333;\\n }\\n </style>\\n</head>\\n<body>\\n <h1>Hello World! Langfuse monitors your CrewAI agent!</h1>\\n</body>\\n</html>\\n```\", \"pydantic\": null, \"json_dict\": null, \"tasks_output\": [{\"description\": \"Define the HTML for making a simple website with heading- Hello World! Langfuse monitors your CrewAI agent!\", \"name\": null, \"expected_output\": \"A clear and concise HTML code\", \"summary\": \"Define the HTML for making a simple website with heading-...\", \"raw\": \"```html\\n<!DOCTYPE html>\\n<html lang=\\\"en\\\">\\n<head>\\n <meta charset=\\\"UTF-8\\\">\\n <meta name=\\\"viewport\\\" content=\\\"width=device-width, initial-scale=1.0\\\">\\n <title>Hello World</title>\\n <style>\\n body {\\n font-family: Arial, sans-serif;\\n display: flex;\\n justify-content: center;\\n align-items: center;\\n height: 100vh;\\n background-color: #f0f0f0;\\n }\\n h1 {\\n color: #333;\\n }\\n </style>\\n</head>\\n<body>\\n <h1>Hello World! Langfuse monitors your CrewAI agent!</h1>\\n</body>\\n</html>\\n```\", \"pydantic\": null, \"json_dict\": null, \"agent\": \"Software developer\", \"output_format\": \"raw\"}], \"token_usage\": {\"total_tokens\": 354, \"prompt_tokens\": 190, \"cached_prompt_tokens\": 0, \"completion_tokens\": 164, \"successful_requests\": 1}}",+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 3.75,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"attributes\":{\"crew_key\":\"4d5b21867b638a1846a38dc4af8e29a4\",\"crew_id\":\"7aaad2cf-aeb4-4cc3-96df-c5d19e6b37a9\",\"crew_inputs\":\"\",\"crew_agents\":\"[{\\\"key\\\": \\\"9ac73818a528f9f1a3f1067bc358e549\\\", \\\"id\\\": \\\"5b92f546-0a74-4cf1-afb1-d2f8adf61036\\\", \\\"role\\\": \\\"Software developer\\\", \\\"goal\\\": \\\"Write clear, concise code on demand\\\", \\\"backstory\\\": \\\"An expert coder with a keen eye for software trends.\\\", \\\"verbose?\\\": false, \\\"max_iter\\\": 25, \\\"max_rpm\\\": null, \\\"i18n\\\": null, \\\"delegation_enabled\\\": false, \\\"tools_names\\\": []}]\",\"crew_tasks\":\"[{\\\"id\\\": \\\"0431e543-c6ee-485b-bb77-332da9080b89\\\", \\\"description\\\": \\\"Define the HTML for making a simple website with heading- Hello World! Langfuse monitors your CrewAI agent!\\\", \\\"expected_output\\\": \\\"A clear and concise HTML code\\\", \\\"async_execution?\\\": false, \\\"human_input?\\\": false, \\\"agent_role\\\": \\\"Software developer\\\", \\\"agent_key\\\": \\\"9ac73818a528f9f1a3f1067bc358e549\\\", \\\"context\\\": null, \\\"tools_names\\\": []}]\",\"output.value\":\"{\\\"raw\\\": \\\"```html\\\\n<!DOCTYPE html>\\\\n<html lang=\\\\\\\"en\\\\\\\">\\\\n<head>\\\\n <meta charset=\\\\\\\"UTF-8\\\\\\\">\\\\n <meta name=\\\\\\\"viewport\\\\\\\" content=\\\\\\\"width=device-width, initial-scale=1.0\\\\\\\">\\\\n <title>Hello World</title>\\\\n <style>\\\\n body {\\\\n font-family: Arial, sans-serif;\\\\n display: flex;\\\\n justify-content: center;\\\\n align-items: center;\\\\n height: 100vh;\\\\n background-color: #f0f0f0;\\\\n }\\\\n h1 {\\\\n color: #333;\\\\n }\\\\n </style>\\\\n</head>\\\\n<body>\\\\n <h1>Hello World! Langfuse monitors your CrewAI agent!</h1>\\\\n</body>\\\\n</html>\\\\n```\\\", \\\"pydantic\\\": null, \\\"json_dict\\\": null, \\\"tasks_output\\\": [{\\\"description\\\": \\\"Define the HTML for making a simple website with heading- Hello World! Langfuse monitors your CrewAI agent!\\\", \\\"name\\\": null, \\\"expected_output\\\": \\\"A clear and concise HTML code\\\", \\\"summary\\\": \\\"Define the HTML for making a simple website with heading-...\\\", \\\"raw\\\": \\\"```html\\\\n<!DOCTYPE html>\\\\n<html lang=\\\\\\\"en\\\\\\\">\\\\n<head>\\\\n <meta charset=\\\\\\\"UTF-8\\\\\\\">\\\\n <meta name=\\\\\\\"viewport\\\\\\\" content=\\\\\\\"width=device-width, initial-scale=1.0\\\\\\\">\\\\n <title>Hello World</title>\\\\n <style>\\\\n body {\\\\n font-family: Arial, sans-serif;\\\\n display: flex;\\\\n justify-content: center;\\\\n align-items: center;\\\\n height: 100vh;\\\\n background-color: #f0f0f0;\\\\n }\\\\n h1 {\\\\n color: #333;\\\\n }\\\\n </style>\\\\n</head>\\\\n<body>\\\\n <h1>Hello World! Langfuse monitors your CrewAI agent!</h1>\\\\n</body>\\\\n</html>\\\\n```\\\", \\\"pydantic\\\": null, \\\"json_dict\\\": null, \\\"agent\\\": \\\"Software developer\\\", \\\"output_format\\\": \\\"raw\\\"}], \\\"token_usage\\\": {\\\"total_tokens\\\": 354, \\\"prompt_tokens\\\": 190, \\\"cached_prompt_tokens\\\": 0, \\\"completion_tokens\\\": 164, \\\"successful_requests\\\": 1}}\",\"output.mime_type\":\"application/json\",\"openinference.span.kind\":\"CHAIN\"},\"resourceAttributes\":{\"telemetry.sdk.language\":\"python\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"1.34.1\",\"service.name\":\"unknown_service\"},\"scope\":{\"name\":\"openinference.instrumentation.crewai\",\"version\":\"0.1.10\",\"attributes\":{}}}",+ "internalModel": null+ },+ {+ "id": "120aa490d3449d5a",+ "traceId": "a287bb31e317433610d8827617471140",+ "startTime": "2025-07-11T07:45:13.641Z",+ "endTime": "2025-07-11T07:45:13.641Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "a8bf77474d6f9a1d",+ "type": "SPAN",+ "environment": "default",+ "name": "Task Created",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-07-11T07:45:15.588Z",+ "updatedAt": "2025-07-11T07:45:15.626Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 0,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"attributes\":{\"crew_key\":\"4d5b21867b638a1846a38dc4af8e29a4\",\"crew_id\":\"7aaad2cf-aeb4-4cc3-96df-c5d19e6b37a9\",\"task_key\":\"b465f86cdaeb68be07239ef62e75944d\",\"task_id\":\"0431e543-c6ee-485b-bb77-332da9080b89\",\"crew_fingerprint\":\"116ca194-1030-4a66-a0f8-9d2ef559c11f\",\"task_fingerprint\":\"bd1a5793-9b17-48ae-a01f-7c83f97bbda6\",\"task_fingerprint_created_at\":\"2025-07-11T07:45:13.598302\",\"agent_fingerprint\":\"45d86bfb-45aa-4d3c-aa25-0699698ab659\"},\"resourceAttributes\":{\"telemetry.sdk.language\":\"python\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"1.34.1\",\"service.name\":\"unknown_service\"},\"scope\":{\"name\":\"crewai.telemetry\",\"attributes\":{}}}",+ "internalModel": null+ },+ {+ "id": "69490dfd171f730b",+ "traceId": "a287bb31e317433610d8827617471140",+ "startTime": "2025-07-11T07:45:13.601Z",+ "endTime": "2025-07-11T07:45:13.618Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "0dd92fffb354f15b",+ "type": "SPAN",+ "environment": "default",+ "name": "Crew Created",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-07-11T07:45:15.588Z",+ "updatedAt": "2025-07-11T07:45:15.628Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 0.017,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"attributes\":{\"crewai_version\":\"0.141.0\",\"python_version\":\"3.11.13\",\"crew_key\":\"4d5b21867b638a1846a38dc4af8e29a4\",\"crew_id\":\"7aaad2cf-aeb4-4cc3-96df-c5d19e6b37a9\",\"crew_process\":\"sequential\",\"crew_memory\":\"false\",\"crew_number_of_tasks\":\"1\",\"crew_number_of_agents\":\"1\",\"crew_fingerprint\":\"116ca194-1030-4a66-a0f8-9d2ef559c11f\",\"crew_fingerprint_created_at\":\"2025-07-11T07:45:13.598518\",\"crew_agents\":\"[{\\\"key\\\": \\\"9ac73818a528f9f1a3f1067bc358e549\\\", \\\"id\\\": \\\"5b92f546-0a74-4cf1-afb1-d2f8adf61036\\\", \\\"role\\\": \\\"Software developer\\\", \\\"verbose?\\\": false, \\\"max_iter\\\": 25, \\\"max_rpm\\\": null, \\\"function_calling_llm\\\": \\\"\\\", \\\"llm\\\": \\\"gpt-4o-mini\\\", \\\"delegation_enabled?\\\": false, \\\"allow_code_execution?\\\": false, \\\"max_retry_limit\\\": 2, \\\"tools_names\\\": []}]\",\"crew_tasks\":\"[{\\\"key\\\": \\\"b465f86cdaeb68be07239ef62e75944d\\\", \\\"id\\\": \\\"0431e543-c6ee-485b-bb77-332da9080b89\\\", \\\"async_execution?\\\": false, \\\"human_input?\\\": false, \\\"agent_role\\\": \\\"Software developer\\\", \\\"agent_key\\\": \\\"9ac73818a528f9f1a3f1067bc358e549\\\", \\\"tools_names\\\": []}]\"},\"resourceAttributes\":{\"telemetry.sdk.language\":\"python\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"1.34.1\",\"service.name\":\"unknown_service\"},\"scope\":{\"name\":\"crewai.telemetry\",\"attributes\":{}}}",+ "internalModel": null+ },+ {+ "id": "839dad620fa92594",+ "traceId": "a287bb31e317433610d8827617471140",+ "startTime": "2025-07-11T07:45:13.600Z",+ "endTime": "2025-07-11T07:45:17.350Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": null,+ "type": "SPAN",+ "environment": "default",+ "name": "crewai-index-trace",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-07-11T07:45:17.498Z",+ "updatedAt": "2025-07-11T07:45:17.631Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 3.75,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"resourceAttributes\":{\"telemetry.sdk.language\":\"python\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"1.34.1\",\"service.name\":\"unknown_service\"},\"scope\":{\"name\":\"langfuse-sdk\",\"version\":\"3.1.3\",\"attributes\":{\"public_key\":\"pk-lf-e2080f6d-1ccd-46a0-b8b2-28db9001017b\"}}}",+ "internalModel": null+ },+ {+ "id": "a8bf77474d6f9a1d",+ "traceId": "a287bb31e317433610d8827617471140",+ "startTime": "2025-07-11T07:45:13.641Z",+ "endTime": "2025-07-11T07:45:17.341Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "0dd92fffb354f15b",+ "type": "SPAN",+ "environment": "default",+ "name": "Task._execute_core",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-07-11T07:45:17.496Z",+ "updatedAt": "2025-07-11T07:45:17.628Z",+ "input": "{\"agent\": \"id=UUID('5b92f546-0a74-4cf1-afb1-d2f8adf61036') role='Software developer' goal='Write clear, concise code on demand' backstory='An expert coder with a keen eye for software trends.' config=None cache=True verbose=False max_rpm=None allow_delegation=False tools=[] max_iter=25 agent_executor=<crewai.agents.crew_agent_executor.CrewAgentExecutor object at 0x7885d3b76f90> llm=<crewai.llm.LLM object at 0x7885d9d34e50> crew=Crew(id=7aaad2cf-aeb4-4cc3-96df-c5d19e6b37a9, process=Process.sequential, number_of_agents=1, number_of_tasks=1) i18n=I18N(prompt_file=None) cache_handler=CacheHandler() tools_handler=<crewai.agents.tools_handler.ToolsHandler object at 0x7885d9ed1c50> tools_results=[] max_tokens=None knowledge=None knowledge_sources=None knowledge_storage=None security_config=SecurityConfig(version='1.0.0', fingerprint=Fingerprint(uuid_str='45d86bfb-45aa-4d3c-aa25-0699698ab659', created_at=datetime.datetime(2025, 7, 11, 7, 45, 13, 590411), metadata={})) callbacks=[] adapted_agent=False knowledge_config=None max_execution_time=None agent_ops_agent_name='Software developer' agent_ops_agent_id=None step_callback=None use_system_prompt=True function_calling_llm=None system_template=None prompt_template=None response_template=None allow_code_execution=False respect_context_window=True max_retry_limit=2 multimodal=False inject_date=False date_format='%Y-%m-%d' code_execution_mode='safe' reasoning=False max_reasoning_attempts=None embedder=None agent_knowledge_context=None crew_knowledge_context=None knowledge_search_query=None from_repository=None guardrail=None guardrail_max_retries=3\", \"context\": \"\", \"tools\": []}",+ "output": "{\"description\": \"Define the HTML for making a simple website with heading- Hello World! Langfuse monitors your CrewAI agent!\", \"name\": null, \"expected_output\": \"A clear and concise HTML code\", \"summary\": \"Define the HTML for making a simple website with heading-...\", \"raw\": \"```html\\n<!DOCTYPE html>\\n<html lang=\\\"en\\\">\\n<head>\\n <meta charset=\\\"UTF-8\\\">\\n <meta name=\\\"viewport\\\" content=\\\"width=device-width, initial-scale=1.0\\\">\\n <title>Hello World</title>\\n <style>\\n body {\\n font-family: Arial, sans-serif;\\n display: flex;\\n justify-content: center;\\n align-items: center;\\n height: 100vh;\\n background-color: #f0f0f0;\\n }\\n h1 {\\n color: #333;\\n }\\n </style>\\n</head>\\n<body>\\n <h1>Hello World! Langfuse monitors your CrewAI agent!</h1>\\n</body>\\n</html>\\n```\", \"pydantic\": null, \"json_dict\": null, \"agent\": \"Software developer\", \"output_format\": \"raw\"}",+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 3.7,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"attributes\":{\"input.value\":\"{\\\"agent\\\": \\\"id=UUID('5b92f546-0a74-4cf1-afb1-d2f8adf61036') role='Software developer' goal='Write clear, concise code on demand' backstory='An expert coder with a keen eye for software trends.' config=None cache=True verbose=False max_rpm=None allow_delegation=False tools=[] max_iter=25 agent_executor=<crewai.agents.crew_agent_executor.CrewAgentExecutor object at 0x7885d3b76f90> llm=<crewai.llm.LLM object at 0x7885d9d34e50> crew=Crew(id=7aaad2cf-aeb4-4cc3-96df-c5d19e6b37a9, process=Process.sequential, number_of_agents=1, number_of_tasks=1) i18n=I18N(prompt_file=None) cache_handler=CacheHandler() tools_handler=<crewai.agents.tools_handler.ToolsHandler object at 0x7885d9ed1c50> tools_results=[] max_tokens=None knowledge=None knowledge_sources=None knowledge_storage=None security_config=SecurityConfig(version='1.0.0', fingerprint=Fingerprint(uuid_str='45d86bfb-45aa-4d3c-aa25-0699698ab659', created_at=datetime.datetime(2025, 7, 11, 7, 45, 13, 590411), metadata={})) callbacks=[] adapted_agent=False knowledge_config=None max_execution_time=None agent_ops_agent_name='Software developer' agent_ops_agent_id=None step_callback=None use_system_prompt=True function_calling_llm=None system_template=None prompt_template=None response_template=None allow_code_execution=False respect_context_window=True max_retry_limit=2 multimodal=False inject_date=False date_format='%Y-%m-%d' code_execution_mode='safe' reasoning=False max_reasoning_attempts=None embedder=None agent_knowledge_context=None crew_knowledge_context=None knowledge_search_query=None from_repository=None guardrail=None guardrail_max_retries=3\\\", \\\"context\\\": \\\"\\\", \\\"tools\\\": []}\",\"crew_key\":\"4d5b21867b638a1846a38dc4af8e29a4\",\"crew_id\":\"7aaad2cf-aeb4-4cc3-96df-c5d19e6b37a9\",\"task_key\":\"b465f86cdaeb68be07239ef62e75944d\",\"task_id\":\"0431e543-c6ee-485b-bb77-332da9080b89\",\"output.value\":\"{\\\"description\\\": \\\"Define the HTML for making a simple website with heading- Hello World! Langfuse monitors your CrewAI agent!\\\", \\\"name\\\": null, \\\"expected_output\\\": \\\"A clear and concise HTML code\\\", \\\"summary\\\": \\\"Define the HTML for making a simple website with heading-...\\\", \\\"raw\\\": \\\"```html\\\\n<!DOCTYPE html>\\\\n<html lang=\\\\\\\"en\\\\\\\">\\\\n<head>\\\\n <meta charset=\\\\\\\"UTF-8\\\\\\\">\\\\n <meta name=\\\\\\\"viewport\\\\\\\" content=\\\\\\\"width=device-width, initial-scale=1.0\\\\\\\">\\\\n <title>Hello World</title>\\\\n <style>\\\\n body {\\\\n font-family: Arial, sans-serif;\\\\n display: flex;\\\\n justify-content: center;\\\\n align-items: center;\\\\n height: 100vh;\\\\n background-color: #f0f0f0;\\\\n }\\\\n h1 {\\\\n color: #333;\\\\n }\\\\n </style>\\\\n</head>\\\\n<body>\\\\n <h1>Hello World! Langfuse monitors your CrewAI agent!</h1>\\\\n</body>\\\\n</html>\\\\n```\\\", \\\"pydantic\\\": null, \\\"json_dict\\\": null, \\\"agent\\\": \\\"Software developer\\\", \\\"output_format\\\": \\\"raw\\\"}\",\"output.mime_type\":\"application/json\",\"openinference.span.kind\":\"AGENT\"},\"resourceAttributes\":{\"telemetry.sdk.language\":\"python\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"1.34.1\",\"service.name\":\"unknown_service\"},\"scope\":{\"name\":\"openinference.instrumentation.crewai\",\"version\":\"0.1.10\",\"attributes\":{}}}",+ "internalModel": null+ }+ ]+}diff --git a/worker/src/__tests__/chatml/framework-traces/download_traces.js b/worker/src/__tests__/chatml/framework-traces/download_traces.jsnew file mode 100644index 0000000000..450c047b73--- /dev/null+++ b/worker/src/__tests__/chatml/framework-traces/download_traces.js@@ -0,0 +1,196 @@+#!/usr/bin/env node++const fs = require("node:fs");+const path = require("node:path");++/**+ * @typedef {Object} TraceToDownload+ * @property {string} fileNamePrefix+ * @property {string} traceId+ * @property {string} projectId+ */++/** @type {TraceToDownload[]} */+const TRACES_TO_DOWNLOAD = [+ {+ fileNamePrefix: "agno",+ traceId: "080130871f53145aecf7c29d5dfb6e4c",+ projectId: "cloramnkj0002jz088vzn1ja4",+ },+ {+ fileNamePrefix: "autogen",+ traceId: "1b72c51fabed12ae7df83bfd4a09f545",+ projectId: "cloramnkj0002jz088vzn1ja4",+ },+ {+ fileNamePrefix: "beeai",+ traceId: "096fc09a30ab90d2431778f9ee2b3936",+ projectId: "cloramnkj0002jz088vzn1ja4",+ },+ {+ fileNamePrefix: "claude-agent",+ traceId: "097f1d8982fa909b8cffb14a166ec272",+ projectId: "cloramnkj0002jz088vzn1ja4",+ },+ {+ fileNamePrefix: "crewai",+ traceId: "a287bb31e317433610d8827617471140",+ projectId: "cloramnkj0002jz088vzn1ja4",+ },+ {+ fileNamePrefix: "google-adk",+ traceId: "b82a0bdc1994fc5d1c8576ca032543f7",+ projectId: "cloramnkj0002jz088vzn1ja4",+ },+ {+ traceId: "9f2f0fe0228fd81a9fe75882934b384a",+ fileNamePrefix: "google-gemini",+ projectId: "cloramnkj0002jz088vzn1ja4",+ },+ {+ fileNamePrefix: "koog",+ traceId: "dff173a675b759ce1b70e522b27d6846",+ projectId: "cmcmdwcag00c2ad077xp1qnyc",+ },+ {+ fileNamePrefix: "langchain-deepagent",+ traceId: "22e55d4fa6359f400a800dfaed5ce666",+ projectId: "cloramnkj0002jz088vzn1ja4",+ },+ {+ fileNamePrefix: "langgraph-js",+ traceId: "2c1581dd9cecdafb6ca091b83d7ea99a",+ projectId: "cloramnkj0002jz088vzn1ja4",+ },+ {+ fileNamePrefix: "langgraph-python",+ traceId: "e1fde3efec57ce8a69bafd3fb928a7eb",+ projectId: "cloramnkj0002jz088vzn1ja4",+ },+ {+ fileNamePrefix: "llamaindex",+ traceId: "12ea412956f99347b0503c1144acd0ec",+ projectId: "cloramnkj0002jz088vzn1ja4",+ },+ {+ fileNamePrefix: "microsoft-agent",+ traceId: "8e419d3288419b5d944270505640e183",+ projectId: "cloramnkj0002jz088vzn1ja4",+ },+ {+ fileNamePrefix: "openai-agents",+ traceId: "fee618f96dc31e0ca38b2f7b26eb8b29",+ projectId: "cloramnkj0002jz088vzn1ja4",+ },+ {+ fileNamePrefix: "pydantic-ai-tools",+ traceId: "25f4bdeebaab60e6e1bee7e8469554bc",+ projectId: "cloramnkj0002jz088vzn1ja4",+ },+ {+ fileNamePrefix: "vercel-aisdk",+ traceId: "df41e597d0a85e0d7a6ae8ebfaa70aa0",+ projectId: "cloramnkj0002jz088vzn1ja4",+ },+ {+ fileNamePrefix: "vertex-ai",+ traceId: "0298935e31d66d7de9487cac935d7d99",+ projectId: "cloramnkj0002jz088vzn1ja4",+ },+];++async function fetchTrpJsonObject(url) {+ const res = await fetch(url);+ if (!res.ok) {+ throw new Error(`HTTP error for url ${url}: ${res.status}`);+ }++ const trpcJson = await res.json();+ if (trpcJson?.error) {+ const error = trpcJson.error?.json?.message+ ? trpcJson.error?.json?.message+ : trpcJson.error;+ throw new Error(`tRPC error for url}: ${error}`);+ }++ if (!trpcJson?.result?.data?.json) {+ throw new Error(`tRPC error for ${url}: no data.json`);+ }++ if (typeof trpcJson.result.data.json !== "object") {+ throw new Error(`tRPC error for ${url}: data not an object`);+ }++ return trpcJson.result.data.json;+}++function buildTraceUrl({ traceId, projectId }) {+ const input = encodeURIComponent(+ JSON.stringify({+ json: {+ traceId,+ projectId,+ },+ }),+ );+ return `https://cloud.langfuse.com/api/trpc/traces.byIdWithObservationsAndScores?input=${input}`;+}++function buildObservationUrl({ observationId, traceId, projectId }) {+ const input = encodeURIComponent(+ JSON.stringify({+ json: {+ observationId,+ traceId,+ projectId,+ },+ }),+ );+ return `https://cloud.langfuse.com/api/trpc/observations.byId?input=${input}`;+}++//Main+async function main() {+ console.log(`Downloading ${TRACES_TO_DOWNLOAD.length} traces...`);++ for (const traceToDownload of TRACES_TO_DOWNLOAD) {+ process.stdout.write(`${traceToDownload.fileNamePrefix}: loading trace `);++ //collect trace and observations+ const traceUrl = buildTraceUrl({+ traceId: traceToDownload.traceId,+ projectId: traceToDownload.projectId,+ });+ const trace = await fetchTrpJsonObject(traceUrl);++ //collect trace's observations+ process.stdout.write(+ `\r${traceToDownload.fileNamePrefix}: loading ${trace.observations?.length ?? 0} observations`,+ );+ trace.observations.sort((a, b) => a.startTime - b.startTime);+ const observations = await Promise.all(+ trace.observations.map(async (observation) => {+ const observationUrl = buildObservationUrl({+ observationId: observation.id,+ traceId: traceToDownload.traceId,+ projectId: traceToDownload.projectId,+ });+ return await fetchTrpJsonObject(observationUrl);+ }),+ );++ //write trace+observations in file+ const yyyyMMdd = new Date(trace.timestamp).toISOString().slice(0, 10);+ const fileName = `${traceToDownload.fileNamePrefix}-${yyyyMMdd}.trace.json`;+ const content = JSON.stringify({ trace, observations }, null, 2) + "\n";+ fs.writeFileSync(path.join(__dirname, fileName), content, "utf8");++ process.stdout.write(+ `\r${traceToDownload.fileNamePrefix}: trace + ${observations.length} observations written to ${fileName}\n`,+ );+ }++ console.log("Done");+}++main();diff --git a/worker/src/__tests__/chatml/framework-traces/google-adk-2025-08-28.chatml.json b/worker/src/__tests__/chatml/framework-traces/google-adk-2025-08-28.chatml.jsonnew file mode 100644index 0000000000..041d49bd8c--- /dev/null+++ b/worker/src/__tests__/chatml/framework-traces/google-adk-2025-08-28.chatml.json@@ -0,0 +1,244 @@+{+ "6d8beb2e6a36b133": {+ "output": {+ "success": true,+ "data": [+ {+ "role": "model",+ "content": "Hello Langfuse 👋!\n",+ "json": {+ "finish_reason": "STOP",+ "usage_metadata": {+ "candidates_token_count": 6,+ "candidates_tokens_details": [+ {+ "modality": "TEXT",+ "token_count": 6+ }+ ],+ "prompt_token_count": 39,+ "prompt_tokens_details": [+ {+ "modality": "TEXT",+ "token_count": 39+ }+ ],+ "total_token_count": 45+ },+ "invocation_id": "e-5022fa36-69c5-4fe7-bb37-662704dcb713",+ "author": "hello_agent",+ "actions": {+ "state_delta": {},+ "artifact_delta": {},+ "requested_auth_configs": {}+ },+ "id": "f2596747-d905-44bc-b85c-1e9692c3249c",+ "timestamp": 1756366351.22196+ }+ }+ ]+ }+ },+ "86cd4912944ddc41": {+ "input": {+ "success": false,+ "error": {+ "name": "ZodError",+ "message": "[\n {\n \"expected\": \"array\",\n \"code\": \"invalid_type\",\n \"path\": [],\n \"message\": \"Invalid input: expected array, received object\"\n }\n]"+ }+ },+ "output": {+ "success": true,+ "data": [+ {+ "role": "model",+ "content": "Hello Langfuse 👋!\n",+ "json": {+ "finish_reason": "STOP",+ "usage_metadata": {+ "candidates_token_count": 6,+ "candidates_tokens_details": [+ {+ "modality": "TEXT",+ "token_count": 6+ }+ ],+ "prompt_token_count": 39,+ "prompt_tokens_details": [+ {+ "modality": "TEXT",+ "token_count": 39+ }+ ],+ "total_token_count": 45+ },+ "invocation_id": "e-5022fa36-69c5-4fe7-bb37-662704dcb713",+ "author": "hello_agent",+ "actions": {+ "state_delta": {},+ "artifact_delta": {},+ "requested_auth_configs": {}+ },+ "id": "f2596747-d905-44bc-b85c-1e9692c3249c",+ "timestamp": 1756366351.22196+ }+ }+ ]+ }+ },+ "bded677884f031ce": {+ "input": {+ "success": true,+ "data": [+ {+ "role": "system",+ "content": "Always greet using the say_hello tool.\n\nYou are an agent. Your internal name is \"hello_agent\".",+ "tools": [+ {+ "name": "say_hello"+ }+ ]+ },+ {+ "role": "user",+ "content": "hi",+ "tools": [+ {+ "name": "say_hello"+ }+ ]+ },+ {+ "role": "model",+ "tools": [+ {+ "name": "say_hello"+ }+ ],+ "tool_calls": [+ {+ "id": "",+ "name": "say_hello",+ "arguments": "{}",+ "type": "function"+ }+ ]+ },+ {+ "role": "user",+ "content": "{\"greeting\":\"Hello Langfuse 👋\"}",+ "tools": [+ {+ "name": "say_hello"+ }+ ]+ }+ ]+ },+ "output": {+ "success": true,+ "data": [+ {+ "role": "model",+ "content": "Hello Langfuse 👋!\n",+ "json": {+ "finish_reason": "STOP",+ "usage_metadata": {+ "candidates_token_count": 6,+ "candidates_tokens_details": [+ {+ "modality": "TEXT",+ "token_count": 6+ }+ ],+ "prompt_token_count": 39,+ "prompt_tokens_details": [+ {+ "modality": "TEXT",+ "token_count": 39+ }+ ],+ "total_token_count": 45+ }+ }+ }+ ]+ }+ },+ "f6e4c65297e40c96": {+ "input": {+ "success": true,+ "data": [+ {+ "role": "system",+ "content": "Always greet using the say_hello tool.\n\nYou are an agent. Your internal name is \"hello_agent\".",+ "tools": [+ {+ "name": "say_hello"+ }+ ]+ },+ {+ "role": "user",+ "content": "hi",+ "tools": [+ {+ "name": "say_hello"+ }+ ]+ }+ ]+ },+ "output": {+ "success": true,+ "data": [+ {+ "role": "model",+ "tool_calls": [+ {+ "id": "",+ "name": "say_hello",+ "arguments": "{}",+ "type": "function"+ }+ ],+ "json": {+ "finish_reason": "STOP",+ "usage_metadata": {+ "candidates_token_count": 3,+ "candidates_tokens_details": [+ {+ "modality": "TEXT",+ "token_count": 3+ }+ ],+ "prompt_token_count": 28,+ "prompt_tokens_details": [+ {+ "modality": "TEXT",+ "token_count": 28+ }+ ],+ "total_token_count": 31+ }+ }+ }+ ]+ }+ },+ "04290e4d82aba1bc": {+ "input": {+ "success": false,+ "error": {+ "name": "ZodError",+ "message": "[\n {\n \"expected\": \"array\",\n \"code\": \"invalid_type\",\n \"path\": [],\n \"message\": \"Invalid input: expected array, received object\"\n }\n]"+ }+ },+ "output": {+ "success": true,+ "data": [+ {}+ ]+ }+ }+}\ No newline at end of filediff --git a/worker/src/__tests__/chatml/framework-traces/google-adk-2025-08-28.trace.json b/worker/src/__tests__/chatml/framework-traces/google-adk-2025-08-28.trace.jsonnew file mode 100644index 0000000000..bbe7f7d1ea--- /dev/null+++ b/worker/src/__tests__/chatml/framework-traces/google-adk-2025-08-28.trace.json@@ -0,0 +1,550 @@+{+ "trace": {+ "id": "b82a0bdc1994fc5d1c8576ca032543f7",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "name": "invocation [hello_app]",+ "timestamp": "2025-08-28T07:32:30.303Z",+ "environment": "default",+ "tags": [],+ "bookmarked": false,+ "release": null,+ "version": null,+ "userId": "demo-user",+ "sessionId": "demo-session",+ "public": true,+ "input": "\"{\\\"user_id\\\":\\\"demo-user\\\",\\\"session_id\\\":\\\"demo-session\\\",\\\"new_message\\\":{\\\"parts\\\":[{\\\"text\\\":\\\"hi\\\"}],\\\"role\\\":\\\"user\\\"},\\\"state_delta\\\":null,\\\"run_config\\\":{\\\"save_input_blobs_as_artifacts\\\":false,\\\"support_cfc\\\":false,\\\"streaming_mode\\\":\\\"StreamingMode.NONE\\\",\\\"max_llm_calls\\\":500}}\"",+ "output": "\"{\\\"content\\\":{\\\"parts\\\":[{\\\"text\\\":\\\"Hello Langfuse 👋!\\\\n\\\"}],\\\"role\\\":\\\"model\\\"},\\\"finish_reason\\\":\\\"STOP\\\",\\\"usage_metadata\\\":{\\\"candidates_token_count\\\":6,\\\"candidates_tokens_details\\\":[{\\\"modality\\\":\\\"TEXT\\\",\\\"token_count\\\":6}],\\\"prompt_token_count\\\":39,\\\"prompt_tokens_details\\\":[{\\\"modality\\\":\\\"TEXT\\\",\\\"token_count\\\":39}],\\\"total_token_count\\\":45},\\\"invocation_id\\\":\\\"e-5022fa36-69c5-4fe7-bb37-662704dcb713\\\",\\\"author\\\":\\\"hello_agent\\\",\\\"actions\\\":{\\\"state_delta\\\":{},\\\"artifact_delta\\\":{},\\\"requested_auth_configs\\\":{}},\\\"id\\\":\\\"f2596747-d905-44bc-b85c-1e9692c3249c\\\",\\\"timestamp\\\":1756366351.22196}\"",+ "createdAt": "2025-08-28T07:32:30.303Z",+ "updatedAt": "2025-08-28T07:33:02.230Z",+ "metadata": "{\"attributes\":{\"session.id\":\"demo-session\",\"user.id\":\"demo-user\",\"output.value\":\"{\\\"content\\\":{\\\"parts\\\":[{\\\"text\\\":\\\"Hello Langfuse 👋!\\\\n\\\"}],\\\"role\\\":\\\"model\\\"},\\\"finish_reason\\\":\\\"STOP\\\",\\\"usage_metadata\\\":{\\\"candidates_token_count\\\":6,\\\"candidates_tokens_details\\\":[{\\\"modality\\\":\\\"TEXT\\\",\\\"token_count\\\":6}],\\\"prompt_token_count\\\":39,\\\"prompt_tokens_details\\\":[{\\\"modality\\\":\\\"TEXT\\\",\\\"token_count\\\":39}],\\\"total_token_count\\\":45},\\\"invocation_id\\\":\\\"e-5022fa36-69c5-4fe7-bb37-662704dcb713\\\",\\\"author\\\":\\\"hello_agent\\\",\\\"actions\\\":{\\\"state_delta\\\":{},\\\"artifact_delta\\\":{},\\\"requested_auth_configs\\\":{}},\\\"id\\\":\\\"f2596747-d905-44bc-b85c-1e9692c3249c\\\",\\\"timestamp\\\":1756366351.22196}\",\"output.mime_type\":\"application/json\",\"openinference.span.kind\":\"AGENT\"},\"resourceAttributes\":{\"telemetry.sdk.language\":\"python\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"1.36.0\",\"service.name\":\"unknown_service\"},\"scope\":{\"name\":\"openinference.instrumentation.google_adk\",\"version\":\"0.1.3\",\"attributes\":{}}}",+ "scores": [+ {+ "id": "23fb2bfb-7c1e-4c91-bf34-9d846eb9b1eb",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "environment": "default",+ "name": "toxicity",+ "value": 0,+ "source": "EVAL",+ "authorUserId": null,+ "comment": "The generation is friendly and welcoming, containing no harmful or disrespectful language, thus it scores a 0 for toxicity.",+ "configId": null,+ "queueId": null,+ "executionTraceId": null,+ "createdAt": "2025-08-28T07:33:03.000Z",+ "updatedAt": "2025-08-28T07:33:02.230Z",+ "timestamp": "2025-08-28T07:33:02.142Z",+ "traceId": "b82a0bdc1994fc5d1c8576ca032543f7",+ "sessionId": null,+ "datasetRunId": null,+ "observationId": null,+ "longStringValue": "",+ "stringValue": null,+ "dataType": "NUMERIC",+ "metadata": "{}"+ },+ {+ "id": "66afb5b7-1342-48de-b567-9970d4227b26",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "environment": "default",+ "name": "hallucination",+ "value": 0,+ "source": "EVAL",+ "authorUserId": null,+ "comment": "The model's response is a simple friendly greeting and does not include any factual content or information that could be incorrect, implausible, or invented, so it does not hallucinate.",+ "configId": null,+ "queueId": null,+ "executionTraceId": null,+ "createdAt": "2025-08-28T07:33:02.000Z",+ "updatedAt": "2025-08-28T07:33:01.999Z",+ "timestamp": "2025-08-28T07:33:01.935Z",+ "traceId": "b82a0bdc1994fc5d1c8576ca032543f7",+ "sessionId": null,+ "datasetRunId": null,+ "observationId": null,+ "longStringValue": "",+ "stringValue": null,+ "dataType": "NUMERIC",+ "metadata": "{}"+ }+ ],+ "corrections": [],+ "latency": 1.848,+ "observations": [+ {+ "id": "6d8beb2e6a36b133",+ "traceId": "b82a0bdc1994fc5d1c8576ca032543f7",+ "startTime": "2025-08-28T07:32:30.304Z",+ "endTime": "2025-08-28T07:32:32.150Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "86cd4912944ddc41",+ "type": "AGENT",+ "environment": "default",+ "name": "agent_run [hello_agent]",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-08-28T07:32:35.210Z",+ "updatedAt": "2025-08-28T07:32:35.239Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": {},+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 1.846,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ },+ {+ "id": "86cd4912944ddc41",+ "traceId": "b82a0bdc1994fc5d1c8576ca032543f7",+ "startTime": "2025-08-28T07:32:30.303Z",+ "endTime": "2025-08-28T07:32:32.151Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": null,+ "type": "CHAIN",+ "environment": "default",+ "name": "invocation [hello_app]",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-08-28T07:32:35.209Z",+ "updatedAt": "2025-08-28T07:32:35.243Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": {},+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 1.848,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ },+ {+ "id": "bded677884f031ce",+ "traceId": "b82a0bdc1994fc5d1c8576ca032543f7",+ "startTime": "2025-08-28T07:32:31.222Z",+ "endTime": "2025-08-28T07:32:32.146Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "6d8beb2e6a36b133",+ "type": "GENERATION",+ "environment": "default",+ "name": "call_llm",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-08-28T07:32:35.207Z",+ "updatedAt": "2025-08-28T07:32:35.247Z",+ "input": null,+ "output": null,+ "model": "gemini-2.0-flash",+ "internalModelId": "cm7zsrs1327124dhjtb95w8f74",+ "modelParameters": {+ "http_options": "{\"headers\":{\"x-goog-api-client\":\"google-adk/1.12.0 gl-python/3.12.11\",\"user-agent\":\"google-adk/1.12.0 gl-python/3.12.11\"}}",+ "system_instruction": "Always greet using the say_hello tool.\n\nYou are an agent. Your internal name is \"hello_agent\".",+ "tools": "[{\"function_declarations\":[{\"name\":\"say_hello\"}]}]"+ },+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 0.924,+ "timeToFirstToken": null,+ "usageDetails": {+ "input": 39,+ "output": 6,+ "total": 45+ },+ "costDetails": {+ "input": 0.0000039,+ "output": 0.0000024,+ "total": 0.0000063+ },+ "providedCostDetails": {},+ "inputCost": 0.0000039,+ "outputCost": 0.0000024,+ "totalCost": 0.0000063,+ "inputUsage": 39,+ "outputUsage": 6,+ "totalUsage": 45,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ },+ {+ "id": "f6e4c65297e40c96",+ "traceId": "b82a0bdc1994fc5d1c8576ca032543f7",+ "startTime": "2025-08-28T07:32:30.306Z",+ "endTime": "2025-08-28T07:32:31.217Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "6d8beb2e6a36b133",+ "type": "GENERATION",+ "environment": "default",+ "name": "call_llm",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-08-28T07:32:35.209Z",+ "updatedAt": "2025-08-28T07:32:35.244Z",+ "input": null,+ "output": null,+ "model": "gemini-2.0-flash",+ "internalModelId": "cm7zsrs1327124dhjtb95w8f74",+ "modelParameters": {+ "http_options": "{\"headers\":{\"x-goog-api-client\":\"google-adk/1.12.0 gl-python/3.12.11\",\"user-agent\":\"google-adk/1.12.0 gl-python/3.12.11\"}}",+ "system_instruction": "Always greet using the say_hello tool.\n\nYou are an agent. Your internal name is \"hello_agent\".",+ "tools": "[{\"function_declarations\":[{\"name\":\"say_hello\"}]}]"+ },+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 0.911,+ "timeToFirstToken": null,+ "usageDetails": {+ "input": 28,+ "output": 3,+ "total": 31+ },+ "costDetails": {+ "input": 0.0000028,+ "output": 0.0000012,+ "total": 0.000004+ },+ "providedCostDetails": {},+ "inputCost": 0.0000028,+ "outputCost": 0.0000012,+ "totalCost": 0.000004,+ "inputUsage": 28,+ "outputUsage": 3,+ "totalUsage": 31,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ },+ {+ "id": "04290e4d82aba1bc",+ "traceId": "b82a0bdc1994fc5d1c8576ca032543f7",+ "startTime": "2025-08-28T07:32:31.216Z",+ "endTime": "2025-08-28T07:32:31.217Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "f6e4c65297e40c96",+ "type": "TOOL",+ "environment": "default",+ "name": "execute_tool say_hello",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-08-28T07:32:35.207Z",+ "updatedAt": "2025-08-28T07:32:35.238Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": {},+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 0.001,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ }+ ]+ },+ "observations": [+ {+ "id": "6d8beb2e6a36b133",+ "traceId": "b82a0bdc1994fc5d1c8576ca032543f7",+ "startTime": "2025-08-28T07:32:30.304Z",+ "endTime": "2025-08-28T07:32:32.150Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "86cd4912944ddc41",+ "type": "AGENT",+ "environment": "default",+ "name": "agent_run [hello_agent]",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-08-28T07:32:35.210Z",+ "updatedAt": "2025-08-28T07:32:35.239Z",+ "input": null,+ "output": "{\"content\":{\"parts\":[{\"text\":\"Hello Langfuse 👋!\\n\"}],\"role\":\"model\"},\"finish_reason\":\"STOP\",\"usage_metadata\":{\"candidates_token_count\":6,\"candidates_tokens_details\":[{\"modality\":\"TEXT\",\"token_count\":6}],\"prompt_token_count\":39,\"prompt_tokens_details\":[{\"modality\":\"TEXT\",\"token_count\":39}],\"total_token_count\":45},\"invocation_id\":\"e-5022fa36-69c5-4fe7-bb37-662704dcb713\",\"author\":\"hello_agent\",\"actions\":{\"state_delta\":{},\"artifact_delta\":{},\"requested_auth_configs\":{}},\"id\":\"f2596747-d905-44bc-b85c-1e9692c3249c\",\"timestamp\":1756366351.22196}",+ "model": null,+ "internalModelId": null,+ "modelParameters": {},+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 1.846,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"attributes\":{\"session.id\":\"demo-session\",\"user.id\":\"demo-user\",\"output.value\":\"{\\\"content\\\":{\\\"parts\\\":[{\\\"text\\\":\\\"Hello Langfuse 👋!\\\\n\\\"}],\\\"role\\\":\\\"model\\\"},\\\"finish_reason\\\":\\\"STOP\\\",\\\"usage_metadata\\\":{\\\"candidates_token_count\\\":6,\\\"candidates_tokens_details\\\":[{\\\"modality\\\":\\\"TEXT\\\",\\\"token_count\\\":6}],\\\"prompt_token_count\\\":39,\\\"prompt_tokens_details\\\":[{\\\"modality\\\":\\\"TEXT\\\",\\\"token_count\\\":39}],\\\"total_token_count\\\":45},\\\"invocation_id\\\":\\\"e-5022fa36-69c5-4fe7-bb37-662704dcb713\\\",\\\"author\\\":\\\"hello_agent\\\",\\\"actions\\\":{\\\"state_delta\\\":{},\\\"artifact_delta\\\":{},\\\"requested_auth_configs\\\":{}},\\\"id\\\":\\\"f2596747-d905-44bc-b85c-1e9692c3249c\\\",\\\"timestamp\\\":1756366351.22196}\",\"output.mime_type\":\"application/json\",\"openinference.span.kind\":\"AGENT\"},\"resourceAttributes\":{\"telemetry.sdk.language\":\"python\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"1.36.0\",\"service.name\":\"unknown_service\"},\"scope\":{\"name\":\"openinference.instrumentation.google_adk\",\"version\":\"0.1.3\",\"attributes\":{}}}",+ "internalModel": null+ },+ {+ "id": "86cd4912944ddc41",+ "traceId": "b82a0bdc1994fc5d1c8576ca032543f7",+ "startTime": "2025-08-28T07:32:30.303Z",+ "endTime": "2025-08-28T07:32:32.151Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": null,+ "type": "CHAIN",+ "environment": "default",+ "name": "invocation [hello_app]",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-08-28T07:32:35.209Z",+ "updatedAt": "2025-08-28T07:32:35.243Z",+ "input": "{\"user_id\": \"demo-user\", \"session_id\": \"demo-session\", \"new_message\": {\"parts\": [{\"text\": \"hi\"}], \"role\": \"user\"}, \"state_delta\": null, \"run_config\": {\"save_input_blobs_as_artifacts\": false, \"support_cfc\": false, \"streaming_mode\": \"StreamingMode.NONE\", \"max_llm_calls\": 500}}",+ "output": "{\"content\":{\"parts\":[{\"text\":\"Hello Langfuse 👋!\\n\"}],\"role\":\"model\"},\"finish_reason\":\"STOP\",\"usage_metadata\":{\"candidates_token_count\":6,\"candidates_tokens_details\":[{\"modality\":\"TEXT\",\"token_count\":6}],\"prompt_token_count\":39,\"prompt_tokens_details\":[{\"modality\":\"TEXT\",\"token_count\":39}],\"total_token_count\":45},\"invocation_id\":\"e-5022fa36-69c5-4fe7-bb37-662704dcb713\",\"author\":\"hello_agent\",\"actions\":{\"state_delta\":{},\"artifact_delta\":{},\"requested_auth_configs\":{}},\"id\":\"f2596747-d905-44bc-b85c-1e9692c3249c\",\"timestamp\":1756366351.22196}",+ "model": null,+ "internalModelId": null,+ "modelParameters": {},+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 1.848,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"attributes\":{\"input.value\":\"{\\\"user_id\\\": \\\"demo-user\\\", \\\"session_id\\\": \\\"demo-session\\\", \\\"new_message\\\": {\\\"parts\\\": [{\\\"text\\\": \\\"hi\\\"}], \\\"role\\\": \\\"user\\\"}, \\\"state_delta\\\": null, \\\"run_config\\\": {\\\"save_input_blobs_as_artifacts\\\": false, \\\"support_cfc\\\": false, \\\"streaming_mode\\\": \\\"StreamingMode.NONE\\\", \\\"max_llm_calls\\\": 500}}\",\"input.mime_type\":\"application/json\",\"user.id\":\"demo-user\",\"session.id\":\"demo-session\",\"output.value\":\"{\\\"content\\\":{\\\"parts\\\":[{\\\"text\\\":\\\"Hello Langfuse 👋!\\\\n\\\"}],\\\"role\\\":\\\"model\\\"},\\\"finish_reason\\\":\\\"STOP\\\",\\\"usage_metadata\\\":{\\\"candidates_token_count\\\":6,\\\"candidates_tokens_details\\\":[{\\\"modality\\\":\\\"TEXT\\\",\\\"token_count\\\":6}],\\\"prompt_token_count\\\":39,\\\"prompt_tokens_details\\\":[{\\\"modality\\\":\\\"TEXT\\\",\\\"token_count\\\":39}],\\\"total_token_count\\\":45},\\\"invocation_id\\\":\\\"e-5022fa36-69c5-4fe7-bb37-662704dcb713\\\",\\\"author\\\":\\\"hello_agent\\\",\\\"actions\\\":{\\\"state_delta\\\":{},\\\"artifact_delta\\\":{},\\\"requested_auth_configs\\\":{}},\\\"id\\\":\\\"f2596747-d905-44bc-b85c-1e9692c3249c\\\",\\\"timestamp\\\":1756366351.22196}\",\"output.mime_type\":\"application/json\",\"openinference.span.kind\":\"CHAIN\"},\"resourceAttributes\":{\"telemetry.sdk.language\":\"python\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"1.36.0\",\"service.name\":\"unknown_service\"},\"scope\":{\"name\":\"openinference.instrumentation.google_adk\",\"version\":\"0.1.3\",\"attributes\":{}}}",+ "internalModel": null+ },+ {+ "id": "bded677884f031ce",+ "traceId": "b82a0bdc1994fc5d1c8576ca032543f7",+ "startTime": "2025-08-28T07:32:31.222Z",+ "endTime": "2025-08-28T07:32:32.146Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "6d8beb2e6a36b133",+ "type": "GENERATION",+ "environment": "default",+ "name": "call_llm",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-08-28T07:32:35.207Z",+ "updatedAt": "2025-08-28T07:32:35.247Z",+ "input": "{\"model\": \"gemini-2.0-flash\", \"config\": {\"http_options\": {\"headers\": {\"x-goog-api-client\": \"google-adk/1.12.0 gl-python/3.12.11\", \"user-agent\": \"google-adk/1.12.0 gl-python/3.12.11\"}}, \"system_instruction\": \"Always greet using the say_hello tool.\\n\\nYou are an agent. Your internal name is \\\"hello_agent\\\".\", \"tools\": [{\"function_declarations\": [{\"name\": \"say_hello\"}]}]}, \"contents\": [{\"parts\": [{\"text\": \"hi\"}], \"role\": \"user\"}, {\"parts\": [{\"function_call\": {\"args\": {}, \"name\": \"say_hello\"}}], \"role\": \"model\"}, {\"parts\": [{\"function_response\": {\"name\": \"say_hello\", \"response\": {\"greeting\": \"Hello Langfuse 👋\"}}}], \"role\": \"user\"}]}",+ "output": "{\"content\":{\"parts\":[{\"text\":\"Hello Langfuse 👋!\\n\"}],\"role\":\"model\"},\"finish_reason\":\"STOP\",\"usage_metadata\":{\"candidates_token_count\":6,\"candidates_tokens_details\":[{\"modality\":\"TEXT\",\"token_count\":6}],\"prompt_token_count\":39,\"prompt_tokens_details\":[{\"modality\":\"TEXT\",\"token_count\":39}],\"total_token_count\":45}}",+ "model": "gemini-2.0-flash",+ "internalModelId": "cm7zsrs1327124dhjtb95w8f74",+ "modelParameters": {+ "http_options": "{\"headers\":{\"x-goog-api-client\":\"google-adk/1.12.0 gl-python/3.12.11\",\"user-agent\":\"google-adk/1.12.0 gl-python/3.12.11\"}}",+ "system_instruction": "Always greet using the say_hello tool.\n\nYou are an agent. Your internal name is \"hello_agent\".",+ "tools": "[{\"function_declarations\":[{\"name\":\"say_hello\"}]}]"+ },+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 0.924,+ "timeToFirstToken": null,+ "usageDetails": {+ "input": 39,+ "output": 6,+ "total": 45+ },+ "costDetails": {+ "input": 0.0000039,+ "output": 0.0000024,+ "total": 0.0000063+ },+ "providedCostDetails": {},+ "inputCost": 0.0000039,+ "outputCost": 0.0000024,+ "totalCost": 0.0000063,+ "inputUsage": 39,+ "outputUsage": 6,+ "totalUsage": 45,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"attributes\":{\"session.id\":\"demo-session\",\"user.id\":\"demo-user\",\"gen_ai.system\":\"gcp.vertex.agent\",\"gen_ai.request.model\":\"gemini-2.0-flash\",\"gcp.vertex.agent.invocation_id\":\"e-5022fa36-69c5-4fe7-bb37-662704dcb713\",\"gcp.vertex.agent.session_id\":\"demo-session\",\"gcp.vertex.agent.event_id\":\"f2596747-d905-44bc-b85c-1e9692c3249c\",\"gcp.vertex.agent.llm_request\":\"{\\\"model\\\": \\\"gemini-2.0-flash\\\", \\\"config\\\": {\\\"http_options\\\": {\\\"headers\\\": {\\\"x-goog-api-client\\\": \\\"google-adk/1.12.0 gl-python/3.12.11\\\", \\\"user-agent\\\": \\\"google-adk/1.12.0 gl-python/3.12.11\\\"}}, \\\"system_instruction\\\": \\\"Always greet using the say_hello tool.\\\\n\\\\nYou are an agent. Your internal name is \\\\\\\"hello_agent\\\\\\\".\\\", \\\"tools\\\": [{\\\"function_declarations\\\": [{\\\"name\\\": \\\"say_hello\\\"}]}]}, \\\"contents\\\": [{\\\"parts\\\": [{\\\"text\\\": \\\"hi\\\"}], \\\"role\\\": \\\"user\\\"}, {\\\"parts\\\": [{\\\"function_call\\\": {\\\"args\\\": {}, \\\"name\\\": \\\"say_hello\\\"}}], \\\"role\\\": \\\"model\\\"}, {\\\"parts\\\": [{\\\"function_response\\\": {\\\"name\\\": \\\"say_hello\\\", \\\"response\\\": {\\\"greeting\\\": \\\"Hello Langfuse 👋\\\"}}}], \\\"role\\\": \\\"user\\\"}]}\",\"gcp.vertex.agent.llm_response\":\"{\\\"content\\\":{\\\"parts\\\":[{\\\"text\\\":\\\"Hello Langfuse 👋!\\\\n\\\"}],\\\"role\\\":\\\"model\\\"},\\\"finish_reason\\\":\\\"STOP\\\",\\\"usage_metadata\\\":{\\\"candidates_token_count\\\":6,\\\"candidates_tokens_details\\\":[{\\\"modality\\\":\\\"TEXT\\\",\\\"token_count\\\":6}],\\\"prompt_token_count\\\":39,\\\"prompt_tokens_details\\\":[{\\\"modality\\\":\\\"TEXT\\\",\\\"token_count\\\":39}],\\\"total_token_count\\\":45}}\",\"gen_ai.usage.input_tokens\":\"39\",\"gen_ai.usage.output_tokens\":\"6\",\"gen_ai.response.finish_reasons\":\"[\\\"stop\\\"]\",\"llm.provider\":\"google\",\"input.value\":\"{\\\"model\\\": \\\"gemini-2.0-flash\\\", \\\"config\\\": {\\\"http_options\\\": {\\\"headers\\\": {\\\"x-goog-api-client\\\": \\\"google-adk/1.12.0 gl-python/3.12.11\\\", \\\"user-agent\\\": \\\"google-adk/1.12.0 gl-python/3.12.11\\\"}}, \\\"system_instruction\\\": \\\"Always greet using the say_hello tool.\\\\n\\\\nYou are an agent. Your internal name is \\\\\\\"hello_agent\\\\\\\".\\\", \\\"tools\\\": [{\\\"function_declarations\\\": [{\\\"name\\\": \\\"say_hello\\\"}]}]}, \\\"contents\\\": [{\\\"parts\\\": [{\\\"text\\\": \\\"hi\\\"}], \\\"role\\\": \\\"user\\\"}, {\\\"parts\\\": [{\\\"function_call\\\": {\\\"args\\\": {}, \\\"name\\\": \\\"say_hello\\\"}}], \\\"role\\\": \\\"model\\\"}, {\\\"parts\\\": [{\\\"function_response\\\": {\\\"name\\\": \\\"say_hello\\\", \\\"response\\\": {\\\"greeting\\\": \\\"Hello Langfuse 👋\\\"}}}], \\\"role\\\": \\\"user\\\"}]}\",\"input.mime_type\":\"application/json\",\"llm.tools.0.tool.json_schema\":\"{\\\"name\\\":\\\"say_hello\\\"}\",\"llm.model_name\":\"gemini-2.0-flash\",\"llm.invocation_parameters\":\"{\\\"http_options\\\":{\\\"headers\\\":{\\\"x-goog-api-client\\\":\\\"google-adk/1.12.0 gl-python/3.12.11\\\",\\\"user-agent\\\":\\\"google-adk/1.12.0 gl-python/3.12.11\\\"}},\\\"system_instruction\\\":\\\"Always greet using the say_hello tool.\\\\n\\\\nYou are an agent. Your internal name is \\\\\\\"hello_agent\\\\\\\".\\\",\\\"tools\\\":[{\\\"function_declarations\\\":[{\\\"name\\\":\\\"say_hello\\\"}]}]}\",\"llm.input_messages.0.message.role\":\"system\",\"llm.input_messages.0.message.content\":\"Always greet using the say_hello tool.\\n\\nYou are an agent. Your internal name is \\\"hello_agent\\\".\",\"llm.input_messages.1.message.role\":\"user\",\"llm.input_messages.1.message.contents.0.message_content.text\":\"hi\",\"llm.input_messages.1.message.contents.0.message_content.type\":\"text\",\"llm.input_messages.2.message.role\":\"model\",\"llm.input_messages.2.message.tool_calls.0.tool_call.function.name\":\"say_hello\",\"llm.input_messages.3.message.role\":\"tool\",\"llm.input_messages.3.message.name\":\"say_hello\",\"llm.input_messages.3.message.content\":\"{\\\"greeting\\\": \\\"Hello Langfuse 👋\\\"}\",\"output.value\":\"{\\\"content\\\":{\\\"parts\\\":[{\\\"text\\\":\\\"Hello Langfuse 👋!\\\\n\\\"}],\\\"role\\\":\\\"model\\\"},\\\"finish_reason\\\":\\\"STOP\\\",\\\"usage_metadata\\\":{\\\"candidates_token_count\\\":6,\\\"candidates_tokens_details\\\":[{\\\"modality\\\":\\\"TEXT\\\",\\\"token_count\\\":6}],\\\"prompt_token_count\\\":39,\\\"prompt_tokens_details\\\":[{\\\"modality\\\":\\\"TEXT\\\",\\\"token_count\\\":39}],\\\"total_token_count\\\":45}}\",\"output.mime_type\":\"application/json\",\"llm.token_count.total\":\"45\",\"llm.token_count.prompt\":\"39\",\"llm.token_count.completion\":\"6\",\"llm.output_messages.0.message.role\":\"model\",\"llm.output_messages.0.message.contents.0.message_content.text\":\"Hello Langfuse 👋!\\n\",\"llm.output_messages.0.message.contents.0.message_content.type\":\"text\",\"openinference.span.kind\":\"LLM\"},\"resourceAttributes\":{\"telemetry.sdk.language\":\"python\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"1.36.0\",\"service.name\":\"unknown_service\"},\"scope\":{\"name\":\"openinference.instrumentation.google_adk\",\"version\":\"0.1.3\",\"attributes\":{}}}",+ "internalModel": "cm7zsrs1327124dhjtb95w8f74"+ },+ {+ "id": "f6e4c65297e40c96",+ "traceId": "b82a0bdc1994fc5d1c8576ca032543f7",+ "startTime": "2025-08-28T07:32:30.306Z",+ "endTime": "2025-08-28T07:32:31.217Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "6d8beb2e6a36b133",+ "type": "GENERATION",+ "environment": "default",+ "name": "call_llm",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-08-28T07:32:35.209Z",+ "updatedAt": "2025-08-28T07:32:35.244Z",+ "input": "{\"model\": \"gemini-2.0-flash\", \"config\": {\"http_options\": {\"headers\": {\"x-goog-api-client\": \"google-adk/1.12.0 gl-python/3.12.11\", \"user-agent\": \"google-adk/1.12.0 gl-python/3.12.11\"}}, \"system_instruction\": \"Always greet using the say_hello tool.\\n\\nYou are an agent. Your internal name is \\\"hello_agent\\\".\", \"tools\": [{\"function_declarations\": [{\"name\": \"say_hello\"}]}]}, \"contents\": [{\"parts\": [{\"text\": \"hi\"}], \"role\": \"user\"}]}",+ "output": "{\"content\":{\"parts\":[{\"function_call\":{\"args\":{},\"name\":\"say_hello\"}}],\"role\":\"model\"},\"finish_reason\":\"STOP\",\"usage_metadata\":{\"candidates_token_count\":3,\"candidates_tokens_details\":[{\"modality\":\"TEXT\",\"token_count\":3}],\"prompt_token_count\":28,\"prompt_tokens_details\":[{\"modality\":\"TEXT\",\"token_count\":28}],\"total_token_count\":31}}",+ "model": "gemini-2.0-flash",+ "internalModelId": "cm7zsrs1327124dhjtb95w8f74",+ "modelParameters": {+ "http_options": "{\"headers\":{\"x-goog-api-client\":\"google-adk/1.12.0 gl-python/3.12.11\",\"user-agent\":\"google-adk/1.12.0 gl-python/3.12.11\"}}",+ "system_instruction": "Always greet using the say_hello tool.\n\nYou are an agent. Your internal name is \"hello_agent\".",+ "tools": "[{\"function_declarations\":[{\"name\":\"say_hello\"}]}]"+ },+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 0.911,+ "timeToFirstToken": null,+ "usageDetails": {+ "input": 28,+ "output": 3,+ "total": 31+ },+ "costDetails": {+ "input": 0.0000028,+ "output": 0.0000012,+ "total": 0.000004+ },+ "providedCostDetails": {},+ "inputCost": 0.0000028,+ "outputCost": 0.0000012,+ "totalCost": 0.000004,+ "inputUsage": 28,+ "outputUsage": 3,+ "totalUsage": 31,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"attributes\":{\"session.id\":\"demo-session\",\"user.id\":\"demo-user\",\"gen_ai.system\":\"gcp.vertex.agent\",\"gen_ai.request.model\":\"gemini-2.0-flash\",\"gcp.vertex.agent.invocation_id\":\"e-5022fa36-69c5-4fe7-bb37-662704dcb713\",\"gcp.vertex.agent.session_id\":\"demo-session\",\"gcp.vertex.agent.event_id\":\"5e9ed38f-f5ae-47f8-8e34-81367e0e9152\",\"gcp.vertex.agent.llm_request\":\"{\\\"model\\\": \\\"gemini-2.0-flash\\\", \\\"config\\\": {\\\"http_options\\\": {\\\"headers\\\": {\\\"x-goog-api-client\\\": \\\"google-adk/1.12.0 gl-python/3.12.11\\\", \\\"user-agent\\\": \\\"google-adk/1.12.0 gl-python/3.12.11\\\"}}, \\\"system_instruction\\\": \\\"Always greet using the say_hello tool.\\\\n\\\\nYou are an agent. Your internal name is \\\\\\\"hello_agent\\\\\\\".\\\", \\\"tools\\\": [{\\\"function_declarations\\\": [{\\\"name\\\": \\\"say_hello\\\"}]}]}, \\\"contents\\\": [{\\\"parts\\\": [{\\\"text\\\": \\\"hi\\\"}], \\\"role\\\": \\\"user\\\"}]}\",\"gcp.vertex.agent.llm_response\":\"{\\\"content\\\":{\\\"parts\\\":[{\\\"function_call\\\":{\\\"args\\\":{},\\\"name\\\":\\\"say_hello\\\"}}],\\\"role\\\":\\\"model\\\"},\\\"finish_reason\\\":\\\"STOP\\\",\\\"usage_metadata\\\":{\\\"candidates_token_count\\\":3,\\\"candidates_tokens_details\\\":[{\\\"modality\\\":\\\"TEXT\\\",\\\"token_count\\\":3}],\\\"prompt_token_count\\\":28,\\\"prompt_tokens_details\\\":[{\\\"modality\\\":\\\"TEXT\\\",\\\"token_count\\\":28}],\\\"total_token_count\\\":31}}\",\"gen_ai.usage.input_tokens\":\"28\",\"gen_ai.usage.output_tokens\":\"3\",\"gen_ai.response.finish_reasons\":\"[\\\"stop\\\"]\",\"llm.provider\":\"google\",\"input.value\":\"{\\\"model\\\": \\\"gemini-2.0-flash\\\", \\\"config\\\": {\\\"http_options\\\": {\\\"headers\\\": {\\\"x-goog-api-client\\\": \\\"google-adk/1.12.0 gl-python/3.12.11\\\", \\\"user-agent\\\": \\\"google-adk/1.12.0 gl-python/3.12.11\\\"}}, \\\"system_instruction\\\": \\\"Always greet using the say_hello tool.\\\\n\\\\nYou are an agent. Your internal name is \\\\\\\"hello_agent\\\\\\\".\\\", \\\"tools\\\": [{\\\"function_declarations\\\": [{\\\"name\\\": \\\"say_hello\\\"}]}]}, \\\"contents\\\": [{\\\"parts\\\": [{\\\"text\\\": \\\"hi\\\"}], \\\"role\\\": \\\"user\\\"}]}\",\"input.mime_type\":\"application/json\",\"llm.tools.0.tool.json_schema\":\"{\\\"name\\\":\\\"say_hello\\\"}\",\"llm.model_name\":\"gemini-2.0-flash\",\"llm.invocation_parameters\":\"{\\\"http_options\\\":{\\\"headers\\\":{\\\"x-goog-api-client\\\":\\\"google-adk/1.12.0 gl-python/3.12.11\\\",\\\"user-agent\\\":\\\"google-adk/1.12.0 gl-python/3.12.11\\\"}},\\\"system_instruction\\\":\\\"Always greet using the say_hello tool.\\\\n\\\\nYou are an agent. Your internal name is \\\\\\\"hello_agent\\\\\\\".\\\",\\\"tools\\\":[{\\\"function_declarations\\\":[{\\\"name\\\":\\\"say_hello\\\"}]}]}\",\"llm.input_messages.0.message.role\":\"system\",\"llm.input_messages.0.message.content\":\"Always greet using the say_hello tool.\\n\\nYou are an agent. Your internal name is \\\"hello_agent\\\".\",\"llm.input_messages.1.message.role\":\"user\",\"llm.input_messages.1.message.contents.0.message_content.text\":\"hi\",\"llm.input_messages.1.message.contents.0.message_content.type\":\"text\",\"output.value\":\"{\\\"content\\\":{\\\"parts\\\":[{\\\"function_call\\\":{\\\"args\\\":{},\\\"name\\\":\\\"say_hello\\\"}}],\\\"role\\\":\\\"model\\\"},\\\"finish_reason\\\":\\\"STOP\\\",\\\"usage_metadata\\\":{\\\"candidates_token_count\\\":3,\\\"candidates_tokens_details\\\":[{\\\"modality\\\":\\\"TEXT\\\",\\\"token_count\\\":3}],\\\"prompt_token_count\\\":28,\\\"prompt_tokens_details\\\":[{\\\"modality\\\":\\\"TEXT\\\",\\\"token_count\\\":28}],\\\"total_token_count\\\":31}}\",\"output.mime_type\":\"application/json\",\"llm.token_count.total\":\"31\",\"llm.token_count.prompt\":\"28\",\"llm.token_count.completion\":\"3\",\"llm.output_messages.0.message.role\":\"model\",\"llm.output_messages.0.message.tool_calls.0.tool_call.function.name\":\"say_hello\",\"openinference.span.kind\":\"LLM\"},\"resourceAttributes\":{\"telemetry.sdk.language\":\"python\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"1.36.0\",\"service.name\":\"unknown_service\"},\"scope\":{\"name\":\"openinference.instrumentation.google_adk\",\"version\":\"0.1.3\",\"attributes\":{}}}",+ "internalModel": "cm7zsrs1327124dhjtb95w8f74"+ },+ {+ "id": "04290e4d82aba1bc",+ "traceId": "b82a0bdc1994fc5d1c8576ca032543f7",+ "startTime": "2025-08-28T07:32:31.216Z",+ "endTime": "2025-08-28T07:32:31.217Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "f6e4c65297e40c96",+ "type": "TOOL",+ "environment": "default",+ "name": "execute_tool say_hello",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-08-28T07:32:35.207Z",+ "updatedAt": "2025-08-28T07:32:35.238Z",+ "input": "{}",+ "output": "{}",+ "model": null,+ "internalModelId": null,+ "modelParameters": {},+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 0.001,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"attributes\":{\"session.id\":\"demo-session\",\"user.id\":\"demo-user\",\"gen_ai.system\":\"gcp.vertex.agent\",\"gen_ai.operation.name\":\"execute_tool\",\"gen_ai.tool.name\":\"say_hello\",\"gen_ai.tool.description\":\"Call self as a function.\",\"gen_ai.tool.call.id\":\"adk-8bd8dc65-717d-4102-858b-3a1dd6b75a00\",\"gcp.vertex.agent.tool_call_args\":\"{}\",\"gcp.vertex.agent.event_id\":\"9d88cbb2-d624-404d-ae7c-2d4849f6313c\",\"gcp.vertex.agent.tool_response\":\"{\\\"greeting\\\": \\\"Hello Langfuse 👋\\\"}\",\"gcp.vertex.agent.llm_request\":\"{}\",\"gcp.vertex.agent.llm_response\":\"{}\",\"tool.name\":\"say_hello\",\"tool.description\":\"Call self as a function.\",\"output.value\":\"{\\\"id\\\":\\\"adk-8bd8dc65-717d-4102-858b-3a1dd6b75a00\\\",\\\"name\\\":\\\"say_hello\\\",\\\"response\\\":{\\\"greeting\\\":\\\"Hello Langfuse 👋\\\"}}\",\"output.mime_type\":\"application/json\",\"openinference.span.kind\":\"TOOL\"},\"resourceAttributes\":{\"telemetry.sdk.language\":\"python\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"1.36.0\",\"service.name\":\"unknown_service\"},\"scope\":{\"name\":\"openinference.instrumentation.google_adk\",\"version\":\"0.1.3\",\"attributes\":{}}}",+ "internalModel": null+ }+ ]+}diff --git a/worker/src/__tests__/chatml/framework-traces/google-gemini-2025-08-01.chatml.json b/worker/src/__tests__/chatml/framework-traces/google-gemini-2025-08-01.chatml.jsonnew file mode 100644index 0000000000..a1560df894--- /dev/null+++ b/worker/src/__tests__/chatml/framework-traces/google-gemini-2025-08-01.chatml.json@@ -0,0 +1,53 @@+{+ "b7a63ca7e1d083bc": {+ "input": {+ "success": true,+ "data": [+ {+ "role": "user",+ "content": "What is Langfuse?"+ }+ ]+ },+ "output": {+ "success": true,+ "data": [+ {+ "role": "model",+ "content": "**Langfuse** is an **open-source observability and evaluation platform specifically designed for Large Language Model (LLM) applications.**\n\nIn essence, it acts as a \"flight recorder\" or \"black box\" for your AI applications, giving you deep insights into how they are performing in real-time and helping you iterate and improve them.\n\nHere's a breakdown of what Langfuse is and why it's important:\n\n### The Problem Langfuse Solves\n\nBuilding applications powered by LLMs (like chatbots, summarizers, RAG systems) presents unique challenges:\n\n1. **Non-Determinism:** LLMs aren't like traditional code; their outputs can vary, making debugging difficult.\n2. **Opacity:** It's hard to see what's happening \"inside\" the LLM call – what prompt was sent, what response was received, how long it took, and what tools were used.\n3. **Performance & Cost Tracking:** Monitoring token usage, latency, and costs across various LLM calls and chains is complex.\n4. **Evaluation & Improvement:** How do you know if a change to your prompt or RAG system actually made your application better? How do you collect user feedback?\n5. **Debugging Production Issues:** When something goes wrong in production, tracing the exact cause (e.g., a bad prompt, a hallucination, a failed tool call) is crucial.\n\n### How Langfuse Works & Its Key Features\n\nLangfuse addresses these challenges by providing:\n\n1. **Tracing & Observability:**\n * **End-to-end visibility:** It captures every step of an LLM application's lifecycle, from user input, through various LLM calls, tool usage, RAG retrievals, and final output.\n * **Detailed Spans:** Each step (e.g., an OpenAI call, a LlamaIndex query, a custom function) is recorded as a \"span,\" showing inputs, outputs, timestamps, costs (tokens, price), and associated metadata.\n * **Visualizations:** Presents these traces in a clear, waterfall-style UI, making it easy to understand the flow and identify bottlenecks or errors.\n\n2. **Debugging & Monitoring:**\n * **Real-time Dashboards:** Provides metrics on latency, cost, token usage, and error rates across your application.\n * **Error Identification:** Quickly pinpoint exactly which LLM call or step failed within a complex chain.\n * **Search & Filtering:** Easily find specific traces based on user IDs, session IDs, error status, or custom tags.\n\n3. **Evaluation & Feedback Loops:**\n * **Manual Feedback:** Allows users (or developers) to provide direct feedback (e.g., \"good,\" \"bad,\" custom scores) on specific traces. This is invaluable for human-in-the-loop evaluation.\n * **Automated Evaluation:** Integrates with evaluation frameworks (e.g., RAGAS) or custom scripts to automatically score LLM outputs, enabling A/B testing of prompts or models.\n * **Prompt Comparison:** Helps you compare the performance of different prompt versions side-by-side based on collected metrics and evaluations.\n\n4. **Prompt Management:**\n * Store and version control your prompts.\n * Attach evaluations to specific prompt versions to track their effectiveness over time.\n\n5. **User & Session Tracking:**\n * Associate traces with specific users or sessions, allowing you to understand individual user journeys and identify patterns.\n\n### Key Benefits\n\n* **Faster Debugging:** Quickly diagnose and fix issues in your LLM applications.\n* **Improved Performance:** Identify and optimize slow or costly parts of your LLM chains.\n* **Data-Driven Iteration:** Make informed decisions about prompt engineering, model selection, and architecture based on real usage data and evaluations.\n* **Cost Control:** Monitor token usage and costs to prevent budget overruns.\n* **Enhanced Reliability:** Build more robust and production-ready LLM applications.\n\n### Integrations\n\nLangfuse integrates with popular LLM frameworks and libraries, including:\n\n* LangChain\n* LlamaIndex\n* OpenAI API\n* Anthropic API\n* And can be used with any custom LLM integration.\n\nIn summary, Langfuse is a critical tool for any developer or team serious about building, deploying, and maintaining high-quality, performant, and reliable LLM-powered applications in production.",+ "json": {+ "sdk_http_response": {+ "headers": {+ "content-type": "application/json; charset=UTF-8",+ "vary": "Origin, X-Origin, Referer",+ "content-encoding": "gzip",+ "date": "Fri, 01 Aug 2025 13:22:12 GMT",+ "server": "scaffolding on HTTPServer2",+ "x-xss-protection": "0",+ "x-frame-options": "SAMEORIGIN",+ "x-content-type-options": "nosniff",+ "server-timing": "gfet4t7; dur=11935",+ "alt-svc": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000",+ "transfer-encoding": "chunked"+ }+ },+ "model_version": "gemini-2.5-flash",+ "usage_metadata": {+ "candidates_token_count": 951,+ "prompt_token_count": 6,+ "prompt_tokens_details": [+ {+ "modality": "TEXT",+ "token_count": 6+ }+ ],+ "thoughts_token_count": 1104,+ "total_token_count": 2061+ },+ "automatic_function_calling_history": []+ }+ }+ ]+ }+ }+}\ No newline at end of filediff --git a/worker/src/__tests__/chatml/framework-traces/google-gemini-2025-08-01.trace.json b/worker/src/__tests__/chatml/framework-traces/google-gemini-2025-08-01.trace.jsonnew file mode 100644index 0000000000..87b746a392--- /dev/null+++ b/worker/src/__tests__/chatml/framework-traces/google-gemini-2025-08-01.trace.json@@ -0,0 +1,180 @@+{+ "trace": {+ "id": "9f2f0fe0228fd81a9fe75882934b384a",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "name": "GenerateContent",+ "timestamp": "2025-08-01T13:22:00.147Z",+ "environment": "default",+ "tags": [],+ "bookmarked": false,+ "release": null,+ "version": null,+ "userId": null,+ "sessionId": null,+ "public": true,+ "input": "\"{\\\"model\\\":\\\"gemini-2.5-flash\\\",\\\"contents\\\":\\\"What is Langfuse?\\\"}\"",+ "output": "\"{\\\"sdk_http_response\\\":{\\\"headers\\\":{\\\"content-type\\\":\\\"application/json; charset=UTF-8\\\",\\\"vary\\\":\\\"Origin, X-Origin, Referer\\\",\\\"content-encoding\\\":\\\"gzip\\\",\\\"date\\\":\\\"Fri, 01 Aug 2025 13:22:12 GMT\\\",\\\"server\\\":\\\"scaffolding on HTTPServer2\\\",\\\"x-xss-protection\\\":\\\"0\\\",\\\"x-frame-options\\\":\\\"SAMEORIGIN\\\",\\\"x-content-type-options\\\":\\\"nosniff\\\",\\\"server-timing\\\":\\\"gfet4t7; dur=11935\\\",\\\"alt-svc\\\":\\\"h3=\\\\\\\":443\\\\\\\"; ma=2592000,h3-29=\\\\\\\":443\\\\\\\"; ma=2592000\\\",\\\"transfer-encoding\\\":\\\"chunked\\\"}},\\\"candidates\\\":[{\\\"content\\\":{\\\"parts\\\":[{\\\"text\\\":\\\"**Langfuse** is an **open-source observability and evaluation platform specifically designed for Large Language Model (LLM) applications.**\\\\n\\\\nIn essence, it acts as a \\\\\\\"flight recorder\\\\\\\" or \\\\\\\"black box\\\\\\\" for your AI applications, giving you deep insights into how they are performing in real-time and helping you iterate and improve them.\\\\n\\\\nHere's a breakdown of what Langfuse is and why it's important:\\\\n\\\\n### The Problem Langfuse Solves\\\\n\\\\nBuilding applications powered by LLMs (like chatbots, summarizers, RAG systems) presents unique challenges:\\\\n\\\\n1. **Non-Determinism:** LLMs aren't like traditional code; their outputs can vary, making debugging difficult.\\\\n2. **Opacity:** It's hard to see what's happening \\\\\\\"inside\\\\\\\" the LLM call – what prompt was sent, what response was received, how long it took, and what tools were used.\\\\n3. **Performance & Cost Tracking:** Monitoring token usage, latency, and costs across various LLM calls and chains is complex.\\\\n4. **Evaluation & Improvement:** How do you know if a change to your prompt or RAG system actually made your application better? How do you collect user feedback?\\\\n5. **Debugging Production Issues:** When something goes wrong in production, tracing the exact cause (e.g., a bad prompt, a hallucination, a failed tool call) is crucial.\\\\n\\\\n### How Langfuse Works & Its Key Features\\\\n\\\\nLangfuse addresses these challenges by providing:\\\\n\\\\n1. **Tracing & Observability:**\\\\n * **End-to-end visibility:** It captures every step of an LLM application's lifecycle, from user input, through various LLM calls, tool usage, RAG retrievals, and final output.\\\\n * **Detailed Spans:** Each step (e.g., an OpenAI call, a LlamaIndex query, a custom function) is recorded as a \\\\\\\"span,\\\\\\\" showing inputs, outputs, timestamps, costs (tokens, price), and associated metadata.\\\\n * **Visualizations:** Presents these traces in a clear, waterfall-style UI, making it easy to understand the flow and identify bottlenecks or errors.\\\\n\\\\n2. **Debugging & Monitoring:**\\\\n * **Real-time Dashboards:** Provides metrics on latency, cost, token usage, and error rates across your application.\\\\n * **Error Identification:** Quickly pinpoint exactly which LLM call or step failed within a complex chain.\\\\n * **Search & Filtering:** Easily find specific traces based on user IDs, session IDs, error status, or custom tags.\\\\n\\\\n3. **Evaluation & Feedback Loops:**\\\\n * **Manual Feedback:** Allows users (or developers) to provide direct feedback (e.g., \\\\\\\"good,\\\\\\\" \\\\\\\"bad,\\\\\\\" custom scores) on specific traces. This is invaluable for human-in-the-loop evaluation.\\\\n * **Automated Evaluation:** Integrates with evaluation frameworks (e.g., RAGAS) or custom scripts to automatically score LLM outputs, enabling A/B testing of prompts or models.\\\\n * **Prompt Comparison:** Helps you compare the performance of different prompt versions side-by-side based on collected metrics and evaluations.\\\\n\\\\n4. **Prompt Management:**\\\\n * Store and version control your prompts.\\\\n * Attach evaluations to specific prompt versions to track their effectiveness over time.\\\\n\\\\n5. **User & Session Tracking:**\\\\n * Associate traces with specific users or sessions, allowing you to understand individual user journeys and identify patterns.\\\\n\\\\n### Key Benefits\\\\n\\\\n* **Faster Debugging:** Quickly diagnose and fix issues in your LLM applications.\\\\n* **Improved Performance:** Identify and optimize slow or costly parts of your LLM chains.\\\\n* **Data-Driven Iteration:** Make informed decisions about prompt engineering, model selection, and architecture based on real usage data and evaluations.\\\\n* **Cost Control:** Monitor token usage and costs to prevent budget overruns.\\\\n* **Enhanced Reliability:** Build more robust and production-ready LLM applications.\\\\n\\\\n### Integrations\\\\n\\\\nLangfuse integrates with popular LLM frameworks and libraries, including:\\\\n\\\\n* LangChain\\\\n* LlamaIndex\\\\n* OpenAI API\\\\n* Anthropic API\\\\n* And can be used with any custom LLM integration.\\\\n\\\\nIn summary, Langfuse is a critical tool for any developer or team serious about building, deploying, and maintaining high-quality, performant, and reliable LLM-powered applications in production.\\\"}],\\\"role\\\":\\\"model\\\"},\\\"finish_reason\\\":\\\"STOP\\\",\\\"index\\\":0}],\\\"model_version\\\":\\\"gemini-2.5-flash\\\",\\\"usage_metadata\\\":{\\\"candidates_token_count\\\":951,\\\"prompt_token_count\\\":6,\\\"prompt_tokens_details\\\":[{\\\"modality\\\":\\\"TEXT\\\",\\\"token_count\\\":6}],\\\"thoughts_token_count\\\":1104,\\\"total_token_count\\\":2061},\\\"automatic_function_calling_history\\\":[]}\"",+ "createdAt": "2025-08-01T13:22:14.000Z",+ "updatedAt": "2025-08-01T13:22:40.620Z",+ "metadata": "{\"attributes\":{\"llm.input_messages.0.message.content\":\"What is Langfuse?\",\"llm.input_messages.0.message.role\":\"user\",\"output.value\":\"{\\\"sdk_http_response\\\":{\\\"headers\\\":{\\\"content-type\\\":\\\"application/json; charset=UTF-8\\\",\\\"vary\\\":\\\"Origin, X-Origin, Referer\\\",\\\"content-encoding\\\":\\\"gzip\\\",\\\"date\\\":\\\"Fri, 01 Aug 2025 13:22:12 GMT\\\",\\\"server\\\":\\\"scaffolding on HTTPServer2\\\",\\\"x-xss-protection\\\":\\\"0\\\",\\\"x-frame-options\\\":\\\"SAMEORIGIN\\\",\\\"x-content-type-options\\\":\\\"nosniff\\\",\\\"server-timing\\\":\\\"gfet4t7; dur=11935\\\",\\\"alt-svc\\\":\\\"h3=\\\\\\\":443\\\\\\\"; ma=2592000,h3-29=\\\\\\\":443\\\\\\\"; ma=2592000\\\",\\\"transfer-encoding\\\":\\\"chunked\\\"}},\\\"candidates\\\":[{\\\"content\\\":{\\\"parts\\\":[{\\\"text\\\":\\\"**Langfuse** is an **open-source observability and evaluation platform specifically designed for Large Language Model (LLM) applications.**\\\\n\\\\nIn essence, it acts as a \\\\\\\"flight recorder\\\\\\\" or \\\\\\\"black box\\\\\\\" for your AI applications, giving you deep insights into how they are performing in real-time and helping you iterate and improve them.\\\\n\\\\nHere's a breakdown of what Langfuse is and why it's important:\\\\n\\\\n### The Problem Langfuse Solves\\\\n\\\\nBuilding applications powered by LLMs (like chatbots, summarizers, RAG systems) presents unique challenges:\\\\n\\\\n1. **Non-Determinism:** LLMs aren't like traditional code; their outputs can vary, making debugging difficult.\\\\n2. **Opacity:** It's hard to see what's happening \\\\\\\"inside\\\\\\\" the LLM call – what prompt was sent, what response was received, how long it took, and what tools were used.\\\\n3. **Performance & Cost Tracking:** Monitoring token usage, latency, and costs across various LLM calls and chains is complex.\\\\n4. **Evaluation & Improvement:** How do you know if a change to your prompt or RAG system actually made your application better? How do you collect user feedback?\\\\n5. **Debugging Production Issues:** When something goes wrong in production, tracing the exact cause (e.g., a bad prompt, a hallucination, a failed tool call) is crucial.\\\\n\\\\n### How Langfuse Works & Its Key Features\\\\n\\\\nLangfuse addresses these challenges by providing:\\\\n\\\\n1. **Tracing & Observability:**\\\\n * **End-to-end visibility:** It captures every step of an LLM application's lifecycle, from user input, through various LLM calls, tool usage, RAG retrievals, and final output.\\\\n * **Detailed Spans:** Each step (e.g., an OpenAI call, a LlamaIndex query, a custom function) is recorded as a \\\\\\\"span,\\\\\\\" showing inputs, outputs, timestamps, costs (tokens, price), and associated metadata.\\\\n * **Visualizations:** Presents these traces in a clear, waterfall-style UI, making it easy to understand the flow and identify bottlenecks or errors.\\\\n\\\\n2. **Debugging & Monitoring:**\\\\n * **Real-time Dashboards:** Provides metrics on latency, cost, token usage, and error rates across your application.\\\\n * **Error Identification:** Quickly pinpoint exactly which LLM call or step failed within a complex chain.\\\\n * **Search & Filtering:** Easily find specific traces based on user IDs, session IDs, error status, or custom tags.\\\\n\\\\n3. **Evaluation & Feedback Loops:**\\\\n * **Manual Feedback:** Allows users (or developers) to provide direct feedback (e.g., \\\\\\\"good,\\\\\\\" \\\\\\\"bad,\\\\\\\" custom scores) on specific traces. This is invaluable for human-in-the-loop evaluation.\\\\n * **Automated Evaluation:** Integrates with evaluation frameworks (e.g., RAGAS) or custom scripts to automatically score LLM outputs, enabling A/B testing of prompts or models.\\\\n * **Prompt Comparison:** Helps you compare the performance of different prompt versions side-by-side based on collected metrics and evaluations.\\\\n\\\\n4. **Prompt Management:**\\\\n * Store and version control your prompts.\\\\n * Attach evaluations to specific prompt versions to track their effectiveness over time.\\\\n\\\\n5. **User & Session Tracking:**\\\\n * Associate traces with specific users or sessions, allowing you to understand individual user journeys and identify patterns.\\\\n\\\\n### Key Benefits\\\\n\\\\n* **Faster Debugging:** Quickly diagnose and fix issues in your LLM applications.\\\\n* **Improved Performance:** Identify and optimize slow or costly parts of your LLM chains.\\\\n* **Data-Driven Iteration:** Make informed decisions about prompt engineering, model selection, and architecture based on real usage data and evaluations.\\\\n* **Cost Control:** Monitor token usage and costs to prevent budget overruns.\\\\n* **Enhanced Reliability:** Build more robust and production-ready LLM applications.\\\\n\\\\n### Integrations\\\\n\\\\nLangfuse integrates with popular LLM frameworks and libraries, including:\\\\n\\\\n* LangChain\\\\n* LlamaIndex\\\\n* OpenAI API\\\\n* Anthropic API\\\\n* And can be used with any custom LLM integration.\\\\n\\\\nIn summary, Langfuse is a critical tool for any developer or team serious about building, deploying, and maintaining high-quality, performant, and reliable LLM-powered applications in production.\\\"}],\\\"role\\\":\\\"model\\\"},\\\"finish_reason\\\":\\\"STOP\\\",\\\"index\\\":0}],\\\"model_version\\\":\\\"gemini-2.5-flash\\\",\\\"usage_metadata\\\":{\\\"candidates_token_count\\\":951,\\\"prompt_token_count\\\":6,\\\"prompt_tokens_details\\\":[{\\\"modality\\\":\\\"TEXT\\\",\\\"token_count\\\":6}],\\\"thoughts_token_count\\\":1104,\\\"total_token_count\\\":2061},\\\"automatic_function_calling_history\\\":[]}\",\"output.mime_type\":\"application/json\",\"llm.provider\":\"google\",\"input.value\":\"{\\\"model\\\": \\\"gemini-2.5-flash\\\", \\\"contents\\\": \\\"What is Langfuse?\\\"}\",\"input.mime_type\":\"application/json\",\"llm.model_name\":\"gemini-2.5-flash\",\"llm.token_count.total\":\"2061\",\"llm.token_count.prompt\":\"6\",\"llm.token_count.completion_details.reasoning\":\"1104\",\"llm.token_count.completion\":\"2055\",\"llm.output_messages.0.message.content\":\"**Langfuse** is an **open-source observability and evaluation platform specifically designed for Large Language Model (LLM) applications.**\\n\\nIn essence, it acts as a \\\"flight recorder\\\" or \\\"black box\\\" for your AI applications, giving you deep insights into how they are performing in real-time and helping you iterate and improve them.\\n\\nHere's a breakdown of what Langfuse is and why it's important:\\n\\n### The Problem Langfuse Solves\\n\\nBuilding applications powered by LLMs (like chatbots, summarizers, RAG systems) presents unique challenges:\\n\\n1. **Non-Determinism:** LLMs aren't like traditional code; their outputs can vary, making debugging difficult.\\n2. **Opacity:** It's hard to see what's happening \\\"inside\\\" the LLM call – what prompt was sent, what response was received, how long it took, and what tools were used.\\n3. **Performance & Cost Tracking:** Monitoring token usage, latency, and costs across various LLM calls and chains is complex.\\n4. **Evaluation & Improvement:** How do you know if a change to your prompt or RAG system actually made your application better? How do you collect user feedback?\\n5. **Debugging Production Issues:** When something goes wrong in production, tracing the exact cause (e.g., a bad prompt, a hallucination, a failed tool call) is crucial.\\n\\n### How Langfuse Works & Its Key Features\\n\\nLangfuse addresses these challenges by providing:\\n\\n1. **Tracing & Observability:**\\n * **End-to-end visibility:** It captures every step of an LLM application's lifecycle, from user input, through various LLM calls, tool usage, RAG retrievals, and final output.\\n * **Detailed Spans:** Each step (e.g., an OpenAI call, a LlamaIndex query, a custom function) is recorded as a \\\"span,\\\" showing inputs, outputs, timestamps, costs (tokens, price), and associated metadata.\\n * **Visualizations:** Presents these traces in a clear, waterfall-style UI, making it easy to understand the flow and identify bottlenecks or errors.\\n\\n2. **Debugging & Monitoring:**\\n * **Real-time Dashboards:** Provides metrics on latency, cost, token usage, and error rates across your application.\\n * **Error Identification:** Quickly pinpoint exactly which LLM call or step failed within a complex chain.\\n * **Search & Filtering:** Easily find specific traces based on user IDs, session IDs, error status, or custom tags.\\n\\n3. **Evaluation & Feedback Loops:**\\n * **Manual Feedback:** Allows users (or developers) to provide direct feedback (e.g., \\\"good,\\\" \\\"bad,\\\" custom scores) on specific traces. This is invaluable for human-in-the-loop evaluation.\\n * **Automated Evaluation:** Integrates with evaluation frameworks (e.g., RAGAS) or custom scripts to automatically score LLM outputs, enabling A/B testing of prompts or models.\\n * **Prompt Comparison:** Helps you compare the performance of different prompt versions side-by-side based on collected metrics and evaluations.\\n\\n4. **Prompt Management:**\\n * Store and version control your prompts.\\n * Attach evaluations to specific prompt versions to track their effectiveness over time.\\n\\n5. **User & Session Tracking:**\\n * Associate traces with specific users or sessions, allowing you to understand individual user journeys and identify patterns.\\n\\n### Key Benefits\\n\\n* **Faster Debugging:** Quickly diagnose and fix issues in your LLM applications.\\n* **Improved Performance:** Identify and optimize slow or costly parts of your LLM chains.\\n* **Data-Driven Iteration:** Make informed decisions about prompt engineering, model selection, and architecture based on real usage data and evaluations.\\n* **Cost Control:** Monitor token usage and costs to prevent budget overruns.\\n* **Enhanced Reliability:** Build more robust and production-ready LLM applications.\\n\\n### Integrations\\n\\nLangfuse integrates with popular LLM frameworks and libraries, including:\\n\\n* LangChain\\n* LlamaIndex\\n* OpenAI API\\n* Anthropic API\\n* And can be used with any custom LLM integration.\\n\\nIn summary, Langfuse is a critical tool for any developer or team serious about building, deploying, and maintaining high-quality, performant, and reliable LLM-powered applications in production.\",\"llm.output_messages.0.message.role\":\"model\",\"openinference.span.kind\":\"LLM\"},\"resourceAttributes\":{\"telemetry.sdk.language\":\"python\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"1.34.1\",\"service.name\":\"unknown_service\"},\"scope\":{\"name\":\"openinference.instrumentation.google_genai\",\"version\":\"0.1.5\",\"attributes\":{}}}",+ "scores": [+ {+ "id": "c5305319-a3f6-4922-943e-9f3b863b4bb3",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "environment": "default",+ "name": "hallucination",+ "value": 0.1,+ "source": "EVAL",+ "authorUserId": null,+ "comment": "The generation provides a detailed and plausible description of Langfuse as an observability and evaluation platform for LLM applications, aligning with known concepts in AI development and observability tools.",+ "configId": null,+ "queueId": null,+ "executionTraceId": null,+ "createdAt": "2025-08-01T13:23:09.000Z",+ "updatedAt": "2025-08-01T13:23:45.766Z",+ "timestamp": "2025-08-01T13:23:08.084Z",+ "traceId": "9f2f0fe0228fd81a9fe75882934b384a",+ "sessionId": null,+ "datasetRunId": null,+ "observationId": null,+ "longStringValue": "",+ "stringValue": null,+ "dataType": "NUMERIC",+ "metadata": "{}"+ },+ {+ "id": "31825812-baac-4ce9-874d-b6504baf1bf1",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "environment": "default",+ "name": "toxicity",+ "value": 0,+ "source": "EVAL",+ "authorUserId": null,+ "comment": "The generation provides a detailed and informative explanation of Langfuse without any harmful, offensive, or disrespectful language, thus it is not toxic.",+ "configId": null,+ "queueId": null,+ "executionTraceId": null,+ "createdAt": "2025-08-01T13:23:08.000Z",+ "updatedAt": "2025-08-01T13:23:44.647Z",+ "timestamp": "2025-08-01T13:23:07.172Z",+ "traceId": "9f2f0fe0228fd81a9fe75882934b384a",+ "sessionId": null,+ "datasetRunId": null,+ "observationId": null,+ "longStringValue": "",+ "stringValue": null,+ "dataType": "NUMERIC",+ "metadata": "{}"+ }+ ],+ "corrections": [],+ "latency": 12.032,+ "observations": [+ {+ "id": "b7a63ca7e1d083bc",+ "traceId": "9f2f0fe0228fd81a9fe75882934b384a",+ "startTime": "2025-08-01T13:22:00.147Z",+ "endTime": "2025-08-01T13:22:12.179Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": null,+ "type": "GENERATION",+ "environment": "default",+ "name": "GenerateContent",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-08-01T13:22:40.579Z",+ "updatedAt": "2025-08-01T13:22:40.741Z",+ "input": null,+ "output": null,+ "model": "gemini-2.5-flash",+ "internalModelId": "cmcnjkfwn000107l43bf5e8ax",+ "modelParameters": {},+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 12.032,+ "timeToFirstToken": null,+ "usageDetails": {+ "total": 2061,+ "input": 6,+ "completion_details.reasoning": 1104,+ "output": 2055+ },+ "costDetails": {+ "input": 0.0000018,+ "output": 0.0051375,+ "total": 0.005139299999+ },+ "providedCostDetails": {},+ "inputCost": 0.0000018,+ "outputCost": 0.0051375,+ "totalCost": 0.005139299999,+ "inputUsage": 6,+ "outputUsage": 2055,+ "totalUsage": 2061,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ }+ ]+ },+ "observations": [+ {+ "id": "b7a63ca7e1d083bc",+ "traceId": "9f2f0fe0228fd81a9fe75882934b384a",+ "startTime": "2025-08-01T13:22:00.147Z",+ "endTime": "2025-08-01T13:22:12.179Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": null,+ "type": "GENERATION",+ "environment": "default",+ "name": "GenerateContent",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-08-01T13:22:40.579Z",+ "updatedAt": "2025-08-01T13:22:40.741Z",+ "input": "{\"model\": \"gemini-2.5-flash\", \"contents\": \"What is Langfuse?\"}",+ "output": "{\"sdk_http_response\":{\"headers\":{\"content-type\":\"application/json; charset=UTF-8\",\"vary\":\"Origin, X-Origin, Referer\",\"content-encoding\":\"gzip\",\"date\":\"Fri, 01 Aug 2025 13:22:12 GMT\",\"server\":\"scaffolding on HTTPServer2\",\"x-xss-protection\":\"0\",\"x-frame-options\":\"SAMEORIGIN\",\"x-content-type-options\":\"nosniff\",\"server-timing\":\"gfet4t7; dur=11935\",\"alt-svc\":\"h3=\\\":443\\\"; ma=2592000,h3-29=\\\":443\\\"; ma=2592000\",\"transfer-encoding\":\"chunked\"}},\"candidates\":[{\"content\":{\"parts\":[{\"text\":\"**Langfuse** is an **open-source observability and evaluation platform specifically designed for Large Language Model (LLM) applications.**\\n\\nIn essence, it acts as a \\\"flight recorder\\\" or \\\"black box\\\" for your AI applications, giving you deep insights into how they are performing in real-time and helping you iterate and improve them.\\n\\nHere's a breakdown of what Langfuse is and why it's important:\\n\\n### The Problem Langfuse Solves\\n\\nBuilding applications powered by LLMs (like chatbots, summarizers, RAG systems) presents unique challenges:\\n\\n1. **Non-Determinism:** LLMs aren't like traditional code; their outputs can vary, making debugging difficult.\\n2. **Opacity:** It's hard to see what's happening \\\"inside\\\" the LLM call – what prompt was sent, what response was received, how long it took, and what tools were used.\\n3. **Performance & Cost Tracking:** Monitoring token usage, latency, and costs across various LLM calls and chains is complex.\\n4. **Evaluation & Improvement:** How do you know if a change to your prompt or RAG system actually made your application better? How do you collect user feedback?\\n5. **Debugging Production Issues:** When something goes wrong in production, tracing the exact cause (e.g., a bad prompt, a hallucination, a failed tool call) is crucial.\\n\\n### How Langfuse Works & Its Key Features\\n\\nLangfuse addresses these challenges by providing:\\n\\n1. **Tracing & Observability:**\\n * **End-to-end visibility:** It captures every step of an LLM application's lifecycle, from user input, through various LLM calls, tool usage, RAG retrievals, and final output.\\n * **Detailed Spans:** Each step (e.g., an OpenAI call, a LlamaIndex query, a custom function) is recorded as a \\\"span,\\\" showing inputs, outputs, timestamps, costs (tokens, price), and associated metadata.\\n * **Visualizations:** Presents these traces in a clear, waterfall-style UI, making it easy to understand the flow and identify bottlenecks or errors.\\n\\n2. **Debugging & Monitoring:**\\n * **Real-time Dashboards:** Provides metrics on latency, cost, token usage, and error rates across your application.\\n * **Error Identification:** Quickly pinpoint exactly which LLM call or step failed within a complex chain.\\n * **Search & Filtering:** Easily find specific traces based on user IDs, session IDs, error status, or custom tags.\\n\\n3. **Evaluation & Feedback Loops:**\\n * **Manual Feedback:** Allows users (or developers) to provide direct feedback (e.g., \\\"good,\\\" \\\"bad,\\\" custom scores) on specific traces. This is invaluable for human-in-the-loop evaluation.\\n * **Automated Evaluation:** Integrates with evaluation frameworks (e.g., RAGAS) or custom scripts to automatically score LLM outputs, enabling A/B testing of prompts or models.\\n * **Prompt Comparison:** Helps you compare the performance of different prompt versions side-by-side based on collected metrics and evaluations.\\n\\n4. **Prompt Management:**\\n * Store and version control your prompts.\\n * Attach evaluations to specific prompt versions to track their effectiveness over time.\\n\\n5. **User & Session Tracking:**\\n * Associate traces with specific users or sessions, allowing you to understand individual user journeys and identify patterns.\\n\\n### Key Benefits\\n\\n* **Faster Debugging:** Quickly diagnose and fix issues in your LLM applications.\\n* **Improved Performance:** Identify and optimize slow or costly parts of your LLM chains.\\n* **Data-Driven Iteration:** Make informed decisions about prompt engineering, model selection, and architecture based on real usage data and evaluations.\\n* **Cost Control:** Monitor token usage and costs to prevent budget overruns.\\n* **Enhanced Reliability:** Build more robust and production-ready LLM applications.\\n\\n### Integrations\\n\\nLangfuse integrates with popular LLM frameworks and libraries, including:\\n\\n* LangChain\\n* LlamaIndex\\n* OpenAI API\\n* Anthropic API\\n* And can be used with any custom LLM integration.\\n\\nIn summary, Langfuse is a critical tool for any developer or team serious about building, deploying, and maintaining high-quality, performant, and reliable LLM-powered applications in production.\"}],\"role\":\"model\"},\"finish_reason\":\"STOP\",\"index\":0}],\"model_version\":\"gemini-2.5-flash\",\"usage_metadata\":{\"candidates_token_count\":951,\"prompt_token_count\":6,\"prompt_tokens_details\":[{\"modality\":\"TEXT\",\"token_count\":6}],\"thoughts_token_count\":1104,\"total_token_count\":2061},\"automatic_function_calling_history\":[]}",+ "model": "gemini-2.5-flash",+ "internalModelId": "cmcnjkfwn000107l43bf5e8ax",+ "modelParameters": {},+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 12.032,+ "timeToFirstToken": null,+ "usageDetails": {+ "total": 2061,+ "input": 6,+ "completion_details.reasoning": 1104,+ "output": 2055+ },+ "costDetails": {+ "input": 0.0000018,+ "output": 0.0051375,+ "total": 0.005139299999+ },+ "providedCostDetails": {},+ "inputCost": 0.0000018,+ "outputCost": 0.0051375,+ "totalCost": 0.005139299999,+ "inputUsage": 6,+ "outputUsage": 2055,+ "totalUsage": 2061,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"attributes\":{\"llm.input_messages.0.message.content\":\"What is Langfuse?\",\"llm.input_messages.0.message.role\":\"user\",\"output.value\":\"{\\\"sdk_http_response\\\":{\\\"headers\\\":{\\\"content-type\\\":\\\"application/json; charset=UTF-8\\\",\\\"vary\\\":\\\"Origin, X-Origin, Referer\\\",\\\"content-encoding\\\":\\\"gzip\\\",\\\"date\\\":\\\"Fri, 01 Aug 2025 13:22:12 GMT\\\",\\\"server\\\":\\\"scaffolding on HTTPServer2\\\",\\\"x-xss-protection\\\":\\\"0\\\",\\\"x-frame-options\\\":\\\"SAMEORIGIN\\\",\\\"x-content-type-options\\\":\\\"nosniff\\\",\\\"server-timing\\\":\\\"gfet4t7; dur=11935\\\",\\\"alt-svc\\\":\\\"h3=\\\\\\\":443\\\\\\\"; ma=2592000,h3-29=\\\\\\\":443\\\\\\\"; ma=2592000\\\",\\\"transfer-encoding\\\":\\\"chunked\\\"}},\\\"candidates\\\":[{\\\"content\\\":{\\\"parts\\\":[{\\\"text\\\":\\\"**Langfuse** is an **open-source observability and evaluation platform specifically designed for Large Language Model (LLM) applications.**\\\\n\\\\nIn essence, it acts as a \\\\\\\"flight recorder\\\\\\\" or \\\\\\\"black box\\\\\\\" for your AI applications, giving you deep insights into how they are performing in real-time and helping you iterate and improve them.\\\\n\\\\nHere's a breakdown of what Langfuse is and why it's important:\\\\n\\\\n### The Problem Langfuse Solves\\\\n\\\\nBuilding applications powered by LLMs (like chatbots, summarizers, RAG systems) presents unique challenges:\\\\n\\\\n1. **Non-Determinism:** LLMs aren't like traditional code; their outputs can vary, making debugging difficult.\\\\n2. **Opacity:** It's hard to see what's happening \\\\\\\"inside\\\\\\\" the LLM call – what prompt was sent, what response was received, how long it took, and what tools were used.\\\\n3. **Performance & Cost Tracking:** Monitoring token usage, latency, and costs across various LLM calls and chains is complex.\\\\n4. **Evaluation & Improvement:** How do you know if a change to your prompt or RAG system actually made your application better? How do you collect user feedback?\\\\n5. **Debugging Production Issues:** When something goes wrong in production, tracing the exact cause (e.g., a bad prompt, a hallucination, a failed tool call) is crucial.\\\\n\\\\n### How Langfuse Works & Its Key Features\\\\n\\\\nLangfuse addresses these challenges by providing:\\\\n\\\\n1. **Tracing & Observability:**\\\\n * **End-to-end visibility:** It captures every step of an LLM application's lifecycle, from user input, through various LLM calls, tool usage, RAG retrievals, and final output.\\\\n * **Detailed Spans:** Each step (e.g., an OpenAI call, a LlamaIndex query, a custom function) is recorded as a \\\\\\\"span,\\\\\\\" showing inputs, outputs, timestamps, costs (tokens, price), and associated metadata.\\\\n * **Visualizations:** Presents these traces in a clear, waterfall-style UI, making it easy to understand the flow and identify bottlenecks or errors.\\\\n\\\\n2. **Debugging & Monitoring:**\\\\n * **Real-time Dashboards:** Provides metrics on latency, cost, token usage, and error rates across your application.\\\\n * **Error Identification:** Quickly pinpoint exactly which LLM call or step failed within a complex chain.\\\\n * **Search & Filtering:** Easily find specific traces based on user IDs, session IDs, error status, or custom tags.\\\\n\\\\n3. **Evaluation & Feedback Loops:**\\\\n * **Manual Feedback:** Allows users (or developers) to provide direct feedback (e.g., \\\\\\\"good,\\\\\\\" \\\\\\\"bad,\\\\\\\" custom scores) on specific traces. This is invaluable for human-in-the-loop evaluation.\\\\n * **Automated Evaluation:** Integrates with evaluation frameworks (e.g., RAGAS) or custom scripts to automatically score LLM outputs, enabling A/B testing of prompts or models.\\\\n * **Prompt Comparison:** Helps you compare the performance of different prompt versions side-by-side based on collected metrics and evaluations.\\\\n\\\\n4. **Prompt Management:**\\\\n * Store and version control your prompts.\\\\n * Attach evaluations to specific prompt versions to track their effectiveness over time.\\\\n\\\\n5. **User & Session Tracking:**\\\\n * Associate traces with specific users or sessions, allowing you to understand individual user journeys and identify patterns.\\\\n\\\\n### Key Benefits\\\\n\\\\n* **Faster Debugging:** Quickly diagnose and fix issues in your LLM applications.\\\\n* **Improved Performance:** Identify and optimize slow or costly parts of your LLM chains.\\\\n* **Data-Driven Iteration:** Make informed decisions about prompt engineering, model selection, and architecture based on real usage data and evaluations.\\\\n* **Cost Control:** Monitor token usage and costs to prevent budget overruns.\\\\n* **Enhanced Reliability:** Build more robust and production-ready LLM applications.\\\\n\\\\n### Integrations\\\\n\\\\nLangfuse integrates with popular LLM frameworks and libraries, including:\\\\n\\\\n* LangChain\\\\n* LlamaIndex\\\\n* OpenAI API\\\\n* Anthropic API\\\\n* And can be used with any custom LLM integration.\\\\n\\\\nIn summary, Langfuse is a critical tool for any developer or team serious about building, deploying, and maintaining high-quality, performant, and reliable LLM-powered applications in production.\\\"}],\\\"role\\\":\\\"model\\\"},\\\"finish_reason\\\":\\\"STOP\\\",\\\"index\\\":0}],\\\"model_version\\\":\\\"gemini-2.5-flash\\\",\\\"usage_metadata\\\":{\\\"candidates_token_count\\\":951,\\\"prompt_token_count\\\":6,\\\"prompt_tokens_details\\\":[{\\\"modality\\\":\\\"TEXT\\\",\\\"token_count\\\":6}],\\\"thoughts_token_count\\\":1104,\\\"total_token_count\\\":2061},\\\"automatic_function_calling_history\\\":[]}\",\"output.mime_type\":\"application/json\",\"llm.provider\":\"google\",\"input.value\":\"{\\\"model\\\": \\\"gemini-2.5-flash\\\", \\\"contents\\\": \\\"What is Langfuse?\\\"}\",\"input.mime_type\":\"application/json\",\"llm.model_name\":\"gemini-2.5-flash\",\"llm.token_count.total\":\"2061\",\"llm.token_count.prompt\":\"6\",\"llm.token_count.completion_details.reasoning\":\"1104\",\"llm.token_count.completion\":\"2055\",\"llm.output_messages.0.message.content\":\"**Langfuse** is an **open-source observability and evaluation platform specifically designed for Large Language Model (LLM) applications.**\\n\\nIn essence, it acts as a \\\"flight recorder\\\" or \\\"black box\\\" for your AI applications, giving you deep insights into how they are performing in real-time and helping you iterate and improve them.\\n\\nHere's a breakdown of what Langfuse is and why it's important:\\n\\n### The Problem Langfuse Solves\\n\\nBuilding applications powered by LLMs (like chatbots, summarizers, RAG systems) presents unique challenges:\\n\\n1. **Non-Determinism:** LLMs aren't like traditional code; their outputs can vary, making debugging difficult.\\n2. **Opacity:** It's hard to see what's happening \\\"inside\\\" the LLM call – what prompt was sent, what response was received, how long it took, and what tools were used.\\n3. **Performance & Cost Tracking:** Monitoring token usage, latency, and costs across various LLM calls and chains is complex.\\n4. **Evaluation & Improvement:** How do you know if a change to your prompt or RAG system actually made your application better? How do you collect user feedback?\\n5. **Debugging Production Issues:** When something goes wrong in production, tracing the exact cause (e.g., a bad prompt, a hallucination, a failed tool call) is crucial.\\n\\n### How Langfuse Works & Its Key Features\\n\\nLangfuse addresses these challenges by providing:\\n\\n1. **Tracing & Observability:**\\n * **End-to-end visibility:** It captures every step of an LLM application's lifecycle, from user input, through various LLM calls, tool usage, RAG retrievals, and final output.\\n * **Detailed Spans:** Each step (e.g., an OpenAI call, a LlamaIndex query, a custom function) is recorded as a \\\"span,\\\" showing inputs, outputs, timestamps, costs (tokens, price), and associated metadata.\\n * **Visualizations:** Presents these traces in a clear, waterfall-style UI, making it easy to understand the flow and identify bottlenecks or errors.\\n\\n2. **Debugging & Monitoring:**\\n * **Real-time Dashboards:** Provides metrics on latency, cost, token usage, and error rates across your application.\\n * **Error Identification:** Quickly pinpoint exactly which LLM call or step failed within a complex chain.\\n * **Search & Filtering:** Easily find specific traces based on user IDs, session IDs, error status, or custom tags.\\n\\n3. **Evaluation & Feedback Loops:**\\n * **Manual Feedback:** Allows users (or developers) to provide direct feedback (e.g., \\\"good,\\\" \\\"bad,\\\" custom scores) on specific traces. This is invaluable for human-in-the-loop evaluation.\\n * **Automated Evaluation:** Integrates with evaluation frameworks (e.g., RAGAS) or custom scripts to automatically score LLM outputs, enabling A/B testing of prompts or models.\\n * **Prompt Comparison:** Helps you compare the performance of different prompt versions side-by-side based on collected metrics and evaluations.\\n\\n4. **Prompt Management:**\\n * Store and version control your prompts.\\n * Attach evaluations to specific prompt versions to track their effectiveness over time.\\n\\n5. **User & Session Tracking:**\\n * Associate traces with specific users or sessions, allowing you to understand individual user journeys and identify patterns.\\n\\n### Key Benefits\\n\\n* **Faster Debugging:** Quickly diagnose and fix issues in your LLM applications.\\n* **Improved Performance:** Identify and optimize slow or costly parts of your LLM chains.\\n* **Data-Driven Iteration:** Make informed decisions about prompt engineering, model selection, and architecture based on real usage data and evaluations.\\n* **Cost Control:** Monitor token usage and costs to prevent budget overruns.\\n* **Enhanced Reliability:** Build more robust and production-ready LLM applications.\\n\\n### Integrations\\n\\nLangfuse integrates with popular LLM frameworks and libraries, including:\\n\\n* LangChain\\n* LlamaIndex\\n* OpenAI API\\n* Anthropic API\\n* And can be used with any custom LLM integration.\\n\\nIn summary, Langfuse is a critical tool for any developer or team serious about building, deploying, and maintaining high-quality, performant, and reliable LLM-powered applications in production.\",\"llm.output_messages.0.message.role\":\"model\",\"openinference.span.kind\":\"LLM\"},\"resourceAttributes\":{\"telemetry.sdk.language\":\"python\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"1.34.1\",\"service.name\":\"unknown_service\"},\"scope\":{\"name\":\"openinference.instrumentation.google_genai\",\"version\":\"0.1.5\",\"attributes\":{}}}",+ "internalModel": "cmcnjkfwn000107l43bf5e8ax"+ }+ ]+}diff --git a/worker/src/__tests__/chatml/framework-traces/koog-2025-08-26.chatml.json b/worker/src/__tests__/chatml/framework-traces/koog-2025-08-26.chatml.jsonnew file mode 100644index 0000000000..f98a0d2cc9--- /dev/null+++ b/worker/src/__tests__/chatml/framework-traces/koog-2025-08-26.chatml.json@@ -0,0 +1,108 @@+{+ "e44e72cf2d221781": {+ "input": {+ "success": true,+ "data": [+ {+ "role": "system",+ "content": "You are a nice and polite assistant."+ },+ {+ "role": "user",+ "content": "Greet and say goodbye to the user in the same message. Use provided tools to generate a proper greeting. The user name is Bob."+ },+ {+ "role": "tool",+ "content": "[{\"function\":{\"name\":\"HelloTool\",\"arguments\":\"{\\\"name\\\": \\\"Bob\\\"}\"},\"id\":\"call_n2HaWg9KFP0BZDqXv6G4b3nJ\",\"type\":\"function\"}]"+ },+ {+ "role": "tool",+ "content": "Hello my darling Bob!"+ },+ {+ "role": "tool",+ "content": "[{\"function\":{\"name\":\"ByeTool\",\"arguments\":\"{\\\"name\\\": \\\"Bob\\\"}\"},\"id\":\"call_dOeEHJDI0liHrCdFWTpkTsuO\",\"type\":\"function\"}]"+ },+ {+ "role": "tool",+ "content": "Bye my dear Bob!"+ }+ ]+ },+ "output": {+ "success": true,+ "data": [+ {+ "role": "assistant",+ "content": "Hello my darling Bob! And, bye my dear Bob!"+ }+ ]+ }+ },+ "33188493784a060d": {+ "input": {+ "success": false,+ "error": {+ "name": "ZodError",+ "message": "[\n {\n \"expected\": \"array\",\n \"code\": \"invalid_type\",\n \"path\": [],\n \"message\": \"Invalid input: expected array, received object\"\n }\n]"+ }+ },+ "output": {+ "success": false,+ "error": {+ "name": "ZodError",+ "message": "[\n {\n \"expected\": \"object\",\n \"code\": \"invalid_type\",\n \"path\": [\n 0\n ],\n \"message\": \"Invalid input: expected object, received string\"\n }\n]"+ }+ }+ },+ "66f269083a2fff81": {+ "input": {+ "success": false,+ "error": {+ "name": "ZodError",+ "message": "[\n {\n \"expected\": \"array\",\n \"code\": \"invalid_type\",\n \"path\": [],\n \"message\": \"Invalid input: expected array, received object\"\n }\n]"+ }+ },+ "output": {+ "success": false,+ "error": {+ "name": "ZodError",+ "message": "[\n {\n \"expected\": \"object\",\n \"code\": \"invalid_type\",\n \"path\": [\n 0\n ],\n \"message\": \"Invalid input: expected object, received string\"\n }\n]"+ }+ }+ },+ "042f9350c3729147": {+ "input": {+ "success": true,+ "data": [+ {+ "role": "system",+ "content": "You are a nice and polite assistant."+ },+ {+ "role": "user",+ "content": "Greet and say goodbye to the user in the same message. Use provided tools to generate a proper greeting. The user name is Bob."+ }+ ]+ },+ "output": {+ "success": true,+ "data": [+ {+ "role": "assistant",+ "content": "[{\"function\":{\"name\":\"HelloTool\",\"arguments\":\"{\\\"name\\\": \\\"Bob\\\"}\"},\"id\":\"call_n2HaWg9KFP0BZDqXv6G4b3nJ\",\"type\":\"function\"}]",+ "json": {+ "finish_reason": "tool_calls"+ }+ },+ {+ "role": "assistant",+ "content": "[{\"function\":{\"name\":\"ByeTool\",\"arguments\":\"{\\\"name\\\": \\\"Bob\\\"}\"},\"id\":\"call_dOeEHJDI0liHrCdFWTpkTsuO\",\"type\":\"function\"}]",+ "json": {+ "finish_reason": "tool_calls"+ }+ }+ ]+ }+ }+}\ No newline at end of filediff --git a/worker/src/__tests__/chatml/framework-traces/koog-2025-08-26.trace.json b/worker/src/__tests__/chatml/framework-traces/koog-2025-08-26.trace.jsonnew file mode 100644index 0000000000..bc2b723a71--- /dev/null+++ b/worker/src/__tests__/chatml/framework-traces/koog-2025-08-26.trace.json@@ -0,0 +1,1003 @@+{+ "trace": {+ "id": "dff173a675b759ce1b70e522b27d6846",+ "projectId": "cmcmdwcag00c2ad077xp1qnyc",+ "name": "agent.f9f77d1a-437f-4ba6-890e-b592a50cbd21",+ "timestamp": "2025-08-26T19:40:59.145Z",+ "environment": "default",+ "tags": [],+ "bookmarked": false,+ "release": null,+ "version": "0.3.0",+ "userId": null,+ "sessionId": null,+ "public": true,+ "input": null,+ "output": null,+ "createdAt": "2025-08-26T19:40:59.145Z",+ "updatedAt": "2025-08-26T19:41:05.434Z",+ "metadata": "{\"attributes\":{\"gen_ai.request.model\":\"gpt-4o\",\"gen_ai.system\":\"openai\",\"gen_ai.agent.id\":\"f9f77d1a-437f-4ba6-890e-b592a50cbd21\",\"gen_ai.operation.name\":\"create_agent\"},\"resourceAttributes\":{\"os.arch\":\"aarch64\",\"os.type\":\"Mac OS X\",\"os.version\":\"15.4.1\",\"service.instance.time\":\"2025-08-26T19:40:59.130398Z\",\"service.name\":\"ai.koog\",\"service.version\":\"0.3.0\"},\"scope\":{\"name\":\"ai.koog\",\"version\":\"0.3.0\",\"attributes\":{}}}",+ "scores": [],+ "corrections": [],+ "latency": 5.843,+ "observations": [+ {+ "id": "1b7200380e3316e7",+ "traceId": "dff173a675b759ce1b70e522b27d6846",+ "startTime": "2025-08-26T19:40:59.145Z",+ "endTime": "2025-08-26T19:41:04.988Z",+ "projectId": "cmcmdwcag00c2ad077xp1qnyc",+ "parentObservationId": null,+ "type": "AGENT",+ "environment": "default",+ "name": "agent.f9f77d1a-437f-4ba6-890e-b592a50cbd21",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": "0.3.0",+ "createdAt": "2025-08-26T19:41:05.401Z",+ "updatedAt": "2025-08-26T19:41:05.420Z",+ "input": null,+ "output": null,+ "model": "gpt-4o",+ "internalModelId": "b9854a5c92dc496b997d99d20",+ "modelParameters": {},+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 5.843,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ },+ {+ "id": "bb189bc3771ff83d",+ "traceId": "dff173a675b759ce1b70e522b27d6846",+ "startTime": "2025-08-26T19:40:59.150Z",+ "endTime": "2025-08-26T19:41:04.988Z",+ "projectId": "cmcmdwcag00c2ad077xp1qnyc",+ "parentObservationId": "1b7200380e3316e7",+ "type": "AGENT",+ "environment": "default",+ "name": "run.6f8d2449-33ed-4c7c-82e7-5410e34ee4e6",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": "0.3.0",+ "createdAt": "2025-08-26T19:41:05.330Z",+ "updatedAt": "2025-08-26T19:41:05.354Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": {},+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 5.838,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ },+ {+ "id": "7578374e12a7faa5",+ "traceId": "dff173a675b759ce1b70e522b27d6846",+ "startTime": "2025-08-26T19:41:04.984Z",+ "endTime": "2025-08-26T19:41:04.985Z",+ "projectId": "cmcmdwcag00c2ad077xp1qnyc",+ "parentObservationId": "bb189bc3771ff83d",+ "type": "SPAN",+ "environment": "default",+ "name": "node.__finish__",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": "0.3.0",+ "createdAt": "2025-08-26T19:41:05.313Z",+ "updatedAt": "2025-08-26T19:41:05.340Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 0.001,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ },+ {+ "id": "e44e72cf2d221781",+ "traceId": "dff173a675b759ce1b70e522b27d6846",+ "startTime": "2025-08-26T19:41:03.041Z",+ "endTime": "2025-08-26T19:41:04.983Z",+ "projectId": "cmcmdwcag00c2ad077xp1qnyc",+ "parentObservationId": "6021df46275ad2d8",+ "type": "GENERATION",+ "environment": "default",+ "name": "llm.chat",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": "0.3.0",+ "createdAt": "2025-08-26T19:41:05.314Z",+ "updatedAt": "2025-08-26T19:41:05.333Z",+ "input": null,+ "output": null,+ "model": "gpt-4o",+ "internalModelId": "b9854a5c92dc496b997d99d20",+ "modelParameters": {+ "temperature": 1+ },+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 1.942,+ "timeToFirstToken": null,+ "usageDetails": {+ "input": 168,+ "output": 19,+ "total": 187+ },+ "costDetails": {+ "input": 0.00042,+ "output": 0.00019,+ "total": 0.00061+ },+ "providedCostDetails": {},+ "inputCost": 0.00042,+ "outputCost": 0.00019,+ "totalCost": 0.00061,+ "inputUsage": 168,+ "outputUsage": 19,+ "totalUsage": 187,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ },+ {+ "id": "6021df46275ad2d8",+ "traceId": "dff173a675b759ce1b70e522b27d6846",+ "startTime": "2025-08-26T19:41:03.038Z",+ "endTime": "2025-08-26T19:41:04.984Z",+ "projectId": "cmcmdwcag00c2ad077xp1qnyc",+ "parentObservationId": "bb189bc3771ff83d",+ "type": "SPAN",+ "environment": "default",+ "name": "node.nodeSendToolResult",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": "0.3.0",+ "createdAt": "2025-08-26T19:41:05.305Z",+ "updatedAt": "2025-08-26T19:41:05.324Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 1.946,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ },+ {+ "id": "33188493784a060d",+ "traceId": "dff173a675b759ce1b70e522b27d6846",+ "startTime": "2025-08-26T19:41:02.023Z",+ "endTime": "2025-08-26T19:41:03.037Z",+ "projectId": "cmcmdwcag00c2ad077xp1qnyc",+ "parentObservationId": "5555afb6655e4d44",+ "type": "SPAN",+ "environment": "default",+ "name": "tool.ByeTool",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": "0.3.0",+ "createdAt": "2025-08-26T19:41:03.511Z",+ "updatedAt": "2025-08-26T19:41:03.531Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 1.014,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ },+ {+ "id": "66f269083a2fff81",+ "traceId": "dff173a675b759ce1b70e522b27d6846",+ "startTime": "2025-08-26T19:41:02.023Z",+ "endTime": "2025-08-26T19:41:03.034Z",+ "projectId": "cmcmdwcag00c2ad077xp1qnyc",+ "parentObservationId": "5555afb6655e4d44",+ "type": "SPAN",+ "environment": "default",+ "name": "tool.HelloTool",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": "0.3.0",+ "createdAt": "2025-08-26T19:41:03.431Z",+ "updatedAt": "2025-08-26T19:41:03.479Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 1.011,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ },+ {+ "id": "5555afb6655e4d44",+ "traceId": "dff173a675b759ce1b70e522b27d6846",+ "startTime": "2025-08-26T19:41:02.017Z",+ "endTime": "2025-08-26T19:41:03.038Z",+ "projectId": "cmcmdwcag00c2ad077xp1qnyc",+ "parentObservationId": "bb189bc3771ff83d",+ "type": "SPAN",+ "environment": "default",+ "name": "node.nodeExecuteTool",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": "0.3.0",+ "createdAt": "2025-08-26T19:41:03.432Z",+ "updatedAt": "2025-08-26T19:41:03.456Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 1.021,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ },+ {+ "id": "6a0770019fe7c2b4",+ "traceId": "dff173a675b759ce1b70e522b27d6846",+ "startTime": "2025-08-26T19:40:59.171Z",+ "endTime": "2025-08-26T19:41:02.017Z",+ "projectId": "cmcmdwcag00c2ad077xp1qnyc",+ "parentObservationId": "bb189bc3771ff83d",+ "type": "SPAN",+ "environment": "default",+ "name": "node.nodeCallLLM",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": "0.3.0",+ "createdAt": "2025-08-26T19:41:02.422Z",+ "updatedAt": "2025-08-26T19:41:02.440Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 2.846,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ },+ {+ "id": "042f9350c3729147",+ "traceId": "dff173a675b759ce1b70e522b27d6846",+ "startTime": "2025-08-26T19:40:59.176Z",+ "endTime": "2025-08-26T19:41:02.016Z",+ "projectId": "cmcmdwcag00c2ad077xp1qnyc",+ "parentObservationId": "6a0770019fe7c2b4",+ "type": "GENERATION",+ "environment": "default",+ "name": "llm.chat",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": "0.3.0",+ "createdAt": "2025-08-26T19:41:02.328Z",+ "updatedAt": "2025-08-26T19:41:02.356Z",+ "input": null,+ "output": null,+ "model": "gpt-4o",+ "internalModelId": "b9854a5c92dc496b997d99d20",+ "modelParameters": {+ "temperature": 1+ },+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 2.84,+ "timeToFirstToken": null,+ "usageDetails": {+ "input": 47,+ "output": 106,+ "total": 153+ },+ "costDetails": {+ "input": 0.0001175,+ "output": 0.00106,+ "total": 0.0011775+ },+ "providedCostDetails": {},+ "inputCost": 0.0001175,+ "outputCost": 0.00106,+ "totalCost": 0.0011775,+ "inputUsage": 47,+ "outputUsage": 106,+ "totalUsage": 153,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ },+ {+ "id": "890e9114a4449257",+ "traceId": "dff173a675b759ce1b70e522b27d6846",+ "startTime": "2025-08-26T19:40:59.153Z",+ "endTime": "2025-08-26T19:40:59.153Z",+ "projectId": "cmcmdwcag00c2ad077xp1qnyc",+ "parentObservationId": "bb189bc3771ff83d",+ "type": "SPAN",+ "environment": "default",+ "name": "node.__start__",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": "0.3.0",+ "createdAt": "2025-08-26T19:40:59.897Z",+ "updatedAt": "2025-08-26T19:40:59.915Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 0,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ }+ ]+ },+ "observations": [+ {+ "id": "1b7200380e3316e7",+ "traceId": "dff173a675b759ce1b70e522b27d6846",+ "startTime": "2025-08-26T19:40:59.145Z",+ "endTime": "2025-08-26T19:41:04.988Z",+ "projectId": "cmcmdwcag00c2ad077xp1qnyc",+ "parentObservationId": null,+ "type": "AGENT",+ "environment": "default",+ "name": "agent.f9f77d1a-437f-4ba6-890e-b592a50cbd21",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": "0.3.0",+ "createdAt": "2025-08-26T19:41:05.401Z",+ "updatedAt": "2025-08-26T19:41:05.420Z",+ "input": null,+ "output": null,+ "model": "gpt-4o",+ "internalModelId": "b9854a5c92dc496b997d99d20",+ "modelParameters": {},+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 5.843,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"attributes\":{\"gen_ai.request.model\":\"gpt-4o\",\"gen_ai.system\":\"openai\",\"gen_ai.agent.id\":\"f9f77d1a-437f-4ba6-890e-b592a50cbd21\",\"gen_ai.operation.name\":\"create_agent\"},\"resourceAttributes\":{\"os.arch\":\"aarch64\",\"os.type\":\"Mac OS X\",\"os.version\":\"15.4.1\",\"service.instance.time\":\"2025-08-26T19:40:59.130398Z\",\"service.name\":\"ai.koog\",\"service.version\":\"0.3.0\"},\"scope\":{\"name\":\"ai.koog\",\"version\":\"0.3.0\",\"attributes\":{}}}",+ "internalModel": "b9854a5c92dc496b997d99d20"+ },+ {+ "id": "bb189bc3771ff83d",+ "traceId": "dff173a675b759ce1b70e522b27d6846",+ "startTime": "2025-08-26T19:40:59.150Z",+ "endTime": "2025-08-26T19:41:04.988Z",+ "projectId": "cmcmdwcag00c2ad077xp1qnyc",+ "parentObservationId": "1b7200380e3316e7",+ "type": "AGENT",+ "environment": "default",+ "name": "run.6f8d2449-33ed-4c7c-82e7-5410e34ee4e6",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": "0.3.0",+ "createdAt": "2025-08-26T19:41:05.330Z",+ "updatedAt": "2025-08-26T19:41:05.354Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": {},+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 5.838,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"attributes\":{\"koog.agent.strategy.name\":\"single_run_sequential\",\"gen_ai.conversation.id\":\"6f8d2449-33ed-4c7c-82e7-5410e34ee4e6\",\"gen_ai.system\":\"openai\",\"gen_ai.agent.id\":\"f9f77d1a-437f-4ba6-890e-b592a50cbd21\",\"gen_ai.operation.name\":\"invoke_agent\"},\"resourceAttributes\":{\"os.arch\":\"aarch64\",\"os.type\":\"Mac OS X\",\"os.version\":\"15.4.1\",\"service.instance.time\":\"2025-08-26T19:40:59.130398Z\",\"service.name\":\"ai.koog\",\"service.version\":\"0.3.0\"},\"scope\":{\"name\":\"ai.koog\",\"version\":\"0.3.0\",\"attributes\":{}}}",+ "internalModel": null+ },+ {+ "id": "7578374e12a7faa5",+ "traceId": "dff173a675b759ce1b70e522b27d6846",+ "startTime": "2025-08-26T19:41:04.984Z",+ "endTime": "2025-08-26T19:41:04.985Z",+ "projectId": "cmcmdwcag00c2ad077xp1qnyc",+ "parentObservationId": "bb189bc3771ff83d",+ "type": "SPAN",+ "environment": "default",+ "name": "node.__finish__",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": "0.3.0",+ "createdAt": "2025-08-26T19:41:05.313Z",+ "updatedAt": "2025-08-26T19:41:05.340Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 0.001,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"langgraph_node\":\"__finish__\",\"langgraph_step\":4,\"attributes\":{\"gen_ai.conversation.id\":\"6f8d2449-33ed-4c7c-82e7-5410e34ee4e6\",\"koog.node.name\":\"__finish__\",\"langfuse.observation.metadata.langgraph_node\":\"__finish__\",\"langfuse.observation.metadata.langgraph_step\":\"4\"},\"resourceAttributes\":{\"os.arch\":\"aarch64\",\"os.type\":\"Mac OS X\",\"os.version\":\"15.4.1\",\"service.instance.time\":\"2025-08-26T19:40:59.130398Z\",\"service.name\":\"ai.koog\",\"service.version\":\"0.3.0\"},\"scope\":{\"name\":\"ai.koog\",\"version\":\"0.3.0\",\"attributes\":{}}}",+ "internalModel": null+ },+ {+ "id": "e44e72cf2d221781",+ "traceId": "dff173a675b759ce1b70e522b27d6846",+ "startTime": "2025-08-26T19:41:03.041Z",+ "endTime": "2025-08-26T19:41:04.983Z",+ "projectId": "cmcmdwcag00c2ad077xp1qnyc",+ "parentObservationId": "6021df46275ad2d8",+ "type": "GENERATION",+ "environment": "default",+ "name": "llm.chat",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": "0.3.0",+ "createdAt": "2025-08-26T19:41:05.314Z",+ "updatedAt": "2025-08-26T19:41:05.333Z",+ "input": "[{\"role\":\"system\",\"content\":\"You are a nice and polite assistant.\"},{\"role\":\"user\",\"content\":\"Greet and say goodbye to the user in the same message. Use provided tools to generate a proper greeting. The user name is Bob.\"},{\"content\":\"[{\\\"function\\\":{\\\"name\\\":\\\"HelloTool\\\",\\\"arguments\\\":\\\"{\\\\\\\"name\\\\\\\": \\\\\\\"Bob\\\\\\\"}\\\"},\\\"id\\\":\\\"call_n2HaWg9KFP0BZDqXv6G4b3nJ\\\",\\\"type\\\":\\\"function\\\"}]\",\"role\":\"tool\"},{\"role\":\"tool\",\"content\":\"Hello my darling Bob!\"},{\"content\":\"[{\\\"function\\\":{\\\"name\\\":\\\"ByeTool\\\",\\\"arguments\\\":\\\"{\\\\\\\"name\\\\\\\": \\\\\\\"Bob\\\\\\\"}\\\"},\\\"id\\\":\\\"call_dOeEHJDI0liHrCdFWTpkTsuO\\\",\\\"type\\\":\\\"function\\\"}]\",\"role\":\"tool\"},{\"role\":\"tool\",\"content\":\"Bye my dear Bob!\"}]",+ "output": "[{\"content\":\"Hello my darling Bob! And, bye my dear Bob!\",\"role\":\"assistant\"}]",+ "model": "gpt-4o",+ "internalModelId": "b9854a5c92dc496b997d99d20",+ "modelParameters": {+ "temperature": 1+ },+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 1.942,+ "timeToFirstToken": null,+ "usageDetails": {+ "input": 168,+ "output": 19,+ "total": 187+ },+ "costDetails": {+ "input": 0.00042,+ "output": 0.00019,+ "total": 0.00061+ },+ "providedCostDetails": {},+ "inputCost": 0.00042,+ "outputCost": 0.00019,+ "totalCost": 0.00061,+ "inputUsage": 168,+ "outputUsage": 19,+ "totalUsage": 187,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"attributes\":{\"gen_ai.prompt.4.content\":\"[{\\\"function\\\":{\\\"name\\\":\\\"ByeTool\\\",\\\"arguments\\\":\\\"{\\\\\\\"name\\\\\\\": \\\\\\\"Bob\\\\\\\"}\\\"},\\\"id\\\":\\\"call_dOeEHJDI0liHrCdFWTpkTsuO\\\",\\\"type\\\":\\\"function\\\"}]\",\"gen_ai.prompt.5.role\":\"tool\",\"gen_ai.completion.0.content\":\"Hello my darling Bob! And, bye my dear Bob!\",\"gen_ai.request.temperature\":\"1\",\"gen_ai.prompt.3.role\":\"tool\",\"gen_ai.prompt.0.role\":\"system\",\"gen_ai.prompt.5.content\":\"Bye my dear Bob!\",\"gen_ai.completion.0.role\":\"assistant\",\"gen_ai.prompt.4.role\":\"tool\",\"gen_ai.request.model\":\"gpt-4o\",\"gen_ai.conversation.id\":\"6f8d2449-33ed-4c7c-82e7-5410e34ee4e6\",\"gen_ai.prompt.0.content\":\"You are a nice and polite assistant.\",\"gen_ai.prompt.1.role\":\"user\",\"gen_ai.response.finish_reasons\":\"[\\\"stop\\\"]\",\"gen_ai.prompt.1.content\":\"Greet and say goodbye to the user in the same message. Use provided tools to generate a proper greeting. The user name is Bob.\",\"gen_ai.system\":\"openai\",\"gen_ai.prompt.2.content\":\"[{\\\"function\\\":{\\\"name\\\":\\\"HelloTool\\\",\\\"arguments\\\":\\\"{\\\\\\\"name\\\\\\\": \\\\\\\"Bob\\\\\\\"}\\\"},\\\"id\\\":\\\"call_n2HaWg9KFP0BZDqXv6G4b3nJ\\\",\\\"type\\\":\\\"function\\\"}]\",\"gen_ai.operation.name\":\"chat\",\"gen_ai.prompt.2.role\":\"tool\",\"gen_ai.prompt.3.content\":\"Hello my darling Bob!\"},\"resourceAttributes\":{\"os.arch\":\"aarch64\",\"os.type\":\"Mac OS X\",\"os.version\":\"15.4.1\",\"service.instance.time\":\"2025-08-26T19:40:59.130398Z\",\"service.name\":\"ai.koog\",\"service.version\":\"0.3.0\"},\"scope\":{\"name\":\"ai.koog\",\"version\":\"0.3.0\",\"attributes\":{}}}",+ "internalModel": "b9854a5c92dc496b997d99d20"+ },+ {+ "id": "6021df46275ad2d8",+ "traceId": "dff173a675b759ce1b70e522b27d6846",+ "startTime": "2025-08-26T19:41:03.038Z",+ "endTime": "2025-08-26T19:41:04.984Z",+ "projectId": "cmcmdwcag00c2ad077xp1qnyc",+ "parentObservationId": "bb189bc3771ff83d",+ "type": "SPAN",+ "environment": "default",+ "name": "node.nodeSendToolResult",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": "0.3.0",+ "createdAt": "2025-08-26T19:41:05.305Z",+ "updatedAt": "2025-08-26T19:41:05.324Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 1.946,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"langgraph_node\":\"nodeSendToolResult\",\"langgraph_step\":3,\"attributes\":{\"gen_ai.conversation.id\":\"6f8d2449-33ed-4c7c-82e7-5410e34ee4e6\",\"koog.node.name\":\"nodeSendToolResult\",\"langfuse.observation.metadata.langgraph_node\":\"nodeSendToolResult\",\"langfuse.observation.metadata.langgraph_step\":\"3\"},\"resourceAttributes\":{\"os.arch\":\"aarch64\",\"os.type\":\"Mac OS X\",\"os.version\":\"15.4.1\",\"service.instance.time\":\"2025-08-26T19:40:59.130398Z\",\"service.name\":\"ai.koog\",\"service.version\":\"0.3.0\"},\"scope\":{\"name\":\"ai.koog\",\"version\":\"0.3.0\",\"attributes\":{}}}",+ "internalModel": null+ },+ {+ "id": "33188493784a060d",+ "traceId": "dff173a675b759ce1b70e522b27d6846",+ "startTime": "2025-08-26T19:41:02.023Z",+ "endTime": "2025-08-26T19:41:03.037Z",+ "projectId": "cmcmdwcag00c2ad077xp1qnyc",+ "parentObservationId": "5555afb6655e4d44",+ "type": "SPAN",+ "environment": "default",+ "name": "tool.ByeTool",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": "0.3.0",+ "createdAt": "2025-08-26T19:41:03.511Z",+ "updatedAt": "2025-08-26T19:41:03.531Z",+ "input": "{\"name\":\"Bob\"}",+ "output": "Bye my dear Bob!",+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 1.014,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"attributes\":{\"input.value\":\"{\\\"name\\\":\\\"Bob\\\"}\",\"output.value\":\"Bye my dear Bob!\",\"gen_ai.tool.description\":\"A tool that says bye to the user\",\"gen_ai.tool.call.id\":\"call_dOeEHJDI0liHrCdFWTpkTsuO\",\"gen_ai.tool.name\":\"ByeTool\"},\"resourceAttributes\":{\"os.arch\":\"aarch64\",\"os.type\":\"Mac OS X\",\"os.version\":\"15.4.1\",\"service.instance.time\":\"2025-08-26T19:40:59.130398Z\",\"service.name\":\"ai.koog\",\"service.version\":\"0.3.0\"},\"scope\":{\"name\":\"ai.koog\",\"version\":\"0.3.0\",\"attributes\":{}}}",+ "internalModel": null+ },+ {+ "id": "66f269083a2fff81",+ "traceId": "dff173a675b759ce1b70e522b27d6846",+ "startTime": "2025-08-26T19:41:02.023Z",+ "endTime": "2025-08-26T19:41:03.034Z",+ "projectId": "cmcmdwcag00c2ad077xp1qnyc",+ "parentObservationId": "5555afb6655e4d44",+ "type": "SPAN",+ "environment": "default",+ "name": "tool.HelloTool",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": "0.3.0",+ "createdAt": "2025-08-26T19:41:03.431Z",+ "updatedAt": "2025-08-26T19:41:03.479Z",+ "input": "{\"name\":\"Bob\"}",+ "output": "Hello my darling Bob!",+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 1.011,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"attributes\":{\"input.value\":\"{\\\"name\\\":\\\"Bob\\\"}\",\"output.value\":\"Hello my darling Bob!\",\"gen_ai.tool.description\":\"A tool greets the user\",\"gen_ai.tool.call.id\":\"call_n2HaWg9KFP0BZDqXv6G4b3nJ\",\"gen_ai.tool.name\":\"HelloTool\"},\"resourceAttributes\":{\"os.arch\":\"aarch64\",\"os.type\":\"Mac OS X\",\"os.version\":\"15.4.1\",\"service.instance.time\":\"2025-08-26T19:40:59.130398Z\",\"service.name\":\"ai.koog\",\"service.version\":\"0.3.0\"},\"scope\":{\"name\":\"ai.koog\",\"version\":\"0.3.0\",\"attributes\":{}}}",+ "internalModel": null+ },+ {+ "id": "5555afb6655e4d44",+ "traceId": "dff173a675b759ce1b70e522b27d6846",+ "startTime": "2025-08-26T19:41:02.017Z",+ "endTime": "2025-08-26T19:41:03.038Z",+ "projectId": "cmcmdwcag00c2ad077xp1qnyc",+ "parentObservationId": "bb189bc3771ff83d",+ "type": "SPAN",+ "environment": "default",+ "name": "node.nodeExecuteTool",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": "0.3.0",+ "createdAt": "2025-08-26T19:41:03.432Z",+ "updatedAt": "2025-08-26T19:41:03.456Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 1.021,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"langgraph_node\":\"nodeExecuteTool\",\"langgraph_step\":2,\"attributes\":{\"gen_ai.conversation.id\":\"6f8d2449-33ed-4c7c-82e7-5410e34ee4e6\",\"koog.node.name\":\"nodeExecuteTool\",\"langfuse.observation.metadata.langgraph_node\":\"nodeExecuteTool\",\"langfuse.observation.metadata.langgraph_step\":\"2\"},\"resourceAttributes\":{\"os.arch\":\"aarch64\",\"os.type\":\"Mac OS X\",\"os.version\":\"15.4.1\",\"service.instance.time\":\"2025-08-26T19:40:59.130398Z\",\"service.name\":\"ai.koog\",\"service.version\":\"0.3.0\"},\"scope\":{\"name\":\"ai.koog\",\"version\":\"0.3.0\",\"attributes\":{}}}",+ "internalModel": null+ },+ {+ "id": "6a0770019fe7c2b4",+ "traceId": "dff173a675b759ce1b70e522b27d6846",+ "startTime": "2025-08-26T19:40:59.171Z",+ "endTime": "2025-08-26T19:41:02.017Z",+ "projectId": "cmcmdwcag00c2ad077xp1qnyc",+ "parentObservationId": "bb189bc3771ff83d",+ "type": "SPAN",+ "environment": "default",+ "name": "node.nodeCallLLM",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": "0.3.0",+ "createdAt": "2025-08-26T19:41:02.422Z",+ "updatedAt": "2025-08-26T19:41:02.440Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 2.846,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"langgraph_node\":\"nodeCallLLM\",\"langgraph_step\":1,\"attributes\":{\"gen_ai.conversation.id\":\"6f8d2449-33ed-4c7c-82e7-5410e34ee4e6\",\"koog.node.name\":\"nodeCallLLM\",\"langfuse.observation.metadata.langgraph_node\":\"nodeCallLLM\",\"langfuse.observation.metadata.langgraph_step\":\"1\"},\"resourceAttributes\":{\"os.arch\":\"aarch64\",\"os.type\":\"Mac OS X\",\"os.version\":\"15.4.1\",\"service.instance.time\":\"2025-08-26T19:40:59.130398Z\",\"service.name\":\"ai.koog\",\"service.version\":\"0.3.0\"},\"scope\":{\"name\":\"ai.koog\",\"version\":\"0.3.0\",\"attributes\":{}}}",+ "internalModel": null+ },+ {+ "id": "042f9350c3729147",+ "traceId": "dff173a675b759ce1b70e522b27d6846",+ "startTime": "2025-08-26T19:40:59.176Z",+ "endTime": "2025-08-26T19:41:02.016Z",+ "projectId": "cmcmdwcag00c2ad077xp1qnyc",+ "parentObservationId": "6a0770019fe7c2b4",+ "type": "GENERATION",+ "environment": "default",+ "name": "llm.chat",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": "0.3.0",+ "createdAt": "2025-08-26T19:41:02.328Z",+ "updatedAt": "2025-08-26T19:41:02.356Z",+ "input": "[{\"role\":\"system\",\"content\":\"You are a nice and polite assistant.\"},{\"role\":\"user\",\"content\":\"Greet and say goodbye to the user in the same message. Use provided tools to generate a proper greeting. The user name is Bob.\"}]",+ "output": "[{\"content\":\"[{\\\"function\\\":{\\\"name\\\":\\\"HelloTool\\\",\\\"arguments\\\":\\\"{\\\\\\\"name\\\\\\\": \\\\\\\"Bob\\\\\\\"}\\\"},\\\"id\\\":\\\"call_n2HaWg9KFP0BZDqXv6G4b3nJ\\\",\\\"type\\\":\\\"function\\\"}]\",\"role\":\"assistant\",\"finish_reason\":\"tool_calls\"},{\"finish_reason\":\"tool_calls\",\"role\":\"assistant\",\"content\":\"[{\\\"function\\\":{\\\"name\\\":\\\"ByeTool\\\",\\\"arguments\\\":\\\"{\\\\\\\"name\\\\\\\": \\\\\\\"Bob\\\\\\\"}\\\"},\\\"id\\\":\\\"call_dOeEHJDI0liHrCdFWTpkTsuO\\\",\\\"type\\\":\\\"function\\\"}]\"}]",+ "model": "gpt-4o",+ "internalModelId": "b9854a5c92dc496b997d99d20",+ "modelParameters": {+ "temperature": 1+ },+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 2.84,+ "timeToFirstToken": null,+ "usageDetails": {+ "input": 47,+ "output": 106,+ "total": 153+ },+ "costDetails": {+ "input": 0.0001175,+ "output": 0.00106,+ "total": 0.0011775+ },+ "providedCostDetails": {},+ "inputCost": 0.0001175,+ "outputCost": 0.00106,+ "totalCost": 0.0011775,+ "inputUsage": 47,+ "outputUsage": 106,+ "totalUsage": 153,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"attributes\":{\"gen_ai.completion.0.content\":\"[{\\\"function\\\":{\\\"name\\\":\\\"HelloTool\\\",\\\"arguments\\\":\\\"{\\\\\\\"name\\\\\\\": \\\\\\\"Bob\\\\\\\"}\\\"},\\\"id\\\":\\\"call_n2HaWg9KFP0BZDqXv6G4b3nJ\\\",\\\"type\\\":\\\"function\\\"}]\",\"gen_ai.request.temperature\":\"1\",\"gen_ai.prompt.0.role\":\"system\",\"gen_ai.completion.0.role\":\"assistant\",\"gen_ai.request.model\":\"gpt-4o\",\"gen_ai.conversation.id\":\"6f8d2449-33ed-4c7c-82e7-5410e34ee4e6\",\"gen_ai.completion.0.finish_reason\":\"tool_calls\",\"gen_ai.prompt.0.content\":\"You are a nice and polite assistant.\",\"gen_ai.prompt.1.role\":\"user\",\"gen_ai.response.finish_reasons\":\"[\\\"tool_calls\\\"]\",\"gen_ai.prompt.1.content\":\"Greet and say goodbye to the user in the same message. Use provided tools to generate a proper greeting. The user name is Bob.\",\"gen_ai.completion.1.finish_reason\":\"tool_calls\",\"gen_ai.system\":\"openai\",\"gen_ai.completion.1.role\":\"assistant\",\"gen_ai.completion.1.content\":\"[{\\\"function\\\":{\\\"name\\\":\\\"ByeTool\\\",\\\"arguments\\\":\\\"{\\\\\\\"name\\\\\\\": \\\\\\\"Bob\\\\\\\"}\\\"},\\\"id\\\":\\\"call_dOeEHJDI0liHrCdFWTpkTsuO\\\",\\\"type\\\":\\\"function\\\"}]\",\"gen_ai.operation.name\":\"chat\"},\"resourceAttributes\":{\"os.arch\":\"aarch64\",\"os.type\":\"Mac OS X\",\"os.version\":\"15.4.1\",\"service.instance.time\":\"2025-08-26T19:40:59.130398Z\",\"service.name\":\"ai.koog\",\"service.version\":\"0.3.0\"},\"scope\":{\"name\":\"ai.koog\",\"version\":\"0.3.0\",\"attributes\":{}}}",+ "internalModel": "b9854a5c92dc496b997d99d20"+ },+ {+ "id": "890e9114a4449257",+ "traceId": "dff173a675b759ce1b70e522b27d6846",+ "startTime": "2025-08-26T19:40:59.153Z",+ "endTime": "2025-08-26T19:40:59.153Z",+ "projectId": "cmcmdwcag00c2ad077xp1qnyc",+ "parentObservationId": "bb189bc3771ff83d",+ "type": "SPAN",+ "environment": "default",+ "name": "node.__start__",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": "0.3.0",+ "createdAt": "2025-08-26T19:40:59.897Z",+ "updatedAt": "2025-08-26T19:40:59.915Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 0,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"langgraph_node\":\"__start__\",\"langgraph_step\":0,\"attributes\":{\"gen_ai.conversation.id\":\"6f8d2449-33ed-4c7c-82e7-5410e34ee4e6\",\"koog.node.name\":\"__start__\",\"langfuse.observation.metadata.langgraph_node\":\"__start__\",\"langfuse.observation.metadata.langgraph_step\":\"0\"},\"resourceAttributes\":{\"os.arch\":\"aarch64\",\"os.type\":\"Mac OS X\",\"os.version\":\"15.4.1\",\"service.instance.time\":\"2025-08-26T19:40:59.130398Z\",\"service.name\":\"ai.koog\",\"service.version\":\"0.3.0\"},\"scope\":{\"name\":\"ai.koog\",\"version\":\"0.3.0\",\"attributes\":{}}}",+ "internalModel": null+ }+ ]+}diff --git a/worker/src/__tests__/chatml/framework-traces/langgraph-js-2025-10-30.chatml.json b/worker/src/__tests__/chatml/framework-traces/langgraph-js-2025-10-30.chatml.jsonnew file mode 100644index 0000000000..02e1ff7e14--- /dev/null+++ b/worker/src/__tests__/chatml/framework-traces/langgraph-js-2025-10-30.chatml.json@@ -0,0 +1,586 @@+{+ "0856a1825ccee968": {+ "input": {+ "success": true,+ "data": [+ {+ "role": "user",+ "content": "What's the weather in San Francisco?"+ },+ {+ "role": "assistant",+ "content": "",+ "tool_calls": [+ {+ "id": "call_VEZJgIQLgzcb80IIyQJm7JCi",+ "name": "get_weather",+ "arguments": "{\"city\":\"San Francisco\"}",+ "type": "function"+ }+ ]+ },+ {+ "role": "get_weather",+ "content": "It's always sunny in San Francisco!"+ }+ ]+ },+ "output": {+ "success": true,+ "data": [+ {+ "role": "assistant",+ "content": "It's always sunny in San Francisco! \n\nWould you like more details (current temperature, hourly forecast, or a multi-day outlook)?"+ }+ ]+ }+ },+ "8f0ee27d91863fde": {+ "input": {+ "success": true,+ "data": [+ {+ "role": "user",+ "content": "What's the weather in San Francisco?"+ }+ ]+ },+ "output": {+ "success": true,+ "data": [+ {+ "role": "assistant",+ "content": "",+ "tool_calls": [+ {+ "id": "call_VEZJgIQLgzcb80IIyQJm7JCi",+ "name": "get_weather",+ "arguments": "{\"city\":\"San Francisco\"}",+ "type": "function"+ }+ ]+ }+ ]+ }+ },+ "0fa7a562ce43f546": {+ "input": {+ "success": false,+ "error": {+ "name": "ZodError",+ "message": "[\n {\n \"expected\": \"array\",\n \"code\": \"invalid_type\",\n \"path\": [],\n \"message\": \"Invalid input: expected array, received object\"\n }\n]"+ }+ },+ "output": {+ "success": false,+ "error": {+ "name": "ZodError",+ "message": "[\n {\n \"expected\": \"string\",\n \"code\": \"invalid_type\",\n \"path\": [\n 0,\n \"role\"\n ],\n \"message\": \"Invalid input: expected string, received function\"\n }\n]"+ }+ }+ },+ "0fabddcbcd5cee2d": {+ "input": {+ "success": true,+ "data": [+ {+ "role": "user",+ "content": "What's the weather in San Francisco?"+ }+ ]+ },+ "output": {+ "success": false,+ "error": {+ "name": "ZodError",+ "message": "[\n {\n \"expected\": \"string\",\n \"code\": \"invalid_type\",\n \"path\": [\n 0,\n \"role\"\n ],\n \"message\": \"Invalid input: expected string, received function\"\n },\n {\n \"expected\": \"string\",\n \"code\": \"invalid_type\",\n \"path\": [\n 1,\n \"role\"\n ],\n \"message\": \"Invalid input: expected string, received function\"\n },\n {\n \"expected\": \"string\",\n \"code\": \"invalid_type\",\n \"path\": [\n 2,\n \"role\"\n ],\n \"message\": \"Invalid input: expected string, received function\"\n },\n {\n \"expected\": \"string\",\n \"code\": \"invalid_type\",\n \"path\": [\n 3,\n \"role\"\n ],\n \"message\": \"Invalid input: expected string, received function\"\n }\n]"+ }+ }+ },+ "1a436b274dae3895": {+ "input": {+ "success": false,+ "error": {+ "name": "ZodError",+ "message": "[\n {\n \"expected\": \"array\",\n \"code\": \"invalid_type\",\n \"path\": [],\n \"message\": \"Invalid input: expected array, received object\"\n }\n]"+ }+ },+ "output": {+ "success": false,+ "error": {+ "name": "ZodError",+ "message": "[\n {\n \"expected\": \"string\",\n \"code\": \"invalid_type\",\n \"path\": [\n 0,\n \"role\"\n ],\n \"message\": \"Invalid input: expected string, received function\"\n }\n]"+ }+ }+ },+ "2285cbc61d44c3e3": {+ "input": {+ "success": false,+ "error": {+ "name": "ZodError",+ "message": "[\n {\n \"expected\": \"array\",\n \"code\": \"invalid_type\",\n \"path\": [],\n \"message\": \"Invalid input: expected array, received object\"\n }\n]"+ }+ },+ "output": {+ "success": false,+ "error": {+ "name": "ZodError",+ "message": "[\n {\n \"expected\": \"string\",\n \"code\": \"invalid_type\",\n \"path\": [\n 0,\n \"role\"\n ],\n \"message\": \"Invalid input: expected string, received function\"\n }\n]"+ }+ }+ },+ "23450fb0c54069a3": {+ "input": {+ "success": false,+ "error": {+ "name": "ZodError",+ "message": "[\n {\n \"expected\": \"array\",\n \"code\": \"invalid_type\",\n \"path\": [],\n \"message\": \"Invalid input: expected array, received object\"\n }\n]"+ }+ },+ "output": {+ "success": false,+ "error": {+ "name": "ZodError",+ "message": "[\n {\n \"expected\": \"string\",\n \"code\": \"invalid_type\",\n \"path\": [\n 0,\n \"role\"\n ],\n \"message\": \"Invalid input: expected string, received function\"\n }\n]"+ }+ }+ },+ "29937389e09f9525": {+ "input": {+ "success": false,+ "error": {+ "name": "ZodError",+ "message": "[\n {\n \"expected\": \"array\",\n \"code\": \"invalid_type\",\n \"path\": [],\n \"message\": \"Invalid input: expected array, received object\"\n }\n]"+ }+ },+ "output": {+ "success": true,+ "data": [+ {+ "json": {+ "output": [+ {+ "lc": 1,+ "type": "constructor",+ "id": [+ "langchain_core",+ "messages",+ "HumanMessage"+ ],+ "kwargs": {+ "content": "What's the weather in San Francisco?",+ "additional_kwargs": {},+ "response_metadata": {},+ "id": "44fe5ba2-2f09-4ec2-9385-33e26c43f469"+ }+ },+ {+ "lc": 1,+ "type": "constructor",+ "id": [+ "langchain_core",+ "messages",+ "AIMessage"+ ],+ "kwargs": {+ "id": "chatcmpl-CWIZpV1k7an0crpr6hsnDXp1j2wdo",+ "name": "model",+ "content": "",+ "additional_kwargs": {+ "tool_calls": [+ {+ "id": "call_VEZJgIQLgzcb80IIyQJm7JCi",+ "type": "function",+ "function": {+ "name": "get_weather",+ "arguments": "{\"city\":\"San Francisco\"}"+ }+ }+ ]+ },+ "response_metadata": {+ "tokenUsage": {+ "promptTokens": 142,+ "completionTokens": 24,+ "totalTokens": 166+ },+ "finish_reason": "tool_calls",+ "model_provider": "openai",+ "model_name": "gpt-5-mini-2025-08-07"+ },+ "type": "ai",+ "tool_calls": [+ {+ "name": "get_weather",+ "args": {+ "city": "San Francisco"+ },+ "type": "tool_call",+ "id": "call_VEZJgIQLgzcb80IIyQJm7JCi"+ }+ ],+ "invalid_tool_calls": [],+ "usage_metadata": {+ "output_tokens": 24,+ "input_tokens": 142,+ "total_tokens": 166,+ "input_token_details": {+ "audio": 0,+ "cache_read": 0+ },+ "output_token_details": {+ "audio": 0,+ "reasoning": 0+ }+ }+ }+ },+ {+ "lc": 1,+ "type": "constructor",+ "id": [+ "langchain_core",+ "messages",+ "ToolMessage"+ ],+ "kwargs": {+ "status": "success",+ "content": "It's always sunny in San Francisco!",+ "tool_call_id": "call_VEZJgIQLgzcb80IIyQJm7JCi",+ "name": "get_weather",+ "metadata": {},+ "additional_kwargs": {},+ "response_metadata": {},+ "id": "62384f1e-7993-405d-80d5-e62fc1102f78"+ }+ }+ ]+ }+ }+ ]+ }+ },+ "4059d1450dfaeabd": {+ "input": {+ "success": false,+ "error": {+ "name": "ZodError",+ "message": "[\n {\n \"expected\": \"array\",\n \"code\": \"invalid_type\",\n \"path\": [],\n \"message\": \"Invalid input: expected array, received object\"\n }\n]"+ }+ },+ "output": {+ "success": false,+ "error": {+ "name": "ZodError",+ "message": "[\n {\n \"expected\": \"string\",\n \"code\": \"invalid_type\",\n \"path\": [\n 0,\n \"role\"\n ],\n \"message\": \"Invalid input: expected string, received function\"\n }\n]"+ }+ }+ },+ "405be02ff1aec7f8": {+ "input": {+ "success": false,+ "error": {+ "name": "ZodError",+ "message": "[\n {\n \"expected\": \"array\",\n \"code\": \"invalid_type\",\n \"path\": [],\n \"message\": \"Invalid input: expected array, received object\"\n }\n]"+ }+ },+ "output": {+ "success": true,+ "data": [+ {+ "json": {+ "output": [+ {+ "lc": 1,+ "type": "constructor",+ "id": [+ "langchain_core",+ "messages",+ "HumanMessage"+ ],+ "kwargs": {+ "content": "What's the weather in San Francisco?",+ "additional_kwargs": {},+ "response_metadata": {},+ "id": "44fe5ba2-2f09-4ec2-9385-33e26c43f469"+ }+ }+ ]+ }+ }+ ]+ }+ },+ "4a19536760554d30": {+ "input": {+ "success": true,+ "data": [+ {+ "role": "user",+ "content": "What's the weather in San Francisco?"+ }+ ]+ },+ "output": {+ "success": true,+ "data": [+ {+ "role": "user",+ "content": "What's the weather in San Francisco?"+ }+ ]+ }+ },+ "4bd9001eb2207296": {+ "input": {+ "success": true,+ "data": [+ {+ "role": "user",+ "content": "What's the weather in San Francisco?"+ }+ ]+ },+ "output": {+ "success": true,+ "data": [+ {+ "role": "user",+ "content": "What's the weather in San Francisco?"+ }+ ]+ }+ },+ "5418736422abc167": {+ "input": {+ "success": false,+ "error": {+ "name": "ZodError",+ "message": "[\n {\n \"expected\": \"array\",\n \"code\": \"invalid_type\",\n \"path\": [],\n \"message\": \"Invalid input: expected array, received object\"\n }\n]"+ }+ },+ "output": {+ "success": false,+ "error": {+ "name": "ZodError",+ "message": "[\n {\n \"expected\": \"object\",\n \"code\": \"invalid_type\",\n \"path\": [\n 0\n ],\n \"message\": \"Invalid input: expected object, received string\"\n }\n]"+ }+ }+ },+ "62fd894173738caf": {+ "input": {+ "success": false,+ "error": {+ "name": "ZodError",+ "message": "[\n {\n \"expected\": \"array\",\n \"code\": \"invalid_type\",\n \"path\": [],\n \"message\": \"Invalid input: expected array, received object\"\n }\n]"+ }+ },+ "output": {+ "success": false,+ "error": {+ "name": "ZodError",+ "message": "[\n {\n \"expected\": \"string\",\n \"code\": \"invalid_type\",\n \"path\": [\n 0,\n \"role\"\n ],\n \"message\": \"Invalid input: expected string, received function\"\n }\n]"+ }+ }+ },+ "841f49934638899f": {+ "input": {+ "success": false,+ "error": {+ "name": "ZodError",+ "message": "[\n {\n \"expected\": \"array\",\n \"code\": \"invalid_type\",\n \"path\": [],\n \"message\": \"Invalid input: expected array, received object\"\n }\n]"+ }+ },+ "output": {+ "success": true,+ "data": [+ {+ "json": {+ "output": [+ {+ "lg_name": "Send",+ "node": "tools",+ "args": {+ "messages": [+ {+ "lc": 1,+ "type": "constructor",+ "id": [+ "langchain_core",+ "messages",+ "HumanMessage"+ ],+ "kwargs": {+ "content": "What's the weather in San Francisco?",+ "additional_kwargs": {},+ "response_metadata": {},+ "id": "44fe5ba2-2f09-4ec2-9385-33e26c43f469"+ }+ },+ {+ "lc": 1,+ "type": "constructor",+ "id": [+ "langchain_core",+ "messages",+ "AIMessage"+ ],+ "kwargs": {+ "id": "chatcmpl-CWIZpV1k7an0crpr6hsnDXp1j2wdo",+ "name": "model",+ "content": "",+ "additional_kwargs": {+ "tool_calls": [+ {+ "id": "call_VEZJgIQLgzcb80IIyQJm7JCi",+ "type": "function",+ "function": {+ "name": "get_weather",+ "arguments": "{\"city\":\"San Francisco\"}"+ }+ }+ ]+ },+ "response_metadata": {+ "tokenUsage": {+ "promptTokens": 142,+ "completionTokens": 24,+ "totalTokens": 166+ },+ "finish_reason": "tool_calls",+ "model_provider": "openai",+ "model_name": "gpt-5-mini-2025-08-07"+ },+ "type": "ai",+ "tool_calls": [+ {+ "name": "get_weather",+ "args": {+ "city": "San Francisco"+ },+ "type": "tool_call",+ "id": "call_VEZJgIQLgzcb80IIyQJm7JCi"+ }+ ],+ "invalid_tool_calls": [],+ "usage_metadata": {+ "output_tokens": 24,+ "input_tokens": 142,+ "total_tokens": 166,+ "input_token_details": {+ "audio": 0,+ "cache_read": 0+ },+ "output_token_details": {+ "audio": 0,+ "reasoning": 0+ }+ }+ }+ }+ ],+ "_privateState": {+ "threadLevelCallCount": 1,+ "runModelCallCount": 0+ },+ "lg_tool_call": {+ "name": "get_weather",+ "args": {+ "city": "San Francisco"+ },+ "type": "tool_call",+ "id": "call_VEZJgIQLgzcb80IIyQJm7JCi"+ }+ }+ }+ ]+ }+ }+ ]+ }+ },+ "94d8f57d1d47f9d3": {+ "input": {+ "success": false,+ "error": {+ "name": "ZodError",+ "message": "[\n {\n \"expected\": \"array\",\n \"code\": \"invalid_type\",\n \"path\": [],\n \"message\": \"Invalid input: expected array, received object\"\n }\n]"+ }+ },+ "output": {+ "success": false,+ "error": {+ "name": "ZodError",+ "message": "[\n {\n \"expected\": \"string\",\n \"code\": \"invalid_type\",\n \"path\": [\n 0,\n \"role\"\n ],\n \"message\": \"Invalid input: expected string, received function\"\n }\n]"+ }+ }+ },+ "b6ebcf125bccb1e0": {+ "input": {+ "success": false,+ "error": {+ "name": "ZodError",+ "message": "[\n {\n \"expected\": \"array\",\n \"code\": \"invalid_type\",\n \"path\": [],\n \"message\": \"Invalid input: expected array, received object\"\n }\n]"+ }+ },+ "output": {+ "success": false,+ "error": {+ "name": "ZodError",+ "message": "[\n {\n \"expected\": \"string\",\n \"code\": \"invalid_type\",\n \"path\": [\n 0,\n \"role\"\n ],\n \"message\": \"Invalid input: expected string, received function\"\n }\n]"+ }+ }+ },+ "c3a547a43cb47b18": {+ "input": {+ "success": false,+ "error": {+ "name": "ZodError",+ "message": "[\n {\n \"expected\": \"array\",\n \"code\": \"invalid_type\",\n \"path\": [],\n \"message\": \"Invalid input: expected array, received object\"\n }\n]"+ }+ },+ "output": {+ "success": false,+ "error": {+ "name": "ZodError",+ "message": "[\n {\n \"expected\": \"string\",\n \"code\": \"invalid_type\",\n \"path\": [\n 0,\n \"role\"\n ],\n \"message\": \"Invalid input: expected string, received function\"\n }\n]"+ }+ }+ },+ "dc6fa04662de9504": {+ "input": {+ "success": false,+ "error": {+ "name": "ZodError",+ "message": "[\n {\n \"expected\": \"array\",\n \"code\": \"invalid_type\",\n \"path\": [],\n \"message\": \"Invalid input: expected array, received object\"\n }\n]"+ }+ },+ "output": {+ "success": false,+ "error": {+ "name": "ZodError",+ "message": "[\n {\n \"expected\": \"string\",\n \"code\": \"invalid_type\",\n \"path\": [\n 0,\n \"role\"\n ],\n \"message\": \"Invalid input: expected string, received function\"\n }\n]"+ }+ }+ },+ "f610e93ab2a4d66c": {+ "input": {+ "success": true,+ "data": [+ {+ "role": "user",+ "content": "What's the weather in San Francisco?"+ }+ ]+ },+ "output": {+ "success": true,+ "data": [+ {+ "role": "user",+ "content": "What's the weather in San Francisco?"+ }+ ]+ }+ }+}\ No newline at end of filediff --git a/worker/src/__tests__/chatml/framework-traces/langgraph-js-2025-10-30.trace.json b/worker/src/__tests__/chatml/framework-traces/langgraph-js-2025-10-30.trace.jsonnew file mode 100644index 0000000000..320f4f7f0f--- /dev/null+++ b/worker/src/__tests__/chatml/framework-traces/langgraph-js-2025-10-30.trace.json@@ -0,0 +1,1833 @@+{+ "trace": {+ "id": "2c1581dd9cecdafb6ca091b83d7ea99a",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "name": "LangGraph",+ "timestamp": "2025-10-30T08:45:41.168Z",+ "environment": "default",+ "tags": [],+ "bookmarked": false,+ "release": null,+ "version": null,+ "userId": null,+ "sessionId": null,+ "public": true,+ "input": "\"{\\\"messages\\\":[{\\\"role\\\":\\\"user\\\",\\\"content\\\":\\\"What's the weather in San Francisco?\\\"}]}\"",+ "output": "\"{\\\"messages\\\":[{\\\"lc\\\":1,\\\"type\\\":\\\"constructor\\\",\\\"id\\\":[\\\"langchain_core\\\",\\\"messages\\\",\\\"HumanMessage\\\"],\\\"kwargs\\\":{\\\"content\\\":\\\"What's the weather in San Francisco?\\\",\\\"additional_kwargs\\\":{},\\\"response_metadata\\\":{},\\\"id\\\":\\\"44fe5ba2-2f09-4ec2-9385-33e26c43f469\\\"}},{\\\"lc\\\":1,\\\"type\\\":\\\"constructor\\\",\\\"id\\\":[\\\"langchain_core\\\",\\\"messages\\\",\\\"AIMessage\\\"],\\\"kwargs\\\":{\\\"id\\\":\\\"chatcmpl-CWIZpV1k7an0crpr6hsnDXp1j2wdo\\\",\\\"name\\\":\\\"model\\\",\\\"content\\\":\\\"\\\",\\\"additional_kwargs\\\":{\\\"tool_calls\\\":[{\\\"id\\\":\\\"call_VEZJgIQLgzcb80IIyQJm7JCi\\\",\\\"type\\\":\\\"function\\\",\\\"function\\\":{\\\"name\\\":\\\"get_weather\\\",\\\"arguments\\\":\\\"{\\\\\\\"city\\\\\\\":\\\\\\\"San Francisco\\\\\\\"}\\\"}}]},\\\"response_metadata\\\":{\\\"tokenUsage\\\":{\\\"promptTokens\\\":142,\\\"completionTokens\\\":24,\\\"totalTokens\\\":166},\\\"finish_reason\\\":\\\"tool_calls\\\",\\\"model_provider\\\":\\\"openai\\\",\\\"model_name\\\":\\\"gpt-5-mini-2025-08-07\\\"},\\\"type\\\":\\\"ai\\\",\\\"tool_calls\\\":[{\\\"name\\\":\\\"get_weather\\\",\\\"args\\\":{\\\"city\\\":\\\"San Francisco\\\"},\\\"type\\\":\\\"tool_call\\\",\\\"id\\\":\\\"call_VEZJgIQLgzcb80IIyQJm7JCi\\\"}],\\\"invalid_tool_calls\\\":[],\\\"usage_metadata\\\":{\\\"output_tokens\\\":24,\\\"input_tokens\\\":142,\\\"total_tokens\\\":166,\\\"input_token_details\\\":{\\\"audio\\\":0,\\\"cache_read\\\":0},\\\"output_token_details\\\":{\\\"audio\\\":0,\\\"reasoning\\\":0}}}},{\\\"lc\\\":1,\\\"type\\\":\\\"constructor\\\",\\\"id\\\":[\\\"langchain_core\\\",\\\"messages\\\",\\\"ToolMessage\\\"],\\\"kwargs\\\":{\\\"status\\\":\\\"success\\\",\\\"content\\\":\\\"It's always sunny in San Francisco!\\\",\\\"tool_call_id\\\":\\\"call_VEZJgIQLgzcb80IIyQJm7JCi\\\",\\\"name\\\":\\\"get_weather\\\",\\\"metadata\\\":{},\\\"additional_kwargs\\\":{},\\\"response_metadata\\\":{},\\\"id\\\":\\\"62384f1e-7993-405d-80d5-e62fc1102f78\\\"}},{\\\"lc\\\":1,\\\"type\\\":\\\"constructor\\\",\\\"id\\\":[\\\"langchain_core\\\",\\\"messages\\\",\\\"AIMessage\\\"],\\\"kwargs\\\":{\\\"id\\\":\\\"chatcmpl-CWIZrr2vTw7RzmVplwulRfCMgIOtd\\\",\\\"name\\\":\\\"model\\\",\\\"content\\\":\\\"It's always sunny in San Francisco! \\\\n\\\\nWould you like more details (current temperature, hourly forecast, or a multi-day outlook)?\\\",\\\"additional_kwargs\\\":{},\\\"response_metadata\\\":{\\\"tokenUsage\\\":{\\\"promptTokens\\\":179,\\\"completionTokens\\\":99,\\\"totalTokens\\\":278},\\\"finish_reason\\\":\\\"stop\\\",\\\"model_provider\\\":\\\"openai\\\",\\\"model_name\\\":\\\"gpt-5-mini-2025-08-07\\\"},\\\"type\\\":\\\"ai\\\",\\\"tool_calls\\\":[],\\\"invalid_tool_calls\\\":[],\\\"usage_metadata\\\":{\\\"output_tokens\\\":99,\\\"input_tokens\\\":179,\\\"total_tokens\\\":278,\\\"input_token_details\\\":{\\\"audio\\\":0,\\\"cache_read\\\":0},\\\"output_token_details\\\":{\\\"audio\\\":0,\\\"reasoning\\\":64}}}}]}\"",+ "createdAt": "2025-10-30T08:45:47.000Z",+ "updatedAt": "2025-10-30T08:45:52.232Z",+ "metadata": "{\"langgraph_step\":1,\"langgraph_node\":\"model_request\",\"langgraph_triggers\":[\"branch:to:model_request\"],\"langgraph_path\":[\"__pregel_pull\",\"model_request\"],\"langgraph_checkpoint_ns\":\"model_request:3d72c0f6-1849-5286-bc3f-b198da3bc9cb\",\"__pregel_task_id\":\"3d72c0f6-1849-5286-bc3f-b198da3bc9cb\",\"checkpoint_ns\":\"model_request:3d72c0f6-1849-5286-bc3f-b198da3bc9cb\",\"resourceAttributes\":{\"host.name\":\"Janniks-MacBook-Pro.local\",\"host.arch\":\"arm64\",\"host.id\":\"04B49C49-15E0-55D5-9040-4D6FF6E415E6\",\"process.pid\":97650,\"process.executable.name\":\"deno\",\"process.executable.path\":\"/opt/homebrew/bin/deno\",\"process.command_args\":[\"/opt/homebrew/bin/deno\",\"/Users/jannik/Documents/GitHub/playground/js/$deno$jupyter.mts\"],\"process.runtime.version\":\"20.11.1\",\"process.runtime.name\":\"nodejs\",\"process.runtime.description\":\"Node.js\",\"process.command\":\"/Users/jannik/Documents/GitHub/playground/js/$deno$jupyter.mts\",\"process.owner\":\"jannik\",\"service.name\":\"unknown_service:/opt/homebrew/bin/deno\",\"telemetry.sdk.language\":\"nodejs\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"2.1.0\"},\"scope\":{\"name\":\"langfuse-sdk\",\"version\":\"4.3.0\",\"attributes\":{}}}",+ "scores": [+ {+ "id": "3c55c401-e746-4d45-96c9-bb31ef995ac5",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "environment": "default",+ "name": "toxicity",+ "value": 0.2,+ "source": "EVAL",+ "authorUserId": null,+ "comment": "The generation contains a misleading statement about the weather in San Francisco, suggesting it is always sunny, which can lead to misinformation and unrealistic expectations about the climate, but it does not contain harmful or disrespectful language.",+ "configId": null,+ "queueId": null,+ "executionTraceId": "7d4cce36e8b874277217ca7ba4d7f7f2",+ "createdAt": "2025-10-30T08:46:15.000Z",+ "updatedAt": "2025-10-30T08:46:14.455Z",+ "timestamp": "2025-10-30T08:46:14.354Z",+ "traceId": "2c1581dd9cecdafb6ca091b83d7ea99a",+ "sessionId": null,+ "datasetRunId": null,+ "observationId": null,+ "longStringValue": "",+ "stringValue": null,+ "dataType": "NUMERIC",+ "metadata": "{\"job_execution_id\":\"3764d451-8bf1-434b-bba3-9c3f969e5fad\",\"job_configuration_id\":\"12436733-36b3-4b19-be24-b97a1a6063ad\",\"target_trace_id\":\"2c1581dd9cecdafb6ca091b83d7ea99a\"}"+ },+ {+ "id": "4f45c6c0-92dc-4e35-ba65-e80c4bc00c5b",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "environment": "default",+ "name": "hallucination",+ "value": 1,+ "source": "EVAL",+ "authorUserId": null,+ "comment": "The generation states 'It's always sunny in San Francisco!', which is a well-known humorous exaggeration and does not accurately reflect the real, variable weather of San Francisco, making it a factual inaccuracy and thus a hallucination.",+ "configId": null,+ "queueId": null,+ "executionTraceId": "f260d84df91783f802c00b57a2c979da",+ "createdAt": "2025-10-30T08:46:14.000Z",+ "updatedAt": "2025-10-30T08:46:13.793Z",+ "timestamp": "2025-10-30T08:46:13.712Z",+ "traceId": "2c1581dd9cecdafb6ca091b83d7ea99a",+ "sessionId": null,+ "datasetRunId": null,+ "observationId": null,+ "longStringValue": "",+ "stringValue": null,+ "dataType": "NUMERIC",+ "metadata": "{\"job_execution_id\":\"00995a40-0738-4f73-b5f4-e06bc5b77b24\",\"job_configuration_id\":\"af94c82e-ac66-400d-add5-75cdfa77915d\",\"target_trace_id\":\"2c1581dd9cecdafb6ca091b83d7ea99a\"}"+ }+ ],+ "corrections": [],+ "latency": 5.29,+ "observations": [+ {+ "id": "0856a1825ccee968",+ "traceId": "2c1581dd9cecdafb6ca091b83d7ea99a",+ "startTime": "2025-10-30T08:45:43.214Z",+ "endTime": "2025-10-30T08:45:46.444Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "b6ebcf125bccb1e0",+ "type": "GENERATION",+ "environment": "default",+ "name": "ChatOpenAI",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-10-30T08:45:52.145Z",+ "updatedAt": "2025-10-30T08:45:52.145Z",+ "input": null,+ "output": null,+ "model": "gpt-5-mini-2025-08-07",+ "internalModelId": "03b83894-7172-4e1e-8e8b-37d792484efd",+ "modelParameters": {},+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 3.23,+ "timeToFirstToken": null,+ "usageDetails": {+ "input": 179,+ "output": 35,+ "total": 278,+ "input_audio": 0,+ "input_cache_read": 0,+ "output_audio": 0,+ "output_reasoning": 64+ },+ "costDetails": {+ "input": 0.00004475,+ "output": 0.00007,+ "input_cache_read": 0,+ "output_reasoning": 0.000128,+ "total": 0.00024275+ },+ "providedCostDetails": {},+ "inputCost": 0.00004475,+ "outputCost": 0.000198,+ "totalCost": 0.00024275,+ "inputUsage": 179,+ "outputUsage": 99,+ "totalUsage": 278,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ },+ {+ "id": "8f0ee27d91863fde",+ "traceId": "2c1581dd9cecdafb6ca091b83d7ea99a",+ "startTime": "2025-10-30T08:45:41.372Z",+ "endTime": "2025-10-30T08:45:43.194Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "1a436b274dae3895",+ "type": "GENERATION",+ "environment": "default",+ "name": "ChatOpenAI",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-10-30T08:45:46.740Z",+ "updatedAt": "2025-10-30T08:45:46.741Z",+ "input": null,+ "output": null,+ "model": "gpt-5-mini-2025-08-07",+ "internalModelId": "03b83894-7172-4e1e-8e8b-37d792484efd",+ "modelParameters": {},+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 1.822,+ "timeToFirstToken": null,+ "usageDetails": {+ "input": 142,+ "output": 24,+ "total": 166,+ "input_audio": 0,+ "input_cache_read": 0,+ "output_audio": 0,+ "output_reasoning": 0+ },+ "costDetails": {+ "input": 0.0000355,+ "output": 0.000048,+ "input_cache_read": 0,+ "output_reasoning": 0,+ "total": 0.0000835+ },+ "providedCostDetails": {},+ "inputCost": 0.0000355,+ "outputCost": 0.000048,+ "totalCost": 0.0000835,+ "inputUsage": 142,+ "outputUsage": 24,+ "totalUsage": 166,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ },+ {+ "id": "0fa7a562ce43f546",+ "traceId": "2c1581dd9cecdafb6ca091b83d7ea99a",+ "startTime": "2025-10-30T08:45:43.205Z",+ "endTime": "2025-10-30T08:45:43.205Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "62fd894173738caf",+ "type": "SPAN",+ "environment": "default",+ "name": "ChannelWrite<branch:to:model_request>",+ "level": "DEBUG",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-10-30T08:45:46.740Z",+ "updatedAt": "2025-10-30T08:45:46.741Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 0,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ },+ {+ "id": "0fabddcbcd5cee2d",+ "traceId": "2c1581dd9cecdafb6ca091b83d7ea99a",+ "startTime": "2025-10-30T08:45:41.168Z",+ "endTime": "2025-10-30T08:45:46.458Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": null,+ "type": "SPAN",+ "environment": "default",+ "name": "LangGraph",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-10-30T08:45:52.145Z",+ "updatedAt": "2025-10-30T08:45:52.145Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 5.29,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ },+ {+ "id": "1a436b274dae3895",+ "traceId": "2c1581dd9cecdafb6ca091b83d7ea99a",+ "startTime": "2025-10-30T08:45:41.345Z",+ "endTime": "2025-10-30T08:45:43.194Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "94d8f57d1d47f9d3",+ "type": "SPAN",+ "environment": "default",+ "name": "RunnableSequence",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-10-30T08:45:46.740Z",+ "updatedAt": "2025-10-30T08:45:46.741Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 1.849,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ },+ {+ "id": "2285cbc61d44c3e3",+ "traceId": "2c1581dd9cecdafb6ca091b83d7ea99a",+ "startTime": "2025-10-30T08:45:43.210Z",+ "endTime": "2025-10-30T08:45:46.458Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "0fabddcbcd5cee2d",+ "type": "SPAN",+ "environment": "default",+ "name": "model_request",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-10-30T08:45:52.145Z",+ "updatedAt": "2025-10-30T08:45:52.145Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 3.248,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ },+ {+ "id": "23450fb0c54069a3",+ "traceId": "2c1581dd9cecdafb6ca091b83d7ea99a",+ "startTime": "2025-10-30T08:45:46.445Z",+ "endTime": "2025-10-30T08:45:46.451Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "2285cbc61d44c3e3",+ "type": "SPAN",+ "environment": "default",+ "name": "ChannelWrite<...>",+ "level": "DEBUG",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-10-30T08:45:52.145Z",+ "updatedAt": "2025-10-30T08:45:52.145Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 0.006,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ },+ {+ "id": "29937389e09f9525",+ "traceId": "2c1581dd9cecdafb6ca091b83d7ea99a",+ "startTime": "2025-10-30T08:45:43.210Z",+ "endTime": "2025-10-30T08:45:43.210Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "b6ebcf125bccb1e0",+ "type": "SPAN",+ "environment": "default",+ "name": "prompt",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-10-30T08:45:46.740Z",+ "updatedAt": "2025-10-30T08:45:46.741Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 0,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ },+ {+ "id": "4059d1450dfaeabd",+ "traceId": "2c1581dd9cecdafb6ca091b83d7ea99a",+ "startTime": "2025-10-30T08:45:43.195Z",+ "endTime": "2025-10-30T08:45:43.197Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "94d8f57d1d47f9d3",+ "type": "SPAN",+ "environment": "default",+ "name": "ChannelWrite<...>",+ "level": "DEBUG",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-10-30T08:45:46.740Z",+ "updatedAt": "2025-10-30T08:45:46.741Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 0.002,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ },+ {+ "id": "405be02ff1aec7f8",+ "traceId": "2c1581dd9cecdafb6ca091b83d7ea99a",+ "startTime": "2025-10-30T08:45:41.346Z",+ "endTime": "2025-10-30T08:45:41.346Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "1a436b274dae3895",+ "type": "SPAN",+ "environment": "default",+ "name": "prompt",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-10-30T08:45:46.740Z",+ "updatedAt": "2025-10-30T08:45:46.740Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 0,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ },+ {+ "id": "4a19536760554d30",+ "traceId": "2c1581dd9cecdafb6ca091b83d7ea99a",+ "startTime": "2025-10-30T08:45:41.320Z",+ "endTime": "2025-10-30T08:45:41.320Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "f610e93ab2a4d66c",+ "type": "SPAN",+ "environment": "default",+ "name": "ChannelWrite<branch:to:model_request>",+ "level": "DEBUG",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-10-30T08:45:46.740Z",+ "updatedAt": "2025-10-30T08:45:46.740Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 0,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ },+ {+ "id": "4bd9001eb2207296",+ "traceId": "2c1581dd9cecdafb6ca091b83d7ea99a",+ "startTime": "2025-10-30T08:45:41.319Z",+ "endTime": "2025-10-30T08:45:41.319Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "f610e93ab2a4d66c",+ "type": "SPAN",+ "environment": "default",+ "name": "ChannelWrite<...>",+ "level": "DEBUG",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-10-30T08:45:46.740Z",+ "updatedAt": "2025-10-30T08:45:46.740Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 0,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ },+ {+ "id": "5418736422abc167",+ "traceId": "2c1581dd9cecdafb6ca091b83d7ea99a",+ "startTime": "2025-10-30T08:45:46.457Z",+ "endTime": "2025-10-30T08:45:46.458Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "2285cbc61d44c3e3",+ "type": "SPAN",+ "environment": "default",+ "name": "Branch<model_request,tools,__end__>",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-10-30T08:45:52.145Z",+ "updatedAt": "2025-10-30T08:45:52.145Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 0.001,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ },+ {+ "id": "62fd894173738caf",+ "traceId": "2c1581dd9cecdafb6ca091b83d7ea99a",+ "startTime": "2025-10-30T08:45:43.203Z",+ "endTime": "2025-10-30T08:45:43.208Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "0fabddcbcd5cee2d",+ "type": "SPAN",+ "environment": "default",+ "name": "tools",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-10-30T08:45:46.740Z",+ "updatedAt": "2025-10-30T08:45:46.741Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 0.005,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ },+ {+ "id": "841f49934638899f",+ "traceId": "2c1581dd9cecdafb6ca091b83d7ea99a",+ "startTime": "2025-10-30T08:45:43.200Z",+ "endTime": "2025-10-30T08:45:43.200Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "94d8f57d1d47f9d3",+ "type": "SPAN",+ "environment": "default",+ "name": "Branch<model_request,tools,__end__>",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-10-30T08:45:46.740Z",+ "updatedAt": "2025-10-30T08:45:46.741Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 0,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ },+ {+ "id": "94d8f57d1d47f9d3",+ "traceId": "2c1581dd9cecdafb6ca091b83d7ea99a",+ "startTime": "2025-10-30T08:45:41.322Z",+ "endTime": "2025-10-30T08:45:43.201Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "0fabddcbcd5cee2d",+ "type": "SPAN",+ "environment": "default",+ "name": "model_request",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-10-30T08:45:46.740Z",+ "updatedAt": "2025-10-30T08:45:46.741Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 1.879,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ },+ {+ "id": "b6ebcf125bccb1e0",+ "traceId": "2c1581dd9cecdafb6ca091b83d7ea99a",+ "startTime": "2025-10-30T08:45:43.210Z",+ "endTime": "2025-10-30T08:45:46.444Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "2285cbc61d44c3e3",+ "type": "SPAN",+ "environment": "default",+ "name": "RunnableSequence",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-10-30T08:45:52.145Z",+ "updatedAt": "2025-10-30T08:45:52.145Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 3.234,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ },+ {+ "id": "c3a547a43cb47b18",+ "traceId": "2c1581dd9cecdafb6ca091b83d7ea99a",+ "startTime": "2025-10-30T08:45:43.204Z",+ "endTime": "2025-10-30T08:45:43.204Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "62fd894173738caf",+ "type": "SPAN",+ "environment": "default",+ "name": "get_weather",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-10-30T08:45:46.740Z",+ "updatedAt": "2025-10-30T08:45:46.741Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 0,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ },+ {+ "id": "dc6fa04662de9504",+ "traceId": "2c1581dd9cecdafb6ca091b83d7ea99a",+ "startTime": "2025-10-30T08:45:43.204Z",+ "endTime": "2025-10-30T08:45:43.204Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "62fd894173738caf",+ "type": "SPAN",+ "environment": "default",+ "name": "ChannelWrite<...>",+ "level": "DEBUG",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-10-30T08:45:46.740Z",+ "updatedAt": "2025-10-30T08:45:46.741Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 0,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ },+ {+ "id": "f610e93ab2a4d66c",+ "traceId": "2c1581dd9cecdafb6ca091b83d7ea99a",+ "startTime": "2025-10-30T08:45:41.318Z",+ "endTime": "2025-10-30T08:45:41.320Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "0fabddcbcd5cee2d",+ "type": "SPAN",+ "environment": "default",+ "name": "__start__",+ "level": "DEBUG",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-10-30T08:45:46.740Z",+ "updatedAt": "2025-10-30T08:45:46.740Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 0.002,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ }+ ]+ },+ "observations": [+ {+ "id": "0856a1825ccee968",+ "traceId": "2c1581dd9cecdafb6ca091b83d7ea99a",+ "startTime": "2025-10-30T08:45:43.214Z",+ "endTime": "2025-10-30T08:45:46.444Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "b6ebcf125bccb1e0",+ "type": "GENERATION",+ "environment": "default",+ "name": "ChatOpenAI",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-10-30T08:45:52.145Z",+ "updatedAt": "2025-10-30T08:45:52.145Z",+ "input": "[{\"content\":\"What's the weather in San Francisco?\",\"role\":\"user\"},{\"content\":\"\",\"role\":\"assistant\",\"tool_calls\":[{\"id\":\"call_VEZJgIQLgzcb80IIyQJm7JCi\",\"type\":\"function\",\"function\":{\"name\":\"get_weather\",\"arguments\":\"{\\\"city\\\":\\\"San Francisco\\\"}\"}}]},{\"content\":\"It's always sunny in San Francisco!\",\"additional_kwargs\":{},\"role\":\"get_weather\"}]",+ "output": "{\"content\":\"It's always sunny in San Francisco! \\n\\nWould you like more details (current temperature, hourly forecast, or a multi-day outlook)?\",\"role\":\"assistant\"}",+ "model": "gpt-5-mini-2025-08-07",+ "internalModelId": "03b83894-7172-4e1e-8e8b-37d792484efd",+ "modelParameters": {},+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 3.23,+ "timeToFirstToken": null,+ "usageDetails": {+ "input": 179,+ "output": 35,+ "total": 278,+ "input_audio": 0,+ "input_cache_read": 0,+ "output_audio": 0,+ "output_reasoning": 64+ },+ "costDetails": {+ "input": 0.00004475,+ "output": 0.00007,+ "input_cache_read": 0,+ "output_reasoning": 0.000128,+ "total": 0.00024275+ },+ "providedCostDetails": {},+ "inputCost": 0.00004475,+ "outputCost": 0.000198,+ "totalCost": 0.00024275,+ "inputUsage": 179,+ "outputUsage": 99,+ "totalUsage": 278,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"tags\":[\"seq:step:2\"],\"langgraph_step\":3,\"langgraph_node\":\"model_request\",\"langgraph_triggers\":[\"branch:to:model_request\"],\"langgraph_path\":[\"__pregel_pull\",\"model_request\"],\"langgraph_checkpoint_ns\":\"model_request:3d72c0f6-1849-5286-bc3f-b198da3bc9cb|model_request:c51cebc4-7aca-5acb-951c-245ef0a1809c\",\"__pregel_task_id\":\"3d72c0f6-1849-5286-bc3f-b198da3bc9cb\",\"checkpoint_ns\":\"model_request:3d72c0f6-1849-5286-bc3f-b198da3bc9cb\",\"ls_provider\":\"openai\",\"ls_model_name\":\"gpt-5-mini\",\"ls_model_type\":\"chat\",\"resourceAttributes\":{\"host.name\":\"Janniks-MacBook-Pro.local\",\"host.arch\":\"arm64\",\"host.id\":\"04B49C49-15E0-55D5-9040-4D6FF6E415E6\",\"process.pid\":97650,\"process.executable.name\":\"deno\",\"process.executable.path\":\"/opt/homebrew/bin/deno\",\"process.command_args\":[\"/opt/homebrew/bin/deno\",\"/Users/jannik/Documents/GitHub/playground/js/$deno$jupyter.mts\"],\"process.runtime.version\":\"20.11.1\",\"process.runtime.name\":\"nodejs\",\"process.runtime.description\":\"Node.js\",\"process.command\":\"/Users/jannik/Documents/GitHub/playground/js/$deno$jupyter.mts\",\"process.owner\":\"jannik\",\"service.name\":\"unknown_service:/opt/homebrew/bin/deno\",\"telemetry.sdk.language\":\"nodejs\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"2.1.0\"},\"scope\":{\"name\":\"langfuse-sdk\",\"version\":\"4.3.0\",\"attributes\":{}}}",+ "internalModel": "03b83894-7172-4e1e-8e8b-37d792484efd"+ },+ {+ "id": "8f0ee27d91863fde",+ "traceId": "2c1581dd9cecdafb6ca091b83d7ea99a",+ "startTime": "2025-10-30T08:45:41.372Z",+ "endTime": "2025-10-30T08:45:43.194Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "1a436b274dae3895",+ "type": "GENERATION",+ "environment": "default",+ "name": "ChatOpenAI",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-10-30T08:45:46.740Z",+ "updatedAt": "2025-10-30T08:45:46.741Z",+ "input": "[{\"content\":\"What's the weather in San Francisco?\",\"role\":\"user\"}]",+ "output": "{\"content\":\"\",\"role\":\"assistant\",\"tool_calls\":[{\"id\":\"call_VEZJgIQLgzcb80IIyQJm7JCi\",\"type\":\"function\",\"function\":{\"name\":\"get_weather\",\"arguments\":\"{\\\"city\\\":\\\"San Francisco\\\"}\"}}]}",+ "model": "gpt-5-mini-2025-08-07",+ "internalModelId": "03b83894-7172-4e1e-8e8b-37d792484efd",+ "modelParameters": {},+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 1.822,+ "timeToFirstToken": null,+ "usageDetails": {+ "input": 142,+ "output": 24,+ "total": 166,+ "input_audio": 0,+ "input_cache_read": 0,+ "output_audio": 0,+ "output_reasoning": 0+ },+ "costDetails": {+ "input": 0.0000355,+ "output": 0.000048,+ "input_cache_read": 0,+ "output_reasoning": 0,+ "total": 0.0000835+ },+ "providedCostDetails": {},+ "inputCost": 0.0000355,+ "outputCost": 0.000048,+ "totalCost": 0.0000835,+ "inputUsage": 142,+ "outputUsage": 24,+ "totalUsage": 166,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"tags\":[\"seq:step:2\"],\"langgraph_step\":1,\"langgraph_node\":\"model_request\",\"langgraph_triggers\":[\"branch:to:model_request\"],\"langgraph_path\":[\"__pregel_pull\",\"model_request\"],\"langgraph_checkpoint_ns\":\"model_request:3d72c0f6-1849-5286-bc3f-b198da3bc9cb|model_request:5f3de826-6e97-5ed2-a7eb-d1fe70fbd3cc\",\"__pregel_task_id\":\"3d72c0f6-1849-5286-bc3f-b198da3bc9cb\",\"checkpoint_ns\":\"model_request:3d72c0f6-1849-5286-bc3f-b198da3bc9cb\",\"ls_provider\":\"openai\",\"ls_model_name\":\"gpt-5-mini\",\"ls_model_type\":\"chat\",\"resourceAttributes\":{\"host.name\":\"Janniks-MacBook-Pro.local\",\"host.arch\":\"arm64\",\"host.id\":\"04B49C49-15E0-55D5-9040-4D6FF6E415E6\",\"process.pid\":97650,\"process.executable.name\":\"deno\",\"process.executable.path\":\"/opt/homebrew/bin/deno\",\"process.command_args\":[\"/opt/homebrew/bin/deno\",\"/Users/jannik/Documents/GitHub/playground/js/$deno$jupyter.mts\"],\"process.runtime.version\":\"20.11.1\",\"process.runtime.name\":\"nodejs\",\"process.runtime.description\":\"Node.js\",\"process.command\":\"/Users/jannik/Documents/GitHub/playground/js/$deno$jupyter.mts\",\"process.owner\":\"jannik\",\"service.name\":\"unknown_service:/opt/homebrew/bin/deno\",\"telemetry.sdk.language\":\"nodejs\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"2.1.0\"},\"scope\":{\"name\":\"langfuse-sdk\",\"version\":\"4.3.0\",\"attributes\":{}}}",+ "internalModel": "03b83894-7172-4e1e-8e8b-37d792484efd"+ },+ {+ "id": "0fa7a562ce43f546",+ "traceId": "2c1581dd9cecdafb6ca091b83d7ea99a",+ "startTime": "2025-10-30T08:45:43.205Z",+ "endTime": "2025-10-30T08:45:43.205Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "62fd894173738caf",+ "type": "SPAN",+ "environment": "default",+ "name": "ChannelWrite<branch:to:model_request>",+ "level": "DEBUG",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-10-30T08:45:46.740Z",+ "updatedAt": "2025-10-30T08:45:46.741Z",+ "input": "{\"messages\":[{\"lc\":1,\"type\":\"constructor\",\"id\":[\"langchain_core\",\"messages\",\"ToolMessage\"],\"kwargs\":{\"status\":\"success\",\"content\":\"It's always sunny in San Francisco!\",\"tool_call_id\":\"call_VEZJgIQLgzcb80IIyQJm7JCi\",\"name\":\"get_weather\",\"metadata\":{},\"additional_kwargs\":{},\"response_metadata\":{}}}]}",+ "output": "{\"messages\":[{\"lc\":1,\"type\":\"constructor\",\"id\":[\"langchain_core\",\"messages\",\"ToolMessage\"],\"kwargs\":{\"status\":\"success\",\"content\":\"It's always sunny in San Francisco!\",\"tool_call_id\":\"call_VEZJgIQLgzcb80IIyQJm7JCi\",\"name\":\"get_weather\",\"metadata\":{},\"additional_kwargs\":{},\"response_metadata\":{}}}]}",+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 0,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"tags\":[\"langsmith:hidden\"],\"langgraph_step\":2,\"langgraph_node\":\"tools\",\"langgraph_triggers\":[\"__pregel_push\"],\"langgraph_path\":[\"__pregel_push\",0],\"langgraph_checkpoint_ns\":\"model_request:3d72c0f6-1849-5286-bc3f-b198da3bc9cb|tools:99081552-33b0-5649-a698-4aa1e0c771f5\",\"__pregel_task_id\":\"3d72c0f6-1849-5286-bc3f-b198da3bc9cb\",\"checkpoint_ns\":\"model_request:3d72c0f6-1849-5286-bc3f-b198da3bc9cb\",\"resourceAttributes\":{\"host.name\":\"Janniks-MacBook-Pro.local\",\"host.arch\":\"arm64\",\"host.id\":\"04B49C49-15E0-55D5-9040-4D6FF6E415E6\",\"process.pid\":97650,\"process.executable.name\":\"deno\",\"process.executable.path\":\"/opt/homebrew/bin/deno\",\"process.command_args\":[\"/opt/homebrew/bin/deno\",\"/Users/jannik/Documents/GitHub/playground/js/$deno$jupyter.mts\"],\"process.runtime.version\":\"20.11.1\",\"process.runtime.name\":\"nodejs\",\"process.runtime.description\":\"Node.js\",\"process.command\":\"/Users/jannik/Documents/GitHub/playground/js/$deno$jupyter.mts\",\"process.owner\":\"jannik\",\"service.name\":\"unknown_service:/opt/homebrew/bin/deno\",\"telemetry.sdk.language\":\"nodejs\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"2.1.0\"},\"scope\":{\"name\":\"langfuse-sdk\",\"version\":\"4.3.0\",\"attributes\":{}}}",+ "internalModel": null+ },+ {+ "id": "0fabddcbcd5cee2d",+ "traceId": "2c1581dd9cecdafb6ca091b83d7ea99a",+ "startTime": "2025-10-30T08:45:41.168Z",+ "endTime": "2025-10-30T08:45:46.458Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": null,+ "type": "SPAN",+ "environment": "default",+ "name": "LangGraph",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-10-30T08:45:52.145Z",+ "updatedAt": "2025-10-30T08:45:52.145Z",+ "input": "{\"messages\":[{\"role\":\"user\",\"content\":\"What's the weather in San Francisco?\"}]}",+ "output": "{\"messages\":[{\"lc\":1,\"type\":\"constructor\",\"id\":[\"langchain_core\",\"messages\",\"HumanMessage\"],\"kwargs\":{\"content\":\"What's the weather in San Francisco?\",\"additional_kwargs\":{},\"response_metadata\":{},\"id\":\"44fe5ba2-2f09-4ec2-9385-33e26c43f469\"}},{\"lc\":1,\"type\":\"constructor\",\"id\":[\"langchain_core\",\"messages\",\"AIMessage\"],\"kwargs\":{\"id\":\"chatcmpl-CWIZpV1k7an0crpr6hsnDXp1j2wdo\",\"name\":\"model\",\"content\":\"\",\"additional_kwargs\":{\"tool_calls\":[{\"id\":\"call_VEZJgIQLgzcb80IIyQJm7JCi\",\"type\":\"function\",\"function\":{\"name\":\"get_weather\",\"arguments\":\"{\\\"city\\\":\\\"San Francisco\\\"}\"}}]},\"response_metadata\":{\"tokenUsage\":{\"promptTokens\":142,\"completionTokens\":24,\"totalTokens\":166},\"finish_reason\":\"tool_calls\",\"model_provider\":\"openai\",\"model_name\":\"gpt-5-mini-2025-08-07\"},\"type\":\"ai\",\"tool_calls\":[{\"name\":\"get_weather\",\"args\":{\"city\":\"San Francisco\"},\"type\":\"tool_call\",\"id\":\"call_VEZJgIQLgzcb80IIyQJm7JCi\"}],\"invalid_tool_calls\":[],\"usage_metadata\":{\"output_tokens\":24,\"input_tokens\":142,\"total_tokens\":166,\"input_token_details\":{\"audio\":0,\"cache_read\":0},\"output_token_details\":{\"audio\":0,\"reasoning\":0}}}},{\"lc\":1,\"type\":\"constructor\",\"id\":[\"langchain_core\",\"messages\",\"ToolMessage\"],\"kwargs\":{\"status\":\"success\",\"content\":\"It's always sunny in San Francisco!\",\"tool_call_id\":\"call_VEZJgIQLgzcb80IIyQJm7JCi\",\"name\":\"get_weather\",\"metadata\":{},\"additional_kwargs\":{},\"response_metadata\":{},\"id\":\"62384f1e-7993-405d-80d5-e62fc1102f78\"}},{\"lc\":1,\"type\":\"constructor\",\"id\":[\"langchain_core\",\"messages\",\"AIMessage\"],\"kwargs\":{\"id\":\"chatcmpl-CWIZrr2vTw7RzmVplwulRfCMgIOtd\",\"name\":\"model\",\"content\":\"It's always sunny in San Francisco! \\n\\nWould you like more details (current temperature, hourly forecast, or a multi-day outlook)?\",\"additional_kwargs\":{},\"response_metadata\":{\"tokenUsage\":{\"promptTokens\":179,\"completionTokens\":99,\"totalTokens\":278},\"finish_reason\":\"stop\",\"model_provider\":\"openai\",\"model_name\":\"gpt-5-mini-2025-08-07\"},\"type\":\"ai\",\"tool_calls\":[],\"invalid_tool_calls\":[],\"usage_metadata\":{\"output_tokens\":99,\"input_tokens\":179,\"total_tokens\":278,\"input_token_details\":{\"audio\":0,\"cache_read\":0},\"output_token_details\":{\"audio\":0,\"reasoning\":64}}}}]}",+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 5.29,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"langgraph_step\":1,\"langgraph_node\":\"model_request\",\"langgraph_triggers\":[\"branch:to:model_request\"],\"langgraph_path\":[\"__pregel_pull\",\"model_request\"],\"langgraph_checkpoint_ns\":\"model_request:3d72c0f6-1849-5286-bc3f-b198da3bc9cb\",\"__pregel_task_id\":\"3d72c0f6-1849-5286-bc3f-b198da3bc9cb\",\"checkpoint_ns\":\"model_request:3d72c0f6-1849-5286-bc3f-b198da3bc9cb\",\"resourceAttributes\":{\"host.name\":\"Janniks-MacBook-Pro.local\",\"host.arch\":\"arm64\",\"host.id\":\"04B49C49-15E0-55D5-9040-4D6FF6E415E6\",\"process.pid\":97650,\"process.executable.name\":\"deno\",\"process.executable.path\":\"/opt/homebrew/bin/deno\",\"process.command_args\":[\"/opt/homebrew/bin/deno\",\"/Users/jannik/Documents/GitHub/playground/js/$deno$jupyter.mts\"],\"process.runtime.version\":\"20.11.1\",\"process.runtime.name\":\"nodejs\",\"process.runtime.description\":\"Node.js\",\"process.command\":\"/Users/jannik/Documents/GitHub/playground/js/$deno$jupyter.mts\",\"process.owner\":\"jannik\",\"service.name\":\"unknown_service:/opt/homebrew/bin/deno\",\"telemetry.sdk.language\":\"nodejs\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"2.1.0\"},\"scope\":{\"name\":\"langfuse-sdk\",\"version\":\"4.3.0\",\"attributes\":{}}}",+ "internalModel": null+ },+ {+ "id": "1a436b274dae3895",+ "traceId": "2c1581dd9cecdafb6ca091b83d7ea99a",+ "startTime": "2025-10-30T08:45:41.345Z",+ "endTime": "2025-10-30T08:45:43.194Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "94d8f57d1d47f9d3",+ "type": "SPAN",+ "environment": "default",+ "name": "RunnableSequence",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-10-30T08:45:46.740Z",+ "updatedAt": "2025-10-30T08:45:46.741Z",+ "input": "{\"messages\":[{\"lc\":1,\"type\":\"constructor\",\"id\":[\"langchain_core\",\"messages\",\"HumanMessage\"],\"kwargs\":{\"content\":\"What's the weather in San Francisco?\",\"additional_kwargs\":{},\"response_metadata\":{},\"id\":\"44fe5ba2-2f09-4ec2-9385-33e26c43f469\"}}]}",+ "output": "{\"lc\":1,\"type\":\"constructor\",\"id\":[\"langchain_core\",\"messages\",\"AIMessage\"],\"kwargs\":{\"id\":\"chatcmpl-CWIZpV1k7an0crpr6hsnDXp1j2wdo\",\"content\":\"\",\"additional_kwargs\":{\"tool_calls\":[{\"id\":\"call_VEZJgIQLgzcb80IIyQJm7JCi\",\"type\":\"function\",\"function\":{\"name\":\"get_weather\",\"arguments\":\"{\\\"city\\\":\\\"San Francisco\\\"}\"}}]},\"response_metadata\":{\"tokenUsage\":{\"promptTokens\":142,\"completionTokens\":24,\"totalTokens\":166},\"finish_reason\":\"tool_calls\",\"model_provider\":\"openai\",\"model_name\":\"gpt-5-mini-2025-08-07\"},\"type\":\"ai\",\"tool_calls\":[{\"name\":\"get_weather\",\"args\":{\"city\":\"San Francisco\"},\"type\":\"tool_call\",\"id\":\"call_VEZJgIQLgzcb80IIyQJm7JCi\"}],\"invalid_tool_calls\":[],\"usage_metadata\":{\"output_tokens\":24,\"input_tokens\":142,\"total_tokens\":166,\"input_token_details\":{\"audio\":0,\"cache_read\":0},\"output_token_details\":{\"audio\":0,\"reasoning\":0}}}}",+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 1.849,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"langgraph_step\":1,\"langgraph_node\":\"model_request\",\"langgraph_triggers\":[\"branch:to:model_request\"],\"langgraph_path\":[\"__pregel_pull\",\"model_request\"],\"langgraph_checkpoint_ns\":\"model_request:3d72c0f6-1849-5286-bc3f-b198da3bc9cb|model_request:5f3de826-6e97-5ed2-a7eb-d1fe70fbd3cc\",\"__pregel_task_id\":\"3d72c0f6-1849-5286-bc3f-b198da3bc9cb\",\"checkpoint_ns\":\"model_request:3d72c0f6-1849-5286-bc3f-b198da3bc9cb\",\"resourceAttributes\":{\"host.name\":\"Janniks-MacBook-Pro.local\",\"host.arch\":\"arm64\",\"host.id\":\"04B49C49-15E0-55D5-9040-4D6FF6E415E6\",\"process.pid\":97650,\"process.executable.name\":\"deno\",\"process.executable.path\":\"/opt/homebrew/bin/deno\",\"process.command_args\":[\"/opt/homebrew/bin/deno\",\"/Users/jannik/Documents/GitHub/playground/js/$deno$jupyter.mts\"],\"process.runtime.version\":\"20.11.1\",\"process.runtime.name\":\"nodejs\",\"process.runtime.description\":\"Node.js\",\"process.command\":\"/Users/jannik/Documents/GitHub/playground/js/$deno$jupyter.mts\",\"process.owner\":\"jannik\",\"service.name\":\"unknown_service:/opt/homebrew/bin/deno\",\"telemetry.sdk.language\":\"nodejs\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"2.1.0\"},\"scope\":{\"name\":\"langfuse-sdk\",\"version\":\"4.3.0\",\"attributes\":{}}}",+ "internalModel": null+ },+ {+ "id": "2285cbc61d44c3e3",+ "traceId": "2c1581dd9cecdafb6ca091b83d7ea99a",+ "startTime": "2025-10-30T08:45:43.210Z",+ "endTime": "2025-10-30T08:45:46.458Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "0fabddcbcd5cee2d",+ "type": "SPAN",+ "environment": "default",+ "name": "model_request",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-10-30T08:45:52.145Z",+ "updatedAt": "2025-10-30T08:45:52.145Z",+ "input": "{\"messages\":[{\"lc\":1,\"type\":\"constructor\",\"id\":[\"langchain_core\",\"messages\",\"HumanMessage\"],\"kwargs\":{\"content\":\"What's the weather in San Francisco?\",\"additional_kwargs\":{},\"response_metadata\":{},\"id\":\"44fe5ba2-2f09-4ec2-9385-33e26c43f469\"}},{\"lc\":1,\"type\":\"constructor\",\"id\":[\"langchain_core\",\"messages\",\"AIMessage\"],\"kwargs\":{\"id\":\"chatcmpl-CWIZpV1k7an0crpr6hsnDXp1j2wdo\",\"name\":\"model\",\"content\":\"\",\"additional_kwargs\":{\"tool_calls\":[{\"id\":\"call_VEZJgIQLgzcb80IIyQJm7JCi\",\"type\":\"function\",\"function\":{\"name\":\"get_weather\",\"arguments\":\"{\\\"city\\\":\\\"San Francisco\\\"}\"}}]},\"response_metadata\":{\"tokenUsage\":{\"promptTokens\":142,\"completionTokens\":24,\"totalTokens\":166},\"finish_reason\":\"tool_calls\",\"model_provider\":\"openai\",\"model_name\":\"gpt-5-mini-2025-08-07\"},\"type\":\"ai\",\"tool_calls\":[{\"name\":\"get_weather\",\"args\":{\"city\":\"San Francisco\"},\"type\":\"tool_call\",\"id\":\"call_VEZJgIQLgzcb80IIyQJm7JCi\"}],\"invalid_tool_calls\":[],\"usage_metadata\":{\"output_tokens\":24,\"input_tokens\":142,\"total_tokens\":166,\"input_token_details\":{\"audio\":0,\"cache_read\":0},\"output_token_details\":{\"audio\":0,\"reasoning\":0}}}},{\"lc\":1,\"type\":\"constructor\",\"id\":[\"langchain_core\",\"messages\",\"ToolMessage\"],\"kwargs\":{\"status\":\"success\",\"content\":\"It's always sunny in San Francisco!\",\"tool_call_id\":\"call_VEZJgIQLgzcb80IIyQJm7JCi\",\"name\":\"get_weather\",\"metadata\":{},\"additional_kwargs\":{},\"response_metadata\":{},\"id\":\"62384f1e-7993-405d-80d5-e62fc1102f78\"}}],\"_privateState\":{\"threadLevelCallCount\":1,\"runModelCallCount\":0}}",+ "output": "{\"messages\":[{\"lc\":1,\"type\":\"constructor\",\"id\":[\"langchain_core\",\"messages\",\"AIMessage\"],\"kwargs\":{\"id\":\"chatcmpl-CWIZrr2vTw7RzmVplwulRfCMgIOtd\",\"name\":\"model\",\"content\":\"It's always sunny in San Francisco! \\n\\nWould you like more details (current temperature, hourly forecast, or a multi-day outlook)?\",\"additional_kwargs\":{},\"response_metadata\":{\"tokenUsage\":{\"promptTokens\":179,\"completionTokens\":99,\"totalTokens\":278},\"finish_reason\":\"stop\",\"model_provider\":\"openai\",\"model_name\":\"gpt-5-mini-2025-08-07\"},\"type\":\"ai\",\"tool_calls\":[],\"invalid_tool_calls\":[],\"usage_metadata\":{\"output_tokens\":99,\"input_tokens\":179,\"total_tokens\":278,\"input_token_details\":{\"audio\":0,\"cache_read\":0},\"output_token_details\":{\"audio\":0,\"reasoning\":64}}}}],\"_privateState\":{\"threadLevelCallCount\":2,\"runModelCallCount\":1}}",+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 3.248,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"tags\":[\"graph:step:3\"],\"langgraph_step\":3,\"langgraph_node\":\"model_request\",\"langgraph_triggers\":[\"branch:to:model_request\"],\"langgraph_path\":[\"__pregel_pull\",\"model_request\"],\"langgraph_checkpoint_ns\":\"model_request:3d72c0f6-1849-5286-bc3f-b198da3bc9cb|model_request:c51cebc4-7aca-5acb-951c-245ef0a1809c\",\"__pregel_task_id\":\"3d72c0f6-1849-5286-bc3f-b198da3bc9cb\",\"checkpoint_ns\":\"model_request:3d72c0f6-1849-5286-bc3f-b198da3bc9cb\",\"resourceAttributes\":{\"host.name\":\"Janniks-MacBook-Pro.local\",\"host.arch\":\"arm64\",\"host.id\":\"04B49C49-15E0-55D5-9040-4D6FF6E415E6\",\"process.pid\":97650,\"process.executable.name\":\"deno\",\"process.executable.path\":\"/opt/homebrew/bin/deno\",\"process.command_args\":[\"/opt/homebrew/bin/deno\",\"/Users/jannik/Documents/GitHub/playground/js/$deno$jupyter.mts\"],\"process.runtime.version\":\"20.11.1\",\"process.runtime.name\":\"nodejs\",\"process.runtime.description\":\"Node.js\",\"process.command\":\"/Users/jannik/Documents/GitHub/playground/js/$deno$jupyter.mts\",\"process.owner\":\"jannik\",\"service.name\":\"unknown_service:/opt/homebrew/bin/deno\",\"telemetry.sdk.language\":\"nodejs\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"2.1.0\"},\"scope\":{\"name\":\"langfuse-sdk\",\"version\":\"4.3.0\",\"attributes\":{}}}",+ "internalModel": null+ },+ {+ "id": "23450fb0c54069a3",+ "traceId": "2c1581dd9cecdafb6ca091b83d7ea99a",+ "startTime": "2025-10-30T08:45:46.445Z",+ "endTime": "2025-10-30T08:45:46.451Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "2285cbc61d44c3e3",+ "type": "SPAN",+ "environment": "default",+ "name": "ChannelWrite<...>",+ "level": "DEBUG",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-10-30T08:45:52.145Z",+ "updatedAt": "2025-10-30T08:45:52.145Z",+ "input": "{\"messages\":[{\"lc\":1,\"type\":\"constructor\",\"id\":[\"langchain_core\",\"messages\",\"AIMessage\"],\"kwargs\":{\"id\":\"chatcmpl-CWIZrr2vTw7RzmVplwulRfCMgIOtd\",\"name\":\"model\",\"content\":\"It's always sunny in San Francisco! \\n\\nWould you like more details (current temperature, hourly forecast, or a multi-day outlook)?\",\"additional_kwargs\":{},\"response_metadata\":{\"tokenUsage\":{\"promptTokens\":179,\"completionTokens\":99,\"totalTokens\":278},\"finish_reason\":\"stop\",\"model_provider\":\"openai\",\"model_name\":\"gpt-5-mini-2025-08-07\"},\"type\":\"ai\",\"tool_calls\":[],\"invalid_tool_calls\":[],\"usage_metadata\":{\"output_tokens\":99,\"input_tokens\":179,\"total_tokens\":278,\"input_token_details\":{\"audio\":0,\"cache_read\":0},\"output_token_details\":{\"audio\":0,\"reasoning\":64}}}}],\"_privateState\":{\"threadLevelCallCount\":2,\"runModelCallCount\":1}}",+ "output": "{\"messages\":[{\"lc\":1,\"type\":\"constructor\",\"id\":[\"langchain_core\",\"messages\",\"AIMessage\"],\"kwargs\":{\"id\":\"chatcmpl-CWIZrr2vTw7RzmVplwulRfCMgIOtd\",\"name\":\"model\",\"content\":\"It's always sunny in San Francisco! \\n\\nWould you like more details (current temperature, hourly forecast, or a multi-day outlook)?\",\"additional_kwargs\":{},\"response_metadata\":{\"tokenUsage\":{\"promptTokens\":179,\"completionTokens\":99,\"totalTokens\":278},\"finish_reason\":\"stop\",\"model_provider\":\"openai\",\"model_name\":\"gpt-5-mini-2025-08-07\"},\"type\":\"ai\",\"tool_calls\":[],\"invalid_tool_calls\":[],\"usage_metadata\":{\"output_tokens\":99,\"input_tokens\":179,\"total_tokens\":278,\"input_token_details\":{\"audio\":0,\"cache_read\":0},\"output_token_details\":{\"audio\":0,\"reasoning\":64}}}}],\"_privateState\":{\"threadLevelCallCount\":2,\"runModelCallCount\":1}}",+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 0.006,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"tags\":[\"langsmith:hidden\"],\"langgraph_step\":3,\"langgraph_node\":\"model_request\",\"langgraph_triggers\":[\"branch:to:model_request\"],\"langgraph_path\":[\"__pregel_pull\",\"model_request\"],\"langgraph_checkpoint_ns\":\"model_request:3d72c0f6-1849-5286-bc3f-b198da3bc9cb|model_request:c51cebc4-7aca-5acb-951c-245ef0a1809c\",\"__pregel_task_id\":\"3d72c0f6-1849-5286-bc3f-b198da3bc9cb\",\"checkpoint_ns\":\"model_request:3d72c0f6-1849-5286-bc3f-b198da3bc9cb\",\"resourceAttributes\":{\"host.name\":\"Janniks-MacBook-Pro.local\",\"host.arch\":\"arm64\",\"host.id\":\"04B49C49-15E0-55D5-9040-4D6FF6E415E6\",\"process.pid\":97650,\"process.executable.name\":\"deno\",\"process.executable.path\":\"/opt/homebrew/bin/deno\",\"process.command_args\":[\"/opt/homebrew/bin/deno\",\"/Users/jannik/Documents/GitHub/playground/js/$deno$jupyter.mts\"],\"process.runtime.version\":\"20.11.1\",\"process.runtime.name\":\"nodejs\",\"process.runtime.description\":\"Node.js\",\"process.command\":\"/Users/jannik/Documents/GitHub/playground/js/$deno$jupyter.mts\",\"process.owner\":\"jannik\",\"service.name\":\"unknown_service:/opt/homebrew/bin/deno\",\"telemetry.sdk.language\":\"nodejs\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"2.1.0\"},\"scope\":{\"name\":\"langfuse-sdk\",\"version\":\"4.3.0\",\"attributes\":{}}}",+ "internalModel": null+ },+ {+ "id": "29937389e09f9525",+ "traceId": "2c1581dd9cecdafb6ca091b83d7ea99a",+ "startTime": "2025-10-30T08:45:43.210Z",+ "endTime": "2025-10-30T08:45:43.210Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "b6ebcf125bccb1e0",+ "type": "SPAN",+ "environment": "default",+ "name": "prompt",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-10-30T08:45:46.740Z",+ "updatedAt": "2025-10-30T08:45:46.741Z",+ "input": "{\"messages\":[{\"lc\":1,\"type\":\"constructor\",\"id\":[\"langchain_core\",\"messages\",\"HumanMessage\"],\"kwargs\":{\"content\":\"What's the weather in San Francisco?\",\"additional_kwargs\":{},\"response_metadata\":{},\"id\":\"44fe5ba2-2f09-4ec2-9385-33e26c43f469\"}},{\"lc\":1,\"type\":\"constructor\",\"id\":[\"langchain_core\",\"messages\",\"AIMessage\"],\"kwargs\":{\"id\":\"chatcmpl-CWIZpV1k7an0crpr6hsnDXp1j2wdo\",\"name\":\"model\",\"content\":\"\",\"additional_kwargs\":{\"tool_calls\":[{\"id\":\"call_VEZJgIQLgzcb80IIyQJm7JCi\",\"type\":\"function\",\"function\":{\"name\":\"get_weather\",\"arguments\":\"{\\\"city\\\":\\\"San Francisco\\\"}\"}}]},\"response_metadata\":{\"tokenUsage\":{\"promptTokens\":142,\"completionTokens\":24,\"totalTokens\":166},\"finish_reason\":\"tool_calls\",\"model_provider\":\"openai\",\"model_name\":\"gpt-5-mini-2025-08-07\"},\"type\":\"ai\",\"tool_calls\":[{\"name\":\"get_weather\",\"args\":{\"city\":\"San Francisco\"},\"type\":\"tool_call\",\"id\":\"call_VEZJgIQLgzcb80IIyQJm7JCi\"}],\"invalid_tool_calls\":[],\"usage_metadata\":{\"output_tokens\":24,\"input_tokens\":142,\"total_tokens\":166,\"input_token_details\":{\"audio\":0,\"cache_read\":0},\"output_token_details\":{\"audio\":0,\"reasoning\":0}}}},{\"lc\":1,\"type\":\"constructor\",\"id\":[\"langchain_core\",\"messages\",\"ToolMessage\"],\"kwargs\":{\"status\":\"success\",\"content\":\"It's always sunny in San Francisco!\",\"tool_call_id\":\"call_VEZJgIQLgzcb80IIyQJm7JCi\",\"name\":\"get_weather\",\"metadata\":{},\"additional_kwargs\":{},\"response_metadata\":{},\"id\":\"62384f1e-7993-405d-80d5-e62fc1102f78\"}}],\"_privateState\":{\"threadLevelCallCount\":1,\"runModelCallCount\":0}}",+ "output": "{\"output\":[{\"lc\":1,\"type\":\"constructor\",\"id\":[\"langchain_core\",\"messages\",\"HumanMessage\"],\"kwargs\":{\"content\":\"What's the weather in San Francisco?\",\"additional_kwargs\":{},\"response_metadata\":{},\"id\":\"44fe5ba2-2f09-4ec2-9385-33e26c43f469\"}},{\"lc\":1,\"type\":\"constructor\",\"id\":[\"langchain_core\",\"messages\",\"AIMessage\"],\"kwargs\":{\"id\":\"chatcmpl-CWIZpV1k7an0crpr6hsnDXp1j2wdo\",\"name\":\"model\",\"content\":\"\",\"additional_kwargs\":{\"tool_calls\":[{\"id\":\"call_VEZJgIQLgzcb80IIyQJm7JCi\",\"type\":\"function\",\"function\":{\"name\":\"get_weather\",\"arguments\":\"{\\\"city\\\":\\\"San Francisco\\\"}\"}}]},\"response_metadata\":{\"tokenUsage\":{\"promptTokens\":142,\"completionTokens\":24,\"totalTokens\":166},\"finish_reason\":\"tool_calls\",\"model_provider\":\"openai\",\"model_name\":\"gpt-5-mini-2025-08-07\"},\"type\":\"ai\",\"tool_calls\":[{\"name\":\"get_weather\",\"args\":{\"city\":\"San Francisco\"},\"type\":\"tool_call\",\"id\":\"call_VEZJgIQLgzcb80IIyQJm7JCi\"}],\"invalid_tool_calls\":[],\"usage_metadata\":{\"output_tokens\":24,\"input_tokens\":142,\"total_tokens\":166,\"input_token_details\":{\"audio\":0,\"cache_read\":0},\"output_token_details\":{\"audio\":0,\"reasoning\":0}}}},{\"lc\":1,\"type\":\"constructor\",\"id\":[\"langchain_core\",\"messages\",\"ToolMessage\"],\"kwargs\":{\"status\":\"success\",\"content\":\"It's always sunny in San Francisco!\",\"tool_call_id\":\"call_VEZJgIQLgzcb80IIyQJm7JCi\",\"name\":\"get_weather\",\"metadata\":{},\"additional_kwargs\":{},\"response_metadata\":{},\"id\":\"62384f1e-7993-405d-80d5-e62fc1102f78\"}}]}",+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 0,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"tags\":[\"seq:step:1\"],\"langgraph_step\":3,\"langgraph_node\":\"model_request\",\"langgraph_triggers\":[\"branch:to:model_request\"],\"langgraph_path\":[\"__pregel_pull\",\"model_request\"],\"langgraph_checkpoint_ns\":\"model_request:3d72c0f6-1849-5286-bc3f-b198da3bc9cb|model_request:c51cebc4-7aca-5acb-951c-245ef0a1809c\",\"__pregel_task_id\":\"3d72c0f6-1849-5286-bc3f-b198da3bc9cb\",\"checkpoint_ns\":\"model_request:3d72c0f6-1849-5286-bc3f-b198da3bc9cb\",\"resourceAttributes\":{\"host.name\":\"Janniks-MacBook-Pro.local\",\"host.arch\":\"arm64\",\"host.id\":\"04B49C49-15E0-55D5-9040-4D6FF6E415E6\",\"process.pid\":97650,\"process.executable.name\":\"deno\",\"process.executable.path\":\"/opt/homebrew/bin/deno\",\"process.command_args\":[\"/opt/homebrew/bin/deno\",\"/Users/jannik/Documents/GitHub/playground/js/$deno$jupyter.mts\"],\"process.runtime.version\":\"20.11.1\",\"process.runtime.name\":\"nodejs\",\"process.runtime.description\":\"Node.js\",\"process.command\":\"/Users/jannik/Documents/GitHub/playground/js/$deno$jupyter.mts\",\"process.owner\":\"jannik\",\"service.name\":\"unknown_service:/opt/homebrew/bin/deno\",\"telemetry.sdk.language\":\"nodejs\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"2.1.0\"},\"scope\":{\"name\":\"langfuse-sdk\",\"version\":\"4.3.0\",\"attributes\":{}}}",+ "internalModel": null+ },+ {+ "id": "4059d1450dfaeabd",+ "traceId": "2c1581dd9cecdafb6ca091b83d7ea99a",+ "startTime": "2025-10-30T08:45:43.195Z",+ "endTime": "2025-10-30T08:45:43.197Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "94d8f57d1d47f9d3",+ "type": "SPAN",+ "environment": "default",+ "name": "ChannelWrite<...>",+ "level": "DEBUG",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-10-30T08:45:46.740Z",+ "updatedAt": "2025-10-30T08:45:46.741Z",+ "input": "{\"messages\":[{\"lc\":1,\"type\":\"constructor\",\"id\":[\"langchain_core\",\"messages\",\"AIMessage\"],\"kwargs\":{\"id\":\"chatcmpl-CWIZpV1k7an0crpr6hsnDXp1j2wdo\",\"name\":\"model\",\"content\":\"\",\"additional_kwargs\":{\"tool_calls\":[{\"id\":\"call_VEZJgIQLgzcb80IIyQJm7JCi\",\"type\":\"function\",\"function\":{\"name\":\"get_weather\",\"arguments\":\"{\\\"city\\\":\\\"San Francisco\\\"}\"}}]},\"response_metadata\":{\"tokenUsage\":{\"promptTokens\":142,\"completionTokens\":24,\"totalTokens\":166},\"finish_reason\":\"tool_calls\",\"model_provider\":\"openai\",\"model_name\":\"gpt-5-mini-2025-08-07\"},\"type\":\"ai\",\"tool_calls\":[{\"name\":\"get_weather\",\"args\":{\"city\":\"San Francisco\"},\"type\":\"tool_call\",\"id\":\"call_VEZJgIQLgzcb80IIyQJm7JCi\"}],\"invalid_tool_calls\":[],\"usage_metadata\":{\"output_tokens\":24,\"input_tokens\":142,\"total_tokens\":166,\"input_token_details\":{\"audio\":0,\"cache_read\":0},\"output_token_details\":{\"audio\":0,\"reasoning\":0}}}}],\"_privateState\":{\"threadLevelCallCount\":1,\"runModelCallCount\":0}}",+ "output": "{\"messages\":[{\"lc\":1,\"type\":\"constructor\",\"id\":[\"langchain_core\",\"messages\",\"AIMessage\"],\"kwargs\":{\"id\":\"chatcmpl-CWIZpV1k7an0crpr6hsnDXp1j2wdo\",\"name\":\"model\",\"content\":\"\",\"additional_kwargs\":{\"tool_calls\":[{\"id\":\"call_VEZJgIQLgzcb80IIyQJm7JCi\",\"type\":\"function\",\"function\":{\"name\":\"get_weather\",\"arguments\":\"{\\\"city\\\":\\\"San Francisco\\\"}\"}}]},\"response_metadata\":{\"tokenUsage\":{\"promptTokens\":142,\"completionTokens\":24,\"totalTokens\":166},\"finish_reason\":\"tool_calls\",\"model_provider\":\"openai\",\"model_name\":\"gpt-5-mini-2025-08-07\"},\"type\":\"ai\",\"tool_calls\":[{\"name\":\"get_weather\",\"args\":{\"city\":\"San Francisco\"},\"type\":\"tool_call\",\"id\":\"call_VEZJgIQLgzcb80IIyQJm7JCi\"}],\"invalid_tool_calls\":[],\"usage_metadata\":{\"output_tokens\":24,\"input_tokens\":142,\"total_tokens\":166,\"input_token_details\":{\"audio\":0,\"cache_read\":0},\"output_token_details\":{\"audio\":0,\"reasoning\":0}}}}],\"_privateState\":{\"threadLevelCallCount\":1,\"runModelCallCount\":0}}",+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 0.002,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"tags\":[\"langsmith:hidden\"],\"langgraph_step\":1,\"langgraph_node\":\"model_request\",\"langgraph_triggers\":[\"branch:to:model_request\"],\"langgraph_path\":[\"__pregel_pull\",\"model_request\"],\"langgraph_checkpoint_ns\":\"model_request:3d72c0f6-1849-5286-bc3f-b198da3bc9cb|model_request:5f3de826-6e97-5ed2-a7eb-d1fe70fbd3cc\",\"__pregel_task_id\":\"3d72c0f6-1849-5286-bc3f-b198da3bc9cb\",\"checkpoint_ns\":\"model_request:3d72c0f6-1849-5286-bc3f-b198da3bc9cb\",\"resourceAttributes\":{\"host.name\":\"Janniks-MacBook-Pro.local\",\"host.arch\":\"arm64\",\"host.id\":\"04B49C49-15E0-55D5-9040-4D6FF6E415E6\",\"process.pid\":97650,\"process.executable.name\":\"deno\",\"process.executable.path\":\"/opt/homebrew/bin/deno\",\"process.command_args\":[\"/opt/homebrew/bin/deno\",\"/Users/jannik/Documents/GitHub/playground/js/$deno$jupyter.mts\"],\"process.runtime.version\":\"20.11.1\",\"process.runtime.name\":\"nodejs\",\"process.runtime.description\":\"Node.js\",\"process.command\":\"/Users/jannik/Documents/GitHub/playground/js/$deno$jupyter.mts\",\"process.owner\":\"jannik\",\"service.name\":\"unknown_service:/opt/homebrew/bin/deno\",\"telemetry.sdk.language\":\"nodejs\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"2.1.0\"},\"scope\":{\"name\":\"langfuse-sdk\",\"version\":\"4.3.0\",\"attributes\":{}}}",+ "internalModel": null+ },+ {+ "id": "405be02ff1aec7f8",+ "traceId": "2c1581dd9cecdafb6ca091b83d7ea99a",+ "startTime": "2025-10-30T08:45:41.346Z",+ "endTime": "2025-10-30T08:45:41.346Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "1a436b274dae3895",+ "type": "SPAN",+ "environment": "default",+ "name": "prompt",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-10-30T08:45:46.740Z",+ "updatedAt": "2025-10-30T08:45:46.740Z",+ "input": "{\"messages\":[{\"lc\":1,\"type\":\"constructor\",\"id\":[\"langchain_core\",\"messages\",\"HumanMessage\"],\"kwargs\":{\"content\":\"What's the weather in San Francisco?\",\"additional_kwargs\":{},\"response_metadata\":{},\"id\":\"44fe5ba2-2f09-4ec2-9385-33e26c43f469\"}}]}",+ "output": "{\"output\":[{\"lc\":1,\"type\":\"constructor\",\"id\":[\"langchain_core\",\"messages\",\"HumanMessage\"],\"kwargs\":{\"content\":\"What's the weather in San Francisco?\",\"additional_kwargs\":{},\"response_metadata\":{},\"id\":\"44fe5ba2-2f09-4ec2-9385-33e26c43f469\"}}]}",+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 0,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"tags\":[\"seq:step:1\"],\"langgraph_step\":1,\"langgraph_node\":\"model_request\",\"langgraph_triggers\":[\"branch:to:model_request\"],\"langgraph_path\":[\"__pregel_pull\",\"model_request\"],\"langgraph_checkpoint_ns\":\"model_request:3d72c0f6-1849-5286-bc3f-b198da3bc9cb|model_request:5f3de826-6e97-5ed2-a7eb-d1fe70fbd3cc\",\"__pregel_task_id\":\"3d72c0f6-1849-5286-bc3f-b198da3bc9cb\",\"checkpoint_ns\":\"model_request:3d72c0f6-1849-5286-bc3f-b198da3bc9cb\",\"resourceAttributes\":{\"host.name\":\"Janniks-MacBook-Pro.local\",\"host.arch\":\"arm64\",\"host.id\":\"04B49C49-15E0-55D5-9040-4D6FF6E415E6\",\"process.pid\":97650,\"process.executable.name\":\"deno\",\"process.executable.path\":\"/opt/homebrew/bin/deno\",\"process.command_args\":[\"/opt/homebrew/bin/deno\",\"/Users/jannik/Documents/GitHub/playground/js/$deno$jupyter.mts\"],\"process.runtime.version\":\"20.11.1\",\"process.runtime.name\":\"nodejs\",\"process.runtime.description\":\"Node.js\",\"process.command\":\"/Users/jannik/Documents/GitHub/playground/js/$deno$jupyter.mts\",\"process.owner\":\"jannik\",\"service.name\":\"unknown_service:/opt/homebrew/bin/deno\",\"telemetry.sdk.language\":\"nodejs\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"2.1.0\"},\"scope\":{\"name\":\"langfuse-sdk\",\"version\":\"4.3.0\",\"attributes\":{}}}",+ "internalModel": null+ },+ {+ "id": "4a19536760554d30",+ "traceId": "2c1581dd9cecdafb6ca091b83d7ea99a",+ "startTime": "2025-10-30T08:45:41.320Z",+ "endTime": "2025-10-30T08:45:41.320Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "f610e93ab2a4d66c",+ "type": "SPAN",+ "environment": "default",+ "name": "ChannelWrite<branch:to:model_request>",+ "level": "DEBUG",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-10-30T08:45:46.740Z",+ "updatedAt": "2025-10-30T08:45:46.740Z",+ "input": "{\"messages\":[{\"role\":\"user\",\"content\":\"What's the weather in San Francisco?\"}]}",+ "output": "{\"messages\":[{\"role\":\"user\",\"content\":\"What's the weather in San Francisco?\"}]}",+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 0,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"tags\":[\"langsmith:hidden\"],\"langgraph_step\":0,\"langgraph_node\":\"__start__\",\"langgraph_triggers\":[\"__start__\"],\"langgraph_path\":[\"__pregel_pull\",\"__start__\"],\"langgraph_checkpoint_ns\":\"model_request:3d72c0f6-1849-5286-bc3f-b198da3bc9cb|__start__:b63c9a92-0827-53d0-ad62-34801c1b3ea7\",\"__pregel_task_id\":\"3d72c0f6-1849-5286-bc3f-b198da3bc9cb\",\"checkpoint_ns\":\"model_request:3d72c0f6-1849-5286-bc3f-b198da3bc9cb\",\"resourceAttributes\":{\"host.name\":\"Janniks-MacBook-Pro.local\",\"host.arch\":\"arm64\",\"host.id\":\"04B49C49-15E0-55D5-9040-4D6FF6E415E6\",\"process.pid\":97650,\"process.executable.name\":\"deno\",\"process.executable.path\":\"/opt/homebrew/bin/deno\",\"process.command_args\":[\"/opt/homebrew/bin/deno\",\"/Users/jannik/Documents/GitHub/playground/js/$deno$jupyter.mts\"],\"process.runtime.version\":\"20.11.1\",\"process.runtime.name\":\"nodejs\",\"process.runtime.description\":\"Node.js\",\"process.command\":\"/Users/jannik/Documents/GitHub/playground/js/$deno$jupyter.mts\",\"process.owner\":\"jannik\",\"service.name\":\"unknown_service:/opt/homebrew/bin/deno\",\"telemetry.sdk.language\":\"nodejs\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"2.1.0\"},\"scope\":{\"name\":\"langfuse-sdk\",\"version\":\"4.3.0\",\"attributes\":{}}}",+ "internalModel": null+ },+ {+ "id": "4bd9001eb2207296",+ "traceId": "2c1581dd9cecdafb6ca091b83d7ea99a",+ "startTime": "2025-10-30T08:45:41.319Z",+ "endTime": "2025-10-30T08:45:41.319Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "f610e93ab2a4d66c",+ "type": "SPAN",+ "environment": "default",+ "name": "ChannelWrite<...>",+ "level": "DEBUG",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-10-30T08:45:46.740Z",+ "updatedAt": "2025-10-30T08:45:46.740Z",+ "input": "{\"messages\":[{\"role\":\"user\",\"content\":\"What's the weather in San Francisco?\"}]}",+ "output": "{\"messages\":[{\"role\":\"user\",\"content\":\"What's the weather in San Francisco?\"}]}",+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 0,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"tags\":[\"langsmith:hidden\"],\"langgraph_step\":0,\"langgraph_node\":\"__start__\",\"langgraph_triggers\":[\"__start__\"],\"langgraph_path\":[\"__pregel_pull\",\"__start__\"],\"langgraph_checkpoint_ns\":\"model_request:3d72c0f6-1849-5286-bc3f-b198da3bc9cb|__start__:b63c9a92-0827-53d0-ad62-34801c1b3ea7\",\"__pregel_task_id\":\"3d72c0f6-1849-5286-bc3f-b198da3bc9cb\",\"checkpoint_ns\":\"model_request:3d72c0f6-1849-5286-bc3f-b198da3bc9cb\",\"resourceAttributes\":{\"host.name\":\"Janniks-MacBook-Pro.local\",\"host.arch\":\"arm64\",\"host.id\":\"04B49C49-15E0-55D5-9040-4D6FF6E415E6\",\"process.pid\":97650,\"process.executable.name\":\"deno\",\"process.executable.path\":\"/opt/homebrew/bin/deno\",\"process.command_args\":[\"/opt/homebrew/bin/deno\",\"/Users/jannik/Documents/GitHub/playground/js/$deno$jupyter.mts\"],\"process.runtime.version\":\"20.11.1\",\"process.runtime.name\":\"nodejs\",\"process.runtime.description\":\"Node.js\",\"process.command\":\"/Users/jannik/Documents/GitHub/playground/js/$deno$jupyter.mts\",\"process.owner\":\"jannik\",\"service.name\":\"unknown_service:/opt/homebrew/bin/deno\",\"telemetry.sdk.language\":\"nodejs\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"2.1.0\"},\"scope\":{\"name\":\"langfuse-sdk\",\"version\":\"4.3.0\",\"attributes\":{}}}",+ "internalModel": null+ },+ {+ "id": "5418736422abc167",+ "traceId": "2c1581dd9cecdafb6ca091b83d7ea99a",+ "startTime": "2025-10-30T08:45:46.457Z",+ "endTime": "2025-10-30T08:45:46.458Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "2285cbc61d44c3e3",+ "type": "SPAN",+ "environment": "default",+ "name": "Branch<model_request,tools,__end__>",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-10-30T08:45:52.145Z",+ "updatedAt": "2025-10-30T08:45:52.145Z",+ "input": "{\"messages\":[{\"lc\":1,\"type\":\"constructor\",\"id\":[\"langchain_core\",\"messages\",\"HumanMessage\"],\"kwargs\":{\"content\":\"What's the weather in San Francisco?\",\"additional_kwargs\":{},\"response_metadata\":{},\"id\":\"44fe5ba2-2f09-4ec2-9385-33e26c43f469\"}},{\"lc\":1,\"type\":\"constructor\",\"id\":[\"langchain_core\",\"messages\",\"AIMessage\"],\"kwargs\":{\"id\":\"chatcmpl-CWIZpV1k7an0crpr6hsnDXp1j2wdo\",\"name\":\"model\",\"content\":\"\",\"additional_kwargs\":{\"tool_calls\":[{\"id\":\"call_VEZJgIQLgzcb80IIyQJm7JCi\",\"type\":\"function\",\"function\":{\"name\":\"get_weather\",\"arguments\":\"{\\\"city\\\":\\\"San Francisco\\\"}\"}}]},\"response_metadata\":{\"tokenUsage\":{\"promptTokens\":142,\"completionTokens\":24,\"totalTokens\":166},\"finish_reason\":\"tool_calls\",\"model_provider\":\"openai\",\"model_name\":\"gpt-5-mini-2025-08-07\"},\"type\":\"ai\",\"tool_calls\":[{\"name\":\"get_weather\",\"args\":{\"city\":\"San Francisco\"},\"type\":\"tool_call\",\"id\":\"call_VEZJgIQLgzcb80IIyQJm7JCi\"}],\"invalid_tool_calls\":[],\"usage_metadata\":{\"output_tokens\":24,\"input_tokens\":142,\"total_tokens\":166,\"input_token_details\":{\"audio\":0,\"cache_read\":0},\"output_token_details\":{\"audio\":0,\"reasoning\":0}}}},{\"lc\":1,\"type\":\"constructor\",\"id\":[\"langchain_core\",\"messages\",\"ToolMessage\"],\"kwargs\":{\"status\":\"success\",\"content\":\"It's always sunny in San Francisco!\",\"tool_call_id\":\"call_VEZJgIQLgzcb80IIyQJm7JCi\",\"name\":\"get_weather\",\"metadata\":{},\"additional_kwargs\":{},\"response_metadata\":{},\"id\":\"62384f1e-7993-405d-80d5-e62fc1102f78\"}},{\"lc\":1,\"type\":\"constructor\",\"id\":[\"langchain_core\",\"messages\",\"AIMessage\"],\"kwargs\":{\"id\":\"chatcmpl-CWIZrr2vTw7RzmVplwulRfCMgIOtd\",\"name\":\"model\",\"content\":\"It's always sunny in San Francisco! \\n\\nWould you like more details (current temperature, hourly forecast, or a multi-day outlook)?\",\"additional_kwargs\":{},\"response_metadata\":{\"tokenUsage\":{\"promptTokens\":179,\"completionTokens\":99,\"totalTokens\":278},\"finish_reason\":\"stop\",\"model_provider\":\"openai\",\"model_name\":\"gpt-5-mini-2025-08-07\"},\"type\":\"ai\",\"tool_calls\":[],\"invalid_tool_calls\":[],\"usage_metadata\":{\"output_tokens\":99,\"input_tokens\":179,\"total_tokens\":278,\"input_token_details\":{\"audio\":0,\"cache_read\":0},\"output_token_details\":{\"audio\":0,\"reasoning\":64}}}}],\"_privateState\":{\"threadLevelCallCount\":2,\"runModelCallCount\":1}}",+ "output": "__end__",+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 0.001,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"langgraph_step\":3,\"langgraph_node\":\"model_request\",\"langgraph_triggers\":[\"branch:to:model_request\"],\"langgraph_path\":[\"__pregel_pull\",\"model_request\"],\"langgraph_checkpoint_ns\":\"model_request:3d72c0f6-1849-5286-bc3f-b198da3bc9cb|model_request:c51cebc4-7aca-5acb-951c-245ef0a1809c\",\"__pregel_task_id\":\"3d72c0f6-1849-5286-bc3f-b198da3bc9cb\",\"checkpoint_ns\":\"model_request:3d72c0f6-1849-5286-bc3f-b198da3bc9cb\",\"resourceAttributes\":{\"host.name\":\"Janniks-MacBook-Pro.local\",\"host.arch\":\"arm64\",\"host.id\":\"04B49C49-15E0-55D5-9040-4D6FF6E415E6\",\"process.pid\":97650,\"process.executable.name\":\"deno\",\"process.executable.path\":\"/opt/homebrew/bin/deno\",\"process.command_args\":[\"/opt/homebrew/bin/deno\",\"/Users/jannik/Documents/GitHub/playground/js/$deno$jupyter.mts\"],\"process.runtime.version\":\"20.11.1\",\"process.runtime.name\":\"nodejs\",\"process.runtime.description\":\"Node.js\",\"process.command\":\"/Users/jannik/Documents/GitHub/playground/js/$deno$jupyter.mts\",\"process.owner\":\"jannik\",\"service.name\":\"unknown_service:/opt/homebrew/bin/deno\",\"telemetry.sdk.language\":\"nodejs\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"2.1.0\"},\"scope\":{\"name\":\"langfuse-sdk\",\"version\":\"4.3.0\",\"attributes\":{}}}",+ "internalModel": null+ },+ {+ "id": "62fd894173738caf",+ "traceId": "2c1581dd9cecdafb6ca091b83d7ea99a",+ "startTime": "2025-10-30T08:45:43.203Z",+ "endTime": "2025-10-30T08:45:43.208Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "0fabddcbcd5cee2d",+ "type": "SPAN",+ "environment": "default",+ "name": "tools",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-10-30T08:45:46.740Z",+ "updatedAt": "2025-10-30T08:45:46.741Z",+ "input": "{\"messages\":[{\"lc\":1,\"type\":\"constructor\",\"id\":[\"langchain_core\",\"messages\",\"HumanMessage\"],\"kwargs\":{\"content\":\"What's the weather in San Francisco?\",\"additional_kwargs\":{},\"response_metadata\":{},\"id\":\"44fe5ba2-2f09-4ec2-9385-33e26c43f469\"}},{\"lc\":1,\"type\":\"constructor\",\"id\":[\"langchain_core\",\"messages\",\"AIMessage\"],\"kwargs\":{\"id\":\"chatcmpl-CWIZpV1k7an0crpr6hsnDXp1j2wdo\",\"name\":\"model\",\"content\":\"\",\"additional_kwargs\":{\"tool_calls\":[{\"id\":\"call_VEZJgIQLgzcb80IIyQJm7JCi\",\"type\":\"function\",\"function\":{\"name\":\"get_weather\",\"arguments\":\"{\\\"city\\\":\\\"San Francisco\\\"}\"}}]},\"response_metadata\":{\"tokenUsage\":{\"promptTokens\":142,\"completionTokens\":24,\"totalTokens\":166},\"finish_reason\":\"tool_calls\",\"model_provider\":\"openai\",\"model_name\":\"gpt-5-mini-2025-08-07\"},\"type\":\"ai\",\"tool_calls\":[{\"name\":\"get_weather\",\"args\":{\"city\":\"San Francisco\"},\"type\":\"tool_call\",\"id\":\"call_VEZJgIQLgzcb80IIyQJm7JCi\"}],\"invalid_tool_calls\":[],\"usage_metadata\":{\"output_tokens\":24,\"input_tokens\":142,\"total_tokens\":166,\"input_token_details\":{\"audio\":0,\"cache_read\":0},\"output_token_details\":{\"audio\":0,\"reasoning\":0}}}}],\"_privateState\":{\"threadLevelCallCount\":1,\"runModelCallCount\":0},\"lg_tool_call\":{\"name\":\"get_weather\",\"args\":{\"city\":\"San Francisco\"},\"type\":\"tool_call\",\"id\":\"call_VEZJgIQLgzcb80IIyQJm7JCi\"}}",+ "output": "{\"messages\":[{\"lc\":1,\"type\":\"constructor\",\"id\":[\"langchain_core\",\"messages\",\"ToolMessage\"],\"kwargs\":{\"status\":\"success\",\"content\":\"It's always sunny in San Francisco!\",\"tool_call_id\":\"call_VEZJgIQLgzcb80IIyQJm7JCi\",\"name\":\"get_weather\",\"metadata\":{},\"additional_kwargs\":{},\"response_metadata\":{}}}]}",+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 0.005,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"tags\":[\"graph:step:2\"],\"langgraph_step\":2,\"langgraph_node\":\"tools\",\"langgraph_triggers\":[\"__pregel_push\"],\"langgraph_path\":[\"__pregel_push\",0],\"langgraph_checkpoint_ns\":\"model_request:3d72c0f6-1849-5286-bc3f-b198da3bc9cb|tools:99081552-33b0-5649-a698-4aa1e0c771f5\",\"__pregel_task_id\":\"3d72c0f6-1849-5286-bc3f-b198da3bc9cb\",\"checkpoint_ns\":\"model_request:3d72c0f6-1849-5286-bc3f-b198da3bc9cb\",\"resourceAttributes\":{\"host.name\":\"Janniks-MacBook-Pro.local\",\"host.arch\":\"arm64\",\"host.id\":\"04B49C49-15E0-55D5-9040-4D6FF6E415E6\",\"process.pid\":97650,\"process.executable.name\":\"deno\",\"process.executable.path\":\"/opt/homebrew/bin/deno\",\"process.command_args\":[\"/opt/homebrew/bin/deno\",\"/Users/jannik/Documents/GitHub/playground/js/$deno$jupyter.mts\"],\"process.runtime.version\":\"20.11.1\",\"process.runtime.name\":\"nodejs\",\"process.runtime.description\":\"Node.js\",\"process.command\":\"/Users/jannik/Documents/GitHub/playground/js/$deno$jupyter.mts\",\"process.owner\":\"jannik\",\"service.name\":\"unknown_service:/opt/homebrew/bin/deno\",\"telemetry.sdk.language\":\"nodejs\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"2.1.0\"},\"scope\":{\"name\":\"langfuse-sdk\",\"version\":\"4.3.0\",\"attributes\":{}}}",+ "internalModel": null+ },+ {+ "id": "841f49934638899f",+ "traceId": "2c1581dd9cecdafb6ca091b83d7ea99a",+ "startTime": "2025-10-30T08:45:43.200Z",+ "endTime": "2025-10-30T08:45:43.200Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "94d8f57d1d47f9d3",+ "type": "SPAN",+ "environment": "default",+ "name": "Branch<model_request,tools,__end__>",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-10-30T08:45:46.740Z",+ "updatedAt": "2025-10-30T08:45:46.741Z",+ "input": "{\"messages\":[{\"lc\":1,\"type\":\"constructor\",\"id\":[\"langchain_core\",\"messages\",\"HumanMessage\"],\"kwargs\":{\"content\":\"What's the weather in San Francisco?\",\"additional_kwargs\":{},\"response_metadata\":{},\"id\":\"44fe5ba2-2f09-4ec2-9385-33e26c43f469\"}},{\"lc\":1,\"type\":\"constructor\",\"id\":[\"langchain_core\",\"messages\",\"AIMessage\"],\"kwargs\":{\"id\":\"chatcmpl-CWIZpV1k7an0crpr6hsnDXp1j2wdo\",\"name\":\"model\",\"content\":\"\",\"additional_kwargs\":{\"tool_calls\":[{\"id\":\"call_VEZJgIQLgzcb80IIyQJm7JCi\",\"type\":\"function\",\"function\":{\"name\":\"get_weather\",\"arguments\":\"{\\\"city\\\":\\\"San Francisco\\\"}\"}}]},\"response_metadata\":{\"tokenUsage\":{\"promptTokens\":142,\"completionTokens\":24,\"totalTokens\":166},\"finish_reason\":\"tool_calls\",\"model_provider\":\"openai\",\"model_name\":\"gpt-5-mini-2025-08-07\"},\"type\":\"ai\",\"tool_calls\":[{\"name\":\"get_weather\",\"args\":{\"city\":\"San Francisco\"},\"type\":\"tool_call\",\"id\":\"call_VEZJgIQLgzcb80IIyQJm7JCi\"}],\"invalid_tool_calls\":[],\"usage_metadata\":{\"output_tokens\":24,\"input_tokens\":142,\"total_tokens\":166,\"input_token_details\":{\"audio\":0,\"cache_read\":0},\"output_token_details\":{\"audio\":0,\"reasoning\":0}}}}],\"_privateState\":{\"threadLevelCallCount\":1,\"runModelCallCount\":0}}",+ "output": "{\"output\":[{\"lg_name\":\"Send\",\"node\":\"tools\",\"args\":{\"messages\":[{\"lc\":1,\"type\":\"constructor\",\"id\":[\"langchain_core\",\"messages\",\"HumanMessage\"],\"kwargs\":{\"content\":\"What's the weather in San Francisco?\",\"additional_kwargs\":{},\"response_metadata\":{},\"id\":\"44fe5ba2-2f09-4ec2-9385-33e26c43f469\"}},{\"lc\":1,\"type\":\"constructor\",\"id\":[\"langchain_core\",\"messages\",\"AIMessage\"],\"kwargs\":{\"id\":\"chatcmpl-CWIZpV1k7an0crpr6hsnDXp1j2wdo\",\"name\":\"model\",\"content\":\"\",\"additional_kwargs\":{\"tool_calls\":[{\"id\":\"call_VEZJgIQLgzcb80IIyQJm7JCi\",\"type\":\"function\",\"function\":{\"name\":\"get_weather\",\"arguments\":\"{\\\"city\\\":\\\"San Francisco\\\"}\"}}]},\"response_metadata\":{\"tokenUsage\":{\"promptTokens\":142,\"completionTokens\":24,\"totalTokens\":166},\"finish_reason\":\"tool_calls\",\"model_provider\":\"openai\",\"model_name\":\"gpt-5-mini-2025-08-07\"},\"type\":\"ai\",\"tool_calls\":[{\"name\":\"get_weather\",\"args\":{\"city\":\"San Francisco\"},\"type\":\"tool_call\",\"id\":\"call_VEZJgIQLgzcb80IIyQJm7JCi\"}],\"invalid_tool_calls\":[],\"usage_metadata\":{\"output_tokens\":24,\"input_tokens\":142,\"total_tokens\":166,\"input_token_details\":{\"audio\":0,\"cache_read\":0},\"output_token_details\":{\"audio\":0,\"reasoning\":0}}}}],\"_privateState\":{\"threadLevelCallCount\":1,\"runModelCallCount\":0},\"lg_tool_call\":{\"name\":\"get_weather\",\"args\":{\"city\":\"San Francisco\"},\"type\":\"tool_call\",\"id\":\"call_VEZJgIQLgzcb80IIyQJm7JCi\"}}}]}",+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 0,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"langgraph_step\":1,\"langgraph_node\":\"model_request\",\"langgraph_triggers\":[\"branch:to:model_request\"],\"langgraph_path\":[\"__pregel_pull\",\"model_request\"],\"langgraph_checkpoint_ns\":\"model_request:3d72c0f6-1849-5286-bc3f-b198da3bc9cb|model_request:5f3de826-6e97-5ed2-a7eb-d1fe70fbd3cc\",\"__pregel_task_id\":\"3d72c0f6-1849-5286-bc3f-b198da3bc9cb\",\"checkpoint_ns\":\"model_request:3d72c0f6-1849-5286-bc3f-b198da3bc9cb\",\"resourceAttributes\":{\"host.name\":\"Janniks-MacBook-Pro.local\",\"host.arch\":\"arm64\",\"host.id\":\"04B49C49-15E0-55D5-9040-4D6FF6E415E6\",\"process.pid\":97650,\"process.executable.name\":\"deno\",\"process.executable.path\":\"/opt/homebrew/bin/deno\",\"process.command_args\":[\"/opt/homebrew/bin/deno\",\"/Users/jannik/Documents/GitHub/playground/js/$deno$jupyter.mts\"],\"process.runtime.version\":\"20.11.1\",\"process.runtime.name\":\"nodejs\",\"process.runtime.description\":\"Node.js\",\"process.command\":\"/Users/jannik/Documents/GitHub/playground/js/$deno$jupyter.mts\",\"process.owner\":\"jannik\",\"service.name\":\"unknown_service:/opt/homebrew/bin/deno\",\"telemetry.sdk.language\":\"nodejs\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"2.1.0\"},\"scope\":{\"name\":\"langfuse-sdk\",\"version\":\"4.3.0\",\"attributes\":{}}}",+ "internalModel": null+ },+ {+ "id": "94d8f57d1d47f9d3",+ "traceId": "2c1581dd9cecdafb6ca091b83d7ea99a",+ "startTime": "2025-10-30T08:45:41.322Z",+ "endTime": "2025-10-30T08:45:43.201Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "0fabddcbcd5cee2d",+ "type": "SPAN",+ "environment": "default",+ "name": "model_request",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-10-30T08:45:46.740Z",+ "updatedAt": "2025-10-30T08:45:46.741Z",+ "input": "{\"messages\":[{\"lc\":1,\"type\":\"constructor\",\"id\":[\"langchain_core\",\"messages\",\"HumanMessage\"],\"kwargs\":{\"content\":\"What's the weather in San Francisco?\",\"additional_kwargs\":{},\"response_metadata\":{},\"id\":\"44fe5ba2-2f09-4ec2-9385-33e26c43f469\"}}]}",+ "output": "{\"messages\":[{\"lc\":1,\"type\":\"constructor\",\"id\":[\"langchain_core\",\"messages\",\"AIMessage\"],\"kwargs\":{\"id\":\"chatcmpl-CWIZpV1k7an0crpr6hsnDXp1j2wdo\",\"name\":\"model\",\"content\":\"\",\"additional_kwargs\":{\"tool_calls\":[{\"id\":\"call_VEZJgIQLgzcb80IIyQJm7JCi\",\"type\":\"function\",\"function\":{\"name\":\"get_weather\",\"arguments\":\"{\\\"city\\\":\\\"San Francisco\\\"}\"}}]},\"response_metadata\":{\"tokenUsage\":{\"promptTokens\":142,\"completionTokens\":24,\"totalTokens\":166},\"finish_reason\":\"tool_calls\",\"model_provider\":\"openai\",\"model_name\":\"gpt-5-mini-2025-08-07\"},\"type\":\"ai\",\"tool_calls\":[{\"name\":\"get_weather\",\"args\":{\"city\":\"San Francisco\"},\"type\":\"tool_call\",\"id\":\"call_VEZJgIQLgzcb80IIyQJm7JCi\"}],\"invalid_tool_calls\":[],\"usage_metadata\":{\"output_tokens\":24,\"input_tokens\":142,\"total_tokens\":166,\"input_token_details\":{\"audio\":0,\"cache_read\":0},\"output_token_details\":{\"audio\":0,\"reasoning\":0}}}}],\"_privateState\":{\"threadLevelCallCount\":1,\"runModelCallCount\":0}}",+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 1.879,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"tags\":[\"graph:step:1\"],\"langgraph_step\":1,\"langgraph_node\":\"model_request\",\"langgraph_triggers\":[\"branch:to:model_request\"],\"langgraph_path\":[\"__pregel_pull\",\"model_request\"],\"langgraph_checkpoint_ns\":\"model_request:3d72c0f6-1849-5286-bc3f-b198da3bc9cb|model_request:5f3de826-6e97-5ed2-a7eb-d1fe70fbd3cc\",\"__pregel_task_id\":\"3d72c0f6-1849-5286-bc3f-b198da3bc9cb\",\"checkpoint_ns\":\"model_request:3d72c0f6-1849-5286-bc3f-b198da3bc9cb\",\"resourceAttributes\":{\"host.name\":\"Janniks-MacBook-Pro.local\",\"host.arch\":\"arm64\",\"host.id\":\"04B49C49-15E0-55D5-9040-4D6FF6E415E6\",\"process.pid\":97650,\"process.executable.name\":\"deno\",\"process.executable.path\":\"/opt/homebrew/bin/deno\",\"process.command_args\":[\"/opt/homebrew/bin/deno\",\"/Users/jannik/Documents/GitHub/playground/js/$deno$jupyter.mts\"],\"process.runtime.version\":\"20.11.1\",\"process.runtime.name\":\"nodejs\",\"process.runtime.description\":\"Node.js\",\"process.command\":\"/Users/jannik/Documents/GitHub/playground/js/$deno$jupyter.mts\",\"process.owner\":\"jannik\",\"service.name\":\"unknown_service:/opt/homebrew/bin/deno\",\"telemetry.sdk.language\":\"nodejs\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"2.1.0\"},\"scope\":{\"name\":\"langfuse-sdk\",\"version\":\"4.3.0\",\"attributes\":{}}}",+ "internalModel": null+ },+ {+ "id": "b6ebcf125bccb1e0",+ "traceId": "2c1581dd9cecdafb6ca091b83d7ea99a",+ "startTime": "2025-10-30T08:45:43.210Z",+ "endTime": "2025-10-30T08:45:46.444Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "2285cbc61d44c3e3",+ "type": "SPAN",+ "environment": "default",+ "name": "RunnableSequence",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-10-30T08:45:52.145Z",+ "updatedAt": "2025-10-30T08:45:52.145Z",+ "input": "{\"messages\":[{\"lc\":1,\"type\":\"constructor\",\"id\":[\"langchain_core\",\"messages\",\"HumanMessage\"],\"kwargs\":{\"content\":\"What's the weather in San Francisco?\",\"additional_kwargs\":{},\"response_metadata\":{},\"id\":\"44fe5ba2-2f09-4ec2-9385-33e26c43f469\"}},{\"lc\":1,\"type\":\"constructor\",\"id\":[\"langchain_core\",\"messages\",\"AIMessage\"],\"kwargs\":{\"id\":\"chatcmpl-CWIZpV1k7an0crpr6hsnDXp1j2wdo\",\"name\":\"model\",\"content\":\"\",\"additional_kwargs\":{\"tool_calls\":[{\"id\":\"call_VEZJgIQLgzcb80IIyQJm7JCi\",\"type\":\"function\",\"function\":{\"name\":\"get_weather\",\"arguments\":\"{\\\"city\\\":\\\"San Francisco\\\"}\"}}]},\"response_metadata\":{\"tokenUsage\":{\"promptTokens\":142,\"completionTokens\":24,\"totalTokens\":166},\"finish_reason\":\"tool_calls\",\"model_provider\":\"openai\",\"model_name\":\"gpt-5-mini-2025-08-07\"},\"type\":\"ai\",\"tool_calls\":[{\"name\":\"get_weather\",\"args\":{\"city\":\"San Francisco\"},\"type\":\"tool_call\",\"id\":\"call_VEZJgIQLgzcb80IIyQJm7JCi\"}],\"invalid_tool_calls\":[],\"usage_metadata\":{\"output_tokens\":24,\"input_tokens\":142,\"total_tokens\":166,\"input_token_details\":{\"audio\":0,\"cache_read\":0},\"output_token_details\":{\"audio\":0,\"reasoning\":0}}}},{\"lc\":1,\"type\":\"constructor\",\"id\":[\"langchain_core\",\"messages\",\"ToolMessage\"],\"kwargs\":{\"status\":\"success\",\"content\":\"It's always sunny in San Francisco!\",\"tool_call_id\":\"call_VEZJgIQLgzcb80IIyQJm7JCi\",\"name\":\"get_weather\",\"metadata\":{},\"additional_kwargs\":{},\"response_metadata\":{},\"id\":\"62384f1e-7993-405d-80d5-e62fc1102f78\"}}],\"_privateState\":{\"threadLevelCallCount\":1,\"runModelCallCount\":0}}",+ "output": "{\"lc\":1,\"type\":\"constructor\",\"id\":[\"langchain_core\",\"messages\",\"AIMessage\"],\"kwargs\":{\"id\":\"chatcmpl-CWIZrr2vTw7RzmVplwulRfCMgIOtd\",\"content\":\"It's always sunny in San Francisco! \\n\\nWould you like more details (current temperature, hourly forecast, or a multi-day outlook)?\",\"additional_kwargs\":{},\"response_metadata\":{\"tokenUsage\":{\"promptTokens\":179,\"completionTokens\":99,\"totalTokens\":278},\"finish_reason\":\"stop\",\"model_provider\":\"openai\",\"model_name\":\"gpt-5-mini-2025-08-07\"},\"type\":\"ai\",\"tool_calls\":[],\"invalid_tool_calls\":[],\"usage_metadata\":{\"output_tokens\":99,\"input_tokens\":179,\"total_tokens\":278,\"input_token_details\":{\"audio\":0,\"cache_read\":0},\"output_token_details\":{\"audio\":0,\"reasoning\":64}}}}",+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 3.234,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"langgraph_step\":3,\"langgraph_node\":\"model_request\",\"langgraph_triggers\":[\"branch:to:model_request\"],\"langgraph_path\":[\"__pregel_pull\",\"model_request\"],\"langgraph_checkpoint_ns\":\"model_request:3d72c0f6-1849-5286-bc3f-b198da3bc9cb|model_request:c51cebc4-7aca-5acb-951c-245ef0a1809c\",\"__pregel_task_id\":\"3d72c0f6-1849-5286-bc3f-b198da3bc9cb\",\"checkpoint_ns\":\"model_request:3d72c0f6-1849-5286-bc3f-b198da3bc9cb\",\"resourceAttributes\":{\"host.name\":\"Janniks-MacBook-Pro.local\",\"host.arch\":\"arm64\",\"host.id\":\"04B49C49-15E0-55D5-9040-4D6FF6E415E6\",\"process.pid\":97650,\"process.executable.name\":\"deno\",\"process.executable.path\":\"/opt/homebrew/bin/deno\",\"process.command_args\":[\"/opt/homebrew/bin/deno\",\"/Users/jannik/Documents/GitHub/playground/js/$deno$jupyter.mts\"],\"process.runtime.version\":\"20.11.1\",\"process.runtime.name\":\"nodejs\",\"process.runtime.description\":\"Node.js\",\"process.command\":\"/Users/jannik/Documents/GitHub/playground/js/$deno$jupyter.mts\",\"process.owner\":\"jannik\",\"service.name\":\"unknown_service:/opt/homebrew/bin/deno\",\"telemetry.sdk.language\":\"nodejs\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"2.1.0\"},\"scope\":{\"name\":\"langfuse-sdk\",\"version\":\"4.3.0\",\"attributes\":{}}}",+ "internalModel": null+ },+ {+ "id": "c3a547a43cb47b18",+ "traceId": "2c1581dd9cecdafb6ca091b83d7ea99a",+ "startTime": "2025-10-30T08:45:43.204Z",+ "endTime": "2025-10-30T08:45:43.204Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "62fd894173738caf",+ "type": "SPAN",+ "environment": "default",+ "name": "get_weather",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-10-30T08:45:46.740Z",+ "updatedAt": "2025-10-30T08:45:46.741Z",+ "input": "{\"city\":\"San Francisco\"}",+ "output": "{\"lc\":1,\"type\":\"constructor\",\"id\":[\"langchain_core\",\"messages\",\"ToolMessage\"],\"kwargs\":{\"status\":\"success\",\"content\":\"It's always sunny in San Francisco!\",\"tool_call_id\":\"call_VEZJgIQLgzcb80IIyQJm7JCi\",\"name\":\"get_weather\",\"metadata\":{},\"additional_kwargs\":{},\"response_metadata\":{}}}",+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 0,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"langgraph_step\":2,\"langgraph_node\":\"tools\",\"langgraph_triggers\":[\"__pregel_push\"],\"langgraph_path\":[\"__pregel_push\",0],\"langgraph_checkpoint_ns\":\"model_request:3d72c0f6-1849-5286-bc3f-b198da3bc9cb|tools:99081552-33b0-5649-a698-4aa1e0c771f5\",\"__pregel_task_id\":\"3d72c0f6-1849-5286-bc3f-b198da3bc9cb\",\"checkpoint_ns\":\"model_request:3d72c0f6-1849-5286-bc3f-b198da3bc9cb\",\"resourceAttributes\":{\"host.name\":\"Janniks-MacBook-Pro.local\",\"host.arch\":\"arm64\",\"host.id\":\"04B49C49-15E0-55D5-9040-4D6FF6E415E6\",\"process.pid\":97650,\"process.executable.name\":\"deno\",\"process.executable.path\":\"/opt/homebrew/bin/deno\",\"process.command_args\":[\"/opt/homebrew/bin/deno\",\"/Users/jannik/Documents/GitHub/playground/js/$deno$jupyter.mts\"],\"process.runtime.version\":\"20.11.1\",\"process.runtime.name\":\"nodejs\",\"process.runtime.description\":\"Node.js\",\"process.command\":\"/Users/jannik/Documents/GitHub/playground/js/$deno$jupyter.mts\",\"process.owner\":\"jannik\",\"service.name\":\"unknown_service:/opt/homebrew/bin/deno\",\"telemetry.sdk.language\":\"nodejs\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"2.1.0\"},\"scope\":{\"name\":\"langfuse-sdk\",\"version\":\"4.3.0\",\"attributes\":{}}}",+ "internalModel": null+ },+ {+ "id": "dc6fa04662de9504",+ "traceId": "2c1581dd9cecdafb6ca091b83d7ea99a",+ "startTime": "2025-10-30T08:45:43.204Z",+ "endTime": "2025-10-30T08:45:43.204Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "62fd894173738caf",+ "type": "SPAN",+ "environment": "default",+ "name": "ChannelWrite<...>",+ "level": "DEBUG",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-10-30T08:45:46.740Z",+ "updatedAt": "2025-10-30T08:45:46.741Z",+ "input": "{\"messages\":[{\"lc\":1,\"type\":\"constructor\",\"id\":[\"langchain_core\",\"messages\",\"ToolMessage\"],\"kwargs\":{\"status\":\"success\",\"content\":\"It's always sunny in San Francisco!\",\"tool_call_id\":\"call_VEZJgIQLgzcb80IIyQJm7JCi\",\"name\":\"get_weather\",\"metadata\":{},\"additional_kwargs\":{},\"response_metadata\":{}}}]}",+ "output": "{\"messages\":[{\"lc\":1,\"type\":\"constructor\",\"id\":[\"langchain_core\",\"messages\",\"ToolMessage\"],\"kwargs\":{\"status\":\"success\",\"content\":\"It's always sunny in San Francisco!\",\"tool_call_id\":\"call_VEZJgIQLgzcb80IIyQJm7JCi\",\"name\":\"get_weather\",\"metadata\":{},\"additional_kwargs\":{},\"response_metadata\":{}}}]}",+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 0,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"tags\":[\"langsmith:hidden\"],\"langgraph_step\":2,\"langgraph_node\":\"tools\",\"langgraph_triggers\":[\"__pregel_push\"],\"langgraph_path\":[\"__pregel_push\",0],\"langgraph_checkpoint_ns\":\"model_request:3d72c0f6-1849-5286-bc3f-b198da3bc9cb|tools:99081552-33b0-5649-a698-4aa1e0c771f5\",\"__pregel_task_id\":\"3d72c0f6-1849-5286-bc3f-b198da3bc9cb\",\"checkpoint_ns\":\"model_request:3d72c0f6-1849-5286-bc3f-b198da3bc9cb\",\"resourceAttributes\":{\"host.name\":\"Janniks-MacBook-Pro.local\",\"host.arch\":\"arm64\",\"host.id\":\"04B49C49-15E0-55D5-9040-4D6FF6E415E6\",\"process.pid\":97650,\"process.executable.name\":\"deno\",\"process.executable.path\":\"/opt/homebrew/bin/deno\",\"process.command_args\":[\"/opt/homebrew/bin/deno\",\"/Users/jannik/Documents/GitHub/playground/js/$deno$jupyter.mts\"],\"process.runtime.version\":\"20.11.1\",\"process.runtime.name\":\"nodejs\",\"process.runtime.description\":\"Node.js\",\"process.command\":\"/Users/jannik/Documents/GitHub/playground/js/$deno$jupyter.mts\",\"process.owner\":\"jannik\",\"service.name\":\"unknown_service:/opt/homebrew/bin/deno\",\"telemetry.sdk.language\":\"nodejs\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"2.1.0\"},\"scope\":{\"name\":\"langfuse-sdk\",\"version\":\"4.3.0\",\"attributes\":{}}}",+ "internalModel": null+ },+ {+ "id": "f610e93ab2a4d66c",+ "traceId": "2c1581dd9cecdafb6ca091b83d7ea99a",+ "startTime": "2025-10-30T08:45:41.318Z",+ "endTime": "2025-10-30T08:45:41.320Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "0fabddcbcd5cee2d",+ "type": "SPAN",+ "environment": "default",+ "name": "__start__",+ "level": "DEBUG",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-10-30T08:45:46.740Z",+ "updatedAt": "2025-10-30T08:45:46.740Z",+ "input": "{\"messages\":[{\"role\":\"user\",\"content\":\"What's the weather in San Francisco?\"}]}",+ "output": "{\"messages\":[{\"role\":\"user\",\"content\":\"What's the weather in San Francisco?\"}]}",+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 0.002,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"tags\":[\"graph:step:0\",\"langsmith:hidden\"],\"langgraph_step\":0,\"langgraph_node\":\"__start__\",\"langgraph_triggers\":[\"__start__\"],\"langgraph_path\":[\"__pregel_pull\",\"__start__\"],\"langgraph_checkpoint_ns\":\"model_request:3d72c0f6-1849-5286-bc3f-b198da3bc9cb|__start__:b63c9a92-0827-53d0-ad62-34801c1b3ea7\",\"__pregel_task_id\":\"3d72c0f6-1849-5286-bc3f-b198da3bc9cb\",\"checkpoint_ns\":\"model_request:3d72c0f6-1849-5286-bc3f-b198da3bc9cb\",\"resourceAttributes\":{\"host.name\":\"Janniks-MacBook-Pro.local\",\"host.arch\":\"arm64\",\"host.id\":\"04B49C49-15E0-55D5-9040-4D6FF6E415E6\",\"process.pid\":97650,\"process.executable.name\":\"deno\",\"process.executable.path\":\"/opt/homebrew/bin/deno\",\"process.command_args\":[\"/opt/homebrew/bin/deno\",\"/Users/jannik/Documents/GitHub/playground/js/$deno$jupyter.mts\"],\"process.runtime.version\":\"20.11.1\",\"process.runtime.name\":\"nodejs\",\"process.runtime.description\":\"Node.js\",\"process.command\":\"/Users/jannik/Documents/GitHub/playground/js/$deno$jupyter.mts\",\"process.owner\":\"jannik\",\"service.name\":\"unknown_service:/opt/homebrew/bin/deno\",\"telemetry.sdk.language\":\"nodejs\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"2.1.0\"},\"scope\":{\"name\":\"langfuse-sdk\",\"version\":\"4.3.0\",\"attributes\":{}}}",+ "internalModel": null+ }+ ]+}diff --git a/worker/src/__tests__/chatml/framework-traces/langgraph-python-2025-08-22.chatml.json b/worker/src/__tests__/chatml/framework-traces/langgraph-python-2025-08-22.chatml.jsonnew file mode 100644index 0000000000..828030fb28--- /dev/null+++ b/worker/src/__tests__/chatml/framework-traces/langgraph-python-2025-08-22.chatml.json@@ -0,0 +1,918 @@+{+ "4f6535aaebcda355": {+ "input": {+ "success": true,+ "data": [+ {+ "role": "user",+ "content": "Be helpful!",+ "tools": [+ {+ "name": "Web-Search",+ "description": "Dummy web search tool.",+ "parameters": {+ "properties": {+ "query": {+ "type": "string"+ }+ },+ "required": [+ "query"+ ],+ "type": "object"+ }+ }+ ]+ },+ {+ "role": "user",+ "content": "Search the web for 'example' and summarize.",+ "tools": [+ {+ "name": "Web-Search",+ "description": "Dummy web search tool.",+ "parameters": {+ "properties": {+ "query": {+ "type": "string"+ }+ },+ "required": [+ "query"+ ],+ "type": "object"+ }+ }+ ]+ }+ ]+ },+ "output": {+ "success": true,+ "data": [+ {+ "role": "assistant",+ "content": "",+ "tool_calls": [+ {+ "id": "call_1oGK863sxQHlPreFhDdEs3yl",+ "name": "Web-Search",+ "arguments": "{\"query\":\"example\"}",+ "type": "function"+ }+ ]+ }+ ]+ }+ },+ "5ba09605e0929d78": {+ "input": {+ "success": true,+ "data": [+ {+ "role": "user",+ "content": "Be helpful!",+ "tools": [+ {+ "name": "Web-Search",+ "description": "Dummy web search tool.",+ "parameters": {+ "properties": {+ "query": {+ "type": "string"+ }+ },+ "required": [+ "query"+ ],+ "type": "object"+ }+ }+ ]+ },+ {+ "role": "user",+ "content": "Search the web for 'example' and summarize.",+ "tools": [+ {+ "name": "Web-Search",+ "description": "Dummy web search tool.",+ "parameters": {+ "properties": {+ "query": {+ "type": "string"+ }+ },+ "required": [+ "query"+ ],+ "type": "object"+ }+ }+ ]+ },+ {+ "role": "assistant",+ "content": "",+ "tools": [+ {+ "name": "Web-Search",+ "description": "Dummy web search tool.",+ "parameters": {+ "properties": {+ "query": {+ "type": "string"+ }+ },+ "required": [+ "query"+ ],+ "type": "object"+ }+ }+ ],+ "tool_calls": [+ {+ "id": "call_1oGK863sxQHlPreFhDdEs3yl",+ "name": "Web-Search",+ "arguments": "{\"query\":\"example\"}",+ "type": "function"+ }+ ]+ },+ {+ "role": "tool",+ "content": "[{\"url\": \"https://example.com\", \"title\": \"Example Result\", \"q\": \"example\"}]",+ "tools": [+ {+ "name": "Web-Search",+ "description": "Dummy web search tool.",+ "parameters": {+ "properties": {+ "query": {+ "type": "string"+ }+ },+ "required": [+ "query"+ ],+ "type": "object"+ }+ }+ ],+ "tool_call_id": "call_1oGK863sxQHlPreFhDdEs3yl"+ }+ ]+ },+ "output": {+ "success": true,+ "data": [+ {+ "role": "assistant",+ "content": "The search for \"example\" primarily leads to the website [example.com](https://example.com), which is often used as a placeholder or demonstration site in various contexts. It serves as a generic example for illustrating how a website might look or function.",+ "json": {+ "refusal": null+ }+ }+ ]+ }+ },+ "21441266a9f21251": {+ "input": {+ "success": false,+ "error": {+ "name": "ZodError",+ "message": "[\n {\n \"expected\": \"array\",\n \"code\": \"invalid_type\",\n \"path\": [],\n \"message\": \"Invalid input: expected array, received object\"\n }\n]"+ }+ },+ "output": {+ "success": true,+ "data": [+ {+ "role": "tool",+ "name": "Web-Search",+ "content": [+ {+ "url": "https://example.com",+ "title": "Example Result",+ "q": "example"+ }+ ],+ "type": "tool",+ "tool_call_id": "call_1oGK863sxQHlPreFhDdEs3yl",+ "json": {+ "response_metadata": {},+ "status": "success",+ "_originalType": "tool"+ }+ }+ ]+ }+ },+ "3b239b11cbb2ac0b": {+ "input": {+ "success": true,+ "data": [+ {+ "role": "user",+ "content": "Search the web for 'example' and summarize.",+ "type": "human",+ "json": {+ "json": {+ "response_metadata": {},+ "id": "4f5904a4-473c-443c-af46-68765777a2f0",+ "example": false,+ "_originalType": "human"+ }+ }+ },+ {+ "role": "assistant",+ "content": "",+ "type": "ai",+ "tool_calls": [+ {+ "id": "call_1oGK863sxQHlPreFhDdEs3yl",+ "name": "Web-Search",+ "arguments": "{\"query\":\"example\"}",+ "type": "tool_call"+ }+ ],+ "json": {+ "json": {+ "response_metadata": {+ "token_usage": {+ "completion_tokens": 15,+ "prompt_tokens": 60,+ "total_tokens": 75,+ "completion_tokens_details": {+ "accepted_prediction_tokens": 0,+ "audio_tokens": 0,+ "reasoning_tokens": 0,+ "rejected_prediction_tokens": 0+ },+ "prompt_tokens_details": {+ "audio_tokens": 0,+ "cached_tokens": 0+ }+ },+ "model_name": "gpt-4o-2024-08-06",+ "system_fingerprint": "fp_46bff0e0c8",+ "id": "chatcmpl-C7IWW4ZyFcMMUH5I00yulLd1Cuz2f",+ "service_tier": "default",+ "finish_reason": "tool_calls",+ "logprobs": null+ },+ "id": "run--06f4147e-6dc2-4078-a368-096c05261f12-0",+ "example": false,+ "invalid_tool_calls": [],+ "usage_metadata": {+ "input_tokens": 60,+ "output_tokens": 15,+ "total_tokens": 75,+ "input_token_details": {+ "audio": 0,+ "cache_read": 0+ },+ "output_token_details": {+ "audio": 0,+ "reasoning": 0+ }+ },+ "_originalType": "ai"+ }+ }+ },+ {+ "role": "tool",+ "name": "Web-Search",+ "content": "[{\"url\": \"https://example.com\", \"title\": \"Example Result\", \"q\": \"example\"}]",+ "type": "tool",+ "tool_call_id": "call_1oGK863sxQHlPreFhDdEs3yl",+ "json": {+ "json": {+ "response_metadata": {},+ "id": "85ffdeba-3d69-4851-bd78-993403a10fd6",+ "status": "success",+ "_originalType": "tool"+ }+ }+ }+ ]+ },+ "output": {+ "success": true,+ "data": [+ {+ "role": "assistant",+ "content": "The search for \"example\" primarily leads to the website [example.com](https://example.com), which is often used as a placeholder or demonstration site in various contexts. It serves as a generic example for illustrating how a website might look or function.",+ "type": "ai",+ "tool_calls": [],+ "json": {+ "response_metadata": {+ "token_usage": {+ "completion_tokens": 51,+ "prompt_tokens": 108,+ "total_tokens": 159,+ "completion_tokens_details": {+ "accepted_prediction_tokens": 0,+ "audio_tokens": 0,+ "reasoning_tokens": 0,+ "rejected_prediction_tokens": 0+ },+ "prompt_tokens_details": {+ "audio_tokens": 0,+ "cached_tokens": 0+ }+ },+ "model_name": "gpt-4o-2024-08-06",+ "system_fingerprint": "fp_46bff0e0c8",+ "id": "chatcmpl-C7IWXZL0b6BLNuyEMr369PF4PEpSs",+ "service_tier": "default",+ "finish_reason": "stop",+ "logprobs": null+ },+ "id": "run--a6270d77-8cd6-4c1b-a80b-c1da054d9f9a-0",+ "example": false,+ "invalid_tool_calls": [],+ "usage_metadata": {+ "input_tokens": 108,+ "output_tokens": 51,+ "total_tokens": 159,+ "input_token_details": {+ "audio": 0,+ "cache_read": 0+ },+ "output_token_details": {+ "audio": 0,+ "reasoning": 0+ }+ },+ "_originalType": "ai",+ "refusal": null+ }+ }+ ]+ }+ },+ "98d3e02591797c04": {+ "input": {+ "success": true,+ "data": [+ {+ "role": "user",+ "content": "Search the web for 'example' and summarize.",+ "type": "human",+ "json": {+ "json": {+ "response_metadata": {},+ "id": "4f5904a4-473c-443c-af46-68765777a2f0",+ "example": false,+ "_originalType": "human"+ }+ }+ }+ ]+ },+ "output": {+ "success": true,+ "data": [+ {+ "role": "assistant",+ "content": "",+ "type": "ai",+ "tool_calls": [+ {+ "id": "call_1oGK863sxQHlPreFhDdEs3yl",+ "name": "Web-Search",+ "arguments": "{\"query\":\"example\"}",+ "type": "tool_call"+ }+ ],+ "json": {+ "response_metadata": {+ "token_usage": {+ "completion_tokens": 15,+ "prompt_tokens": 60,+ "total_tokens": 75,+ "completion_tokens_details": {+ "accepted_prediction_tokens": 0,+ "audio_tokens": 0,+ "reasoning_tokens": 0,+ "rejected_prediction_tokens": 0+ },+ "prompt_tokens_details": {+ "audio_tokens": 0,+ "cached_tokens": 0+ }+ },+ "model_name": "gpt-4o-2024-08-06",+ "system_fingerprint": "fp_46bff0e0c8",+ "id": "chatcmpl-C7IWW4ZyFcMMUH5I00yulLd1Cuz2f",+ "service_tier": "default",+ "finish_reason": "tool_calls",+ "logprobs": null+ },+ "id": "run--06f4147e-6dc2-4078-a368-096c05261f12-0",+ "example": false,+ "invalid_tool_calls": [],+ "usage_metadata": {+ "input_tokens": 60,+ "output_tokens": 15,+ "total_tokens": 75,+ "input_token_details": {+ "audio": 0,+ "cache_read": 0+ },+ "output_token_details": {+ "audio": 0,+ "reasoning": 0+ }+ },+ "_originalType": "ai"+ }+ }+ ]+ }+ },+ "b024c7ee7680b708": {+ "input": {+ "success": true,+ "data": [+ {+ "role": "user",+ "content": "Search the web for 'example' and summarize.",+ "type": "human",+ "json": {+ "json": {+ "response_metadata": {},+ "example": false,+ "_originalType": "human"+ }+ }+ }+ ]+ },+ "output": {+ "success": true,+ "data": [+ {+ "role": "user",+ "content": "Search the web for 'example' and summarize.",+ "type": "human",+ "json": {+ "response_metadata": {},+ "id": "4f5904a4-473c-443c-af46-68765777a2f0",+ "example": false,+ "_originalType": "human"+ }+ },+ {+ "role": "assistant",+ "content": "",+ "type": "ai",+ "tool_calls": [+ {+ "id": "call_1oGK863sxQHlPreFhDdEs3yl",+ "name": "Web-Search",+ "arguments": "{\"query\":\"example\"}",+ "type": "tool_call"+ }+ ],+ "json": {+ "response_metadata": {+ "token_usage": {+ "completion_tokens": 15,+ "prompt_tokens": 60,+ "total_tokens": 75,+ "completion_tokens_details": {+ "accepted_prediction_tokens": 0,+ "audio_tokens": 0,+ "reasoning_tokens": 0,+ "rejected_prediction_tokens": 0+ },+ "prompt_tokens_details": {+ "audio_tokens": 0,+ "cached_tokens": 0+ }+ },+ "model_name": "gpt-4o-2024-08-06",+ "system_fingerprint": "fp_46bff0e0c8",+ "id": "chatcmpl-C7IWW4ZyFcMMUH5I00yulLd1Cuz2f",+ "service_tier": "default",+ "finish_reason": "tool_calls",+ "logprobs": null+ },+ "id": "run--06f4147e-6dc2-4078-a368-096c05261f12-0",+ "example": false,+ "invalid_tool_calls": [],+ "usage_metadata": {+ "input_tokens": 60,+ "output_tokens": 15,+ "total_tokens": 75,+ "input_token_details": {+ "audio": 0,+ "cache_read": 0+ },+ "output_token_details": {+ "audio": 0,+ "reasoning": 0+ }+ },+ "_originalType": "ai"+ }+ },+ {+ "role": "tool",+ "name": "Web-Search",+ "content": "[{\"url\": \"https://example.com\", \"title\": \"Example Result\", \"q\": \"example\"}]",+ "type": "tool",+ "tool_call_id": "call_1oGK863sxQHlPreFhDdEs3yl",+ "json": {+ "response_metadata": {},+ "id": "85ffdeba-3d69-4851-bd78-993403a10fd6",+ "status": "success",+ "_originalType": "tool"+ }+ },+ {+ "role": "assistant",+ "content": "The search for \"example\" primarily leads to the website [example.com](https://example.com), which is often used as a placeholder or demonstration site in various contexts. It serves as a generic example for illustrating how a website might look or function.",+ "type": "ai",+ "tool_calls": [],+ "json": {+ "response_metadata": {+ "token_usage": {+ "completion_tokens": 51,+ "prompt_tokens": 108,+ "total_tokens": 159,+ "completion_tokens_details": {+ "accepted_prediction_tokens": 0,+ "audio_tokens": 0,+ "reasoning_tokens": 0,+ "rejected_prediction_tokens": 0+ },+ "prompt_tokens_details": {+ "audio_tokens": 0,+ "cached_tokens": 0+ }+ },+ "model_name": "gpt-4o-2024-08-06",+ "system_fingerprint": "fp_46bff0e0c8",+ "id": "chatcmpl-C7IWXZL0b6BLNuyEMr369PF4PEpSs",+ "service_tier": "default",+ "finish_reason": "stop",+ "logprobs": null+ },+ "id": "run--a6270d77-8cd6-4c1b-a80b-c1da054d9f9a-0",+ "example": false,+ "invalid_tool_calls": [],+ "usage_metadata": {+ "input_tokens": 108,+ "output_tokens": 51,+ "total_tokens": 159,+ "input_token_details": {+ "audio": 0,+ "cache_read": 0+ },+ "output_token_details": {+ "audio": 0,+ "reasoning": 0+ }+ },+ "_originalType": "ai",+ "refusal": null+ }+ }+ ]+ }+ },+ "c7fbfdc6ab70ca4d": {+ "input": {+ "success": true,+ "data": [+ {+ "role": "user",+ "content": "Search the web for 'example' and summarize.",+ "type": "human",+ "json": {+ "json": {+ "response_metadata": {},+ "id": "4f5904a4-473c-443c-af46-68765777a2f0",+ "example": false,+ "_originalType": "human"+ }+ }+ },+ {+ "role": "assistant",+ "content": "",+ "type": "ai",+ "tool_calls": [+ {+ "id": "call_1oGK863sxQHlPreFhDdEs3yl",+ "name": "Web-Search",+ "arguments": "{\"query\":\"example\"}",+ "type": "tool_call"+ }+ ],+ "json": {+ "json": {+ "response_metadata": {+ "token_usage": {+ "completion_tokens": 15,+ "prompt_tokens": 60,+ "total_tokens": 75,+ "completion_tokens_details": {+ "accepted_prediction_tokens": 0,+ "audio_tokens": 0,+ "reasoning_tokens": 0,+ "rejected_prediction_tokens": 0+ },+ "prompt_tokens_details": {+ "audio_tokens": 0,+ "cached_tokens": 0+ }+ },+ "model_name": "gpt-4o-2024-08-06",+ "system_fingerprint": "fp_46bff0e0c8",+ "id": "chatcmpl-C7IWW4ZyFcMMUH5I00yulLd1Cuz2f",+ "service_tier": "default",+ "finish_reason": "tool_calls",+ "logprobs": null+ },+ "id": "run--06f4147e-6dc2-4078-a368-096c05261f12-0",+ "example": false,+ "invalid_tool_calls": [],+ "usage_metadata": {+ "input_tokens": 60,+ "output_tokens": 15,+ "total_tokens": 75,+ "input_token_details": {+ "audio": 0,+ "cache_read": 0+ },+ "output_token_details": {+ "audio": 0,+ "reasoning": 0+ }+ },+ "_originalType": "ai"+ }+ }+ }+ ]+ },+ "output": {+ "success": false,+ "error": {+ "name": "ZodError",+ "message": "[\n {\n \"expected\": \"object\",\n \"code\": \"invalid_type\",\n \"path\": [\n 0\n ],\n \"message\": \"Invalid input: expected object, received string\"\n }\n]"+ }+ }+ },+ "c8a18a38a3a115cb": {+ "input": {+ "success": true,+ "data": [+ {+ "role": "user",+ "content": "Search the web for 'example' and summarize.",+ "type": "human",+ "json": {+ "json": {+ "response_metadata": {},+ "id": "4f5904a4-473c-443c-af46-68765777a2f0",+ "example": false,+ "_originalType": "human"+ }+ }+ },+ {+ "role": "assistant",+ "content": "",+ "type": "ai",+ "tool_calls": [+ {+ "id": "call_1oGK863sxQHlPreFhDdEs3yl",+ "name": "Web-Search",+ "arguments": "{\"query\":\"example\"}",+ "type": "tool_call"+ }+ ],+ "json": {+ "json": {+ "response_metadata": {+ "token_usage": {+ "completion_tokens": 15,+ "prompt_tokens": 60,+ "total_tokens": 75,+ "completion_tokens_details": {+ "accepted_prediction_tokens": 0,+ "audio_tokens": 0,+ "reasoning_tokens": 0,+ "rejected_prediction_tokens": 0+ },+ "prompt_tokens_details": {+ "audio_tokens": 0,+ "cached_tokens": 0+ }+ },+ "model_name": "gpt-4o-2024-08-06",+ "system_fingerprint": "fp_46bff0e0c8",+ "id": "chatcmpl-C7IWW4ZyFcMMUH5I00yulLd1Cuz2f",+ "service_tier": "default",+ "finish_reason": "tool_calls",+ "logprobs": null+ },+ "id": "run--06f4147e-6dc2-4078-a368-096c05261f12-0",+ "example": false,+ "invalid_tool_calls": [],+ "usage_metadata": {+ "input_tokens": 60,+ "output_tokens": 15,+ "total_tokens": 75,+ "input_token_details": {+ "audio": 0,+ "cache_read": 0+ },+ "output_token_details": {+ "audio": 0,+ "reasoning": 0+ }+ },+ "_originalType": "ai"+ }+ }+ }+ ]+ },+ "output": {+ "success": true,+ "data": [+ {+ "role": "tool",+ "name": "Web-Search",+ "content": "[{\"url\": \"https://example.com\", \"title\": \"Example Result\", \"q\": \"example\"}]",+ "type": "tool",+ "tool_call_id": "call_1oGK863sxQHlPreFhDdEs3yl",+ "json": {+ "response_metadata": {},+ "status": "success",+ "_originalType": "tool"+ }+ }+ ]+ }+ },+ "e638064431445dce": {+ "input": {+ "success": true,+ "data": [+ {+ "role": "user",+ "content": "Search the web for 'example' and summarize.",+ "type": "human",+ "json": {+ "json": {+ "response_metadata": {},+ "id": "4f5904a4-473c-443c-af46-68765777a2f0",+ "example": false,+ "_originalType": "human"+ }+ }+ },+ {+ "role": "assistant",+ "content": "",+ "type": "ai",+ "tool_calls": [+ {+ "id": "call_1oGK863sxQHlPreFhDdEs3yl",+ "name": "Web-Search",+ "arguments": "{\"query\":\"example\"}",+ "type": "tool_call"+ }+ ],+ "json": {+ "json": {+ "response_metadata": {+ "token_usage": {+ "completion_tokens": 15,+ "prompt_tokens": 60,+ "total_tokens": 75,+ "completion_tokens_details": {+ "accepted_prediction_tokens": 0,+ "audio_tokens": 0,+ "reasoning_tokens": 0,+ "rejected_prediction_tokens": 0+ },+ "prompt_tokens_details": {+ "audio_tokens": 0,+ "cached_tokens": 0+ }+ },+ "model_name": "gpt-4o-2024-08-06",+ "system_fingerprint": "fp_46bff0e0c8",+ "id": "chatcmpl-C7IWW4ZyFcMMUH5I00yulLd1Cuz2f",+ "service_tier": "default",+ "finish_reason": "tool_calls",+ "logprobs": null+ },+ "id": "run--06f4147e-6dc2-4078-a368-096c05261f12-0",+ "example": false,+ "invalid_tool_calls": [],+ "usage_metadata": {+ "input_tokens": 60,+ "output_tokens": 15,+ "total_tokens": 75,+ "input_token_details": {+ "audio": 0,+ "cache_read": 0+ },+ "output_token_details": {+ "audio": 0,+ "reasoning": 0+ }+ },+ "_originalType": "ai"+ }+ }+ },+ {+ "role": "tool",+ "name": "Web-Search",+ "content": "[{\"url\": \"https://example.com\", \"title\": \"Example Result\", \"q\": \"example\"}]",+ "type": "tool",+ "tool_call_id": "call_1oGK863sxQHlPreFhDdEs3yl",+ "json": {+ "json": {+ "response_metadata": {},+ "id": "85ffdeba-3d69-4851-bd78-993403a10fd6",+ "status": "success",+ "_originalType": "tool"+ }+ }+ },+ {+ "role": "assistant",+ "content": "The search for \"example\" primarily leads to the website [example.com](https://example.com), which is often used as a placeholder or demonstration site in various contexts. It serves as a generic example for illustrating how a website might look or function.",+ "type": "ai",+ "tool_calls": [],+ "json": {+ "json": {+ "response_metadata": {+ "token_usage": {+ "completion_tokens": 51,+ "prompt_tokens": 108,+ "total_tokens": 159,+ "completion_tokens_details": {+ "accepted_prediction_tokens": 0,+ "audio_tokens": 0,+ "reasoning_tokens": 0,+ "rejected_prediction_tokens": 0+ },+ "prompt_tokens_details": {+ "audio_tokens": 0,+ "cached_tokens": 0+ }+ },+ "model_name": "gpt-4o-2024-08-06",+ "system_fingerprint": "fp_46bff0e0c8",+ "id": "chatcmpl-C7IWXZL0b6BLNuyEMr369PF4PEpSs",+ "service_tier": "default",+ "finish_reason": "stop",+ "logprobs": null+ },+ "id": "run--a6270d77-8cd6-4c1b-a80b-c1da054d9f9a-0",+ "example": false,+ "invalid_tool_calls": [],+ "usage_metadata": {+ "input_tokens": 108,+ "output_tokens": 51,+ "total_tokens": 159,+ "input_token_details": {+ "audio": 0,+ "cache_read": 0+ },+ "output_token_details": {+ "audio": 0,+ "reasoning": 0+ }+ },+ "_originalType": "ai",+ "refusal": null+ }+ }+ }+ ]+ },+ "output": {+ "success": false,+ "error": {+ "name": "ZodError",+ "message": "[\n {\n \"expected\": \"object\",\n \"code\": \"invalid_type\",\n \"path\": [\n 0\n ],\n \"message\": \"Invalid input: expected object, received string\"\n }\n]"+ }+ }+ }+}\ No newline at end of filediff --git a/worker/src/__tests__/chatml/framework-traces/langgraph-python-2025-08-22.trace.json b/worker/src/__tests__/chatml/framework-traces/langgraph-python-2025-08-22.trace.jsonnew file mode 100644index 0000000000..71a82bca94--- /dev/null+++ b/worker/src/__tests__/chatml/framework-traces/langgraph-python-2025-08-22.trace.json@@ -0,0 +1,898 @@+{+ "trace": {+ "id": "e1fde3efec57ce8a69bafd3fb928a7eb",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "name": "LangGraph",+ "timestamp": "2025-08-22T09:38:56.228Z",+ "environment": "default",+ "tags": [],+ "bookmarked": false,+ "release": null,+ "version": null,+ "userId": null,+ "sessionId": null,+ "public": true,+ "input": "\"{\\\"messages\\\":[{\\\"content\\\":\\\"Search the web for 'example' and summarize.\\\",\\\"additional_kwargs\\\":{},\\\"response_metadata\\\":{},\\\"type\\\":\\\"human\\\",\\\"name\\\":null,\\\"id\\\":null,\\\"example\\\":false}]}\"",+ "output": "\"{\\\"messages\\\":[{\\\"content\\\":\\\"Search the web for 'example' and summarize.\\\",\\\"additional_kwargs\\\":{},\\\"response_metadata\\\":{},\\\"type\\\":\\\"human\\\",\\\"name\\\":null,\\\"id\\\":\\\"4f5904a4-473c-443c-af46-68765777a2f0\\\",\\\"example\\\":false},{\\\"content\\\":\\\"\\\",\\\"additional_kwargs\\\":{\\\"tool_calls\\\":[{\\\"id\\\":\\\"call_1oGK863sxQHlPreFhDdEs3yl\\\",\\\"function\\\":{\\\"arguments\\\":\\\"{\\\\\\\"query\\\\\\\":\\\\\\\"example\\\\\\\"}\\\",\\\"name\\\":\\\"Web-Search\\\"},\\\"type\\\":\\\"function\\\"}],\\\"refusal\\\":null},\\\"response_metadata\\\":{\\\"token_usage\\\":{\\\"completion_tokens\\\":15,\\\"prompt_tokens\\\":60,\\\"total_tokens\\\":75,\\\"completion_tokens_details\\\":{\\\"accepted_prediction_tokens\\\":0,\\\"audio_tokens\\\":0,\\\"reasoning_tokens\\\":0,\\\"rejected_prediction_tokens\\\":0},\\\"prompt_tokens_details\\\":{\\\"audio_tokens\\\":0,\\\"cached_tokens\\\":0}},\\\"model_name\\\":\\\"gpt-4o-2024-08-06\\\",\\\"system_fingerprint\\\":\\\"fp_46bff0e0c8\\\",\\\"id\\\":\\\"chatcmpl-C7IWW4ZyFcMMUH5I00yulLd1Cuz2f\\\",\\\"service_tier\\\":\\\"default\\\",\\\"finish_reason\\\":\\\"tool_calls\\\",\\\"logprobs\\\":null},\\\"type\\\":\\\"ai\\\",\\\"name\\\":null,\\\"id\\\":\\\"run--06f4147e-6dc2-4078-a368-096c05261f12-0\\\",\\\"example\\\":false,\\\"tool_calls\\\":[{\\\"name\\\":\\\"Web-Search\\\",\\\"args\\\":{\\\"query\\\":\\\"example\\\"},\\\"id\\\":\\\"call_1oGK863sxQHlPreFhDdEs3yl\\\",\\\"type\\\":\\\"tool_call\\\"}],\\\"invalid_tool_calls\\\":[],\\\"usage_metadata\\\":{\\\"input_tokens\\\":60,\\\"output_tokens\\\":15,\\\"total_tokens\\\":75,\\\"input_token_details\\\":{\\\"audio\\\":0,\\\"cache_read\\\":0},\\\"output_token_details\\\":{\\\"audio\\\":0,\\\"reasoning\\\":0}}},{\\\"content\\\":\\\"[{\\\\\\\"url\\\\\\\": \\\\\\\"https://example.com\\\\\\\", \\\\\\\"title\\\\\\\": \\\\\\\"Example Result\\\\\\\", \\\\\\\"q\\\\\\\": \\\\\\\"example\\\\\\\"}]\\\",\\\"additional_kwargs\\\":{},\\\"response_metadata\\\":{},\\\"type\\\":\\\"tool\\\",\\\"name\\\":\\\"Web-Search\\\",\\\"id\\\":\\\"85ffdeba-3d69-4851-bd78-993403a10fd6\\\",\\\"tool_call_id\\\":\\\"call_1oGK863sxQHlPreFhDdEs3yl\\\",\\\"artifact\\\":null,\\\"status\\\":\\\"success\\\"},{\\\"content\\\":\\\"The search for \\\\\\\"example\\\\\\\" primarily leads to the website [example.com](https://example.com), which is often used as a placeholder or demonstration site in various contexts. It serves as a generic example for illustrating how a website might look or function.\\\",\\\"additional_kwargs\\\":{\\\"refusal\\\":null},\\\"response_metadata\\\":{\\\"token_usage\\\":{\\\"completion_tokens\\\":51,\\\"prompt_tokens\\\":108,\\\"total_tokens\\\":159,\\\"completion_tokens_details\\\":{\\\"accepted_prediction_tokens\\\":0,\\\"audio_tokens\\\":0,\\\"reasoning_tokens\\\":0,\\\"rejected_prediction_tokens\\\":0},\\\"prompt_tokens_details\\\":{\\\"audio_tokens\\\":0,\\\"cached_tokens\\\":0}},\\\"model_name\\\":\\\"gpt-4o-2024-08-06\\\",\\\"system_fingerprint\\\":\\\"fp_46bff0e0c8\\\",\\\"id\\\":\\\"chatcmpl-C7IWXZL0b6BLNuyEMr369PF4PEpSs\\\",\\\"service_tier\\\":\\\"default\\\",\\\"finish_reason\\\":\\\"stop\\\",\\\"logprobs\\\":null},\\\"type\\\":\\\"ai\\\",\\\"name\\\":null,\\\"id\\\":\\\"run--a6270d77-8cd6-4c1b-a80b-c1da054d9f9a-0\\\",\\\"example\\\":false,\\\"tool_calls\\\":[],\\\"invalid_tool_calls\\\":[],\\\"usage_metadata\\\":{\\\"input_tokens\\\":108,\\\"output_tokens\\\":51,\\\"total_tokens\\\":159,\\\"input_token_details\\\":{\\\"audio\\\":0,\\\"cache_read\\\":0},\\\"output_token_details\\\":{\\\"audio\\\":0,\\\"reasoning\\\":0}}}]}\"",+ "createdAt": "2025-08-22T09:38:56.228Z",+ "updatedAt": "2025-08-22T09:39:11.980Z",+ "metadata": "{\"resourceAttributes\":{\"telemetry.sdk.language\":\"python\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"1.36.0\",\"service.name\":\"unknown_service\"},\"scope\":{\"name\":\"langfuse-sdk\",\"version\":\"3.3.0\",\"attributes\":{\"public_key\":\"KJGLKJGLJG\"}}}",+ "scores": [+ {+ "id": "1c2fb813-8481-4843-bcf8-cfb54b46da44",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "environment": "default",+ "name": "hallucination",+ "value": 0.1,+ "source": "EVAL",+ "authorUserId": null,+ "comment": "The generation accurately describes 'example.com' as a placeholder site, aligning with established knowledge and verifiable data.",+ "configId": null,+ "queueId": null,+ "executionTraceId": null,+ "createdAt": "2025-08-22T09:39:40.000Z",+ "updatedAt": "2025-08-22T09:39:39.293Z",+ "timestamp": "2025-08-22T09:39:39.219Z",+ "traceId": "e1fde3efec57ce8a69bafd3fb928a7eb",+ "sessionId": null,+ "datasetRunId": null,+ "observationId": null,+ "longStringValue": "",+ "stringValue": null,+ "dataType": "NUMERIC",+ "metadata": "{}"+ },+ {+ "id": "da70b4e9-bfcd-4086-9704-6cdb017302b9",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "environment": "default",+ "name": "toxicity",+ "value": 0,+ "source": "EVAL",+ "authorUserId": null,+ "comment": "The generation does not contain any harmful, offensive, or disrespectful language; it simply provides a summary of a web search without negativity or aggression.",+ "configId": null,+ "queueId": null,+ "executionTraceId": null,+ "createdAt": "2025-08-22T09:39:39.000Z",+ "updatedAt": "2025-08-22T09:39:38.898Z",+ "timestamp": "2025-08-22T09:39:38.838Z",+ "traceId": "e1fde3efec57ce8a69bafd3fb928a7eb",+ "sessionId": null,+ "datasetRunId": null,+ "observationId": null,+ "longStringValue": "",+ "stringValue": null,+ "dataType": "NUMERIC",+ "metadata": "{}"+ }+ ],+ "corrections": [],+ "latency": 2.61,+ "observations": [+ {+ "id": "4f6535aaebcda355",+ "traceId": "e1fde3efec57ce8a69bafd3fb928a7eb",+ "startTime": "2025-08-22T09:38:56.232Z",+ "endTime": "2025-08-22T09:38:57.080Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "98d3e02591797c04",+ "type": "GENERATION",+ "environment": "default",+ "name": "ChatOpenAI",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-08-22T09:39:11.641Z",+ "updatedAt": "2025-08-22T09:39:11.937Z",+ "input": null,+ "output": null,+ "model": "gpt-4o-2024-08-06",+ "internalModelId": "b33c06da-9490-4bbd-a2dd-878222948539",+ "modelParameters": {+ "temperature": 0+ },+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 0.848,+ "timeToFirstToken": null,+ "usageDetails": {+ "input": 60,+ "output": 15,+ "total": 75,+ "input_audio": 0,+ "input_cache_read": 0,+ "output_audio": 0,+ "output_reasoning": 0+ },+ "costDetails": {+ "input": 0.00006,+ "output": 0.000015,+ "total": 0.000075+ },+ "providedCostDetails": {},+ "inputCost": 0.00006,+ "outputCost": 0.000015,+ "totalCost": 0.000075,+ "inputUsage": 60,+ "outputUsage": 15,+ "totalUsage": 75,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ },+ {+ "id": "5ba09605e0929d78",+ "traceId": "e1fde3efec57ce8a69bafd3fb928a7eb",+ "startTime": "2025-08-22T09:38:57.089Z",+ "endTime": "2025-08-22T09:38:58.832Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "3b239b11cbb2ac0b",+ "type": "GENERATION",+ "environment": "default",+ "name": "ChatOpenAI",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-08-22T09:39:11.173Z",+ "updatedAt": "2025-08-22T09:39:11.492Z",+ "input": null,+ "output": null,+ "model": "gpt-4o-2024-08-06",+ "internalModelId": "b33c06da-9490-4bbd-a2dd-878222948539",+ "modelParameters": {+ "temperature": 0+ },+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 1.743,+ "timeToFirstToken": null,+ "usageDetails": {+ "input": 108,+ "output": 51,+ "total": 159,+ "input_audio": 0,+ "input_cache_read": 0,+ "output_audio": 0,+ "output_reasoning": 0+ },+ "costDetails": {+ "input": 0.000108,+ "output": 0.000051,+ "total": 0.000159+ },+ "providedCostDetails": {},+ "inputCost": 0.000108,+ "outputCost": 0.000051,+ "totalCost": 0.000159,+ "inputUsage": 108,+ "outputUsage": 51,+ "totalUsage": 159,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ },+ {+ "id": "21441266a9f21251",+ "traceId": "e1fde3efec57ce8a69bafd3fb928a7eb",+ "startTime": "2025-08-22T09:38:57.085Z",+ "endTime": "2025-08-22T09:38:57.086Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "c8a18a38a3a115cb",+ "type": "SPAN",+ "environment": "default",+ "name": "Web-Search",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-08-22T09:39:11.221Z",+ "updatedAt": "2025-08-22T09:39:11.351Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 0.001,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ },+ {+ "id": "3b239b11cbb2ac0b",+ "traceId": "e1fde3efec57ce8a69bafd3fb928a7eb",+ "startTime": "2025-08-22T09:38:57.088Z",+ "endTime": "2025-08-22T09:38:58.835Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "b024c7ee7680b708",+ "type": "SPAN",+ "environment": "default",+ "name": "agent",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-08-22T09:39:11.673Z",+ "updatedAt": "2025-08-22T09:39:11.950Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 1.747,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ },+ {+ "id": "98d3e02591797c04",+ "traceId": "e1fde3efec57ce8a69bafd3fb928a7eb",+ "startTime": "2025-08-22T09:38:56.231Z",+ "endTime": "2025-08-22T09:38:57.082Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "b024c7ee7680b708",+ "type": "SPAN",+ "environment": "default",+ "name": "agent",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-08-22T09:39:09.952Z",+ "updatedAt": "2025-08-22T09:39:10.192Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 0.851,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ },+ {+ "id": "b024c7ee7680b708",+ "traceId": "e1fde3efec57ce8a69bafd3fb928a7eb",+ "startTime": "2025-08-22T09:38:56.228Z",+ "endTime": "2025-08-22T09:38:58.838Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": null,+ "type": "SPAN",+ "environment": "default",+ "name": "LangGraph",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-08-22T09:39:09.403Z",+ "updatedAt": "2025-08-22T09:39:09.818Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 2.61,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ },+ {+ "id": "c7fbfdc6ab70ca4d",+ "traceId": "e1fde3efec57ce8a69bafd3fb928a7eb",+ "startTime": "2025-08-22T09:38:57.081Z",+ "endTime": "2025-08-22T09:38:57.081Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "98d3e02591797c04",+ "type": "SPAN",+ "environment": "default",+ "name": "should_continue",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-08-22T09:39:09.393Z",+ "updatedAt": "2025-08-22T09:39:09.617Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 0,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ },+ {+ "id": "c8a18a38a3a115cb",+ "traceId": "e1fde3efec57ce8a69bafd3fb928a7eb",+ "startTime": "2025-08-22T09:38:57.083Z",+ "endTime": "2025-08-22T09:38:57.086Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "b024c7ee7680b708",+ "type": "SPAN",+ "environment": "default",+ "name": "tools",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-08-22T09:39:10.453Z",+ "updatedAt": "2025-08-22T09:39:10.625Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 0.003,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ },+ {+ "id": "e638064431445dce",+ "traceId": "e1fde3efec57ce8a69bafd3fb928a7eb",+ "startTime": "2025-08-22T09:38:58.834Z",+ "endTime": "2025-08-22T09:38:58.834Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "3b239b11cbb2ac0b",+ "type": "SPAN",+ "environment": "default",+ "name": "should_continue",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-08-22T09:39:09.989Z",+ "updatedAt": "2025-08-22T09:39:10.308Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 0,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ }+ ]+ },+ "observations": [+ {+ "id": "4f6535aaebcda355",+ "traceId": "e1fde3efec57ce8a69bafd3fb928a7eb",+ "startTime": "2025-08-22T09:38:56.232Z",+ "endTime": "2025-08-22T09:38:57.080Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "98d3e02591797c04",+ "type": "GENERATION",+ "environment": "default",+ "name": "ChatOpenAI",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-08-22T09:39:11.641Z",+ "updatedAt": "2025-08-22T09:39:11.937Z",+ "input": "[{\"role\": \"user\", \"content\": \"Be helpful!\"}, {\"role\": \"user\", \"content\": \"Search the web for 'example' and summarize.\"}, {\"role\": \"tool\", \"content\": {\"type\": \"function\", \"function\": {\"name\": \"Web-Search\", \"description\": \"Dummy web search tool.\", \"parameters\": {\"properties\": {\"query\": {\"type\": \"string\"}}, \"required\": [\"query\"], \"type\": \"object\"}}}}]",+ "output": "{\"role\": \"assistant\", \"content\": \"\", \"additional_kwargs\": {\"tool_calls\": [{\"id\": \"call_1oGK863sxQHlPreFhDdEs3yl\", \"function\": {\"arguments\": \"{\\\"query\\\":\\\"example\\\"}\", \"name\": \"Web-Search\"}, \"type\": \"function\"}], \"refusal\": null}}",+ "model": "gpt-4o-2024-08-06",+ "internalModelId": "b33c06da-9490-4bbd-a2dd-878222948539",+ "modelParameters": {+ "temperature": 0+ },+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 0.848,+ "timeToFirstToken": null,+ "usageDetails": {+ "input": 60,+ "output": 15,+ "total": 75,+ "input_audio": 0,+ "input_cache_read": 0,+ "output_audio": 0,+ "output_reasoning": 0+ },+ "costDetails": {+ "input": 0.00006,+ "output": 0.000015,+ "total": 0.000075+ },+ "providedCostDetails": {},+ "inputCost": 0.00006,+ "outputCost": 0.000015,+ "totalCost": 0.000075,+ "inputUsage": 60,+ "outputUsage": 15,+ "totalUsage": 75,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"tags\":[\"seq:step:1\",\"demo\",\"langfuse\",\"langgraph\"],\"thread_id\":\"demo-thread-1\",\"langgraph_step\":1,\"langgraph_node\":\"agent\",\"langgraph_triggers\":[\"branch:to:agent\"],\"langgraph_path\":[\"__pregel_pull\",\"agent\"],\"langgraph_checkpoint_ns\":\"agent:d507d231-6dad-b926-076f-0644c0a0134e\",\"checkpoint_ns\":\"agent:d507d231-6dad-b926-076f-0644c0a0134e\",\"ls_provider\":\"openai\",\"ls_model_name\":\"gpt-4o\",\"ls_model_type\":\"chat\",\"ls_temperature\":0,\"resourceAttributes\":{\"telemetry.sdk.language\":\"python\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"1.36.0\",\"service.name\":\"unknown_service\"},\"scope\":{\"name\":\"langfuse-sdk\",\"version\":\"3.3.0\",\"attributes\":{\"public_key\":\"KJGLKJGLJG\"}}}",+ "internalModel": "b33c06da-9490-4bbd-a2dd-878222948539"+ },+ {+ "id": "5ba09605e0929d78",+ "traceId": "e1fde3efec57ce8a69bafd3fb928a7eb",+ "startTime": "2025-08-22T09:38:57.089Z",+ "endTime": "2025-08-22T09:38:58.832Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "3b239b11cbb2ac0b",+ "type": "GENERATION",+ "environment": "default",+ "name": "ChatOpenAI",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-08-22T09:39:11.173Z",+ "updatedAt": "2025-08-22T09:39:11.492Z",+ "input": "[{\"role\": \"user\", \"content\": \"Be helpful!\"}, {\"role\": \"user\", \"content\": \"Search the web for 'example' and summarize.\"}, {\"role\": \"assistant\", \"content\": \"\", \"additional_kwargs\": {\"tool_calls\": [{\"id\": \"call_1oGK863sxQHlPreFhDdEs3yl\", \"function\": {\"arguments\": \"{\\\"query\\\":\\\"example\\\"}\", \"name\": \"Web-Search\"}, \"type\": \"function\"}], \"refusal\": null}}, {\"role\": \"tool\", \"content\": \"[{\\\"url\\\": \\\"https://example.com\\\", \\\"title\\\": \\\"Example Result\\\", \\\"q\\\": \\\"example\\\"}]\", \"tool_call_id\": \"call_1oGK863sxQHlPreFhDdEs3yl\"}, {\"role\": \"tool\", \"content\": {\"type\": \"function\", \"function\": {\"name\": \"Web-Search\", \"description\": \"Dummy web search tool.\", \"parameters\": {\"properties\": {\"query\": {\"type\": \"string\"}}, \"required\": [\"query\"], \"type\": \"object\"}}}}]",+ "output": "{\"role\": \"assistant\", \"content\": \"The search for \\\"example\\\" primarily leads to the website [example.com](https://example.com), which is often used as a placeholder or demonstration site in various contexts. It serves as a generic example for illustrating how a website might look or function.\", \"additional_kwargs\": {\"refusal\": null}}",+ "model": "gpt-4o-2024-08-06",+ "internalModelId": "b33c06da-9490-4bbd-a2dd-878222948539",+ "modelParameters": {+ "temperature": 0+ },+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 1.743,+ "timeToFirstToken": null,+ "usageDetails": {+ "input": 108,+ "output": 51,+ "total": 159,+ "input_audio": 0,+ "input_cache_read": 0,+ "output_audio": 0,+ "output_reasoning": 0+ },+ "costDetails": {+ "input": 0.000108,+ "output": 0.000051,+ "total": 0.000159+ },+ "providedCostDetails": {},+ "inputCost": 0.000108,+ "outputCost": 0.000051,+ "totalCost": 0.000159,+ "inputUsage": 108,+ "outputUsage": 51,+ "totalUsage": 159,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"tags\":[\"seq:step:1\",\"demo\",\"langfuse\",\"langgraph\"],\"thread_id\":\"demo-thread-1\",\"langgraph_step\":3,\"langgraph_node\":\"agent\",\"langgraph_triggers\":[\"branch:to:agent\"],\"langgraph_path\":[\"__pregel_pull\",\"agent\"],\"langgraph_checkpoint_ns\":\"agent:695fb20e-d55e-ccb4-5384-070711a6cdf8\",\"checkpoint_ns\":\"agent:695fb20e-d55e-ccb4-5384-070711a6cdf8\",\"ls_provider\":\"openai\",\"ls_model_name\":\"gpt-4o\",\"ls_model_type\":\"chat\",\"ls_temperature\":0,\"resourceAttributes\":{\"telemetry.sdk.language\":\"python\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"1.36.0\",\"service.name\":\"unknown_service\"},\"scope\":{\"name\":\"langfuse-sdk\",\"version\":\"3.3.0\",\"attributes\":{\"public_key\":\"KJGLKJGLJG\"}}}",+ "internalModel": "b33c06da-9490-4bbd-a2dd-878222948539"+ },+ {+ "id": "21441266a9f21251",+ "traceId": "e1fde3efec57ce8a69bafd3fb928a7eb",+ "startTime": "2025-08-22T09:38:57.085Z",+ "endTime": "2025-08-22T09:38:57.086Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "c8a18a38a3a115cb",+ "type": "SPAN",+ "environment": "default",+ "name": "Web-Search",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-08-22T09:39:11.221Z",+ "updatedAt": "2025-08-22T09:39:11.351Z",+ "input": "{'query': 'example'}",+ "output": "{\"content\": \"[{\\\"url\\\": \\\"https://example.com\\\", \\\"title\\\": \\\"Example Result\\\", \\\"q\\\": \\\"example\\\"}]\", \"additional_kwargs\": {}, \"response_metadata\": {}, \"type\": \"tool\", \"name\": \"Web-Search\", \"id\": null, \"tool_call_id\": \"call_1oGK863sxQHlPreFhDdEs3yl\", \"artifact\": null, \"status\": \"success\"}",+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 0.001,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"tags\":[\"seq:step:1\",\"langgraph\",\"demo\",\"langfuse\"],\"thread_id\":\"demo-thread-1\",\"langgraph_step\":2,\"langgraph_node\":\"tools\",\"langgraph_triggers\":[\"branch:to:tools\"],\"langgraph_path\":[\"__pregel_pull\",\"tools\"],\"langgraph_checkpoint_ns\":\"tools:a8b0eaec-b747-6d2a-2f81-4b6ac7e07fc1\",\"checkpoint_ns\":\"tools:a8b0eaec-b747-6d2a-2f81-4b6ac7e07fc1\",\"inputs\":{\"query\":\"example\"},\"color\":\"green\",\"resourceAttributes\":{\"telemetry.sdk.language\":\"python\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"1.36.0\",\"service.name\":\"unknown_service\"},\"scope\":{\"name\":\"langfuse-sdk\",\"version\":\"3.3.0\",\"attributes\":{\"public_key\":\"KJGLKJGLJG\"}}}",+ "internalModel": null+ },+ {+ "id": "3b239b11cbb2ac0b",+ "traceId": "e1fde3efec57ce8a69bafd3fb928a7eb",+ "startTime": "2025-08-22T09:38:57.088Z",+ "endTime": "2025-08-22T09:38:58.835Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "b024c7ee7680b708",+ "type": "SPAN",+ "environment": "default",+ "name": "agent",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-08-22T09:39:11.673Z",+ "updatedAt": "2025-08-22T09:39:11.950Z",+ "input": "{\"messages\": [{\"content\": \"Search the web for 'example' and summarize.\", \"additional_kwargs\": {}, \"response_metadata\": {}, \"type\": \"human\", \"name\": null, \"id\": \"4f5904a4-473c-443c-af46-68765777a2f0\", \"example\": false}, {\"content\": \"\", \"additional_kwargs\": {\"tool_calls\": [{\"id\": \"call_1oGK863sxQHlPreFhDdEs3yl\", \"function\": {\"arguments\": \"{\\\"query\\\":\\\"example\\\"}\", \"name\": \"Web-Search\"}, \"type\": \"function\"}], \"refusal\": null}, \"response_metadata\": {\"token_usage\": {\"completion_tokens\": 15, \"prompt_tokens\": 60, \"total_tokens\": 75, \"completion_tokens_details\": {\"accepted_prediction_tokens\": 0, \"audio_tokens\": 0, \"reasoning_tokens\": 0, \"rejected_prediction_tokens\": 0}, \"prompt_tokens_details\": {\"audio_tokens\": 0, \"cached_tokens\": 0}}, \"model_name\": \"gpt-4o-2024-08-06\", \"system_fingerprint\": \"fp_46bff0e0c8\", \"id\": \"chatcmpl-C7IWW4ZyFcMMUH5I00yulLd1Cuz2f\", \"service_tier\": \"default\", \"finish_reason\": \"tool_calls\", \"logprobs\": null}, \"type\": \"ai\", \"name\": null, \"id\": \"run--06f4147e-6dc2-4078-a368-096c05261f12-0\", \"example\": false, \"tool_calls\": [{\"name\": \"Web-Search\", \"args\": {\"query\": \"example\"}, \"id\": \"call_1oGK863sxQHlPreFhDdEs3yl\", \"type\": \"tool_call\"}], \"invalid_tool_calls\": [], \"usage_metadata\": {\"input_tokens\": 60, \"output_tokens\": 15, \"total_tokens\": 75, \"input_token_details\": {\"audio\": 0, \"cache_read\": 0}, \"output_token_details\": {\"audio\": 0, \"reasoning\": 0}}}, {\"content\": \"[{\\\"url\\\": \\\"https://example.com\\\", \\\"title\\\": \\\"Example Result\\\", \\\"q\\\": \\\"example\\\"}]\", \"additional_kwargs\": {}, \"response_metadata\": {}, \"type\": \"tool\", \"name\": \"Web-Search\", \"id\": \"85ffdeba-3d69-4851-bd78-993403a10fd6\", \"tool_call_id\": \"call_1oGK863sxQHlPreFhDdEs3yl\", \"artifact\": null, \"status\": \"success\"}]}",+ "output": "{\"messages\": [{\"content\": \"The search for \\\"example\\\" primarily leads to the website [example.com](https://example.com), which is often used as a placeholder or demonstration site in various contexts. It serves as a generic example for illustrating how a website might look or function.\", \"additional_kwargs\": {\"refusal\": null}, \"response_metadata\": {\"token_usage\": {\"completion_tokens\": 51, \"prompt_tokens\": 108, \"total_tokens\": 159, \"completion_tokens_details\": {\"accepted_prediction_tokens\": 0, \"audio_tokens\": 0, \"reasoning_tokens\": 0, \"rejected_prediction_tokens\": 0}, \"prompt_tokens_details\": {\"audio_tokens\": 0, \"cached_tokens\": 0}}, \"model_name\": \"gpt-4o-2024-08-06\", \"system_fingerprint\": \"fp_46bff0e0c8\", \"id\": \"chatcmpl-C7IWXZL0b6BLNuyEMr369PF4PEpSs\", \"service_tier\": \"default\", \"finish_reason\": \"stop\", \"logprobs\": null}, \"type\": \"ai\", \"name\": null, \"id\": \"run--a6270d77-8cd6-4c1b-a80b-c1da054d9f9a-0\", \"example\": false, \"tool_calls\": [], \"invalid_tool_calls\": [], \"usage_metadata\": {\"input_tokens\": 108, \"output_tokens\": 51, \"total_tokens\": 159, \"input_token_details\": {\"audio\": 0, \"cache_read\": 0}, \"output_token_details\": {\"audio\": 0, \"reasoning\": 0}}}]}",+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 1.747,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"tags\":[\"graph:step:3\",\"langgraph\",\"demo\",\"langfuse\"],\"thread_id\":\"demo-thread-1\",\"langgraph_step\":3,\"langgraph_node\":\"agent\",\"langgraph_triggers\":[\"branch:to:agent\"],\"langgraph_path\":[\"__pregel_pull\",\"agent\"],\"langgraph_checkpoint_ns\":\"agent:695fb20e-d55e-ccb4-5384-070711a6cdf8\",\"resourceAttributes\":{\"telemetry.sdk.language\":\"python\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"1.36.0\",\"service.name\":\"unknown_service\"},\"scope\":{\"name\":\"langfuse-sdk\",\"version\":\"3.3.0\",\"attributes\":{\"public_key\":\"KJGLKJGLJG\"}}}",+ "internalModel": null+ },+ {+ "id": "98d3e02591797c04",+ "traceId": "e1fde3efec57ce8a69bafd3fb928a7eb",+ "startTime": "2025-08-22T09:38:56.231Z",+ "endTime": "2025-08-22T09:38:57.082Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "b024c7ee7680b708",+ "type": "SPAN",+ "environment": "default",+ "name": "agent",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-08-22T09:39:09.952Z",+ "updatedAt": "2025-08-22T09:39:10.192Z",+ "input": "{\"messages\": [{\"content\": \"Search the web for 'example' and summarize.\", \"additional_kwargs\": {}, \"response_metadata\": {}, \"type\": \"human\", \"name\": null, \"id\": \"4f5904a4-473c-443c-af46-68765777a2f0\", \"example\": false}]}",+ "output": "{\"messages\": [{\"content\": \"\", \"additional_kwargs\": {\"tool_calls\": [{\"id\": \"call_1oGK863sxQHlPreFhDdEs3yl\", \"function\": {\"arguments\": \"{\\\"query\\\":\\\"example\\\"}\", \"name\": \"Web-Search\"}, \"type\": \"function\"}], \"refusal\": null}, \"response_metadata\": {\"token_usage\": {\"completion_tokens\": 15, \"prompt_tokens\": 60, \"total_tokens\": 75, \"completion_tokens_details\": {\"accepted_prediction_tokens\": 0, \"audio_tokens\": 0, \"reasoning_tokens\": 0, \"rejected_prediction_tokens\": 0}, \"prompt_tokens_details\": {\"audio_tokens\": 0, \"cached_tokens\": 0}}, \"model_name\": \"gpt-4o-2024-08-06\", \"system_fingerprint\": \"fp_46bff0e0c8\", \"id\": \"chatcmpl-C7IWW4ZyFcMMUH5I00yulLd1Cuz2f\", \"service_tier\": \"default\", \"finish_reason\": \"tool_calls\", \"logprobs\": null}, \"type\": \"ai\", \"name\": null, \"id\": \"run--06f4147e-6dc2-4078-a368-096c05261f12-0\", \"example\": false, \"tool_calls\": [{\"name\": \"Web-Search\", \"args\": {\"query\": \"example\"}, \"id\": \"call_1oGK863sxQHlPreFhDdEs3yl\", \"type\": \"tool_call\"}], \"invalid_tool_calls\": [], \"usage_metadata\": {\"input_tokens\": 60, \"output_tokens\": 15, \"total_tokens\": 75, \"input_token_details\": {\"audio\": 0, \"cache_read\": 0}, \"output_token_details\": {\"audio\": 0, \"reasoning\": 0}}}]}",+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 0.851,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"tags\":[\"graph:step:1\",\"langgraph\",\"demo\",\"langfuse\"],\"thread_id\":\"demo-thread-1\",\"langgraph_step\":1,\"langgraph_node\":\"agent\",\"langgraph_triggers\":[\"branch:to:agent\"],\"langgraph_path\":[\"__pregel_pull\",\"agent\"],\"langgraph_checkpoint_ns\":\"agent:d507d231-6dad-b926-076f-0644c0a0134e\",\"resourceAttributes\":{\"telemetry.sdk.language\":\"python\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"1.36.0\",\"service.name\":\"unknown_service\"},\"scope\":{\"name\":\"langfuse-sdk\",\"version\":\"3.3.0\",\"attributes\":{\"public_key\":\"KJGLKJGLJG\"}}}",+ "internalModel": null+ },+ {+ "id": "b024c7ee7680b708",+ "traceId": "e1fde3efec57ce8a69bafd3fb928a7eb",+ "startTime": "2025-08-22T09:38:56.228Z",+ "endTime": "2025-08-22T09:38:58.838Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": null,+ "type": "SPAN",+ "environment": "default",+ "name": "LangGraph",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-08-22T09:39:09.403Z",+ "updatedAt": "2025-08-22T09:39:09.818Z",+ "input": "{\"messages\": [{\"content\": \"Search the web for 'example' and summarize.\", \"additional_kwargs\": {}, \"response_metadata\": {}, \"type\": \"human\", \"name\": null, \"id\": null, \"example\": false}]}",+ "output": "{\"messages\": [{\"content\": \"Search the web for 'example' and summarize.\", \"additional_kwargs\": {}, \"response_metadata\": {}, \"type\": \"human\", \"name\": null, \"id\": \"4f5904a4-473c-443c-af46-68765777a2f0\", \"example\": false}, {\"content\": \"\", \"additional_kwargs\": {\"tool_calls\": [{\"id\": \"call_1oGK863sxQHlPreFhDdEs3yl\", \"function\": {\"arguments\": \"{\\\"query\\\":\\\"example\\\"}\", \"name\": \"Web-Search\"}, \"type\": \"function\"}], \"refusal\": null}, \"response_metadata\": {\"token_usage\": {\"completion_tokens\": 15, \"prompt_tokens\": 60, \"total_tokens\": 75, \"completion_tokens_details\": {\"accepted_prediction_tokens\": 0, \"audio_tokens\": 0, \"reasoning_tokens\": 0, \"rejected_prediction_tokens\": 0}, \"prompt_tokens_details\": {\"audio_tokens\": 0, \"cached_tokens\": 0}}, \"model_name\": \"gpt-4o-2024-08-06\", \"system_fingerprint\": \"fp_46bff0e0c8\", \"id\": \"chatcmpl-C7IWW4ZyFcMMUH5I00yulLd1Cuz2f\", \"service_tier\": \"default\", \"finish_reason\": \"tool_calls\", \"logprobs\": null}, \"type\": \"ai\", \"name\": null, \"id\": \"run--06f4147e-6dc2-4078-a368-096c05261f12-0\", \"example\": false, \"tool_calls\": [{\"name\": \"Web-Search\", \"args\": {\"query\": \"example\"}, \"id\": \"call_1oGK863sxQHlPreFhDdEs3yl\", \"type\": \"tool_call\"}], \"invalid_tool_calls\": [], \"usage_metadata\": {\"input_tokens\": 60, \"output_tokens\": 15, \"total_tokens\": 75, \"input_token_details\": {\"audio\": 0, \"cache_read\": 0}, \"output_token_details\": {\"audio\": 0, \"reasoning\": 0}}}, {\"content\": \"[{\\\"url\\\": \\\"https://example.com\\\", \\\"title\\\": \\\"Example Result\\\", \\\"q\\\": \\\"example\\\"}]\", \"additional_kwargs\": {}, \"response_metadata\": {}, \"type\": \"tool\", \"name\": \"Web-Search\", \"id\": \"85ffdeba-3d69-4851-bd78-993403a10fd6\", \"tool_call_id\": \"call_1oGK863sxQHlPreFhDdEs3yl\", \"artifact\": null, \"status\": \"success\"}, {\"content\": \"The search for \\\"example\\\" primarily leads to the website [example.com](https://example.com), which is often used as a placeholder or demonstration site in various contexts. It serves as a generic example for illustrating how a website might look or function.\", \"additional_kwargs\": {\"refusal\": null}, \"response_metadata\": {\"token_usage\": {\"completion_tokens\": 51, \"prompt_tokens\": 108, \"total_tokens\": 159, \"completion_tokens_details\": {\"accepted_prediction_tokens\": 0, \"audio_tokens\": 0, \"reasoning_tokens\": 0, \"rejected_prediction_tokens\": 0}, \"prompt_tokens_details\": {\"audio_tokens\": 0, \"cached_tokens\": 0}}, \"model_name\": \"gpt-4o-2024-08-06\", \"system_fingerprint\": \"fp_46bff0e0c8\", \"id\": \"chatcmpl-C7IWXZL0b6BLNuyEMr369PF4PEpSs\", \"service_tier\": \"default\", \"finish_reason\": \"stop\", \"logprobs\": null}, \"type\": \"ai\", \"name\": null, \"id\": \"run--a6270d77-8cd6-4c1b-a80b-c1da054d9f9a-0\", \"example\": false, \"tool_calls\": [], \"invalid_tool_calls\": [], \"usage_metadata\": {\"input_tokens\": 108, \"output_tokens\": 51, \"total_tokens\": 159, \"input_token_details\": {\"audio\": 0, \"cache_read\": 0}, \"output_token_details\": {\"audio\": 0, \"reasoning\": 0}}}]}",+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 2.61,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"tags\":[\"langgraph\",\"demo\",\"langfuse\"],\"thread_id\":\"demo-thread-1\",\"resourceAttributes\":{\"telemetry.sdk.language\":\"python\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"1.36.0\",\"service.name\":\"unknown_service\"},\"scope\":{\"name\":\"langfuse-sdk\",\"version\":\"3.3.0\",\"attributes\":{\"public_key\":\"KJGLKJGLJG\"}}}",+ "internalModel": null+ },+ {+ "id": "c7fbfdc6ab70ca4d",+ "traceId": "e1fde3efec57ce8a69bafd3fb928a7eb",+ "startTime": "2025-08-22T09:38:57.081Z",+ "endTime": "2025-08-22T09:38:57.081Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "98d3e02591797c04",+ "type": "SPAN",+ "environment": "default",+ "name": "should_continue",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-08-22T09:39:09.393Z",+ "updatedAt": "2025-08-22T09:39:09.617Z",+ "input": "{\"messages\": [{\"content\": \"Search the web for 'example' and summarize.\", \"additional_kwargs\": {}, \"response_metadata\": {}, \"type\": \"human\", \"name\": null, \"id\": \"4f5904a4-473c-443c-af46-68765777a2f0\", \"example\": false}, {\"content\": \"\", \"additional_kwargs\": {\"tool_calls\": [{\"id\": \"call_1oGK863sxQHlPreFhDdEs3yl\", \"function\": {\"arguments\": \"{\\\"query\\\":\\\"example\\\"}\", \"name\": \"Web-Search\"}, \"type\": \"function\"}], \"refusal\": null}, \"response_metadata\": {\"token_usage\": {\"completion_tokens\": 15, \"prompt_tokens\": 60, \"total_tokens\": 75, \"completion_tokens_details\": {\"accepted_prediction_tokens\": 0, \"audio_tokens\": 0, \"reasoning_tokens\": 0, \"rejected_prediction_tokens\": 0}, \"prompt_tokens_details\": {\"audio_tokens\": 0, \"cached_tokens\": 0}}, \"model_name\": \"gpt-4o-2024-08-06\", \"system_fingerprint\": \"fp_46bff0e0c8\", \"id\": \"chatcmpl-C7IWW4ZyFcMMUH5I00yulLd1Cuz2f\", \"service_tier\": \"default\", \"finish_reason\": \"tool_calls\", \"logprobs\": null}, \"type\": \"ai\", \"name\": null, \"id\": \"run--06f4147e-6dc2-4078-a368-096c05261f12-0\", \"example\": false, \"tool_calls\": [{\"name\": \"Web-Search\", \"args\": {\"query\": \"example\"}, \"id\": \"call_1oGK863sxQHlPreFhDdEs3yl\", \"type\": \"tool_call\"}], \"invalid_tool_calls\": [], \"usage_metadata\": {\"input_tokens\": 60, \"output_tokens\": 15, \"total_tokens\": 75, \"input_token_details\": {\"audio\": 0, \"cache_read\": 0}, \"output_token_details\": {\"audio\": 0, \"reasoning\": 0}}}]}",+ "output": "continue",+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 0,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"tags\":[\"seq:step:3\",\"langgraph\",\"demo\",\"langfuse\"],\"thread_id\":\"demo-thread-1\",\"langgraph_step\":1,\"langgraph_node\":\"agent\",\"langgraph_triggers\":[\"branch:to:agent\"],\"langgraph_path\":[\"__pregel_pull\",\"agent\"],\"langgraph_checkpoint_ns\":\"agent:d507d231-6dad-b926-076f-0644c0a0134e\",\"resourceAttributes\":{\"telemetry.sdk.language\":\"python\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"1.36.0\",\"service.name\":\"unknown_service\"},\"scope\":{\"name\":\"langfuse-sdk\",\"version\":\"3.3.0\",\"attributes\":{\"public_key\":\"KJGLKJGLJG\"}}}",+ "internalModel": null+ },+ {+ "id": "c8a18a38a3a115cb",+ "traceId": "e1fde3efec57ce8a69bafd3fb928a7eb",+ "startTime": "2025-08-22T09:38:57.083Z",+ "endTime": "2025-08-22T09:38:57.086Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "b024c7ee7680b708",+ "type": "SPAN",+ "environment": "default",+ "name": "tools",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-08-22T09:39:10.453Z",+ "updatedAt": "2025-08-22T09:39:10.625Z",+ "input": "{\"messages\": [{\"content\": \"Search the web for 'example' and summarize.\", \"additional_kwargs\": {}, \"response_metadata\": {}, \"type\": \"human\", \"name\": null, \"id\": \"4f5904a4-473c-443c-af46-68765777a2f0\", \"example\": false}, {\"content\": \"\", \"additional_kwargs\": {\"tool_calls\": [{\"id\": \"call_1oGK863sxQHlPreFhDdEs3yl\", \"function\": {\"arguments\": \"{\\\"query\\\":\\\"example\\\"}\", \"name\": \"Web-Search\"}, \"type\": \"function\"}], \"refusal\": null}, \"response_metadata\": {\"token_usage\": {\"completion_tokens\": 15, \"prompt_tokens\": 60, \"total_tokens\": 75, \"completion_tokens_details\": {\"accepted_prediction_tokens\": 0, \"audio_tokens\": 0, \"reasoning_tokens\": 0, \"rejected_prediction_tokens\": 0}, \"prompt_tokens_details\": {\"audio_tokens\": 0, \"cached_tokens\": 0}}, \"model_name\": \"gpt-4o-2024-08-06\", \"system_fingerprint\": \"fp_46bff0e0c8\", \"id\": \"chatcmpl-C7IWW4ZyFcMMUH5I00yulLd1Cuz2f\", \"service_tier\": \"default\", \"finish_reason\": \"tool_calls\", \"logprobs\": null}, \"type\": \"ai\", \"name\": null, \"id\": \"run--06f4147e-6dc2-4078-a368-096c05261f12-0\", \"example\": false, \"tool_calls\": [{\"name\": \"Web-Search\", \"args\": {\"query\": \"example\"}, \"id\": \"call_1oGK863sxQHlPreFhDdEs3yl\", \"type\": \"tool_call\"}], \"invalid_tool_calls\": [], \"usage_metadata\": {\"input_tokens\": 60, \"output_tokens\": 15, \"total_tokens\": 75, \"input_token_details\": {\"audio\": 0, \"cache_read\": 0}, \"output_token_details\": {\"audio\": 0, \"reasoning\": 0}}}]}",+ "output": "{\"messages\": [{\"content\": \"[{\\\"url\\\": \\\"https://example.com\\\", \\\"title\\\": \\\"Example Result\\\", \\\"q\\\": \\\"example\\\"}]\", \"additional_kwargs\": {}, \"response_metadata\": {}, \"type\": \"tool\", \"name\": \"Web-Search\", \"id\": null, \"tool_call_id\": \"call_1oGK863sxQHlPreFhDdEs3yl\", \"artifact\": null, \"status\": \"success\"}]}",+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 0.003,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"tags\":[\"graph:step:2\",\"langgraph\",\"demo\",\"langfuse\"],\"thread_id\":\"demo-thread-1\",\"langgraph_step\":2,\"langgraph_node\":\"tools\",\"langgraph_triggers\":[\"branch:to:tools\"],\"langgraph_path\":[\"__pregel_pull\",\"tools\"],\"langgraph_checkpoint_ns\":\"tools:a8b0eaec-b747-6d2a-2f81-4b6ac7e07fc1\",\"resourceAttributes\":{\"telemetry.sdk.language\":\"python\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"1.36.0\",\"service.name\":\"unknown_service\"},\"scope\":{\"name\":\"langfuse-sdk\",\"version\":\"3.3.0\",\"attributes\":{\"public_key\":\"KJGLKJGLJG\"}}}",+ "internalModel": null+ },+ {+ "id": "e638064431445dce",+ "traceId": "e1fde3efec57ce8a69bafd3fb928a7eb",+ "startTime": "2025-08-22T09:38:58.834Z",+ "endTime": "2025-08-22T09:38:58.834Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "3b239b11cbb2ac0b",+ "type": "SPAN",+ "environment": "default",+ "name": "should_continue",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-08-22T09:39:09.989Z",+ "updatedAt": "2025-08-22T09:39:10.308Z",+ "input": "{\"messages\": [{\"content\": \"Search the web for 'example' and summarize.\", \"additional_kwargs\": {}, \"response_metadata\": {}, \"type\": \"human\", \"name\": null, \"id\": \"4f5904a4-473c-443c-af46-68765777a2f0\", \"example\": false}, {\"content\": \"\", \"additional_kwargs\": {\"tool_calls\": [{\"id\": \"call_1oGK863sxQHlPreFhDdEs3yl\", \"function\": {\"arguments\": \"{\\\"query\\\":\\\"example\\\"}\", \"name\": \"Web-Search\"}, \"type\": \"function\"}], \"refusal\": null}, \"response_metadata\": {\"token_usage\": {\"completion_tokens\": 15, \"prompt_tokens\": 60, \"total_tokens\": 75, \"completion_tokens_details\": {\"accepted_prediction_tokens\": 0, \"audio_tokens\": 0, \"reasoning_tokens\": 0, \"rejected_prediction_tokens\": 0}, \"prompt_tokens_details\": {\"audio_tokens\": 0, \"cached_tokens\": 0}}, \"model_name\": \"gpt-4o-2024-08-06\", \"system_fingerprint\": \"fp_46bff0e0c8\", \"id\": \"chatcmpl-C7IWW4ZyFcMMUH5I00yulLd1Cuz2f\", \"service_tier\": \"default\", \"finish_reason\": \"tool_calls\", \"logprobs\": null}, \"type\": \"ai\", \"name\": null, \"id\": \"run--06f4147e-6dc2-4078-a368-096c05261f12-0\", \"example\": false, \"tool_calls\": [{\"name\": \"Web-Search\", \"args\": {\"query\": \"example\"}, \"id\": \"call_1oGK863sxQHlPreFhDdEs3yl\", \"type\": \"tool_call\"}], \"invalid_tool_calls\": [], \"usage_metadata\": {\"input_tokens\": 60, \"output_tokens\": 15, \"total_tokens\": 75, \"input_token_details\": {\"audio\": 0, \"cache_read\": 0}, \"output_token_details\": {\"audio\": 0, \"reasoning\": 0}}}, {\"content\": \"[{\\\"url\\\": \\\"https://example.com\\\", \\\"title\\\": \\\"Example Result\\\", \\\"q\\\": \\\"example\\\"}]\", \"additional_kwargs\": {}, \"response_metadata\": {}, \"type\": \"tool\", \"name\": \"Web-Search\", \"id\": \"85ffdeba-3d69-4851-bd78-993403a10fd6\", \"tool_call_id\": \"call_1oGK863sxQHlPreFhDdEs3yl\", \"artifact\": null, \"status\": \"success\"}, {\"content\": \"The search for \\\"example\\\" primarily leads to the website [example.com](https://example.com), which is often used as a placeholder or demonstration site in various contexts. It serves as a generic example for illustrating how a website might look or function.\", \"additional_kwargs\": {\"refusal\": null}, \"response_metadata\": {\"token_usage\": {\"completion_tokens\": 51, \"prompt_tokens\": 108, \"total_tokens\": 159, \"completion_tokens_details\": {\"accepted_prediction_tokens\": 0, \"audio_tokens\": 0, \"reasoning_tokens\": 0, \"rejected_prediction_tokens\": 0}, \"prompt_tokens_details\": {\"audio_tokens\": 0, \"cached_tokens\": 0}}, \"model_name\": \"gpt-4o-2024-08-06\", \"system_fingerprint\": \"fp_46bff0e0c8\", \"id\": \"chatcmpl-C7IWXZL0b6BLNuyEMr369PF4PEpSs\", \"service_tier\": \"default\", \"finish_reason\": \"stop\", \"logprobs\": null}, \"type\": \"ai\", \"name\": null, \"id\": \"run--a6270d77-8cd6-4c1b-a80b-c1da054d9f9a-0\", \"example\": false, \"tool_calls\": [], \"invalid_tool_calls\": [], \"usage_metadata\": {\"input_tokens\": 108, \"output_tokens\": 51, \"total_tokens\": 159, \"input_token_details\": {\"audio\": 0, \"cache_read\": 0}, \"output_token_details\": {\"audio\": 0, \"reasoning\": 0}}}]}",+ "output": "end",+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 0,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"tags\":[\"seq:step:3\",\"langgraph\",\"demo\",\"langfuse\"],\"thread_id\":\"demo-thread-1\",\"langgraph_step\":3,\"langgraph_node\":\"agent\",\"langgraph_triggers\":[\"branch:to:agent\"],\"langgraph_path\":[\"__pregel_pull\",\"agent\"],\"langgraph_checkpoint_ns\":\"agent:695fb20e-d55e-ccb4-5384-070711a6cdf8\",\"resourceAttributes\":{\"telemetry.sdk.language\":\"python\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"1.36.0\",\"service.name\":\"unknown_service\"},\"scope\":{\"name\":\"langfuse-sdk\",\"version\":\"3.3.0\",\"attributes\":{\"public_key\":\"KJGLKJGLJG\"}}}",+ "internalModel": null+ }+ ]+}diff --git a/worker/src/__tests__/chatml/framework-traces/llamaindex-2025-06-05.chatml.json b/worker/src/__tests__/chatml/framework-traces/llamaindex-2025-06-05.chatml.jsonnew file mode 100644index 0000000000..b2fef3f458--- /dev/null+++ b/worker/src/__tests__/chatml/framework-traces/llamaindex-2025-06-05.chatml.json@@ -0,0 +1,18 @@+{+ "7ca8b22f6628d0c7": {+ "input": {+ "success": false,+ "error": {+ "name": "ZodError",+ "message": "[\n {\n \"expected\": \"array\",\n \"code\": \"invalid_type\",\n \"path\": [],\n \"message\": \"Invalid input: expected array, received object\"\n }\n]"+ }+ },+ "output": {+ "success": false,+ "error": {+ "name": "ZodError",+ "message": "[\n {\n \"expected\": \"object\",\n \"code\": \"invalid_type\",\n \"path\": [\n 0\n ],\n \"message\": \"Invalid input: expected object, received string\"\n }\n]"+ }+ }+ }+}\ No newline at end of filediff --git a/worker/src/__tests__/chatml/framework-traces/llamaindex-2025-06-05.trace.json b/worker/src/__tests__/chatml/framework-traces/llamaindex-2025-06-05.trace.jsonnew file mode 100644index 0000000000..056289286b--- /dev/null+++ b/worker/src/__tests__/chatml/framework-traces/llamaindex-2025-06-05.trace.json@@ -0,0 +1,239 @@+{+ "trace": {+ "id": "12ea412956f99347b0503c1144acd0ec",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "name": "llama-index-trace",+ "timestamp": "2025-06-05T15:45:52.971Z",+ "environment": "default",+ "tags": [+ "llama-index",+ "rag"+ ],+ "bookmarked": false,+ "release": null,+ "version": "1.0.0",+ "userId": "user_123",+ "sessionId": "session_abc",+ "public": true,+ "input": "\"What is Langfuse?\"",+ "output": "\"Langfuse is a tool designed to help developers monitor and debug applications that utilize large language models (LLMs). It provides features for tracking and analyzing the performance of LLMs, enabling developers to gain insights into how these models are functioning within their applications. Langfuse can be particularly useful for identifying issues, optimizing performance, and ensuring that the integration of language models into applications is smooth and effective.\"",+ "createdAt": "2025-06-05T15:45:56.000Z",+ "updatedAt": "2025-06-05T15:45:56.029Z",+ "metadata": "{\"email\":\"[email protected]\",\"resourceAttributes\":{\"telemetry.sdk.language\":\"python\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"1.33.1\",\"service.name\":\"unknown_service\"},\"scope\":{\"name\":\"langfuse-sdk\",\"version\":\"3.0.0\",\"attributes\":{\"public_key\":\"pk-lf-5855d85e-3943-497e-bd10-f50ad414bcba\"}}}",+ "scores": [],+ "corrections": [],+ "latency": 2.779,+ "observations": [+ {+ "id": "7ca8b22f6628d0c7",+ "traceId": "12ea412956f99347b0503c1144acd0ec",+ "startTime": "2025-06-05T15:45:52.971Z",+ "endTime": "2025-06-05T15:45:55.747Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "3344aabdd4e66110",+ "type": "GENERATION",+ "environment": "default",+ "name": "OpenAI.complete",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-06-05T15:45:55.866Z",+ "updatedAt": "2025-06-05T15:45:56.021Z",+ "input": null,+ "output": null,+ "model": "gpt-4o",+ "internalModelId": "b9854a5c92dc496b997d99d20",+ "modelParameters": {+ "context_window": 128000,+ "num_output": -1,+ "is_chat_model": true,+ "is_function_calling_model": true,+ "model_name": "gpt-4o",+ "system_role": "system"+ },+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 2.776,+ "timeToFirstToken": null,+ "usageDetails": {+ "input": 13,+ "prompt_details.cache_read": 0,+ "prompt_details.audio": 0,+ "output": 81,+ "completion_details.reasoning": 0,+ "completion_details.audio": 0,+ "total": 94+ },+ "costDetails": {+ "input": 0.0000325,+ "output": 0.00081,+ "total": 0.000842499999+ },+ "providedCostDetails": {},+ "inputCost": 0.0000325,+ "outputCost": 0.00081,+ "totalCost": 0.000842499999,+ "inputUsage": 13,+ "outputUsage": 81,+ "totalUsage": 94,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ },+ {+ "id": "3344aabdd4e66110",+ "traceId": "12ea412956f99347b0503c1144acd0ec",+ "startTime": "2025-06-05T15:45:52.971Z",+ "endTime": "2025-06-05T15:45:55.750Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": null,+ "type": "SPAN",+ "environment": "default",+ "name": "llama-index-trace",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": "1.0.0",+ "createdAt": "2025-06-05T15:45:55.996Z",+ "updatedAt": "2025-06-05T15:45:56.027Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 2.779,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ }+ ]+ },+ "observations": [+ {+ "id": "7ca8b22f6628d0c7",+ "traceId": "12ea412956f99347b0503c1144acd0ec",+ "startTime": "2025-06-05T15:45:52.971Z",+ "endTime": "2025-06-05T15:45:55.747Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "3344aabdd4e66110",+ "type": "GENERATION",+ "environment": "default",+ "name": "OpenAI.complete",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-06-05T15:45:55.866Z",+ "updatedAt": "2025-06-05T15:45:56.021Z",+ "input": "{\"args\": [\"What is Langfuse?\"]}",+ "output": "Langfuse is a tool designed to help developers monitor and debug applications that utilize large language models (LLMs). It provides features for tracking and analyzing the performance of LLMs, enabling developers to gain insights into how these models are functioning within their applications. Langfuse can be particularly useful for identifying issues, optimizing performance, and ensuring that the integration of language models into applications is smooth and effective.",+ "model": "gpt-4o",+ "internalModelId": "b9854a5c92dc496b997d99d20",+ "modelParameters": {+ "context_window": 128000,+ "num_output": -1,+ "is_chat_model": true,+ "is_function_calling_model": true,+ "model_name": "gpt-4o",+ "system_role": "system"+ },+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 2.776,+ "timeToFirstToken": null,+ "usageDetails": {+ "input": 13,+ "prompt_details.cache_read": 0,+ "prompt_details.audio": 0,+ "output": 81,+ "completion_details.reasoning": 0,+ "completion_details.audio": 0,+ "total": 94+ },+ "costDetails": {+ "input": 0.0000325,+ "output": 0.00081,+ "total": 0.000842499999+ },+ "providedCostDetails": {},+ "inputCost": 0.0000325,+ "outputCost": 0.00081,+ "totalCost": 0.000842499999,+ "inputUsage": 13,+ "outputUsage": 81,+ "totalUsage": 94,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"attributes\":{\"llm.model_name\":\"gpt-4o\",\"llm.invocation_parameters\":\"{\\\"context_window\\\":128000,\\\"num_output\\\":-1,\\\"is_chat_model\\\":true,\\\"is_function_calling_model\\\":true,\\\"model_name\\\":\\\"gpt-4o\\\",\\\"system_role\\\":\\\"system\\\"}\",\"llm.provider\":\"openai\",\"llm.system\":\"openai\",\"input.value\":\"{\\\"args\\\": [\\\"What is Langfuse?\\\"]}\",\"input.mime_type\":\"application/json\",\"llm.prompts\":\"[\\\"What is Langfuse?\\\"]\",\"output.value\":\"Langfuse is a tool designed to help developers monitor and debug applications that utilize large language models (LLMs). It provides features for tracking and analyzing the performance of LLMs, enabling developers to gain insights into how these models are functioning within their applications. Langfuse can be particularly useful for identifying issues, optimizing performance, and ensuring that the integration of language models into applications is smooth and effective.\",\"llm.token_count.prompt\":\"13\",\"llm.token_count.prompt_details.cache_read\":\"0\",\"llm.token_count.prompt_details.audio\":\"0\",\"llm.token_count.completion\":\"81\",\"llm.token_count.completion_details.reasoning\":\"0\",\"llm.token_count.completion_details.audio\":\"0\",\"llm.token_count.total\":\"94\",\"openinference.span.kind\":\"LLM\"},\"resourceAttributes\":{\"telemetry.sdk.language\":\"python\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"1.33.1\",\"service.name\":\"unknown_service\"},\"scope\":{\"name\":\"openinference.instrumentation.llama_index\",\"version\":\"4.3.0\",\"attributes\":{}}}",+ "internalModel": "b9854a5c92dc496b997d99d20"+ },+ {+ "id": "3344aabdd4e66110",+ "traceId": "12ea412956f99347b0503c1144acd0ec",+ "startTime": "2025-06-05T15:45:52.971Z",+ "endTime": "2025-06-05T15:45:55.750Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": null,+ "type": "SPAN",+ "environment": "default",+ "name": "llama-index-trace",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": "1.0.0",+ "createdAt": "2025-06-05T15:45:55.996Z",+ "updatedAt": "2025-06-05T15:45:56.027Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 2.779,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"resourceAttributes\":{\"telemetry.sdk.language\":\"python\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"1.33.1\",\"service.name\":\"unknown_service\"},\"scope\":{\"name\":\"langfuse-sdk\",\"version\":\"3.0.0\",\"attributes\":{\"public_key\":\"pk-lf-5855d85e-3943-497e-bd10-f50ad414bcba\"}}}",+ "internalModel": null+ }+ ]+}diff --git a/worker/src/__tests__/chatml/framework-traces/microsoft-agent-2025-12-17.chatml.json b/worker/src/__tests__/chatml/framework-traces/microsoft-agent-2025-12-17.chatml.jsonnew file mode 100644index 0000000000..eda84f73a9--- /dev/null+++ b/worker/src/__tests__/chatml/framework-traces/microsoft-agent-2025-12-17.chatml.json@@ -0,0 +1,106 @@+{+ "4cd6caa32861956a": {+ "input": {+ "success": true,+ "data": [+ {+ "role": "system",+ "content": "You are a helpful assistant."+ },+ {+ "role": "user",+ "content": "What's the weather in Tokyo?"+ }+ ]+ },+ "output": {+ "success": true,+ "data": [+ {+ "role": "assistant",+ "tool_calls": [+ {+ "id": "call_CwaJHuXTm9dmHFQPlVbqyzJ0",+ "name": "get_weather",+ "arguments": "{\"location\":\"Tokyo, Japan\"}",+ "type": "function"+ }+ ]+ },+ {+ "role": "tool",+ "content": "{\"type\": \"function_result\", \"call_id\": \"call_CwaJHuXTm9dmHFQPlVbqyzJ0\", \"result\": \"The weather in Tokyo, Japan is stormy with a high of 23\\u00b0C.\"}",+ "tool_call_id": "call_CwaJHuXTm9dmHFQPlVbqyzJ0"+ },+ {+ "role": "assistant",+ "content": "Current conditions in Tokyo, Japan: stormy, high around 23°C."+ }+ ]+ }+ },+ "2406e8343fd49c0e": {+ "input": {+ "success": true,+ "data": [+ {+ "role": "user",+ "content": "What's the weather in Tokyo?"+ }+ ]+ },+ "output": {+ "success": true,+ "data": [+ {+ "role": "assistant",+ "tool_calls": [+ {+ "id": "call_CwaJHuXTm9dmHFQPlVbqyzJ0",+ "name": "get_weather",+ "arguments": "{\"location\":\"Tokyo, Japan\"}",+ "type": "function"+ }+ ]+ }+ ]+ }+ },+ "b0913e7cd82d72b8": {+ "input": {+ "success": true,+ "data": [+ {+ "role": "tool",+ "content": "{\"type\": \"function_result\", \"call_id\": \"call_CwaJHuXTm9dmHFQPlVbqyzJ0\", \"result\": \"The weather in Tokyo, Japan is stormy with a high of 23\\u00b0C.\"}",+ "tool_call_id": "call_CwaJHuXTm9dmHFQPlVbqyzJ0"+ }+ ]+ },+ "output": {+ "success": true,+ "data": [+ {+ "role": "assistant",+ "content": "Current conditions in Tokyo, Japan: stormy, high around 23°C."+ }+ ]+ }+ },+ "a2de97aac476c036": {+ "input": {+ "success": false,+ "error": {+ "name": "ZodError",+ "message": "[\n {\n \"expected\": \"array\",\n \"code\": \"invalid_type\",\n \"path\": [],\n \"message\": \"Invalid input: expected array, received object\"\n }\n]"+ }+ },+ "output": {+ "success": false,+ "error": {+ "name": "ZodError",+ "message": "[\n {\n \"expected\": \"object\",\n \"code\": \"invalid_type\",\n \"path\": [\n 0\n ],\n \"message\": \"Invalid input: expected object, received string\"\n }\n]"+ }+ }+ }+}\ No newline at end of filediff --git a/worker/src/__tests__/chatml/framework-traces/microsoft-agent-2025-12-17.trace.json b/worker/src/__tests__/chatml/framework-traces/microsoft-agent-2025-12-17.trace.jsonnew file mode 100644index 0000000000..4a956f5c4a--- /dev/null+++ b/worker/src/__tests__/chatml/framework-traces/microsoft-agent-2025-12-17.trace.json@@ -0,0 +1,501 @@+{+ "trace": {+ "id": "8e419d3288419b5d944270505640e183",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "name": "invoke_agent 171105b7-59dd-49c0-9677-0b95395aa46a",+ "timestamp": "2025-12-17T09:37:37.258Z",+ "environment": "default",+ "tags": [],+ "bookmarked": true,+ "release": null,+ "version": null,+ "userId": null,+ "sessionId": null,+ "public": true,+ "input": "\"[{\\\"role\\\":\\\"system\\\",\\\"parts\\\":[{\\\"type\\\":\\\"text\\\",\\\"content\\\":\\\"You are a helpful assistant.\\\"}]},{\\\"role\\\":\\\"user\\\",\\\"parts\\\":[{\\\"type\\\":\\\"text\\\",\\\"content\\\":\\\"What's the weather in Tokyo?\\\"}]}]\"",+ "output": "\"[{\\\"role\\\":\\\"assistant\\\",\\\"parts\\\":[{\\\"type\\\":\\\"tool_call\\\",\\\"id\\\":\\\"call_CwaJHuXTm9dmHFQPlVbqyzJ0\\\",\\\"name\\\":\\\"get_weather\\\",\\\"arguments\\\":\\\"{\\\\\\\"location\\\\\\\":\\\\\\\"Tokyo, Japan\\\\\\\"}\\\"}]},{\\\"role\\\":\\\"tool\\\",\\\"parts\\\":[{\\\"type\\\":\\\"tool_call_response\\\",\\\"id\\\":\\\"call_CwaJHuXTm9dmHFQPlVbqyzJ0\\\",\\\"response\\\":\\\"{\\\\\\\"type\\\\\\\": \\\\\\\"function_result\\\\\\\", \\\\\\\"call_id\\\\\\\": \\\\\\\"call_CwaJHuXTm9dmHFQPlVbqyzJ0\\\\\\\", \\\\\\\"result\\\\\\\": \\\\\\\"The weather in Tokyo, Japan is stormy with a high of 23\\\\\\\\u00b0C.\\\\\\\"}\\\"}]},{\\\"role\\\":\\\"assistant\\\",\\\"parts\\\":[{\\\"type\\\":\\\"text\\\",\\\"content\\\":\\\"Current conditions in Tokyo, Japan: stormy, high around 23°C.\\\"}]}]\"",+ "createdAt": "2025-12-17T09:37:46.000Z",+ "updatedAt": "2025-12-17T09:37:45.967Z",+ "metadata": "{\"attributes\":{\"gen_ai.system_instructions\":\"[{\\\"type\\\": \\\"text\\\", \\\"content\\\": \\\"You are a helpful assistant.\\\"}]\",\"gen_ai.operation.name\":\"invoke_agent\",\"gen_ai.request.choice.count\":\"1\",\"gen_ai.provider.name\":\"microsoft.agent_framework\",\"gen_ai.request.model\":\"gpt-5-mini\",\"gen_ai.tool.definitions\":\"[{\\\"type\\\": \\\"function\\\", \\\"function\\\": {\\\"name\\\": \\\"get_weather\\\", \\\"description\\\": \\\"Get the weather for a given location.\\\", \\\"parameters\\\": {\\\"properties\\\": {\\\"location\\\": {\\\"description\\\": \\\"The location to get the weather for.\\\", \\\"title\\\": \\\"Location\\\", \\\"type\\\": \\\"string\\\"}}, \\\"required\\\": [\\\"location\\\"], \\\"title\\\": \\\"get_weather_input\\\", \\\"type\\\": \\\"object\\\"}}}]\",\"gen_ai.agent.id\":\"171105b7-59dd-49c0-9677-0b95395aa46a\",\"gen_ai.agent.name\":\"171105b7-59dd-49c0-9677-0b95395aa46a\",\"gen_ai.response.id\":\"resp_0e32bda5b6259ecd00694279e49fe48194b26952c13124bd05\"},\"resourceAttributes\":{\"telemetry.sdk.language\":\"python\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"1.39.1\",\"service.name\":\"unknown_service\"},\"scope\":{\"name\":\"agent_framework\",\"version\":\"1.0.0b251216\",\"attributes\":{}}}",+ "scores": [+ {+ "id": "26d3fb15-f8b8-4d25-bde1-3954d2b64dfe",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "environment": "default",+ "name": "correctness",+ "value": 1,+ "source": "EVAL",+ "authorUserId": null,+ "comment": "The generation is identical to the ground truth, containing the same query and system prompt without any additional information or deviation.",+ "configId": null,+ "queueId": null,+ "executionTraceId": "c43ca89a9d05f0727069f35160ba5ef3",+ "createdAt": "2026-02-10T17:16:03.000Z",+ "updatedAt": "2026-02-10T17:16:02.352Z",+ "timestamp": "2026-02-10T17:16:02.285Z",+ "traceId": "8e419d3288419b5d944270505640e183",+ "sessionId": null,+ "datasetRunId": null,+ "observationId": null,+ "longStringValue": "",+ "stringValue": null,+ "dataType": "NUMERIC",+ "metadata": "{\"job_execution_id\":\"8a751f8a-3402-47f1-85f1-760b83688038\",\"job_configuration_id\":\"f41f3331-fea7-4447-aeb3-edfd022bcec0\",\"target_trace_id\":\"8e419d3288419b5d944270505640e183\"}"+ },+ {+ "id": "671b4f69-0219-422e-b2f3-5a40ac1e0627",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "environment": "default",+ "name": "hallucination",+ "value": 0.9,+ "source": "EVAL",+ "authorUserId": null,+ "comment": "The generation claims the weather in Tokyo is 'stormy with a high of 23°C' without referencing a real-time data source; its specificity may not match verifiable weather data at the time and could be fictional, so it reflects a high hallucination degree.",+ "configId": null,+ "queueId": null,+ "executionTraceId": "06038a72920a7d37ad02700100565399",+ "createdAt": "2025-12-17T09:38:34.000Z",+ "updatedAt": "2025-12-17T09:38:33.113Z",+ "timestamp": "2025-12-17T09:38:33.050Z",+ "traceId": "8e419d3288419b5d944270505640e183",+ "sessionId": null,+ "datasetRunId": null,+ "observationId": null,+ "longStringValue": "",+ "stringValue": null,+ "dataType": "NUMERIC",+ "metadata": "{\"job_execution_id\":\"ba59c345-e546-405c-912a-9be9e813e3f0\",\"job_configuration_id\":\"af94c82e-ac66-400d-add5-75cdfa77915d\",\"target_trace_id\":\"8e419d3288419b5d944270505640e183\"}"+ },+ {+ "id": "eff97f3f-c736-4cc3-b058-f4e8acd2515f",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "environment": "default",+ "name": "toxicity",+ "value": 0,+ "source": "EVAL",+ "authorUserId": null,+ "comment": "The generation provides factual weather information without any harmful or disrespectful language, thus it does not exhibit any toxicity.",+ "configId": null,+ "queueId": null,+ "executionTraceId": "d7b4bc28887756c4c77c3309ed66a314",+ "createdAt": "2025-12-17T09:38:33.000Z",+ "updatedAt": "2025-12-17T09:38:32.585Z",+ "timestamp": "2025-12-17T09:38:32.470Z",+ "traceId": "8e419d3288419b5d944270505640e183",+ "sessionId": null,+ "datasetRunId": null,+ "observationId": null,+ "longStringValue": "",+ "stringValue": null,+ "dataType": "NUMERIC",+ "metadata": "{\"job_execution_id\":\"c7b480aa-8680-4ab9-bcfb-0584583c8c9a\",\"job_configuration_id\":\"12436733-36b3-4b19-be24-b97a1a6063ad\",\"target_trace_id\":\"8e419d3288419b5d944270505640e183\"}"+ }+ ],+ "corrections": [],+ "latency": 4.364,+ "observations": [+ {+ "id": "4cd6caa32861956a",+ "traceId": "8e419d3288419b5d944270505640e183",+ "startTime": "2025-12-17T09:37:37.258Z",+ "endTime": "2025-12-17T09:37:41.622Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": null,+ "type": "AGENT",+ "environment": "default",+ "name": "invoke_agent 171105b7-59dd-49c0-9677-0b95395aa46a",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-12-17T09:37:45.788Z",+ "updatedAt": "2025-12-17T09:37:45.788Z",+ "input": null,+ "output": null,+ "model": "gpt-5-mini",+ "internalModelId": "3d6a975a-a42d-4ea2-a3ec-4ae567d5a364",+ "modelParameters": {+ "choice.count": 1+ },+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 4.364,+ "timeToFirstToken": null,+ "usageDetails": {+ "input": 44,+ "output": 180,+ "total": 224+ },+ "costDetails": {+ "input": 0.000011,+ "output": 0.00036,+ "total": 0.000371+ },+ "providedCostDetails": {},+ "inputCost": 0.000011,+ "outputCost": 0.00036,+ "totalCost": 0.000371,+ "inputUsage": 44,+ "outputUsage": 180,+ "totalUsage": 224,+ "usagePricingTierId": "3d6a975a-a42d-4ea2-a3ec-4ae567d5a364_tier_default",+ "usagePricingTierName": "Standard",+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ },+ {+ "id": "2406e8343fd49c0e",+ "traceId": "8e419d3288419b5d944270505640e183",+ "startTime": "2025-12-17T09:37:37.260Z",+ "endTime": "2025-12-17T09:37:40.549Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "4cd6caa32861956a",+ "type": "GENERATION",+ "environment": "default",+ "name": "chat gpt-5-mini",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-12-17T09:37:45.788Z",+ "updatedAt": "2025-12-17T09:37:45.788Z",+ "input": null,+ "output": null,+ "model": "gpt-5-mini-2025-08-07",+ "internalModelId": "03b83894-7172-4e1e-8e8b-37d792484efd",+ "modelParameters": {+ "choice.count": 1+ },+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 3.289,+ "timeToFirstToken": null,+ "usageDetails": {+ "input": 77,+ "output": 86,+ "total": 163+ },+ "costDetails": {+ "input": 0.00001925,+ "output": 0.000172,+ "total": 0.00019125+ },+ "providedCostDetails": {},+ "inputCost": 0.00001925,+ "outputCost": 0.000172,+ "totalCost": 0.00019125,+ "inputUsage": 77,+ "outputUsage": 86,+ "totalUsage": 163,+ "usagePricingTierId": "03b83894-7172-4e1e-8e8b-37d792484efd_tier_default",+ "usagePricingTierName": "Standard",+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ },+ {+ "id": "b0913e7cd82d72b8",+ "traceId": "8e419d3288419b5d944270505640e183",+ "startTime": "2025-12-17T09:37:40.555Z",+ "endTime": "2025-12-17T09:37:41.620Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "4cd6caa32861956a",+ "type": "GENERATION",+ "environment": "default",+ "name": "chat gpt-5-mini",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-12-17T09:37:45.788Z",+ "updatedAt": "2025-12-17T09:37:45.788Z",+ "input": null,+ "output": null,+ "model": "gpt-5-mini-2025-08-07",+ "internalModelId": "03b83894-7172-4e1e-8e8b-37d792484efd",+ "modelParameters": {+ "choice.count": 1+ },+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 1.065,+ "timeToFirstToken": null,+ "usageDetails": {+ "input": 216,+ "output": 20,+ "total": 236+ },+ "costDetails": {+ "input": 0.000054,+ "output": 0.00004,+ "total": 0.000094+ },+ "providedCostDetails": {},+ "inputCost": 0.000054,+ "outputCost": 0.00004,+ "totalCost": 0.000094,+ "inputUsage": 216,+ "outputUsage": 20,+ "totalUsage": 236,+ "usagePricingTierId": "03b83894-7172-4e1e-8e8b-37d792484efd_tier_default",+ "usagePricingTierName": "Standard",+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ },+ {+ "id": "a2de97aac476c036",+ "traceId": "8e419d3288419b5d944270505640e183",+ "startTime": "2025-12-17T09:37:40.551Z",+ "endTime": "2025-12-17T09:37:40.551Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "4cd6caa32861956a",+ "type": "TOOL",+ "environment": "default",+ "name": "get_weather",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-12-17T09:37:45.788Z",+ "updatedAt": "2025-12-17T09:37:45.788Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": {},+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 0,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ }+ ]+ },+ "observations": [+ {+ "id": "4cd6caa32861956a",+ "traceId": "8e419d3288419b5d944270505640e183",+ "startTime": "2025-12-17T09:37:37.258Z",+ "endTime": "2025-12-17T09:37:41.622Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": null,+ "type": "AGENT",+ "environment": "default",+ "name": "invoke_agent 171105b7-59dd-49c0-9677-0b95395aa46a",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-12-17T09:37:45.788Z",+ "updatedAt": "2025-12-17T09:37:45.788Z",+ "input": "[{\"role\": \"system\", \"parts\": [{\"type\": \"text\", \"content\": \"You are a helpful assistant.\"}]}, {\"role\": \"user\", \"parts\": [{\"type\": \"text\", \"content\": \"What's the weather in Tokyo?\"}]}]",+ "output": "[{\"role\": \"assistant\", \"parts\": [{\"type\": \"tool_call\", \"id\": \"call_CwaJHuXTm9dmHFQPlVbqyzJ0\", \"name\": \"get_weather\", \"arguments\": \"{\\\"location\\\":\\\"Tokyo, Japan\\\"}\"}]}, {\"role\": \"tool\", \"parts\": [{\"type\": \"tool_call_response\", \"id\": \"call_CwaJHuXTm9dmHFQPlVbqyzJ0\", \"response\": \"{\\\"type\\\": \\\"function_result\\\", \\\"call_id\\\": \\\"call_CwaJHuXTm9dmHFQPlVbqyzJ0\\\", \\\"result\\\": \\\"The weather in Tokyo, Japan is stormy with a high of 23\\\\u00b0C.\\\"}\"}]}, {\"role\": \"assistant\", \"parts\": [{\"type\": \"text\", \"content\": \"Current conditions in Tokyo, Japan: stormy, high around 23\\u00b0C.\"}]}]",+ "model": "gpt-5-mini",+ "internalModelId": "3d6a975a-a42d-4ea2-a3ec-4ae567d5a364",+ "modelParameters": {+ "choice.count": 1+ },+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 4.364,+ "timeToFirstToken": null,+ "usageDetails": {+ "input": 44,+ "output": 180,+ "total": 224+ },+ "costDetails": {+ "input": 0.000011,+ "output": 0.00036,+ "total": 0.000371+ },+ "providedCostDetails": {},+ "inputCost": 0.000011,+ "outputCost": 0.00036,+ "totalCost": 0.000371,+ "inputUsage": 44,+ "outputUsage": 180,+ "totalUsage": 224,+ "usagePricingTierId": "3d6a975a-a42d-4ea2-a3ec-4ae567d5a364_tier_default",+ "usagePricingTierName": "Standard",+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"attributes\":{\"gen_ai.system_instructions\":\"[{\\\"type\\\": \\\"text\\\", \\\"content\\\": \\\"You are a helpful assistant.\\\"}]\",\"gen_ai.operation.name\":\"invoke_agent\",\"gen_ai.request.choice.count\":\"1\",\"gen_ai.provider.name\":\"microsoft.agent_framework\",\"gen_ai.request.model\":\"gpt-5-mini\",\"gen_ai.tool.definitions\":\"[{\\\"type\\\": \\\"function\\\", \\\"function\\\": {\\\"name\\\": \\\"get_weather\\\", \\\"description\\\": \\\"Get the weather for a given location.\\\", \\\"parameters\\\": {\\\"properties\\\": {\\\"location\\\": {\\\"description\\\": \\\"The location to get the weather for.\\\", \\\"title\\\": \\\"Location\\\", \\\"type\\\": \\\"string\\\"}}, \\\"required\\\": [\\\"location\\\"], \\\"title\\\": \\\"get_weather_input\\\", \\\"type\\\": \\\"object\\\"}}}]\",\"gen_ai.agent.id\":\"171105b7-59dd-49c0-9677-0b95395aa46a\",\"gen_ai.agent.name\":\"171105b7-59dd-49c0-9677-0b95395aa46a\",\"gen_ai.response.id\":\"resp_0e32bda5b6259ecd00694279e49fe48194b26952c13124bd05\"},\"resourceAttributes\":{\"telemetry.sdk.language\":\"python\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"1.39.1\",\"service.name\":\"unknown_service\"},\"scope\":{\"name\":\"agent_framework\",\"version\":\"1.0.0b251216\",\"attributes\":{}}}",+ "internalModel": "3d6a975a-a42d-4ea2-a3ec-4ae567d5a364"+ },+ {+ "id": "2406e8343fd49c0e",+ "traceId": "8e419d3288419b5d944270505640e183",+ "startTime": "2025-12-17T09:37:37.260Z",+ "endTime": "2025-12-17T09:37:40.549Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "4cd6caa32861956a",+ "type": "GENERATION",+ "environment": "default",+ "name": "chat gpt-5-mini",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-12-17T09:37:45.788Z",+ "updatedAt": "2025-12-17T09:37:45.788Z",+ "input": "[{\"role\": \"user\", \"parts\": [{\"type\": \"text\", \"content\": \"What's the weather in Tokyo?\"}]}]",+ "output": "[{\"role\": \"assistant\", \"parts\": [{\"type\": \"tool_call\", \"id\": \"call_CwaJHuXTm9dmHFQPlVbqyzJ0\", \"name\": \"get_weather\", \"arguments\": \"{\\\"location\\\":\\\"Tokyo, Japan\\\"}\"}]}]",+ "model": "gpt-5-mini-2025-08-07",+ "internalModelId": "03b83894-7172-4e1e-8e8b-37d792484efd",+ "modelParameters": {+ "choice.count": 1+ },+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 3.289,+ "timeToFirstToken": null,+ "usageDetails": {+ "input": 77,+ "output": 86,+ "total": 163+ },+ "costDetails": {+ "input": 0.00001925,+ "output": 0.000172,+ "total": 0.00019125+ },+ "providedCostDetails": {},+ "inputCost": 0.00001925,+ "outputCost": 0.000172,+ "totalCost": 0.00019125,+ "inputUsage": 77,+ "outputUsage": 86,+ "totalUsage": 163,+ "usagePricingTierId": "03b83894-7172-4e1e-8e8b-37d792484efd_tier_default",+ "usagePricingTierName": "Standard",+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"attributes\":{\"gen_ai.operation.name\":\"chat\",\"gen_ai.request.choice.count\":\"1\",\"gen_ai.provider.name\":\"openai\",\"gen_ai.request.model\":\"gpt-5-mini\",\"server.address\":\"Unknown\",\"gen_ai.tool.definitions\":\"[{\\\"type\\\": \\\"function\\\", \\\"function\\\": {\\\"name\\\": \\\"get_weather\\\", \\\"description\\\": \\\"Get the weather for a given location.\\\", \\\"parameters\\\": {\\\"properties\\\": {\\\"location\\\": {\\\"description\\\": \\\"The location to get the weather for.\\\", \\\"title\\\": \\\"Location\\\", \\\"type\\\": \\\"string\\\"}}, \\\"required\\\": [\\\"location\\\"], \\\"title\\\": \\\"get_weather_input\\\", \\\"type\\\": \\\"object\\\"}}}]\",\"gen_ai.response.id\":\"resp_0e32bda5b6259ecd00694279e271348194a818447145cd1763\",\"gen_ai.response.model\":\"gpt-5-mini-2025-08-07\",\"gen_ai.usage.input_tokens\":\"77\",\"gen_ai.usage.output_tokens\":\"86\",\"gen_ai.client.operation.duration\":\"3.2887914249999994\"},\"resourceAttributes\":{\"telemetry.sdk.language\":\"python\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"1.39.1\",\"service.name\":\"unknown_service\"},\"scope\":{\"name\":\"agent_framework\",\"version\":\"1.0.0b251216\",\"attributes\":{}}}",+ "internalModel": "03b83894-7172-4e1e-8e8b-37d792484efd"+ },+ {+ "id": "b0913e7cd82d72b8",+ "traceId": "8e419d3288419b5d944270505640e183",+ "startTime": "2025-12-17T09:37:40.555Z",+ "endTime": "2025-12-17T09:37:41.620Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "4cd6caa32861956a",+ "type": "GENERATION",+ "environment": "default",+ "name": "chat gpt-5-mini",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-12-17T09:37:45.788Z",+ "updatedAt": "2025-12-17T09:37:45.788Z",+ "input": "[{\"role\": \"tool\", \"parts\": [{\"type\": \"tool_call_response\", \"id\": \"call_CwaJHuXTm9dmHFQPlVbqyzJ0\", \"response\": \"{\\\"type\\\": \\\"function_result\\\", \\\"call_id\\\": \\\"call_CwaJHuXTm9dmHFQPlVbqyzJ0\\\", \\\"result\\\": \\\"The weather in Tokyo, Japan is stormy with a high of 23\\\\u00b0C.\\\"}\"}]}]",+ "output": "[{\"role\": \"assistant\", \"parts\": [{\"type\": \"text\", \"content\": \"Current conditions in Tokyo, Japan: stormy, high around 23\\u00b0C.\"}]}]",+ "model": "gpt-5-mini-2025-08-07",+ "internalModelId": "03b83894-7172-4e1e-8e8b-37d792484efd",+ "modelParameters": {+ "choice.count": 1+ },+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 1.065,+ "timeToFirstToken": null,+ "usageDetails": {+ "input": 216,+ "output": 20,+ "total": 236+ },+ "costDetails": {+ "input": 0.000054,+ "output": 0.00004,+ "total": 0.000094+ },+ "providedCostDetails": {},+ "inputCost": 0.000054,+ "outputCost": 0.00004,+ "totalCost": 0.000094,+ "inputUsage": 216,+ "outputUsage": 20,+ "totalUsage": 236,+ "usagePricingTierId": "03b83894-7172-4e1e-8e8b-37d792484efd_tier_default",+ "usagePricingTierName": "Standard",+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"attributes\":{\"gen_ai.operation.name\":\"chat\",\"gen_ai.request.choice.count\":\"1\",\"gen_ai.provider.name\":\"openai\",\"gen_ai.request.model\":\"gpt-5-mini\",\"server.address\":\"Unknown\",\"gen_ai.conversation.id\":\"resp_0e32bda5b6259ecd00694279e271348194a818447145cd1763\",\"gen_ai.tool.definitions\":\"[{\\\"type\\\": \\\"function\\\", \\\"function\\\": {\\\"name\\\": \\\"get_weather\\\", \\\"description\\\": \\\"Get the weather for a given location.\\\", \\\"parameters\\\": {\\\"properties\\\": {\\\"location\\\": {\\\"description\\\": \\\"The location to get the weather for.\\\", \\\"title\\\": \\\"Location\\\", \\\"type\\\": \\\"string\\\"}}, \\\"required\\\": [\\\"location\\\"], \\\"title\\\": \\\"get_weather_input\\\", \\\"type\\\": \\\"object\\\"}}}]\",\"gen_ai.response.id\":\"resp_0e32bda5b6259ecd00694279e49fe48194b26952c13124bd05\",\"gen_ai.response.model\":\"gpt-5-mini-2025-08-07\",\"gen_ai.usage.input_tokens\":\"216\",\"gen_ai.usage.output_tokens\":\"20\",\"gen_ai.client.operation.duration\":\"1.0647461529999873\"},\"resourceAttributes\":{\"telemetry.sdk.language\":\"python\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"1.39.1\",\"service.name\":\"unknown_service\"},\"scope\":{\"name\":\"agent_framework\",\"version\":\"1.0.0b251216\",\"attributes\":{}}}",+ "internalModel": "03b83894-7172-4e1e-8e8b-37d792484efd"+ },+ {+ "id": "a2de97aac476c036",+ "traceId": "8e419d3288419b5d944270505640e183",+ "startTime": "2025-12-17T09:37:40.551Z",+ "endTime": "2025-12-17T09:37:40.551Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "4cd6caa32861956a",+ "type": "TOOL",+ "environment": "default",+ "name": "get_weather",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-12-17T09:37:45.788Z",+ "updatedAt": "2025-12-17T09:37:45.788Z",+ "input": "{\"location\":\"Tokyo, Japan\"}",+ "output": "\"The weather in Tokyo, Japan is stormy with a high of 23\\u00b0C.\"",+ "model": null,+ "internalModelId": null,+ "modelParameters": {},+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 0,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"attributes\":{\"gen_ai.operation.name\":\"execute_tool\",\"gen_ai.tool.name\":\"get_weather\",\"gen_ai.tool.call.id\":\"call_CwaJHuXTm9dmHFQPlVbqyzJ0\",\"gen_ai.tool.type\":\"function\",\"gen_ai.tool.description\":\"Get the weather for a given location.\",\"agent_framework.function.invocation.duration\":\"0.000060654999970211065\"},\"resourceAttributes\":{\"telemetry.sdk.language\":\"python\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"1.39.1\",\"service.name\":\"unknown_service\"},\"scope\":{\"name\":\"agent_framework\",\"version\":\"1.0.0b251216\",\"attributes\":{}}}",+ "internalModel": null+ }+ ]+}diff --git a/worker/src/__tests__/chatml/framework-traces/openai-agents-2025-09-30.chatml.json b/worker/src/__tests__/chatml/framework-traces/openai-agents-2025-09-30.chatml.jsonnew file mode 100644index 0000000000..842eb3c4bd--- /dev/null+++ b/worker/src/__tests__/chatml/framework-traces/openai-agents-2025-09-30.chatml.json@@ -0,0 +1,126 @@+{+ "90d94774e8e3724d": {+ "input": {+ "success": true,+ "data": [+ {+ "role": "user",+ "content": "What's the weather in Tokyo?"+ },+ {+ "role": "assistant",+ "tool_calls": [+ {+ "id": "call_Kud0j0DxWSmLzv9W5m6qVqXn",+ "name": "get_weather",+ "arguments": "{\"city\":\"Tokyo\"}",+ "type": "function"+ }+ ]+ },+ {+ "role": "tool",+ "content": "The weather in Tokyo is sunny.",+ "tool_call_id": "call_Kud0j0DxWSmLzv9W5m6qVqXn"+ }+ ]+ },+ "output": {+ "success": true,+ "data": [+ {+ "role": "assistant",+ "content": "The weather in Tokyo is currently sunny. If you need more details like temperature or forecast for the upcoming days, just let me know!",+ "type": "message",+ "tools": [+ {+ "name": "get_weather",+ "description": "",+ "parameters": {+ "properties": {+ "city": {+ "title": "City",+ "type": "string"+ }+ },+ "required": [+ "city"+ ],+ "title": "get_weather_args",+ "type": "object",+ "additionalProperties": false+ }+ }+ ],+ "json": {+ "id": "msg_0f00ca5b7e22bb4c0068db9d019a78819d9fe1e4d3b6c96b68",+ "status": "completed"+ }+ }+ ]+ }+ },+ "98870087af69bf06": {+ "input": {+ "success": true,+ "data": [+ {+ "role": "user",+ "content": "What's the weather in Tokyo?"+ }+ ]+ },+ "output": {+ "success": true,+ "data": [+ {+ "role": "assistant",+ "tools": [+ {+ "name": "get_weather",+ "description": "",+ "parameters": {+ "properties": {+ "city": {+ "title": "City",+ "type": "string"+ }+ },+ "required": [+ "city"+ ],+ "title": "get_weather_args",+ "type": "object",+ "additionalProperties": false+ }+ }+ ],+ "tool_calls": [+ {+ "id": "call_Kud0j0DxWSmLzv9W5m6qVqXn",+ "name": "get_weather",+ "arguments": "{\"city\":\"Tokyo\"}",+ "type": "function"+ }+ ]+ }+ ]+ }+ },+ "5b99c3e3411ed17b": {+ "input": {+ "success": false,+ "error": {+ "name": "ZodError",+ "message": "[\n {\n \"expected\": \"array\",\n \"code\": \"invalid_type\",\n \"path\": [],\n \"message\": \"Invalid input: expected array, received object\"\n }\n]"+ }+ },+ "output": {+ "success": false,+ "error": {+ "name": "ZodError",+ "message": "[\n {\n \"expected\": \"object\",\n \"code\": \"invalid_type\",\n \"path\": [\n 0\n ],\n \"message\": \"Invalid input: expected object, received string\"\n }\n]"+ }+ }+ }+}\ No newline at end of filediff --git a/worker/src/__tests__/chatml/framework-traces/openai-agents-2025-09-30.trace.json b/worker/src/__tests__/chatml/framework-traces/openai-agents-2025-09-30.trace.jsonnew file mode 100644index 0000000000..998a66eb0a--- /dev/null+++ b/worker/src/__tests__/chatml/framework-traces/openai-agents-2025-09-30.trace.json@@ -0,0 +1,614 @@+{+ "trace": {+ "id": "fee618f96dc31e0ca38b2f7b26eb8b29",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "name": "Agent workflow",+ "timestamp": "2025-09-30T09:03:59.962Z",+ "environment": "default",+ "tags": [],+ "bookmarked": false,+ "release": null,+ "version": null,+ "userId": null,+ "sessionId": null,+ "public": true,+ "input": null,+ "output": null,+ "createdAt": "2025-09-30T09:04:03.000Z",+ "updatedAt": "2025-09-30T09:04:07.465Z",+ "metadata": "{\"attributes\":{\"openinference.span.kind\":\"AGENT\"},\"resourceAttributes\":{\"telemetry.sdk.language\":\"python\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"1.37.0\",\"service.name\":\"unknown_service\"},\"scope\":{\"name\":\"openinference.instrumentation.openai_agents\",\"version\":\"1.3.0\",\"attributes\":{}}}",+ "scores": [+ {+ "id": "0721bd4f-a35c-4d29-a2c6-38879e1d758e",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "environment": "default",+ "name": "toxicity",+ "value": 0.8,+ "source": "EVAL",+ "authorUserId": null,+ "comment": "The generation contains aggressive and dismissive language that undermines trust in professionals and promotes a negative view of the public's intelligence, which is harmful and disrespectful.",+ "configId": null,+ "queueId": null,+ "executionTraceId": null,+ "createdAt": "2025-09-30T09:04:31.000Z",+ "updatedAt": "2025-09-30T09:04:30.197Z",+ "timestamp": "2025-09-30T09:04:30.125Z",+ "traceId": "fee618f96dc31e0ca38b2f7b26eb8b29",+ "sessionId": null,+ "datasetRunId": null,+ "observationId": null,+ "longStringValue": "",+ "stringValue": null,+ "dataType": "NUMERIC",+ "metadata": "{}"+ },+ {+ "id": "f60dc1c4-17af-4512-ada9-f2440f437ce1",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "environment": "default",+ "name": "hallucination",+ "value": 0,+ "source": "EVAL",+ "authorUserId": null,+ "comment": "There is no specific generation provided to evaluate for hallucination. Therefore, it is impossible to assess or score the degree of hallucination in this case.",+ "configId": null,+ "queueId": null,+ "executionTraceId": null,+ "createdAt": "2025-09-30T09:04:29.000Z",+ "updatedAt": "2025-09-30T09:04:28.773Z",+ "timestamp": "2025-09-30T09:04:28.687Z",+ "traceId": "fee618f96dc31e0ca38b2f7b26eb8b29",+ "sessionId": null,+ "datasetRunId": null,+ "observationId": null,+ "longStringValue": "",+ "stringValue": null,+ "dataType": "NUMERIC",+ "metadata": "{}"+ }+ ],+ "corrections": [],+ "latency": 2.19,+ "observations": [+ {+ "id": "d950b668796240b5",+ "traceId": "fee618f96dc31e0ca38b2f7b26eb8b29",+ "startTime": "2025-09-30T09:03:59.962Z",+ "endTime": "2025-09-30T09:04:02.152Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "e5a76f27f51ad40e",+ "type": "AGENT",+ "environment": "default",+ "name": "Hello world",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-09-30T09:04:07.382Z",+ "updatedAt": "2025-09-30T09:04:07.382Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": {},+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 2.19,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ },+ {+ "id": "e5a76f27f51ad40e",+ "traceId": "fee618f96dc31e0ca38b2f7b26eb8b29",+ "startTime": "2025-09-30T09:03:59.962Z",+ "endTime": "2025-09-30T09:04:02.152Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": null,+ "type": "AGENT",+ "environment": "default",+ "name": "Agent workflow",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-09-30T09:04:07.382Z",+ "updatedAt": "2025-09-30T09:04:07.382Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": {},+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 2.19,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ },+ {+ "id": "90d94774e8e3724d",+ "traceId": "fee618f96dc31e0ca38b2f7b26eb8b29",+ "startTime": "2025-09-30T09:04:01.001Z",+ "endTime": "2025-09-30T09:04:02.151Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "d950b668796240b5",+ "type": "GENERATION",+ "environment": "default",+ "name": "response",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-09-30T09:04:07.382Z",+ "updatedAt": "2025-09-30T09:04:07.382Z",+ "input": null,+ "output": null,+ "model": "gpt-4.1-2025-04-14",+ "internalModelId": "cm7qahw732891bpmzy45r3x70",+ "modelParameters": {+ "id": "resp_0f00ca5b7e22bb4c0068db9d0110d8819da676bd1f2dd03a40",+ "created_at": 1759223041,+ "instructions": "You are a helpful agent.",+ "metadata": "{}",+ "model": "gpt-4.1-2025-04-14",+ "parallel_tool_calls": "true",+ "temperature": 1,+ "tool_choice": "auto",+ "top_p": 1,+ "background": "false",+ "reasoning": "{}",+ "service_tier": "default",+ "text": "{\"format\":{\"type\":\"text\"},\"verbosity\":\"medium\"}",+ "top_logprobs": 0,+ "truncation": "disabled",+ "billing": "{\"payer\":\"developer\"}",+ "store": "true"+ },+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 1.15,+ "timeToFirstToken": null,+ "usageDetails": {+ "output": 29,+ "input": 85,+ "total": 114,+ "prompt_details.cache_read": 0,+ "completion_details.reasoning": 0+ },+ "costDetails": {+ "output": 0.000232,+ "input": 0.00017,+ "total": 0.000402+ },+ "providedCostDetails": {},+ "inputCost": 0.00017,+ "outputCost": 0.000232,+ "totalCost": 0.000402,+ "inputUsage": 85,+ "outputUsage": 29,+ "totalUsage": 114,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ },+ {+ "id": "98870087af69bf06",+ "traceId": "fee618f96dc31e0ca38b2f7b26eb8b29",+ "startTime": "2025-09-30T09:03:59.963Z",+ "endTime": "2025-09-30T09:04:00.999Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "d950b668796240b5",+ "type": "GENERATION",+ "environment": "default",+ "name": "response",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-09-30T09:04:02.217Z",+ "updatedAt": "2025-09-30T09:04:02.217Z",+ "input": null,+ "output": null,+ "model": "gpt-4.1-2025-04-14",+ "internalModelId": "cm7qahw732891bpmzy45r3x70",+ "modelParameters": {+ "id": "resp_0f00ca5b7e22bb4c0068db9d000be4819d824c447c54b65bc1",+ "created_at": 1759223040,+ "instructions": "You are a helpful agent.",+ "metadata": "{}",+ "model": "gpt-4.1-2025-04-14",+ "parallel_tool_calls": "true",+ "temperature": 1,+ "tool_choice": "auto",+ "top_p": 1,+ "background": "false",+ "reasoning": "{}",+ "service_tier": "default",+ "text": "{\"format\":{\"type\":\"text\"},\"verbosity\":\"medium\"}",+ "top_logprobs": 0,+ "truncation": "disabled",+ "billing": "{\"payer\":\"developer\"}",+ "store": "true"+ },+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 1.036,+ "timeToFirstToken": null,+ "usageDetails": {+ "output": 15,+ "input": 55,+ "total": 70,+ "prompt_details.cache_read": 0,+ "completion_details.reasoning": 0+ },+ "costDetails": {+ "output": 0.00012,+ "input": 0.00011,+ "total": 0.00023+ },+ "providedCostDetails": {},+ "inputCost": 0.00011,+ "outputCost": 0.00012,+ "totalCost": 0.00023,+ "inputUsage": 55,+ "outputUsage": 15,+ "totalUsage": 70,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ },+ {+ "id": "5b99c3e3411ed17b",+ "traceId": "fee618f96dc31e0ca38b2f7b26eb8b29",+ "startTime": "2025-09-30T09:04:01.000Z",+ "endTime": "2025-09-30T09:04:01.000Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "d950b668796240b5",+ "type": "TOOL",+ "environment": "default",+ "name": "get_weather",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-09-30T09:04:02.217Z",+ "updatedAt": "2025-09-30T09:04:02.217Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": {},+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 0,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ }+ ]+ },+ "observations": [+ {+ "id": "d950b668796240b5",+ "traceId": "fee618f96dc31e0ca38b2f7b26eb8b29",+ "startTime": "2025-09-30T09:03:59.962Z",+ "endTime": "2025-09-30T09:04:02.152Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "e5a76f27f51ad40e",+ "type": "AGENT",+ "environment": "default",+ "name": "Hello world",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-09-30T09:04:07.382Z",+ "updatedAt": "2025-09-30T09:04:07.382Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": {},+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 2.19,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"attributes\":{\"llm.system\":\"openai\",\"graph.node.id\":\"Hello world\",\"openinference.span.kind\":\"AGENT\"},\"resourceAttributes\":{\"telemetry.sdk.language\":\"python\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"1.37.0\",\"service.name\":\"unknown_service\"},\"scope\":{\"name\":\"openinference.instrumentation.openai_agents\",\"version\":\"1.3.0\",\"attributes\":{}}}",+ "internalModel": null+ },+ {+ "id": "e5a76f27f51ad40e",+ "traceId": "fee618f96dc31e0ca38b2f7b26eb8b29",+ "startTime": "2025-09-30T09:03:59.962Z",+ "endTime": "2025-09-30T09:04:02.152Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": null,+ "type": "AGENT",+ "environment": "default",+ "name": "Agent workflow",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-09-30T09:04:07.382Z",+ "updatedAt": "2025-09-30T09:04:07.382Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": {},+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 2.19,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"attributes\":{\"openinference.span.kind\":\"AGENT\"},\"resourceAttributes\":{\"telemetry.sdk.language\":\"python\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"1.37.0\",\"service.name\":\"unknown_service\"},\"scope\":{\"name\":\"openinference.instrumentation.openai_agents\",\"version\":\"1.3.0\",\"attributes\":{}}}",+ "internalModel": null+ },+ {+ "id": "90d94774e8e3724d",+ "traceId": "fee618f96dc31e0ca38b2f7b26eb8b29",+ "startTime": "2025-09-30T09:04:01.001Z",+ "endTime": "2025-09-30T09:04:02.151Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "d950b668796240b5",+ "type": "GENERATION",+ "environment": "default",+ "name": "response",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-09-30T09:04:07.382Z",+ "updatedAt": "2025-09-30T09:04:07.382Z",+ "input": "[{\"content\": \"What's the weather in Tokyo?\", \"role\": \"user\"}, {\"arguments\": \"{\\\"city\\\":\\\"Tokyo\\\"}\", \"call_id\": \"call_Kud0j0DxWSmLzv9W5m6qVqXn\", \"name\": \"get_weather\", \"type\": \"function_call\", \"id\": \"fc_0f00ca5b7e22bb4c0068db9d00d258819d987f4b9b63189e76\", \"status\": \"completed\"}, {\"call_id\": \"call_Kud0j0DxWSmLzv9W5m6qVqXn\", \"output\": \"The weather in Tokyo is sunny.\", \"type\": \"function_call_output\"}]",+ "output": "{\"id\":\"resp_0f00ca5b7e22bb4c0068db9d0110d8819da676bd1f2dd03a40\",\"created_at\":1759223041.0,\"error\":null,\"incomplete_details\":null,\"instructions\":\"You are a helpful agent.\",\"metadata\":{},\"model\":\"gpt-4.1-2025-04-14\",\"object\":\"response\",\"output\":[{\"id\":\"msg_0f00ca5b7e22bb4c0068db9d019a78819d9fe1e4d3b6c96b68\",\"content\":[{\"annotations\":[],\"text\":\"The weather in Tokyo is currently sunny. If you need more details like temperature or forecast for the upcoming days, just let me know!\",\"type\":\"output_text\",\"logprobs\":[]}],\"role\":\"assistant\",\"status\":\"completed\",\"type\":\"message\"}],\"parallel_tool_calls\":true,\"temperature\":1.0,\"tool_choice\":\"auto\",\"tools\":[{\"name\":\"get_weather\",\"parameters\":{\"properties\":{\"city\":{\"title\":\"City\",\"type\":\"string\"}},\"required\":[\"city\"],\"title\":\"get_weather_args\",\"type\":\"object\",\"additionalProperties\":false},\"strict\":true,\"type\":\"function\",\"description\":null}],\"top_p\":1.0,\"background\":false,\"conversation\":null,\"max_output_tokens\":null,\"max_tool_calls\":null,\"previous_response_id\":null,\"prompt\":null,\"prompt_cache_key\":null,\"reasoning\":{\"effort\":null,\"generate_summary\":null,\"summary\":null},\"safety_identifier\":null,\"service_tier\":\"default\",\"status\":\"completed\",\"text\":{\"format\":{\"type\":\"text\"},\"verbosity\":\"medium\"},\"top_logprobs\":0,\"truncation\":\"disabled\",\"usage\":{\"input_tokens\":85,\"input_tokens_details\":{\"cached_tokens\":0},\"output_tokens\":29,\"output_tokens_details\":{\"reasoning_tokens\":0},\"total_tokens\":114},\"user\":null,\"billing\":{\"payer\":\"developer\"},\"store\":true}",+ "model": "gpt-4.1-2025-04-14",+ "internalModelId": "cm7qahw732891bpmzy45r3x70",+ "modelParameters": {+ "id": "resp_0f00ca5b7e22bb4c0068db9d0110d8819da676bd1f2dd03a40",+ "created_at": 1759223041,+ "instructions": "You are a helpful agent.",+ "metadata": "{}",+ "model": "gpt-4.1-2025-04-14",+ "parallel_tool_calls": "true",+ "temperature": 1,+ "tool_choice": "auto",+ "top_p": 1,+ "background": "false",+ "reasoning": "{}",+ "service_tier": "default",+ "text": "{\"format\":{\"type\":\"text\"},\"verbosity\":\"medium\"}",+ "top_logprobs": 0,+ "truncation": "disabled",+ "billing": "{\"payer\":\"developer\"}",+ "store": "true"+ },+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 1.15,+ "timeToFirstToken": null,+ "usageDetails": {+ "output": 29,+ "input": 85,+ "total": 114,+ "prompt_details.cache_read": 0,+ "completion_details.reasoning": 0+ },+ "costDetails": {+ "output": 0.000232,+ "input": 0.00017,+ "total": 0.000402+ },+ "providedCostDetails": {},+ "inputCost": 0.00017,+ "outputCost": 0.000232,+ "totalCost": 0.000402,+ "inputUsage": 85,+ "outputUsage": 29,+ "totalUsage": 114,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"attributes\":{\"llm.system\":\"openai\",\"output.mime_type\":\"application/json\",\"output.value\":\"{\\\"id\\\":\\\"resp_0f00ca5b7e22bb4c0068db9d0110d8819da676bd1f2dd03a40\\\",\\\"created_at\\\":1759223041.0,\\\"error\\\":null,\\\"incomplete_details\\\":null,\\\"instructions\\\":\\\"You are a helpful agent.\\\",\\\"metadata\\\":{},\\\"model\\\":\\\"gpt-4.1-2025-04-14\\\",\\\"object\\\":\\\"response\\\",\\\"output\\\":[{\\\"id\\\":\\\"msg_0f00ca5b7e22bb4c0068db9d019a78819d9fe1e4d3b6c96b68\\\",\\\"content\\\":[{\\\"annotations\\\":[],\\\"text\\\":\\\"The weather in Tokyo is currently sunny. If you need more details like temperature or forecast for the upcoming days, just let me know!\\\",\\\"type\\\":\\\"output_text\\\",\\\"logprobs\\\":[]}],\\\"role\\\":\\\"assistant\\\",\\\"status\\\":\\\"completed\\\",\\\"type\\\":\\\"message\\\"}],\\\"parallel_tool_calls\\\":true,\\\"temperature\\\":1.0,\\\"tool_choice\\\":\\\"auto\\\",\\\"tools\\\":[{\\\"name\\\":\\\"get_weather\\\",\\\"parameters\\\":{\\\"properties\\\":{\\\"city\\\":{\\\"title\\\":\\\"City\\\",\\\"type\\\":\\\"string\\\"}},\\\"required\\\":[\\\"city\\\"],\\\"title\\\":\\\"get_weather_args\\\",\\\"type\\\":\\\"object\\\",\\\"additionalProperties\\\":false},\\\"strict\\\":true,\\\"type\\\":\\\"function\\\",\\\"description\\\":null}],\\\"top_p\\\":1.0,\\\"background\\\":false,\\\"conversation\\\":null,\\\"max_output_tokens\\\":null,\\\"max_tool_calls\\\":null,\\\"previous_response_id\\\":null,\\\"prompt\\\":null,\\\"prompt_cache_key\\\":null,\\\"reasoning\\\":{\\\"effort\\\":null,\\\"generate_summary\\\":null,\\\"summary\\\":null},\\\"safety_identifier\\\":null,\\\"service_tier\\\":\\\"default\\\",\\\"status\\\":\\\"completed\\\",\\\"text\\\":{\\\"format\\\":{\\\"type\\\":\\\"text\\\"},\\\"verbosity\\\":\\\"medium\\\"},\\\"top_logprobs\\\":0,\\\"truncation\\\":\\\"disabled\\\",\\\"usage\\\":{\\\"input_tokens\\\":85,\\\"input_tokens_details\\\":{\\\"cached_tokens\\\":0},\\\"output_tokens\\\":29,\\\"output_tokens_details\\\":{\\\"reasoning_tokens\\\":0},\\\"total_tokens\\\":114},\\\"user\\\":null,\\\"billing\\\":{\\\"payer\\\":\\\"developer\\\"},\\\"store\\\":true}\",\"llm.tools.0.tool.json_schema\":\"{\\\"type\\\": \\\"function\\\", \\\"function\\\": {\\\"name\\\": \\\"get_weather\\\", \\\"description\\\": null, \\\"parameters\\\": {\\\"properties\\\": {\\\"city\\\": {\\\"title\\\": \\\"City\\\", \\\"type\\\": \\\"string\\\"}}, \\\"required\\\": [\\\"city\\\"], \\\"title\\\": \\\"get_weather_args\\\", \\\"type\\\": \\\"object\\\", \\\"additionalProperties\\\": false}, \\\"strict\\\": true}}\",\"llm.token_count.completion\":\"29\",\"llm.token_count.prompt\":\"85\",\"llm.token_count.total\":\"114\",\"llm.token_count.prompt_details.cache_read\":\"0\",\"llm.token_count.completion_details.reasoning\":\"0\",\"llm.output_messages.0.message.role\":\"assistant\",\"llm.output_messages.0.message.contents.0.message_content.type\":\"text\",\"llm.output_messages.0.message.contents.0.message_content.text\":\"The weather in Tokyo is currently sunny. If you need more details like temperature or forecast for the upcoming days, just let me know!\",\"llm.input_messages.0.message.role\":\"system\",\"llm.input_messages.0.message.content\":\"You are a helpful agent.\",\"llm.model_name\":\"gpt-4.1-2025-04-14\",\"llm.invocation_parameters\":\"{\\\"id\\\": \\\"resp_0f00ca5b7e22bb4c0068db9d0110d8819da676bd1f2dd03a40\\\", \\\"created_at\\\": 1759223041.0, \\\"instructions\\\": \\\"You are a helpful agent.\\\", \\\"metadata\\\": {}, \\\"model\\\": \\\"gpt-4.1-2025-04-14\\\", \\\"parallel_tool_calls\\\": true, \\\"temperature\\\": 1.0, \\\"tool_choice\\\": \\\"auto\\\", \\\"top_p\\\": 1.0, \\\"background\\\": false, \\\"reasoning\\\": {}, \\\"service_tier\\\": \\\"default\\\", \\\"text\\\": {\\\"format\\\": {\\\"type\\\": \\\"text\\\"}, \\\"verbosity\\\": \\\"medium\\\"}, \\\"top_logprobs\\\": 0, \\\"truncation\\\": \\\"disabled\\\", \\\"billing\\\": {\\\"payer\\\": \\\"developer\\\"}, \\\"store\\\": true}\",\"input.mime_type\":\"application/json\",\"input.value\":\"[{\\\"content\\\": \\\"What's the weather in Tokyo?\\\", \\\"role\\\": \\\"user\\\"}, {\\\"arguments\\\": \\\"{\\\\\\\"city\\\\\\\":\\\\\\\"Tokyo\\\\\\\"}\\\", \\\"call_id\\\": \\\"call_Kud0j0DxWSmLzv9W5m6qVqXn\\\", \\\"name\\\": \\\"get_weather\\\", \\\"type\\\": \\\"function_call\\\", \\\"id\\\": \\\"fc_0f00ca5b7e22bb4c0068db9d00d258819d987f4b9b63189e76\\\", \\\"status\\\": \\\"completed\\\"}, {\\\"call_id\\\": \\\"call_Kud0j0DxWSmLzv9W5m6qVqXn\\\", \\\"output\\\": \\\"The weather in Tokyo is sunny.\\\", \\\"type\\\": \\\"function_call_output\\\"}]\",\"llm.input_messages.1.message.role\":\"user\",\"llm.input_messages.1.message.content\":\"What's the weather in Tokyo?\",\"llm.input_messages.2.message.role\":\"assistant\",\"llm.input_messages.2.message.tool_calls.0.tool_call.id\":\"call_Kud0j0DxWSmLzv9W5m6qVqXn\",\"llm.input_messages.2.message.tool_calls.0.tool_call.function.name\":\"get_weather\",\"llm.input_messages.2.message.tool_calls.0.tool_call.function.arguments\":\"{\\\"city\\\":\\\"Tokyo\\\"}\",\"llm.input_messages.3.message.role\":\"tool\",\"llm.input_messages.3.message.tool_call_id\":\"call_Kud0j0DxWSmLzv9W5m6qVqXn\",\"llm.input_messages.3.message.content\":\"The weather in Tokyo is sunny.\",\"openinference.span.kind\":\"LLM\"},\"resourceAttributes\":{\"telemetry.sdk.language\":\"python\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"1.37.0\",\"service.name\":\"unknown_service\"},\"scope\":{\"name\":\"openinference.instrumentation.openai_agents\",\"version\":\"1.3.0\",\"attributes\":{}}}",+ "internalModel": "cm7qahw732891bpmzy45r3x70"+ },+ {+ "id": "98870087af69bf06",+ "traceId": "fee618f96dc31e0ca38b2f7b26eb8b29",+ "startTime": "2025-09-30T09:03:59.963Z",+ "endTime": "2025-09-30T09:04:00.999Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "d950b668796240b5",+ "type": "GENERATION",+ "environment": "default",+ "name": "response",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-09-30T09:04:02.217Z",+ "updatedAt": "2025-09-30T09:04:02.217Z",+ "input": "[{\"content\": \"What's the weather in Tokyo?\", \"role\": \"user\"}]",+ "output": "{\"id\":\"resp_0f00ca5b7e22bb4c0068db9d000be4819d824c447c54b65bc1\",\"created_at\":1759223040.0,\"error\":null,\"incomplete_details\":null,\"instructions\":\"You are a helpful agent.\",\"metadata\":{},\"model\":\"gpt-4.1-2025-04-14\",\"object\":\"response\",\"output\":[{\"arguments\":\"{\\\"city\\\":\\\"Tokyo\\\"}\",\"call_id\":\"call_Kud0j0DxWSmLzv9W5m6qVqXn\",\"name\":\"get_weather\",\"type\":\"function_call\",\"id\":\"fc_0f00ca5b7e22bb4c0068db9d00d258819d987f4b9b63189e76\",\"status\":\"completed\"}],\"parallel_tool_calls\":true,\"temperature\":1.0,\"tool_choice\":\"auto\",\"tools\":[{\"name\":\"get_weather\",\"parameters\":{\"properties\":{\"city\":{\"title\":\"City\",\"type\":\"string\"}},\"required\":[\"city\"],\"title\":\"get_weather_args\",\"type\":\"object\",\"additionalProperties\":false},\"strict\":true,\"type\":\"function\",\"description\":null}],\"top_p\":1.0,\"background\":false,\"conversation\":null,\"max_output_tokens\":null,\"max_tool_calls\":null,\"previous_response_id\":null,\"prompt\":null,\"prompt_cache_key\":null,\"reasoning\":{\"effort\":null,\"generate_summary\":null,\"summary\":null},\"safety_identifier\":null,\"service_tier\":\"default\",\"status\":\"completed\",\"text\":{\"format\":{\"type\":\"text\"},\"verbosity\":\"medium\"},\"top_logprobs\":0,\"truncation\":\"disabled\",\"usage\":{\"input_tokens\":55,\"input_tokens_details\":{\"cached_tokens\":0},\"output_tokens\":15,\"output_tokens_details\":{\"reasoning_tokens\":0},\"total_tokens\":70},\"user\":null,\"billing\":{\"payer\":\"developer\"},\"store\":true}",+ "model": "gpt-4.1-2025-04-14",+ "internalModelId": "cm7qahw732891bpmzy45r3x70",+ "modelParameters": {+ "id": "resp_0f00ca5b7e22bb4c0068db9d000be4819d824c447c54b65bc1",+ "created_at": 1759223040,+ "instructions": "You are a helpful agent.",+ "metadata": "{}",+ "model": "gpt-4.1-2025-04-14",+ "parallel_tool_calls": "true",+ "temperature": 1,+ "tool_choice": "auto",+ "top_p": 1,+ "background": "false",+ "reasoning": "{}",+ "service_tier": "default",+ "text": "{\"format\":{\"type\":\"text\"},\"verbosity\":\"medium\"}",+ "top_logprobs": 0,+ "truncation": "disabled",+ "billing": "{\"payer\":\"developer\"}",+ "store": "true"+ },+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 1.036,+ "timeToFirstToken": null,+ "usageDetails": {+ "output": 15,+ "input": 55,+ "total": 70,+ "prompt_details.cache_read": 0,+ "completion_details.reasoning": 0+ },+ "costDetails": {+ "output": 0.00012,+ "input": 0.00011,+ "total": 0.00023+ },+ "providedCostDetails": {},+ "inputCost": 0.00011,+ "outputCost": 0.00012,+ "totalCost": 0.00023,+ "inputUsage": 55,+ "outputUsage": 15,+ "totalUsage": 70,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"attributes\":{\"llm.system\":\"openai\",\"output.mime_type\":\"application/json\",\"output.value\":\"{\\\"id\\\":\\\"resp_0f00ca5b7e22bb4c0068db9d000be4819d824c447c54b65bc1\\\",\\\"created_at\\\":1759223040.0,\\\"error\\\":null,\\\"incomplete_details\\\":null,\\\"instructions\\\":\\\"You are a helpful agent.\\\",\\\"metadata\\\":{},\\\"model\\\":\\\"gpt-4.1-2025-04-14\\\",\\\"object\\\":\\\"response\\\",\\\"output\\\":[{\\\"arguments\\\":\\\"{\\\\\\\"city\\\\\\\":\\\\\\\"Tokyo\\\\\\\"}\\\",\\\"call_id\\\":\\\"call_Kud0j0DxWSmLzv9W5m6qVqXn\\\",\\\"name\\\":\\\"get_weather\\\",\\\"type\\\":\\\"function_call\\\",\\\"id\\\":\\\"fc_0f00ca5b7e22bb4c0068db9d00d258819d987f4b9b63189e76\\\",\\\"status\\\":\\\"completed\\\"}],\\\"parallel_tool_calls\\\":true,\\\"temperature\\\":1.0,\\\"tool_choice\\\":\\\"auto\\\",\\\"tools\\\":[{\\\"name\\\":\\\"get_weather\\\",\\\"parameters\\\":{\\\"properties\\\":{\\\"city\\\":{\\\"title\\\":\\\"City\\\",\\\"type\\\":\\\"string\\\"}},\\\"required\\\":[\\\"city\\\"],\\\"title\\\":\\\"get_weather_args\\\",\\\"type\\\":\\\"object\\\",\\\"additionalProperties\\\":false},\\\"strict\\\":true,\\\"type\\\":\\\"function\\\",\\\"description\\\":null}],\\\"top_p\\\":1.0,\\\"background\\\":false,\\\"conversation\\\":null,\\\"max_output_tokens\\\":null,\\\"max_tool_calls\\\":null,\\\"previous_response_id\\\":null,\\\"prompt\\\":null,\\\"prompt_cache_key\\\":null,\\\"reasoning\\\":{\\\"effort\\\":null,\\\"generate_summary\\\":null,\\\"summary\\\":null},\\\"safety_identifier\\\":null,\\\"service_tier\\\":\\\"default\\\",\\\"status\\\":\\\"completed\\\",\\\"text\\\":{\\\"format\\\":{\\\"type\\\":\\\"text\\\"},\\\"verbosity\\\":\\\"medium\\\"},\\\"top_logprobs\\\":0,\\\"truncation\\\":\\\"disabled\\\",\\\"usage\\\":{\\\"input_tokens\\\":55,\\\"input_tokens_details\\\":{\\\"cached_tokens\\\":0},\\\"output_tokens\\\":15,\\\"output_tokens_details\\\":{\\\"reasoning_tokens\\\":0},\\\"total_tokens\\\":70},\\\"user\\\":null,\\\"billing\\\":{\\\"payer\\\":\\\"developer\\\"},\\\"store\\\":true}\",\"llm.tools.0.tool.json_schema\":\"{\\\"type\\\": \\\"function\\\", \\\"function\\\": {\\\"name\\\": \\\"get_weather\\\", \\\"description\\\": null, \\\"parameters\\\": {\\\"properties\\\": {\\\"city\\\": {\\\"title\\\": \\\"City\\\", \\\"type\\\": \\\"string\\\"}}, \\\"required\\\": [\\\"city\\\"], \\\"title\\\": \\\"get_weather_args\\\", \\\"type\\\": \\\"object\\\", \\\"additionalProperties\\\": false}, \\\"strict\\\": true}}\",\"llm.token_count.completion\":\"15\",\"llm.token_count.prompt\":\"55\",\"llm.token_count.total\":\"70\",\"llm.token_count.prompt_details.cache_read\":\"0\",\"llm.token_count.completion_details.reasoning\":\"0\",\"llm.output_messages.0.message.role\":\"assistant\",\"llm.output_messages.0.message.tool_calls.0.tool_call.id\":\"call_Kud0j0DxWSmLzv9W5m6qVqXn\",\"llm.output_messages.0.message.tool_calls.0.tool_call.function.name\":\"get_weather\",\"llm.output_messages.0.message.tool_calls.0.tool_call.function.arguments\":\"{\\\"city\\\":\\\"Tokyo\\\"}\",\"llm.input_messages.0.message.role\":\"system\",\"llm.input_messages.0.message.content\":\"You are a helpful agent.\",\"llm.model_name\":\"gpt-4.1-2025-04-14\",\"llm.invocation_parameters\":\"{\\\"id\\\": \\\"resp_0f00ca5b7e22bb4c0068db9d000be4819d824c447c54b65bc1\\\", \\\"created_at\\\": 1759223040.0, \\\"instructions\\\": \\\"You are a helpful agent.\\\", \\\"metadata\\\": {}, \\\"model\\\": \\\"gpt-4.1-2025-04-14\\\", \\\"parallel_tool_calls\\\": true, \\\"temperature\\\": 1.0, \\\"tool_choice\\\": \\\"auto\\\", \\\"top_p\\\": 1.0, \\\"background\\\": false, \\\"reasoning\\\": {}, \\\"service_tier\\\": \\\"default\\\", \\\"text\\\": {\\\"format\\\": {\\\"type\\\": \\\"text\\\"}, \\\"verbosity\\\": \\\"medium\\\"}, \\\"top_logprobs\\\": 0, \\\"truncation\\\": \\\"disabled\\\", \\\"billing\\\": {\\\"payer\\\": \\\"developer\\\"}, \\\"store\\\": true}\",\"input.mime_type\":\"application/json\",\"input.value\":\"[{\\\"content\\\": \\\"What's the weather in Tokyo?\\\", \\\"role\\\": \\\"user\\\"}]\",\"llm.input_messages.1.message.role\":\"user\",\"llm.input_messages.1.message.content\":\"What's the weather in Tokyo?\",\"openinference.span.kind\":\"LLM\"},\"resourceAttributes\":{\"telemetry.sdk.language\":\"python\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"1.37.0\",\"service.name\":\"unknown_service\"},\"scope\":{\"name\":\"openinference.instrumentation.openai_agents\",\"version\":\"1.3.0\",\"attributes\":{}}}",+ "internalModel": "cm7qahw732891bpmzy45r3x70"+ },+ {+ "id": "5b99c3e3411ed17b",+ "traceId": "fee618f96dc31e0ca38b2f7b26eb8b29",+ "startTime": "2025-09-30T09:04:01.000Z",+ "endTime": "2025-09-30T09:04:01.000Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "d950b668796240b5",+ "type": "TOOL",+ "environment": "default",+ "name": "get_weather",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-09-30T09:04:02.217Z",+ "updatedAt": "2025-09-30T09:04:02.217Z",+ "input": "{\"city\":\"Tokyo\"}",+ "output": "The weather in Tokyo is sunny.",+ "model": null,+ "internalModelId": null,+ "modelParameters": {},+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 0,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"attributes\":{\"llm.system\":\"openai\",\"tool.name\":\"get_weather\",\"input.value\":\"{\\\"city\\\":\\\"Tokyo\\\"}\",\"input.mime_type\":\"application/json\",\"output.value\":\"The weather in Tokyo is sunny.\",\"openinference.span.kind\":\"TOOL\"},\"resourceAttributes\":{\"telemetry.sdk.language\":\"python\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"1.37.0\",\"service.name\":\"unknown_service\"},\"scope\":{\"name\":\"openinference.instrumentation.openai_agents\",\"version\":\"1.3.0\",\"attributes\":{}}}",+ "internalModel": null+ }+ ]+}diff --git a/worker/src/__tests__/chatml/framework-traces/pydantic-ai-2025-06-06.chatml.json b/worker/src/__tests__/chatml/framework-traces/pydantic-ai-2025-06-06.chatml.jsonnew file mode 100644index 0000000000..35bd3b4e43--- /dev/null+++ b/worker/src/__tests__/chatml/framework-traces/pydantic-ai-2025-06-06.chatml.json@@ -0,0 +1,74 @@+{+ "5cb389a3bdd21a6e": {+ "input": {+ "success": true,+ "data": [+ {+ "role": "system",+ "content": "You are a helpful assistant that answers questions clearly and concisely.",+ "json": {+ "gen_ai.system": "openai",+ "gen_ai.message.index": 0,+ "event.name": "gen_ai.system.message"+ }+ },+ {+ "role": "user",+ "content": "What is Langfuse?",+ "json": {+ "gen_ai.system": "openai",+ "gen_ai.message.index": 0,+ "event.name": "gen_ai.user.message"+ }+ }+ ]+ },+ "output": {+ "success": true,+ "data": [+ {+ "json": {+ "index": 0,+ "message": {+ "role": "assistant",+ "content": "Langfuse is a tool designed for observability and monitoring of applications that utilize large language models (LLMs). It provides features to trace, log, and visualize requests, helping developers understand the behavior of their LLM-powered applications more effectively. This can be particularly useful for debugging, performance optimization, and ensuring reliable operation of systems that depend on LLMs. Langfuse is designed to integrate easily with existing infrastructure, supporting both self-hosted implementations and cloud-based solutions."+ },+ "gen_ai.system": "openai",+ "event.name": "gen_ai.choice"+ }+ }+ ]+ }+ },+ "0a4fac2553f22f2e": {+ "output": {+ "success": true,+ "data": [+ {+ "role": "system",+ "content": "You are a helpful assistant that answers questions clearly and concisely.",+ "json": {+ "gen_ai.message.index": 0,+ "event.name": "gen_ai.system.message"+ }+ },+ {+ "role": "user",+ "content": "What is Langfuse?",+ "json": {+ "gen_ai.message.index": 0,+ "event.name": "gen_ai.user.message"+ }+ },+ {+ "role": "assistant",+ "content": "Langfuse is a tool designed for observability and monitoring of applications that utilize large language models (LLMs). It provides features to trace, log, and visualize requests, helping developers understand the behavior of their LLM-powered applications more effectively. This can be particularly useful for debugging, performance optimization, and ensuring reliable operation of systems that depend on LLMs. Langfuse is designed to integrate easily with existing infrastructure, supporting both self-hosted implementations and cloud-based solutions.",+ "json": {+ "gen_ai.message.index": 1,+ "event.name": "gen_ai.assistant.message"+ }+ }+ ]+ }+ }+}\ No newline at end of filediff --git a/worker/src/__tests__/chatml/framework-traces/pydantic-ai-2025-06-06.trace.json b/worker/src/__tests__/chatml/framework-traces/pydantic-ai-2025-06-06.trace.jsonnew file mode 100644index 0000000000..bd805a2007--- /dev/null+++ b/worker/src/__tests__/chatml/framework-traces/pydantic-ai-2025-06-06.trace.json@@ -0,0 +1,327 @@+{+ "trace": {+ "id": "25f4bdeebaab60e6e1bee7e8469554bc",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "name": "pydantic-ai-qa-trace",+ "timestamp": "2025-06-06T14:40:28.562Z",+ "environment": "default",+ "tags": [+ "dev",+ "pydantic-ai"+ ],+ "bookmarked": false,+ "release": null,+ "version": "1.0.0",+ "userId": "user_123",+ "sessionId": "session_abc",+ "public": true,+ "input": "\"What is Langfuse?\"",+ "output": "\"Langfuse is a tool designed for observability and monitoring of applications that utilize large language models (LLMs). It provides features to trace, log, and visualize requests, helping developers understand the behavior of their LLM-powered applications more effectively. This can be particularly useful for debugging, performance optimization, and ensuring reliable operation of systems that depend on LLMs. Langfuse is designed to integrate easily with existing infrastructure, supporting both self-hosted implementations and cloud-based solutions.\"",+ "createdAt": "2025-06-06T14:40:34.000Z",+ "updatedAt": "2025-06-06T14:40:33.635Z",+ "metadata": "{\"email\":\"[email protected]\",\"resourceAttributes\":{\"telemetry.sdk.language\":\"python\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"1.33.1\",\"service.name\":\"unknown_service\"},\"scope\":{\"name\":\"langfuse-sdk\",\"version\":\"3.0.0\",\"attributes\":{\"public_key\":\"pk-lf-5855d85e-3943-497e-bd10-f50ad414bcba\"}}}",+ "scores": [],+ "corrections": [+ {+ "id": "9c7e9644-912b-46c5-9a1a-859c1724695c",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "environment": "default",+ "name": "output",+ "value": 0,+ "source": "ANNOTATION",+ "authorUserId": "cm167x5rh00018bk3mcnituff",+ "comment": null,+ "metadata": {},+ "configId": null,+ "queueId": null,+ "executionTraceId": null,+ "createdAt": "2026-03-05T09:13:54.484Z",+ "updatedAt": "2026-03-05T09:13:54.484Z",+ "timestamp": "2026-03-05T09:13:54.218Z",+ "traceId": "25f4bdeebaab60e6e1bee7e8469554bc",+ "sessionId": null,+ "datasetRunId": null,+ "observationId": null,+ "longStringValue": "Langfuse is a tool designed for observability and monitoring of applications that utilize large language models (LLMs). It provides features to trace, log, and visualize requests, helping developers understand the behavior of their LLM-powered applications more effectively. This can be particularly useful for debugging, performance optimization, and ensuring reliable operation of systems that depend on LLMs. Langfuse is designed to integrate easily with existing infrastructure, supporting both self-hosted implementations and cloud-based solutions.",+ "stringValue": null,+ "dataType": "CORRECTION"+ }+ ],+ "latency": 4.795,+ "observations": [+ {+ "id": "5cb389a3bdd21a6e",+ "traceId": "25f4bdeebaab60e6e1bee7e8469554bc",+ "startTime": "2025-06-06T14:40:28.562Z",+ "endTime": "2025-06-06T14:40:33.356Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "0a4fac2553f22f2e",+ "type": "GENERATION",+ "environment": "default",+ "name": "chat gpt-4o",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-06-06T14:40:33.440Z",+ "updatedAt": "2025-06-06T14:40:33.478Z",+ "input": null,+ "output": null,+ "model": "gpt-4o",+ "internalModelId": "b9854a5c92dc496b997d99d20",+ "modelParameters": {},+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 4.794,+ "timeToFirstToken": null,+ "usageDetails": {+ "input": 31,+ "output": 96,+ "total": 127+ },+ "costDetails": {+ "input": 0.0000775,+ "output": 0.00096,+ "total": 0.0010375+ },+ "providedCostDetails": {},+ "inputCost": 0.0000775,+ "outputCost": 0.00096,+ "totalCost": 0.0010375,+ "inputUsage": 31,+ "outputUsage": 96,+ "totalUsage": 127,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ },+ {+ "id": "0a4fac2553f22f2e",+ "traceId": "25f4bdeebaab60e6e1bee7e8469554bc",+ "startTime": "2025-06-06T14:40:28.562Z",+ "endTime": "2025-06-06T14:40:33.357Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "538fed87d11686d3",+ "type": "SPAN",+ "environment": "default",+ "name": "qa_agent run",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-06-06T14:40:33.596Z",+ "updatedAt": "2025-06-06T14:40:33.641Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 4.795,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ },+ {+ "id": "538fed87d11686d3",+ "traceId": "25f4bdeebaab60e6e1bee7e8469554bc",+ "startTime": "2025-06-06T14:40:28.562Z",+ "endTime": "2025-06-06T14:40:33.357Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": null,+ "type": "SPAN",+ "environment": "default",+ "name": "pydantic-ai-qa-trace",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": "1.0.0",+ "createdAt": "2025-06-06T14:40:33.595Z",+ "updatedAt": "2025-06-06T14:40:33.630Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 4.795,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ }+ ]+ },+ "observations": [+ {+ "id": "5cb389a3bdd21a6e",+ "traceId": "25f4bdeebaab60e6e1bee7e8469554bc",+ "startTime": "2025-06-06T14:40:28.562Z",+ "endTime": "2025-06-06T14:40:33.356Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "0a4fac2553f22f2e",+ "type": "GENERATION",+ "environment": "default",+ "name": "chat gpt-4o",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-06-06T14:40:33.440Z",+ "updatedAt": "2025-06-06T14:40:33.478Z",+ "input": "[{\"content\":\"You are a helpful assistant that answers questions clearly and concisely.\",\"role\":\"system\",\"gen_ai.system\":\"openai\",\"gen_ai.message.index\":0,\"event.name\":\"gen_ai.system.message\"},{\"content\":\"What is Langfuse?\",\"role\":\"user\",\"gen_ai.system\":\"openai\",\"gen_ai.message.index\":0,\"event.name\":\"gen_ai.user.message\"}]",+ "output": "{\"index\":0,\"message\":{\"role\":\"assistant\",\"content\":\"Langfuse is a tool designed for observability and monitoring of applications that utilize large language models (LLMs). It provides features to trace, log, and visualize requests, helping developers understand the behavior of their LLM-powered applications more effectively. This can be particularly useful for debugging, performance optimization, and ensuring reliable operation of systems that depend on LLMs. Langfuse is designed to integrate easily with existing infrastructure, supporting both self-hosted implementations and cloud-based solutions.\"},\"gen_ai.system\":\"openai\",\"event.name\":\"gen_ai.choice\"}",+ "model": "gpt-4o",+ "internalModelId": "b9854a5c92dc496b997d99d20",+ "modelParameters": {},+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 4.794,+ "timeToFirstToken": null,+ "usageDetails": {+ "input": 31,+ "output": 96,+ "total": 127+ },+ "costDetails": {+ "input": 0.0000775,+ "output": 0.00096,+ "total": 0.0010375+ },+ "providedCostDetails": {},+ "inputCost": 0.0000775,+ "outputCost": 0.00096,+ "totalCost": 0.0010375,+ "inputUsage": 31,+ "outputUsage": 96,+ "totalUsage": 127,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"attributes\":{\"gen_ai.operation.name\":\"chat\",\"gen_ai.system\":\"openai\",\"gen_ai.request.model\":\"gpt-4o\",\"server.address\":\"api.openai.com\",\"model_request_parameters\":\"{\\\"function_tools\\\": [], \\\"allow_text_output\\\": true, \\\"output_tools\\\": []}\",\"gen_ai.usage.input_tokens\":\"31\",\"gen_ai.usage.output_tokens\":\"96\",\"gen_ai.response.model\":\"gpt-4o-2024-08-06\",\"events\":\"[{\\\"content\\\": \\\"You are a helpful assistant that answers questions clearly and concisely.\\\", \\\"role\\\": \\\"system\\\", \\\"gen_ai.system\\\": \\\"openai\\\", \\\"gen_ai.message.index\\\": 0, \\\"event.name\\\": \\\"gen_ai.system.message\\\"}, {\\\"content\\\": \\\"What is Langfuse?\\\", \\\"role\\\": \\\"user\\\", \\\"gen_ai.system\\\": \\\"openai\\\", \\\"gen_ai.message.index\\\": 0, \\\"event.name\\\": \\\"gen_ai.user.message\\\"}, {\\\"index\\\": 0, \\\"message\\\": {\\\"role\\\": \\\"assistant\\\", \\\"content\\\": \\\"Langfuse is a tool designed for observability and monitoring of applications that utilize large language models (LLMs). It provides features to trace, log, and visualize requests, helping developers understand the behavior of their LLM-powered applications more effectively. This can be particularly useful for debugging, performance optimization, and ensuring reliable operation of systems that depend on LLMs. Langfuse is designed to integrate easily with existing infrastructure, supporting both self-hosted implementations and cloud-based solutions.\\\"}, \\\"gen_ai.system\\\": \\\"openai\\\", \\\"event.name\\\": \\\"gen_ai.choice\\\"}]\",\"logfire.json_schema\":\"{\\\"type\\\": \\\"object\\\", \\\"properties\\\": {\\\"events\\\": {\\\"type\\\": \\\"array\\\"}, \\\"model_request_parameters\\\": {\\\"type\\\": \\\"object\\\"}}}\"},\"resourceAttributes\":{\"telemetry.sdk.language\":\"python\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"1.33.1\",\"service.name\":\"unknown_service\"},\"scope\":{\"name\":\"pydantic-ai\",\"version\":\"0.2.15\",\"attributes\":{}}}",+ "internalModel": "b9854a5c92dc496b997d99d20"+ },+ {+ "id": "0a4fac2553f22f2e",+ "traceId": "25f4bdeebaab60e6e1bee7e8469554bc",+ "startTime": "2025-06-06T14:40:28.562Z",+ "endTime": "2025-06-06T14:40:33.357Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "538fed87d11686d3",+ "type": "SPAN",+ "environment": "default",+ "name": "qa_agent run",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-06-06T14:40:33.596Z",+ "updatedAt": "2025-06-06T14:40:33.641Z",+ "input": null,+ "output": "[{\"content\": \"You are a helpful assistant that answers questions clearly and concisely.\", \"role\": \"system\", \"gen_ai.message.index\": 0, \"event.name\": \"gen_ai.system.message\"}, {\"content\": \"What is Langfuse?\", \"role\": \"user\", \"gen_ai.message.index\": 0, \"event.name\": \"gen_ai.user.message\"}, {\"role\": \"assistant\", \"content\": \"Langfuse is a tool designed for observability and monitoring of applications that utilize large language models (LLMs). It provides features to trace, log, and visualize requests, helping developers understand the behavior of their LLM-powered applications more effectively. This can be particularly useful for debugging, performance optimization, and ensuring reliable operation of systems that depend on LLMs. Langfuse is designed to integrate easily with existing infrastructure, supporting both self-hosted implementations and cloud-based solutions.\", \"gen_ai.message.index\": 1, \"event.name\": \"gen_ai.assistant.message\"}]",+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 4.795,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"attributes\":{\"model_name\":\"gpt-4o\",\"agent_name\":\"qa_agent\",\"logfire.msg\":\"qa_agent run\",\"final_result\":\"Langfuse is a tool designed for observability and monitoring of applications that utilize large language models (LLMs). It provides features to trace, log, and visualize requests, helping developers understand the behavior of their LLM-powered applications more effectively. This can be particularly useful for debugging, performance optimization, and ensuring reliable operation of systems that depend on LLMs. Langfuse is designed to integrate easily with existing infrastructure, supporting both self-hosted implementations and cloud-based solutions.\",\"gen_ai.usage.input_tokens\":\"31\",\"gen_ai.usage.output_tokens\":\"96\",\"all_messages_events\":\"[{\\\"content\\\": \\\"You are a helpful assistant that answers questions clearly and concisely.\\\", \\\"role\\\": \\\"system\\\", \\\"gen_ai.message.index\\\": 0, \\\"event.name\\\": \\\"gen_ai.system.message\\\"}, {\\\"content\\\": \\\"What is Langfuse?\\\", \\\"role\\\": \\\"user\\\", \\\"gen_ai.message.index\\\": 0, \\\"event.name\\\": \\\"gen_ai.user.message\\\"}, {\\\"role\\\": \\\"assistant\\\", \\\"content\\\": \\\"Langfuse is a tool designed for observability and monitoring of applications that utilize large language models (LLMs). It provides features to trace, log, and visualize requests, helping developers understand the behavior of their LLM-powered applications more effectively. This can be particularly useful for debugging, performance optimization, and ensuring reliable operation of systems that depend on LLMs. Langfuse is designed to integrate easily with existing infrastructure, supporting both self-hosted implementations and cloud-based solutions.\\\", \\\"gen_ai.message.index\\\": 1, \\\"event.name\\\": \\\"gen_ai.assistant.message\\\"}]\",\"logfire.json_schema\":\"{\\\"type\\\": \\\"object\\\", \\\"properties\\\": {\\\"all_messages_events\\\": {\\\"type\\\": \\\"array\\\"}, \\\"final_result\\\": {\\\"type\\\": \\\"object\\\"}}}\"},\"resourceAttributes\":{\"telemetry.sdk.language\":\"python\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"1.33.1\",\"service.name\":\"unknown_service\"},\"scope\":{\"name\":\"pydantic-ai\",\"version\":\"0.2.15\",\"attributes\":{}}}",+ "internalModel": null+ },+ {+ "id": "538fed87d11686d3",+ "traceId": "25f4bdeebaab60e6e1bee7e8469554bc",+ "startTime": "2025-06-06T14:40:28.562Z",+ "endTime": "2025-06-06T14:40:33.357Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": null,+ "type": "SPAN",+ "environment": "default",+ "name": "pydantic-ai-qa-trace",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": "1.0.0",+ "createdAt": "2025-06-06T14:40:33.595Z",+ "updatedAt": "2025-06-06T14:40:33.630Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 4.795,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"resourceAttributes\":{\"telemetry.sdk.language\":\"python\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"1.33.1\",\"service.name\":\"unknown_service\"},\"scope\":{\"name\":\"langfuse-sdk\",\"version\":\"3.0.0\",\"attributes\":{\"public_key\":\"pk-lf-5855d85e-3943-497e-bd10-f50ad414bcba\"}}}",+ "internalModel": null+ }+ ]+}\ No newline at end of filediff --git a/worker/src/__tests__/chatml/framework-traces/pydantic-ai-tools-2025-12-04.chatml.json b/worker/src/__tests__/chatml/framework-traces/pydantic-ai-tools-2025-12-04.chatml.jsonnew file mode 100644index 0000000000..e06bb4968e--- /dev/null+++ b/worker/src/__tests__/chatml/framework-traces/pydantic-ai-tools-2025-12-04.chatml.json@@ -0,0 +1,1956 @@+{+ "00d3f40ee8e3b716": {+ "input": {+ "success": false,+ "error": {+ "name": "ZodError",+ "message": "[\n {\n \"expected\": \"array\",\n \"code\": \"invalid_type\",\n \"path\": [],\n \"message\": \"Invalid input: expected array, received object\"\n }\n]"+ }+ },+ "output": {+ "success": true,+ "data": [+ {+ "json": {+ "joke": "Why do programmers hate nature? \nIt has too many bugs!",+ "evaluation": {+ "quality": "good",+ "feedback": "The joke is clever and plays on the double meaning of 'bugs' in programming and nature. It's relatable for those in the tech field, making it effective. To enhance it, consider adding a punchline that builds on the setup for an even stronger impact."+ },+ "iterations": 1,+ "success": true+ }+ }+ ]+ }+ },+ "00d2804abb764b1b": {+ "input": {+ "success": true,+ "data": [+ {+ "role": "system",+ "content": "You are a creative joke writer. When asked to get inspiration, you will call THREE of the available suggestion tools to gather ideas. When asked to write a joke, create a funny joke based on the suggestions you received.",+ "tools": [+ {+ "name": "get_pun_suggestion",+ "description": "Get a pun-style joke suggestion for the given topic.",+ "parameters": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ }+ },+ {+ "name": "get_dad_joke_suggestion",+ "description": "Get a dad joke style suggestion for the given topic.",+ "parameters": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ }+ },+ {+ "name": "get_one_liner_suggestion",+ "description": "Get a one-liner joke suggestion for the given topic.",+ "parameters": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ }+ },+ {+ "name": "get_car_joke_suggestion",+ "description": "Get a car-themed joke suggestion for the given topic.",+ "parameters": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ }+ },+ {+ "name": "get_tree_joke_suggestion",+ "description": "Get a tree-themed joke suggestion for the given topic.",+ "parameters": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ }+ }+ ]+ },+ {+ "role": "user",+ "content": "Select and call THREE of the available tools to get joke suggestions about 'programming'.",+ "tools": [+ {+ "name": "get_pun_suggestion",+ "description": "Get a pun-style joke suggestion for the given topic.",+ "parameters": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ }+ },+ {+ "name": "get_dad_joke_suggestion",+ "description": "Get a dad joke style suggestion for the given topic.",+ "parameters": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ }+ },+ {+ "name": "get_one_liner_suggestion",+ "description": "Get a one-liner joke suggestion for the given topic.",+ "parameters": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ }+ },+ {+ "name": "get_car_joke_suggestion",+ "description": "Get a car-themed joke suggestion for the given topic.",+ "parameters": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ }+ },+ {+ "name": "get_tree_joke_suggestion",+ "description": "Get a tree-themed joke suggestion for the given topic.",+ "parameters": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ }+ }+ ]+ },+ {+ "role": "assistant",+ "content": "",+ "tools": [+ {+ "name": "get_pun_suggestion",+ "description": "Get a pun-style joke suggestion for the given topic.",+ "parameters": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ }+ },+ {+ "name": "get_dad_joke_suggestion",+ "description": "Get a dad joke style suggestion for the given topic.",+ "parameters": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ }+ },+ {+ "name": "get_one_liner_suggestion",+ "description": "Get a one-liner joke suggestion for the given topic.",+ "parameters": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ }+ },+ {+ "name": "get_car_joke_suggestion",+ "description": "Get a car-themed joke suggestion for the given topic.",+ "parameters": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ }+ },+ {+ "name": "get_tree_joke_suggestion",+ "description": "Get a tree-themed joke suggestion for the given topic.",+ "parameters": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ }+ }+ ],+ "tool_calls": [+ {+ "id": "call_X0OSgjUukT5inyEQvuZQnHrk",+ "name": "get_pun_suggestion",+ "arguments": "{\"topic\":\"programming\"}",+ "type": "function"+ },+ {+ "id": "call_WxZcCvSDhGT4RJHlcU01k10x",+ "name": "get_dad_joke_suggestion",+ "arguments": "{\"topic\":\"programming\"}",+ "type": "function"+ },+ {+ "id": "call_aRaObiWKKt6GzgDkkUl3bu1Q",+ "name": "get_one_liner_suggestion",+ "arguments": "{\"topic\":\"programming\"}",+ "type": "function"+ }+ ],+ "json": {+ "finish_reason": "tool_call"+ }+ },+ {+ "role": "tool",+ "content": "Pun idea: Play on words related to 'programming' - think about homophones or double meanings",+ "tools": [+ {+ "name": "get_pun_suggestion",+ "description": "Get a pun-style joke suggestion for the given topic.",+ "parameters": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ }+ },+ {+ "name": "get_dad_joke_suggestion",+ "description": "Get a dad joke style suggestion for the given topic.",+ "parameters": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ }+ },+ {+ "name": "get_one_liner_suggestion",+ "description": "Get a one-liner joke suggestion for the given topic.",+ "parameters": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ }+ },+ {+ "name": "get_car_joke_suggestion",+ "description": "Get a car-themed joke suggestion for the given topic.",+ "parameters": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ }+ },+ {+ "name": "get_tree_joke_suggestion",+ "description": "Get a tree-themed joke suggestion for the given topic.",+ "parameters": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ }+ }+ ],+ "tool_call_id": "call_X0OSgjUukT5inyEQvuZQnHrk"+ },+ {+ "role": "tool",+ "content": "Dad joke idea: Use a classic setup-punchline format about 'programming' with a groan-worthy twist",+ "tools": [+ {+ "name": "get_pun_suggestion",+ "description": "Get a pun-style joke suggestion for the given topic.",+ "parameters": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ }+ },+ {+ "name": "get_dad_joke_suggestion",+ "description": "Get a dad joke style suggestion for the given topic.",+ "parameters": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ }+ },+ {+ "name": "get_one_liner_suggestion",+ "description": "Get a one-liner joke suggestion for the given topic.",+ "parameters": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ }+ },+ {+ "name": "get_car_joke_suggestion",+ "description": "Get a car-themed joke suggestion for the given topic.",+ "parameters": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ }+ },+ {+ "name": "get_tree_joke_suggestion",+ "description": "Get a tree-themed joke suggestion for the given topic.",+ "parameters": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ }+ }+ ],+ "tool_call_id": "call_WxZcCvSDhGT4RJHlcU01k10x"+ },+ {+ "role": "tool",+ "content": "One-liner idea: Make a quick, witty observation about 'programming' in a single sentence",+ "tools": [+ {+ "name": "get_pun_suggestion",+ "description": "Get a pun-style joke suggestion for the given topic.",+ "parameters": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ }+ },+ {+ "name": "get_dad_joke_suggestion",+ "description": "Get a dad joke style suggestion for the given topic.",+ "parameters": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ }+ },+ {+ "name": "get_one_liner_suggestion",+ "description": "Get a one-liner joke suggestion for the given topic.",+ "parameters": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ }+ },+ {+ "name": "get_car_joke_suggestion",+ "description": "Get a car-themed joke suggestion for the given topic.",+ "parameters": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ }+ },+ {+ "name": "get_tree_joke_suggestion",+ "description": "Get a tree-themed joke suggestion for the given topic.",+ "parameters": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ }+ }+ ],+ "tool_call_id": "call_aRaObiWKKt6GzgDkkUl3bu1Q"+ }+ ]+ },+ "output": {+ "success": true,+ "data": [+ {+ "role": "assistant",+ "content": "I gathered some great ideas for a programming joke! Here’s a funny joke combining those suggestions:\n\nWhy do programmers prefer dark mode? \nBecause light attracts bugs! \n\n(It's a pun on light attracting bugs and programmers having a love-hate relationship with debugging!)",+ "tools": [+ {+ "name": "get_pun_suggestion",+ "description": "Get a pun-style joke suggestion for the given topic.",+ "parameters": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ }+ },+ {+ "name": "get_dad_joke_suggestion",+ "description": "Get a dad joke style suggestion for the given topic.",+ "parameters": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ }+ },+ {+ "name": "get_one_liner_suggestion",+ "description": "Get a one-liner joke suggestion for the given topic.",+ "parameters": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ }+ },+ {+ "name": "get_car_joke_suggestion",+ "description": "Get a car-themed joke suggestion for the given topic.",+ "parameters": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ }+ },+ {+ "name": "get_tree_joke_suggestion",+ "description": "Get a tree-themed joke suggestion for the given topic.",+ "parameters": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ }+ }+ ],+ "json": {+ "finish_reason": "stop"+ }+ }+ ]+ }+ },+ "eb0cc14cf7943ad5": {+ "input": {+ "success": true,+ "data": [+ {+ "role": "system",+ "content": "You are a joke critic. Evaluate if the joke is funny and well-crafted."+ },+ {+ "role": "user",+ "content": "Rate this joke:\n\nWhy do programmers hate nature? \nIt has too many bugs!"+ }+ ]+ },+ "output": {+ "success": true,+ "data": [+ {+ "role": "assistant",+ "content": "",+ "tool_calls": [+ {+ "id": "call_ZuzwalMMtvv9BC6xlVe3fiBP",+ "name": "final_result",+ "arguments": "{\"quality\":\"good\",\"feedback\":\"The joke is clever and plays on the double meaning of 'bugs' in programming and nature. It's relatable for those in the tech field, making it effective. To enhance it, consider adding a punchline that builds on the setup for an even stronger impact.\"}",+ "type": "function"+ }+ ],+ "json": {+ "finish_reason": "tool_call"+ }+ }+ ]+ }+ },+ "8976b072313c51f2": {+ "input": {+ "success": true,+ "data": [+ {+ "role": "system",+ "content": "You are a creative joke writer. When asked to get inspiration, you will call THREE of the available suggestion tools to gather ideas. When asked to write a joke, create a funny joke based on the suggestions you received.",+ "tools": [+ {+ "name": "get_pun_suggestion",+ "description": "Get a pun-style joke suggestion for the given topic.",+ "parameters": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ }+ },+ {+ "name": "get_dad_joke_suggestion",+ "description": "Get a dad joke style suggestion for the given topic.",+ "parameters": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ }+ },+ {+ "name": "get_one_liner_suggestion",+ "description": "Get a one-liner joke suggestion for the given topic.",+ "parameters": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ }+ },+ {+ "name": "get_car_joke_suggestion",+ "description": "Get a car-themed joke suggestion for the given topic.",+ "parameters": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ }+ },+ {+ "name": "get_tree_joke_suggestion",+ "description": "Get a tree-themed joke suggestion for the given topic.",+ "parameters": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ }+ }+ ]+ },+ {+ "role": "user",+ "content": "Select and call THREE of the available tools to get joke suggestions about 'programming'.",+ "tools": [+ {+ "name": "get_pun_suggestion",+ "description": "Get a pun-style joke suggestion for the given topic.",+ "parameters": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ }+ },+ {+ "name": "get_dad_joke_suggestion",+ "description": "Get a dad joke style suggestion for the given topic.",+ "parameters": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ }+ },+ {+ "name": "get_one_liner_suggestion",+ "description": "Get a one-liner joke suggestion for the given topic.",+ "parameters": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ }+ },+ {+ "name": "get_car_joke_suggestion",+ "description": "Get a car-themed joke suggestion for the given topic.",+ "parameters": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ }+ },+ {+ "name": "get_tree_joke_suggestion",+ "description": "Get a tree-themed joke suggestion for the given topic.",+ "parameters": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ }+ }+ ]+ },+ {+ "role": "assistant",+ "content": "",+ "tools": [+ {+ "name": "get_pun_suggestion",+ "description": "Get a pun-style joke suggestion for the given topic.",+ "parameters": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ }+ },+ {+ "name": "get_dad_joke_suggestion",+ "description": "Get a dad joke style suggestion for the given topic.",+ "parameters": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ }+ },+ {+ "name": "get_one_liner_suggestion",+ "description": "Get a one-liner joke suggestion for the given topic.",+ "parameters": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ }+ },+ {+ "name": "get_car_joke_suggestion",+ "description": "Get a car-themed joke suggestion for the given topic.",+ "parameters": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ }+ },+ {+ "name": "get_tree_joke_suggestion",+ "description": "Get a tree-themed joke suggestion for the given topic.",+ "parameters": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ }+ }+ ],+ "tool_calls": [+ {+ "id": "call_X0OSgjUukT5inyEQvuZQnHrk",+ "name": "get_pun_suggestion",+ "arguments": "{\"topic\":\"programming\"}",+ "type": "function"+ },+ {+ "id": "call_WxZcCvSDhGT4RJHlcU01k10x",+ "name": "get_dad_joke_suggestion",+ "arguments": "{\"topic\":\"programming\"}",+ "type": "function"+ },+ {+ "id": "call_aRaObiWKKt6GzgDkkUl3bu1Q",+ "name": "get_one_liner_suggestion",+ "arguments": "{\"topic\":\"programming\"}",+ "type": "function"+ }+ ],+ "json": {+ "finish_reason": "tool_call"+ }+ },+ {+ "role": "tool",+ "content": "Pun idea: Play on words related to 'programming' - think about homophones or double meanings",+ "tools": [+ {+ "name": "get_pun_suggestion",+ "description": "Get a pun-style joke suggestion for the given topic.",+ "parameters": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ }+ },+ {+ "name": "get_dad_joke_suggestion",+ "description": "Get a dad joke style suggestion for the given topic.",+ "parameters": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ }+ },+ {+ "name": "get_one_liner_suggestion",+ "description": "Get a one-liner joke suggestion for the given topic.",+ "parameters": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ }+ },+ {+ "name": "get_car_joke_suggestion",+ "description": "Get a car-themed joke suggestion for the given topic.",+ "parameters": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ }+ },+ {+ "name": "get_tree_joke_suggestion",+ "description": "Get a tree-themed joke suggestion for the given topic.",+ "parameters": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ }+ }+ ],+ "tool_call_id": "call_X0OSgjUukT5inyEQvuZQnHrk"+ },+ {+ "role": "tool",+ "content": "Dad joke idea: Use a classic setup-punchline format about 'programming' with a groan-worthy twist",+ "tools": [+ {+ "name": "get_pun_suggestion",+ "description": "Get a pun-style joke suggestion for the given topic.",+ "parameters": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ }+ },+ {+ "name": "get_dad_joke_suggestion",+ "description": "Get a dad joke style suggestion for the given topic.",+ "parameters": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ }+ },+ {+ "name": "get_one_liner_suggestion",+ "description": "Get a one-liner joke suggestion for the given topic.",+ "parameters": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ }+ },+ {+ "name": "get_car_joke_suggestion",+ "description": "Get a car-themed joke suggestion for the given topic.",+ "parameters": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ }+ },+ {+ "name": "get_tree_joke_suggestion",+ "description": "Get a tree-themed joke suggestion for the given topic.",+ "parameters": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ }+ }+ ],+ "tool_call_id": "call_WxZcCvSDhGT4RJHlcU01k10x"+ },+ {+ "role": "tool",+ "content": "One-liner idea: Make a quick, witty observation about 'programming' in a single sentence",+ "tools": [+ {+ "name": "get_pun_suggestion",+ "description": "Get a pun-style joke suggestion for the given topic.",+ "parameters": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ }+ },+ {+ "name": "get_dad_joke_suggestion",+ "description": "Get a dad joke style suggestion for the given topic.",+ "parameters": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ }+ },+ {+ "name": "get_one_liner_suggestion",+ "description": "Get a one-liner joke suggestion for the given topic.",+ "parameters": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ }+ },+ {+ "name": "get_car_joke_suggestion",+ "description": "Get a car-themed joke suggestion for the given topic.",+ "parameters": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ }+ },+ {+ "name": "get_tree_joke_suggestion",+ "description": "Get a tree-themed joke suggestion for the given topic.",+ "parameters": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ }+ }+ ],+ "tool_call_id": "call_aRaObiWKKt6GzgDkkUl3bu1Q"+ },+ {+ "role": "assistant",+ "content": "I gathered some great ideas for a programming joke! Here’s a funny joke combining those suggestions:\n\nWhy do programmers prefer dark mode? \nBecause light attracts bugs! \n\n(It's a pun on light attracting bugs and programmers having a love-hate relationship with debugging!)",+ "tools": [+ {+ "name": "get_pun_suggestion",+ "description": "Get a pun-style joke suggestion for the given topic.",+ "parameters": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ }+ },+ {+ "name": "get_dad_joke_suggestion",+ "description": "Get a dad joke style suggestion for the given topic.",+ "parameters": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ }+ },+ {+ "name": "get_one_liner_suggestion",+ "description": "Get a one-liner joke suggestion for the given topic.",+ "parameters": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ }+ },+ {+ "name": "get_car_joke_suggestion",+ "description": "Get a car-themed joke suggestion for the given topic.",+ "parameters": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ }+ },+ {+ "name": "get_tree_joke_suggestion",+ "description": "Get a tree-themed joke suggestion for the given topic.",+ "parameters": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ }+ }+ ],+ "json": {+ "finish_reason": "stop"+ }+ },+ {+ "role": "user",+ "content": "Now write a funny joke about 'programming' based on the suggestions you received. Just output the joke, nothing else.",+ "tools": [+ {+ "name": "get_pun_suggestion",+ "description": "Get a pun-style joke suggestion for the given topic.",+ "parameters": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ }+ },+ {+ "name": "get_dad_joke_suggestion",+ "description": "Get a dad joke style suggestion for the given topic.",+ "parameters": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ }+ },+ {+ "name": "get_one_liner_suggestion",+ "description": "Get a one-liner joke suggestion for the given topic.",+ "parameters": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ }+ },+ {+ "name": "get_car_joke_suggestion",+ "description": "Get a car-themed joke suggestion for the given topic.",+ "parameters": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ }+ },+ {+ "name": "get_tree_joke_suggestion",+ "description": "Get a tree-themed joke suggestion for the given topic.",+ "parameters": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ }+ }+ ]+ }+ ]+ },+ "output": {+ "success": true,+ "data": [+ {+ "role": "assistant",+ "content": "Why do programmers hate nature? \nIt has too many bugs!",+ "tools": [+ {+ "name": "get_pun_suggestion",+ "description": "Get a pun-style joke suggestion for the given topic.",+ "parameters": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ }+ },+ {+ "name": "get_dad_joke_suggestion",+ "description": "Get a dad joke style suggestion for the given topic.",+ "parameters": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ }+ },+ {+ "name": "get_one_liner_suggestion",+ "description": "Get a one-liner joke suggestion for the given topic.",+ "parameters": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ }+ },+ {+ "name": "get_car_joke_suggestion",+ "description": "Get a car-themed joke suggestion for the given topic.",+ "parameters": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ }+ },+ {+ "name": "get_tree_joke_suggestion",+ "description": "Get a tree-themed joke suggestion for the given topic.",+ "parameters": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ }+ }+ ],+ "json": {+ "finish_reason": "stop"+ }+ }+ ]+ }+ },+ "be64c23f44dd98be": {+ "input": {+ "success": true,+ "data": [+ {+ "role": "system",+ "content": "You are a creative joke writer. When asked to get inspiration, you will call THREE of the available suggestion tools to gather ideas. When asked to write a joke, create a funny joke based on the suggestions you received.",+ "tools": [+ {+ "name": "get_pun_suggestion",+ "description": "Get a pun-style joke suggestion for the given topic.",+ "parameters": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ }+ },+ {+ "name": "get_dad_joke_suggestion",+ "description": "Get a dad joke style suggestion for the given topic.",+ "parameters": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ }+ },+ {+ "name": "get_one_liner_suggestion",+ "description": "Get a one-liner joke suggestion for the given topic.",+ "parameters": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ }+ },+ {+ "name": "get_car_joke_suggestion",+ "description": "Get a car-themed joke suggestion for the given topic.",+ "parameters": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ }+ },+ {+ "name": "get_tree_joke_suggestion",+ "description": "Get a tree-themed joke suggestion for the given topic.",+ "parameters": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ }+ }+ ]+ },+ {+ "role": "user",+ "content": "Select and call THREE of the available tools to get joke suggestions about 'programming'.",+ "tools": [+ {+ "name": "get_pun_suggestion",+ "description": "Get a pun-style joke suggestion for the given topic.",+ "parameters": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ }+ },+ {+ "name": "get_dad_joke_suggestion",+ "description": "Get a dad joke style suggestion for the given topic.",+ "parameters": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ }+ },+ {+ "name": "get_one_liner_suggestion",+ "description": "Get a one-liner joke suggestion for the given topic.",+ "parameters": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ }+ },+ {+ "name": "get_car_joke_suggestion",+ "description": "Get a car-themed joke suggestion for the given topic.",+ "parameters": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ }+ },+ {+ "name": "get_tree_joke_suggestion",+ "description": "Get a tree-themed joke suggestion for the given topic.",+ "parameters": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ }+ }+ ]+ }+ ]+ },+ "output": {+ "success": true,+ "data": [+ {+ "role": "assistant",+ "content": "",+ "tools": [+ {+ "name": "get_pun_suggestion",+ "description": "Get a pun-style joke suggestion for the given topic.",+ "parameters": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ }+ },+ {+ "name": "get_dad_joke_suggestion",+ "description": "Get a dad joke style suggestion for the given topic.",+ "parameters": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ }+ },+ {+ "name": "get_one_liner_suggestion",+ "description": "Get a one-liner joke suggestion for the given topic.",+ "parameters": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ }+ },+ {+ "name": "get_car_joke_suggestion",+ "description": "Get a car-themed joke suggestion for the given topic.",+ "parameters": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ }+ },+ {+ "name": "get_tree_joke_suggestion",+ "description": "Get a tree-themed joke suggestion for the given topic.",+ "parameters": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ }+ }+ ],+ "tool_calls": [+ {+ "id": "call_X0OSgjUukT5inyEQvuZQnHrk",+ "name": "get_pun_suggestion",+ "arguments": "{\"topic\":\"programming\"}",+ "type": "function"+ },+ {+ "id": "call_WxZcCvSDhGT4RJHlcU01k10x",+ "name": "get_dad_joke_suggestion",+ "arguments": "{\"topic\":\"programming\"}",+ "type": "function"+ },+ {+ "id": "call_aRaObiWKKt6GzgDkkUl3bu1Q",+ "name": "get_one_liner_suggestion",+ "arguments": "{\"topic\":\"programming\"}",+ "type": "function"+ }+ ],+ "json": {+ "finish_reason": "tool_call"+ }+ }+ ]+ }+ },+ "02d7769b76595f0b": {+ "input": {+ "success": false,+ "error": {+ "name": "ZodError",+ "message": "[\n {\n \"expected\": \"array\",\n \"code\": \"invalid_type\",\n \"path\": [],\n \"message\": \"Invalid input: expected array, received object\"\n }\n]"+ }+ },+ "output": {+ "success": true,+ "data": [+ {}+ ]+ }+ },+ "199eff9980ea8b99": {+ "input": {+ "success": false,+ "error": {+ "name": "ZodError",+ "message": "[\n {\n \"expected\": \"array\",\n \"code\": \"invalid_type\",\n \"path\": [],\n \"message\": \"Invalid input: expected array, received object\"\n }\n]"+ }+ },+ "output": {+ "success": true,+ "data": [+ {}+ ]+ }+ },+ "99ec63d0b5ecdbf5": {+ "input": {+ "success": false,+ "error": {+ "name": "ZodError",+ "message": "[\n {\n \"expected\": \"array\",\n \"code\": \"invalid_type\",\n \"path\": [],\n \"message\": \"Invalid input: expected array, received object\"\n }\n]"+ }+ },+ "output": {+ "success": true,+ "data": [+ {}+ ]+ }+ }+}\ No newline at end of filediff --git a/worker/src/__tests__/chatml/framework-traces/pydantic-ai-tools-2025-12-04.trace.json b/worker/src/__tests__/chatml/framework-traces/pydantic-ai-tools-2025-12-04.trace.jsonnew file mode 100644index 0000000000..9d13b71077--- /dev/null+++ b/worker/src/__tests__/chatml/framework-traces/pydantic-ai-tools-2025-12-04.trace.json@@ -0,0 +1,1863 @@+{+ "trace": {+ "id": "7a38edd8123db47ad8dcb8aa4c5e3926",+ "projectId": "7a88fb47-b4e2-43b8-a06c-a5ce950dc53a",+ "name": "joke-generator",+ "timestamp": "2025-12-04T14:51:22.053Z",+ "environment": "default",+ "tags": [+ "example",+ "joke-generator"+ ],+ "bookmarked": false,+ "release": null,+ "version": null,+ "userId": null,+ "sessionId": null,+ "public": false,+ "input": "\"{\\\"args\\\": [\\\"programming\\\"], \\\"kwargs\\\": {}}\"",+ "output": "\"Why do programmers hate nature? \\nIt has too many bugs!\"",+ "createdAt": "2025-12-04T14:51:25.697Z",+ "updatedAt": "2025-12-04T14:51:29.610Z",+ "metadata": "{\"environment\":\"development\",\"topic\":\"programming\",\"iterations\":1,\"evaluation\":{\"quality\":\"good\",\"feedback\":\"The joke is clever and plays on the double meaning of 'bugs' in programming and nature. It's relatable for those in the tech field, making it effective. To enhance it, consider adding a punchline that builds on the setup for an even stronger impact.\"},\"resourceAttributes\":{\"telemetry.sdk.language\":\"python\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"1.38.0\",\"service.name\":\"unknown_service\"},\"scope\":{\"name\":\"langfuse-sdk\",\"version\":\"3.10.5\",\"attributes\":{\"public_key\":\"pk-lf-1234567890\"}}}",+ "scores": [],+ "latency": 7.424+ },+ "observations": [+ {+ "id": "00d3f40ee8e3b716",+ "traceId": "7a38edd8123db47ad8dcb8aa4c5e3926",+ "startTime": "2025-12-04T14:51:22.049Z",+ "projectId": "7a88fb47-b4e2-43b8-a06c-a5ce950dc53a",+ "parentObservationId": null,+ "type": "SPAN",+ "environment": "default",+ "endTime": "2025-12-04T14:51:29.473Z",+ "name": "run_joke_generator",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-12-04T14:51:29.574Z",+ "updatedAt": "2025-12-04T14:51:29.586Z",+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 7424,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "metadata": {+ "resourceAttributes": {+ "telemetry.sdk.language": "python",+ "telemetry.sdk.name": "opentelemetry",+ "telemetry.sdk.version": "1.38.0",+ "service.name": "unknown_service"+ },+ "scope": {+ "name": "langfuse-sdk",+ "version": "3.10.5",+ "attributes": {+ "public_key": "pk-lf-1234567890"+ }+ }+ },+ "input": {+ "args": [+ "programming"+ ],+ "kwargs": {}+ },+ "output": {+ "joke": "Why do programmers hate nature? \nIt has too many bugs!",+ "evaluation": {+ "quality": "good",+ "feedback": "The joke is clever and plays on the double meaning of 'bugs' in programming and nature. It's relatable for those in the tech field, making it effective. To enhance it, consider adding a punchline that builds on the setup for an even stronger impact."+ },+ "iterations": 1,+ "success": true+ }+ },+ {+ "id": "49ae06cbfa06611f",+ "traceId": "7a38edd8123db47ad8dcb8aa4c5e3926",+ "startTime": "2025-12-04T14:51:26.132Z",+ "projectId": "7a88fb47-b4e2-43b8-a06c-a5ce950dc53a",+ "parentObservationId": "00d3f40ee8e3b716",+ "type": "SPAN",+ "environment": "default",+ "endTime": "2025-12-04T14:51:27.417Z",+ "name": "joke_agent run",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-12-04T14:51:29.574Z",+ "updatedAt": "2025-12-04T14:51:29.586Z",+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 1285,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "metadata": {+ "attributes": {+ "model_name": "gpt-4o-mini",+ "agent_name": "joke_agent",+ "gen_ai.agent.name": "joke_agent",+ "logfire.msg": "joke_agent run",+ "final_result": "Why do programmers hate nature? \nIt has too many bugs!",+ "gen_ai.usage.input_tokens": "502",+ "gen_ai.usage.output_tokens": "14",+ "pydantic_ai.all_messages": [+ {+ "role": "system",+ "parts": [+ {+ "type": "text",+ "content": "You are a creative joke writer. When asked to get inspiration, you will call THREE of the available suggestion tools to gather ideas. When asked to write a joke, create a funny joke based on the suggestions you received."+ }+ ]+ },+ {+ "role": "user",+ "parts": [+ {+ "type": "text",+ "content": "Select and call THREE of the available tools to get joke suggestions about 'programming'."+ }+ ]+ },+ {+ "role": "assistant",+ "parts": [+ {+ "type": "tool_call",+ "id": "call_X0OSgjUukT5inyEQvuZQnHrk",+ "name": "get_pun_suggestion",+ "arguments": {+ "topic": "programming"+ }+ },+ {+ "type": "tool_call",+ "id": "call_WxZcCvSDhGT4RJHlcU01k10x",+ "name": "get_dad_joke_suggestion",+ "arguments": {+ "topic": "programming"+ }+ },+ {+ "type": "tool_call",+ "id": "call_aRaObiWKKt6GzgDkkUl3bu1Q",+ "name": "get_one_liner_suggestion",+ "arguments": {+ "topic": "programming"+ }+ }+ ],+ "finish_reason": "tool_call"+ },+ {+ "role": "user",+ "parts": [+ {+ "type": "tool_call_response",+ "id": "call_X0OSgjUukT5inyEQvuZQnHrk",+ "name": "get_pun_suggestion",+ "result": "Pun idea: Play on words related to 'programming' - think about homophones or double meanings"+ },+ {+ "type": "tool_call_response",+ "id": "call_WxZcCvSDhGT4RJHlcU01k10x",+ "name": "get_dad_joke_suggestion",+ "result": "Dad joke idea: Use a classic setup-punchline format about 'programming' with a groan-worthy twist"+ },+ {+ "type": "tool_call_response",+ "id": "call_aRaObiWKKt6GzgDkkUl3bu1Q",+ "name": "get_one_liner_suggestion",+ "result": "One-liner idea: Make a quick, witty observation about 'programming' in a single sentence"+ }+ ]+ },+ {+ "role": "assistant",+ "parts": [+ {+ "type": "text",+ "content": "I gathered some great ideas for a programming joke! Here’s a funny joke combining those suggestions:\n\nWhy do programmers prefer dark mode? \nBecause light attracts bugs! \n\n(It's a pun on light attracting bugs and programmers having a love-hate relationship with debugging!)"+ }+ ],+ "finish_reason": "stop"+ },+ {+ "role": "user",+ "parts": [+ {+ "type": "text",+ "content": "Now write a funny joke about 'programming' based on the suggestions you received. Just output the joke, nothing else."+ }+ ]+ },+ {+ "role": "assistant",+ "parts": [+ {+ "type": "text",+ "content": "Why do programmers hate nature? \nIt has too many bugs!"+ }+ ],+ "finish_reason": "stop"+ }+ ],+ "pydantic_ai.new_message_index": "4",+ "logfire.json_schema": {+ "type": "object",+ "properties": {+ "pydantic_ai.all_messages": {+ "type": "array"+ },+ "pydantic_ai.new_message_index": {},+ "final_result": {+ "type": "object"+ }+ }+ }+ },+ "resourceAttributes": {+ "telemetry.sdk.language": "python",+ "telemetry.sdk.name": "opentelemetry",+ "telemetry.sdk.version": "1.38.0",+ "service.name": "unknown_service"+ },+ "scope": {+ "name": "pydantic-ai",+ "version": "1.26.0",+ "attributes": {}+ }+ },+ "input": null,+ "output": null+ },+ {+ "id": "00d2804abb764b1b",+ "traceId": "7a38edd8123db47ad8dcb8aa4c5e3926",+ "startTime": "2025-12-04T14:51:24.423Z",+ "projectId": "7a88fb47-b4e2-43b8-a06c-a5ce950dc53a",+ "parentObservationId": "5b5c52d029f28206",+ "type": "GENERATION",+ "environment": "default",+ "endTime": "2025-12-04T14:51:26.130Z",+ "name": "chat gpt-4o-mini",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-12-04T14:51:29.574Z",+ "updatedAt": "2025-12-04T14:51:29.585Z",+ "model": "gpt-4o-mini-2024-07-18",+ "internalModelId": "clyrjpbe20000t0mzcbwc42rg",+ "modelParameters": {+ "temperature": 0.7+ },+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 1707,+ "timeToFirstToken": null,+ "usageDetails": {+ "input": 417,+ "output": 53,+ "total": 470+ },+ "costDetails": {+ "input": 0.00006255,+ "output": 0.0000318,+ "total": 0.00009435+ },+ "providedCostDetails": {},+ "inputCost": 0.00006255,+ "outputCost": 0.0000318,+ "totalCost": 0.00009435,+ "inputUsage": 417,+ "outputUsage": 53,+ "totalUsage": 470,+ "usagePricingTierId": "clyrjpbe20000t0mzcbwc42rg_tier_default",+ "usagePricingTierName": "Standard",+ "metadata": {+ "attributes": {+ "gen_ai.operation.name": "chat",+ "gen_ai.system": "openai",+ "gen_ai.request.model": "gpt-4o-mini",+ "server.address": "api.openai.com",+ "model_request_parameters": {+ "function_tools": [+ {+ "name": "get_pun_suggestion",+ "parameters_json_schema": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ },+ "description": "Get a pun-style joke suggestion for the given topic.",+ "outer_typed_dict_key": null,+ "strict": true,+ "sequential": false,+ "kind": "function",+ "metadata": null+ },+ {+ "name": "get_dad_joke_suggestion",+ "parameters_json_schema": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ },+ "description": "Get a dad joke style suggestion for the given topic.",+ "outer_typed_dict_key": null,+ "strict": true,+ "sequential": false,+ "kind": "function",+ "metadata": null+ },+ {+ "name": "get_one_liner_suggestion",+ "parameters_json_schema": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ },+ "description": "Get a one-liner joke suggestion for the given topic.",+ "outer_typed_dict_key": null,+ "strict": true,+ "sequential": false,+ "kind": "function",+ "metadata": null+ },+ {+ "name": "get_car_joke_suggestion",+ "parameters_json_schema": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ },+ "description": "Get a car-themed joke suggestion for the given topic.",+ "outer_typed_dict_key": null,+ "strict": true,+ "sequential": false,+ "kind": "function",+ "metadata": null+ },+ {+ "name": "get_tree_joke_suggestion",+ "parameters_json_schema": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ },+ "description": "Get a tree-themed joke suggestion for the given topic.",+ "outer_typed_dict_key": null,+ "strict": true,+ "sequential": false,+ "kind": "function",+ "metadata": null+ }+ ],+ "builtin_tools": [],+ "output_mode": "text",+ "output_object": null,+ "output_tools": [],+ "prompted_output_template": null,+ "allow_text_output": true,+ "allow_image_output": false+ },+ "gen_ai.request.temperature": "0.7",+ "logfire.json_schema": {+ "type": "object",+ "properties": {+ "gen_ai.input.messages": {+ "type": "array"+ },+ "gen_ai.output.messages": {+ "type": "array"+ },+ "model_request_parameters": {+ "type": "object"+ }+ }+ },+ "gen_ai.usage.input_tokens": "417",+ "gen_ai.usage.output_tokens": "53",+ "gen_ai.response.model": "gpt-4o-mini-2024-07-18",+ "operation.cost": "0.00009435",+ "gen_ai.response.id": "chatcmpl-Cj4xwF0fLMbLL7cj2PpKMa69vdqgM",+ "gen_ai.response.finish_reasons": [+ "stop"+ ]+ },+ "resourceAttributes": {+ "telemetry.sdk.language": "python",+ "telemetry.sdk.name": "opentelemetry",+ "telemetry.sdk.version": "1.38.0",+ "service.name": "unknown_service"+ },+ "scope": {+ "name": "pydantic-ai",+ "version": "1.26.0",+ "attributes": {}+ }+ },+ "input": [+ {+ "role": "system",+ "parts": [+ {+ "type": "text",+ "content": "You are a creative joke writer. When asked to get inspiration, you will call THREE of the available suggestion tools to gather ideas. When asked to write a joke, create a funny joke based on the suggestions you received."+ }+ ]+ },+ {+ "role": "user",+ "parts": [+ {+ "type": "text",+ "content": "Select and call THREE of the available tools to get joke suggestions about 'programming'."+ }+ ]+ },+ {+ "role": "assistant",+ "parts": [+ {+ "type": "tool_call",+ "id": "call_X0OSgjUukT5inyEQvuZQnHrk",+ "name": "get_pun_suggestion",+ "arguments": {+ "topic": "programming"+ }+ },+ {+ "type": "tool_call",+ "id": "call_WxZcCvSDhGT4RJHlcU01k10x",+ "name": "get_dad_joke_suggestion",+ "arguments": {+ "topic": "programming"+ }+ },+ {+ "type": "tool_call",+ "id": "call_aRaObiWKKt6GzgDkkUl3bu1Q",+ "name": "get_one_liner_suggestion",+ "arguments": {+ "topic": "programming"+ }+ }+ ],+ "finish_reason": "tool_call"+ },+ {+ "role": "user",+ "parts": [+ {+ "type": "tool_call_response",+ "id": "call_X0OSgjUukT5inyEQvuZQnHrk",+ "name": "get_pun_suggestion",+ "result": "Pun idea: Play on words related to 'programming' - think about homophones or double meanings"+ },+ {+ "type": "tool_call_response",+ "id": "call_WxZcCvSDhGT4RJHlcU01k10x",+ "name": "get_dad_joke_suggestion",+ "result": "Dad joke idea: Use a classic setup-punchline format about 'programming' with a groan-worthy twist"+ },+ {+ "type": "tool_call_response",+ "id": "call_aRaObiWKKt6GzgDkkUl3bu1Q",+ "name": "get_one_liner_suggestion",+ "result": "One-liner idea: Make a quick, witty observation about 'programming' in a single sentence"+ }+ ]+ }+ ],+ "output": [+ {+ "role": "assistant",+ "parts": [+ {+ "type": "text",+ "content": "I gathered some great ideas for a programming joke! Here’s a funny joke combining those suggestions:\n\nWhy do programmers prefer dark mode? \nBecause light attracts bugs! \n\n(It's a pun on light attracting bugs and programmers having a love-hate relationship with debugging!)"+ }+ ],+ "finish_reason": "stop"+ }+ ]+ },+ {+ "id": "eb0cc14cf7943ad5",+ "traceId": "7a38edd8123db47ad8dcb8aa4c5e3926",+ "startTime": "2025-12-04T14:51:27.422Z",+ "projectId": "7a88fb47-b4e2-43b8-a06c-a5ce950dc53a",+ "parentObservationId": "227eb5c856efa3d3",+ "type": "GENERATION",+ "environment": "default",+ "endTime": "2025-12-04T14:51:29.472Z",+ "name": "chat gpt-4o-mini",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-12-04T14:51:29.574Z",+ "updatedAt": "2025-12-04T14:51:29.585Z",+ "model": "gpt-4o-mini-2024-07-18",+ "internalModelId": "clyrjpbe20000t0mzcbwc42rg",+ "modelParameters": {+ "temperature": 0+ },+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 2050,+ "timeToFirstToken": null,+ "usageDetails": {+ "input": 131,+ "output": 69,+ "total": 200+ },+ "costDetails": {+ "input": 0.00001965,+ "output": 0.0000414,+ "total": 0.000061049999+ },+ "providedCostDetails": {},+ "inputCost": 0.00001965,+ "outputCost": 0.0000414,+ "totalCost": 0.000061049999,+ "inputUsage": 131,+ "outputUsage": 69,+ "totalUsage": 200,+ "usagePricingTierId": "clyrjpbe20000t0mzcbwc42rg_tier_default",+ "usagePricingTierName": "Standard",+ "metadata": {+ "attributes": {+ "gen_ai.operation.name": "chat",+ "gen_ai.system": "openai",+ "gen_ai.request.model": "gpt-4o-mini",+ "server.address": "api.openai.com",+ "model_request_parameters": {+ "function_tools": [],+ "builtin_tools": [],+ "output_mode": "tool",+ "output_object": null,+ "output_tools": [+ {+ "name": "final_result",+ "parameters_json_schema": {+ "properties": {+ "quality": {+ "description": "Rate the joke quality: 'good' if funny and well-crafted, 'okay' if decent but needs refinement, 'bad' if not funny",+ "enum": [+ "good",+ "okay",+ "bad"+ ],+ "type": "string"+ },+ "feedback": {+ "description": "Specific feedback on how to improve the joke",+ "type": "string"+ }+ },+ "required": [+ "quality",+ "feedback"+ ],+ "type": "object",+ "additionalProperties": false+ },+ "description": "The final response which ends this conversation",+ "outer_typed_dict_key": null,+ "strict": true,+ "sequential": false,+ "kind": "output",+ "metadata": null+ }+ ],+ "prompted_output_template": null,+ "allow_text_output": false,+ "allow_image_output": false+ },+ "gen_ai.request.temperature": "0",+ "logfire.json_schema": {+ "type": "object",+ "properties": {+ "gen_ai.input.messages": {+ "type": "array"+ },+ "gen_ai.output.messages": {+ "type": "array"+ },+ "model_request_parameters": {+ "type": "object"+ }+ }+ },+ "gen_ai.usage.input_tokens": "131",+ "gen_ai.usage.output_tokens": "69",+ "gen_ai.response.model": "gpt-4o-mini-2024-07-18",+ "operation.cost": "0.00006105",+ "gen_ai.response.id": "chatcmpl-Cj4xzvxxhTcFqIdven62KgHXNPUCI",+ "gen_ai.response.finish_reasons": [+ "tool_call"+ ]+ },+ "resourceAttributes": {+ "telemetry.sdk.language": "python",+ "telemetry.sdk.name": "opentelemetry",+ "telemetry.sdk.version": "1.38.0",+ "service.name": "unknown_service"+ },+ "scope": {+ "name": "pydantic-ai",+ "version": "1.26.0",+ "attributes": {}+ }+ },+ "input": [+ {+ "role": "system",+ "parts": [+ {+ "type": "text",+ "content": "You are a joke critic. Evaluate if the joke is funny and well-crafted."+ }+ ]+ },+ {+ "role": "user",+ "parts": [+ {+ "type": "text",+ "content": "Rate this joke:\n\nWhy do programmers hate nature? \nIt has too many bugs!"+ }+ ]+ }+ ],+ "output": [+ {+ "role": "assistant",+ "parts": [+ {+ "type": "tool_call",+ "id": "call_ZuzwalMMtvv9BC6xlVe3fiBP",+ "name": "final_result",+ "arguments": {+ "quality": "good",+ "feedback": "The joke is clever and plays on the double meaning of 'bugs' in programming and nature. It's relatable for those in the tech field, making it effective. To enhance it, consider adding a punchline that builds on the setup for an even stronger impact."+ }+ }+ ],+ "finish_reason": "tool_call"+ }+ ]+ },+ {+ "id": "5b5c52d029f28206",+ "traceId": "7a38edd8123db47ad8dcb8aa4c5e3926",+ "startTime": "2025-12-04T14:51:22.050Z",+ "projectId": "7a88fb47-b4e2-43b8-a06c-a5ce950dc53a",+ "parentObservationId": "00d3f40ee8e3b716",+ "type": "SPAN",+ "environment": "default",+ "endTime": "2025-12-04T14:51:26.131Z",+ "name": "joke_agent run",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-12-04T14:51:29.574Z",+ "updatedAt": "2025-12-04T14:51:29.585Z",+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 4081,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "metadata": {+ "attributes": {+ "model_name": "gpt-4o-mini",+ "agent_name": "joke_agent",+ "gen_ai.agent.name": "joke_agent",+ "logfire.msg": "joke_agent run",+ "final_result": "I gathered some great ideas for a programming joke! Here’s a funny joke combining those suggestions:\n\nWhy do programmers prefer dark mode? \nBecause light attracts bugs! \n\n(It's a pun on light attracting bugs and programmers having a love-hate relationship with debugging!)",+ "gen_ai.usage.input_tokens": "682",+ "gen_ai.usage.output_tokens": "126",+ "pydantic_ai.all_messages": [+ {+ "role": "system",+ "parts": [+ {+ "type": "text",+ "content": "You are a creative joke writer. When asked to get inspiration, you will call THREE of the available suggestion tools to gather ideas. When asked to write a joke, create a funny joke based on the suggestions you received."+ }+ ]+ },+ {+ "role": "user",+ "parts": [+ {+ "type": "text",+ "content": "Select and call THREE of the available tools to get joke suggestions about 'programming'."+ }+ ]+ },+ {+ "role": "assistant",+ "parts": [+ {+ "type": "tool_call",+ "id": "call_X0OSgjUukT5inyEQvuZQnHrk",+ "name": "get_pun_suggestion",+ "arguments": {+ "topic": "programming"+ }+ },+ {+ "type": "tool_call",+ "id": "call_WxZcCvSDhGT4RJHlcU01k10x",+ "name": "get_dad_joke_suggestion",+ "arguments": {+ "topic": "programming"+ }+ },+ {+ "type": "tool_call",+ "id": "call_aRaObiWKKt6GzgDkkUl3bu1Q",+ "name": "get_one_liner_suggestion",+ "arguments": {+ "topic": "programming"+ }+ }+ ],+ "finish_reason": "tool_call"+ },+ {+ "role": "user",+ "parts": [+ {+ "type": "tool_call_response",+ "id": "call_X0OSgjUukT5inyEQvuZQnHrk",+ "name": "get_pun_suggestion",+ "result": "Pun idea: Play on words related to 'programming' - think about homophones or double meanings"+ },+ {+ "type": "tool_call_response",+ "id": "call_WxZcCvSDhGT4RJHlcU01k10x",+ "name": "get_dad_joke_suggestion",+ "result": "Dad joke idea: Use a classic setup-punchline format about 'programming' with a groan-worthy twist"+ },+ {+ "type": "tool_call_response",+ "id": "call_aRaObiWKKt6GzgDkkUl3bu1Q",+ "name": "get_one_liner_suggestion",+ "result": "One-liner idea: Make a quick, witty observation about 'programming' in a single sentence"+ }+ ]+ },+ {+ "role": "assistant",+ "parts": [+ {+ "type": "text",+ "content": "I gathered some great ideas for a programming joke! Here’s a funny joke combining those suggestions:\n\nWhy do programmers prefer dark mode? \nBecause light attracts bugs! \n\n(It's a pun on light attracting bugs and programmers having a love-hate relationship with debugging!)"+ }+ ],+ "finish_reason": "stop"+ }+ ],+ "logfire.json_schema": {+ "type": "object",+ "properties": {+ "pydantic_ai.all_messages": {+ "type": "array"+ },+ "final_result": {+ "type": "object"+ }+ }+ }+ },+ "resourceAttributes": {+ "telemetry.sdk.language": "python",+ "telemetry.sdk.name": "opentelemetry",+ "telemetry.sdk.version": "1.38.0",+ "service.name": "unknown_service"+ },+ "scope": {+ "name": "pydantic-ai",+ "version": "1.26.0",+ "attributes": {}+ }+ },+ "input": null,+ "output": null+ },+ {+ "id": "8976b072313c51f2",+ "traceId": "7a38edd8123db47ad8dcb8aa4c5e3926",+ "startTime": "2025-12-04T14:51:26.133Z",+ "projectId": "7a88fb47-b4e2-43b8-a06c-a5ce950dc53a",+ "parentObservationId": "49ae06cbfa06611f",+ "type": "GENERATION",+ "environment": "default",+ "endTime": "2025-12-04T14:51:27.416Z",+ "name": "chat gpt-4o-mini",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-12-04T14:51:29.574Z",+ "updatedAt": "2025-12-04T14:51:29.584Z",+ "model": "gpt-4o-mini-2024-07-18",+ "internalModelId": "clyrjpbe20000t0mzcbwc42rg",+ "modelParameters": {+ "temperature": 0.7+ },+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 1283,+ "timeToFirstToken": null,+ "usageDetails": {+ "input": 502,+ "output": 14,+ "total": 516+ },+ "costDetails": {+ "input": 0.0000753,+ "output": 0.0000084,+ "total": 0.0000837+ },+ "providedCostDetails": {},+ "inputCost": 0.0000753,+ "outputCost": 0.0000084,+ "totalCost": 0.0000837,+ "inputUsage": 502,+ "outputUsage": 14,+ "totalUsage": 516,+ "usagePricingTierId": "clyrjpbe20000t0mzcbwc42rg_tier_default",+ "usagePricingTierName": "Standard",+ "metadata": {+ "attributes": {+ "gen_ai.operation.name": "chat",+ "gen_ai.system": "openai",+ "gen_ai.request.model": "gpt-4o-mini",+ "server.address": "api.openai.com",+ "model_request_parameters": {+ "function_tools": [+ {+ "name": "get_pun_suggestion",+ "parameters_json_schema": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ },+ "description": "Get a pun-style joke suggestion for the given topic.",+ "outer_typed_dict_key": null,+ "strict": true,+ "sequential": false,+ "kind": "function",+ "metadata": null+ },+ {+ "name": "get_dad_joke_suggestion",+ "parameters_json_schema": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ },+ "description": "Get a dad joke style suggestion for the given topic.",+ "outer_typed_dict_key": null,+ "strict": true,+ "sequential": false,+ "kind": "function",+ "metadata": null+ },+ {+ "name": "get_one_liner_suggestion",+ "parameters_json_schema": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ },+ "description": "Get a one-liner joke suggestion for the given topic.",+ "outer_typed_dict_key": null,+ "strict": true,+ "sequential": false,+ "kind": "function",+ "metadata": null+ },+ {+ "name": "get_car_joke_suggestion",+ "parameters_json_schema": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ },+ "description": "Get a car-themed joke suggestion for the given topic.",+ "outer_typed_dict_key": null,+ "strict": true,+ "sequential": false,+ "kind": "function",+ "metadata": null+ },+ {+ "name": "get_tree_joke_suggestion",+ "parameters_json_schema": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ },+ "description": "Get a tree-themed joke suggestion for the given topic.",+ "outer_typed_dict_key": null,+ "strict": true,+ "sequential": false,+ "kind": "function",+ "metadata": null+ }+ ],+ "builtin_tools": [],+ "output_mode": "text",+ "output_object": null,+ "output_tools": [],+ "prompted_output_template": null,+ "allow_text_output": true,+ "allow_image_output": false+ },+ "gen_ai.request.temperature": "0.7",+ "logfire.json_schema": {+ "type": "object",+ "properties": {+ "gen_ai.input.messages": {+ "type": "array"+ },+ "gen_ai.output.messages": {+ "type": "array"+ },+ "model_request_parameters": {+ "type": "object"+ }+ }+ },+ "gen_ai.usage.input_tokens": "502",+ "gen_ai.usage.output_tokens": "14",+ "gen_ai.response.model": "gpt-4o-mini-2024-07-18",+ "operation.cost": "0.0000837",+ "gen_ai.response.id": "chatcmpl-Cj4xysdHxD1EWQ6YHKdnqZ9dcX90X",+ "gen_ai.response.finish_reasons": [+ "stop"+ ]+ },+ "resourceAttributes": {+ "telemetry.sdk.language": "python",+ "telemetry.sdk.name": "opentelemetry",+ "telemetry.sdk.version": "1.38.0",+ "service.name": "unknown_service"+ },+ "scope": {+ "name": "pydantic-ai",+ "version": "1.26.0",+ "attributes": {}+ }+ },+ "input": [+ {+ "role": "system",+ "parts": [+ {+ "type": "text",+ "content": "You are a creative joke writer. When asked to get inspiration, you will call THREE of the available suggestion tools to gather ideas. When asked to write a joke, create a funny joke based on the suggestions you received."+ }+ ]+ },+ {+ "role": "user",+ "parts": [+ {+ "type": "text",+ "content": "Select and call THREE of the available tools to get joke suggestions about 'programming'."+ }+ ]+ },+ {+ "role": "assistant",+ "parts": [+ {+ "type": "tool_call",+ "id": "call_X0OSgjUukT5inyEQvuZQnHrk",+ "name": "get_pun_suggestion",+ "arguments": {+ "topic": "programming"+ }+ },+ {+ "type": "tool_call",+ "id": "call_WxZcCvSDhGT4RJHlcU01k10x",+ "name": "get_dad_joke_suggestion",+ "arguments": {+ "topic": "programming"+ }+ },+ {+ "type": "tool_call",+ "id": "call_aRaObiWKKt6GzgDkkUl3bu1Q",+ "name": "get_one_liner_suggestion",+ "arguments": {+ "topic": "programming"+ }+ }+ ],+ "finish_reason": "tool_call"+ },+ {+ "role": "user",+ "parts": [+ {+ "type": "tool_call_response",+ "id": "call_X0OSgjUukT5inyEQvuZQnHrk",+ "name": "get_pun_suggestion",+ "result": "Pun idea: Play on words related to 'programming' - think about homophones or double meanings"+ },+ {+ "type": "tool_call_response",+ "id": "call_WxZcCvSDhGT4RJHlcU01k10x",+ "name": "get_dad_joke_suggestion",+ "result": "Dad joke idea: Use a classic setup-punchline format about 'programming' with a groan-worthy twist"+ },+ {+ "type": "tool_call_response",+ "id": "call_aRaObiWKKt6GzgDkkUl3bu1Q",+ "name": "get_one_liner_suggestion",+ "result": "One-liner idea: Make a quick, witty observation about 'programming' in a single sentence"+ }+ ]+ },+ {+ "role": "assistant",+ "parts": [+ {+ "type": "text",+ "content": "I gathered some great ideas for a programming joke! Here’s a funny joke combining those suggestions:\n\nWhy do programmers prefer dark mode? \nBecause light attracts bugs! \n\n(It's a pun on light attracting bugs and programmers having a love-hate relationship with debugging!)"+ }+ ],+ "finish_reason": "stop"+ },+ {+ "role": "user",+ "parts": [+ {+ "type": "text",+ "content": "Now write a funny joke about 'programming' based on the suggestions you received. Just output the joke, nothing else."+ }+ ]+ }+ ],+ "output": [+ {+ "role": "assistant",+ "parts": [+ {+ "type": "text",+ "content": "Why do programmers hate nature? \nIt has too many bugs!"+ }+ ],+ "finish_reason": "stop"+ }+ ]+ },+ {+ "id": "227eb5c856efa3d3",+ "traceId": "7a38edd8123db47ad8dcb8aa4c5e3926",+ "startTime": "2025-12-04T14:51:27.420Z",+ "projectId": "7a88fb47-b4e2-43b8-a06c-a5ce950dc53a",+ "parentObservationId": "00d3f40ee8e3b716",+ "type": "SPAN",+ "environment": "default",+ "endTime": "2025-12-04T14:51:29.473Z",+ "name": "evaluator_agent run",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-12-04T14:51:29.574Z",+ "updatedAt": "2025-12-04T14:51:29.583Z",+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 2053,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "metadata": {+ "attributes": {+ "model_name": "gpt-4o-mini",+ "agent_name": "evaluator_agent",+ "gen_ai.agent.name": "evaluator_agent",+ "logfire.msg": "evaluator_agent run",+ "final_result": {+ "quality": "good",+ "feedback": "The joke is clever and plays on the double meaning of 'bugs' in programming and nature. It's relatable for those in the tech field, making it effective. To enhance it, consider adding a punchline that builds on the setup for an even stronger impact."+ },+ "gen_ai.usage.input_tokens": "131",+ "gen_ai.usage.output_tokens": "69",+ "pydantic_ai.all_messages": [+ {+ "role": "system",+ "parts": [+ {+ "type": "text",+ "content": "You are a joke critic. Evaluate if the joke is funny and well-crafted."+ }+ ]+ },+ {+ "role": "user",+ "parts": [+ {+ "type": "text",+ "content": "Rate this joke:\n\nWhy do programmers hate nature? \nIt has too many bugs!"+ }+ ]+ },+ {+ "role": "assistant",+ "parts": [+ {+ "type": "tool_call",+ "id": "call_ZuzwalMMtvv9BC6xlVe3fiBP",+ "name": "final_result",+ "arguments": {+ "quality": "good",+ "feedback": "The joke is clever and plays on the double meaning of 'bugs' in programming and nature. It's relatable for those in the tech field, making it effective. To enhance it, consider adding a punchline that builds on the setup for an even stronger impact."+ }+ }+ ],+ "finish_reason": "tool_call"+ },+ {+ "role": "user",+ "parts": [+ {+ "type": "tool_call_response",+ "id": "call_ZuzwalMMtvv9BC6xlVe3fiBP",+ "name": "final_result",+ "result": "Final result processed."+ }+ ]+ }+ ],+ "logfire.json_schema": {+ "type": "object",+ "properties": {+ "pydantic_ai.all_messages": {+ "type": "array"+ },+ "final_result": {+ "type": "object"+ }+ }+ }+ },+ "resourceAttributes": {+ "telemetry.sdk.language": "python",+ "telemetry.sdk.name": "opentelemetry",+ "telemetry.sdk.version": "1.38.0",+ "service.name": "unknown_service"+ },+ "scope": {+ "name": "pydantic-ai",+ "version": "1.26.0",+ "attributes": {}+ }+ },+ "input": null,+ "output": null+ },+ {+ "id": "be64c23f44dd98be",+ "traceId": "7a38edd8123db47ad8dcb8aa4c5e3926",+ "startTime": "2025-12-04T14:51:22.053Z",+ "projectId": "7a88fb47-b4e2-43b8-a06c-a5ce950dc53a",+ "parentObservationId": "5b5c52d029f28206",+ "type": "GENERATION",+ "environment": "default",+ "endTime": "2025-12-04T14:51:24.415Z",+ "name": "chat gpt-4o-mini",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-12-04T14:51:25.691Z",+ "updatedAt": "2025-12-04T14:51:25.729Z",+ "model": "gpt-4o-mini-2024-07-18",+ "internalModelId": "clyrjpbe20000t0mzcbwc42rg",+ "modelParameters": {+ "temperature": 0.7+ },+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 2362,+ "timeToFirstToken": null,+ "usageDetails": {+ "input": 265,+ "output": 73,+ "total": 338+ },+ "costDetails": {+ "input": 0.00003975,+ "output": 0.0000438,+ "total": 0.00008355+ },+ "providedCostDetails": {},+ "inputCost": 0.00003975,+ "outputCost": 0.0000438,+ "totalCost": 0.00008355,+ "inputUsage": 265,+ "outputUsage": 73,+ "totalUsage": 338,+ "usagePricingTierId": "clyrjpbe20000t0mzcbwc42rg_tier_default",+ "usagePricingTierName": "Standard",+ "metadata": {+ "attributes": {+ "gen_ai.operation.name": "chat",+ "gen_ai.system": "openai",+ "gen_ai.request.model": "gpt-4o-mini",+ "server.address": "api.openai.com",+ "model_request_parameters": {+ "function_tools": [+ {+ "name": "get_pun_suggestion",+ "parameters_json_schema": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ },+ "description": "Get a pun-style joke suggestion for the given topic.",+ "outer_typed_dict_key": null,+ "strict": true,+ "sequential": false,+ "kind": "function",+ "metadata": null+ },+ {+ "name": "get_dad_joke_suggestion",+ "parameters_json_schema": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ },+ "description": "Get a dad joke style suggestion for the given topic.",+ "outer_typed_dict_key": null,+ "strict": true,+ "sequential": false,+ "kind": "function",+ "metadata": null+ },+ {+ "name": "get_one_liner_suggestion",+ "parameters_json_schema": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ },+ "description": "Get a one-liner joke suggestion for the given topic.",+ "outer_typed_dict_key": null,+ "strict": true,+ "sequential": false,+ "kind": "function",+ "metadata": null+ },+ {+ "name": "get_car_joke_suggestion",+ "parameters_json_schema": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ },+ "description": "Get a car-themed joke suggestion for the given topic.",+ "outer_typed_dict_key": null,+ "strict": true,+ "sequential": false,+ "kind": "function",+ "metadata": null+ },+ {+ "name": "get_tree_joke_suggestion",+ "parameters_json_schema": {+ "additionalProperties": false,+ "properties": {+ "topic": {+ "description": "The topic for the joke",+ "type": "string"+ }+ },+ "required": [+ "topic"+ ],+ "type": "object"+ },+ "description": "Get a tree-themed joke suggestion for the given topic.",+ "outer_typed_dict_key": null,+ "strict": true,+ "sequential": false,+ "kind": "function",+ "metadata": null+ }+ ],+ "builtin_tools": [],+ "output_mode": "text",+ "output_object": null,+ "output_tools": [],+ "prompted_output_template": null,+ "allow_text_output": true,+ "allow_image_output": false+ },+ "gen_ai.request.temperature": "0.7",+ "logfire.json_schema": {+ "type": "object",+ "properties": {+ "gen_ai.input.messages": {+ "type": "array"+ },+ "gen_ai.output.messages": {+ "type": "array"+ },+ "model_request_parameters": {+ "type": "object"+ }+ }+ },+ "gen_ai.usage.input_tokens": "265",+ "gen_ai.usage.output_tokens": "73",+ "gen_ai.response.model": "gpt-4o-mini-2024-07-18",+ "operation.cost": "0.00008355",+ "gen_ai.response.id": "chatcmpl-Cj4xu0Nus6lKWVVmxlb7TZTsMizLD",+ "gen_ai.response.finish_reasons": [+ "tool_call"+ ]+ },+ "resourceAttributes": {+ "telemetry.sdk.language": "python",+ "telemetry.sdk.name": "opentelemetry",+ "telemetry.sdk.version": "1.38.0",+ "service.name": "unknown_service"+ },+ "scope": {+ "name": "pydantic-ai",+ "version": "1.26.0",+ "attributes": {}+ }+ },+ "input": [+ {+ "role": "system",+ "parts": [+ {+ "type": "text",+ "content": "You are a creative joke writer. When asked to get inspiration, you will call THREE of the available suggestion tools to gather ideas. When asked to write a joke, create a funny joke based on the suggestions you received."+ }+ ]+ },+ {+ "role": "user",+ "parts": [+ {+ "type": "text",+ "content": "Select and call THREE of the available tools to get joke suggestions about 'programming'."+ }+ ]+ }+ ],+ "output": [+ {+ "role": "assistant",+ "parts": [+ {+ "type": "tool_call",+ "id": "call_X0OSgjUukT5inyEQvuZQnHrk",+ "name": "get_pun_suggestion",+ "arguments": {+ "topic": "programming"+ }+ },+ {+ "type": "tool_call",+ "id": "call_WxZcCvSDhGT4RJHlcU01k10x",+ "name": "get_dad_joke_suggestion",+ "arguments": {+ "topic": "programming"+ }+ },+ {+ "type": "tool_call",+ "id": "call_aRaObiWKKt6GzgDkkUl3bu1Q",+ "name": "get_one_liner_suggestion",+ "arguments": {+ "topic": "programming"+ }+ }+ ],+ "finish_reason": "tool_call"+ }+ ]+ },+ {+ "id": "02d7769b76595f0b",+ "traceId": "7a38edd8123db47ad8dcb8aa4c5e3926",+ "startTime": "2025-12-04T14:51:24.417Z",+ "projectId": "7a88fb47-b4e2-43b8-a06c-a5ce950dc53a",+ "parentObservationId": "93d5543f7340c2e6",+ "type": "TOOL",+ "environment": "default",+ "endTime": "2025-12-04T14:51:24.422Z",+ "name": "running tool: get_dad_joke_suggestion",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-12-04T14:51:25.691Z",+ "updatedAt": "2025-12-04T14:51:25.729Z",+ "model": null,+ "internalModelId": null,+ "modelParameters": {},+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 5,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "metadata": {+ "attributes": {+ "gen_ai.tool.name": "get_dad_joke_suggestion",+ "gen_ai.tool.call.id": "call_WxZcCvSDhGT4RJHlcU01k10x",+ "tool_arguments": {+ "topic": "programming"+ },+ "logfire.msg": "running tool: get_dad_joke_suggestion",+ "logfire.json_schema": {+ "type": "object",+ "properties": {+ "tool_arguments": {+ "type": "object"+ },+ "tool_response": {+ "type": "object"+ },+ "gen_ai.tool.name": {},+ "gen_ai.tool.call.id": {}+ }+ },+ "tool_response": "Dad joke idea: Use a classic setup-punchline format about 'programming' with a groan-worthy twist"+ },+ "resourceAttributes": {+ "telemetry.sdk.language": "python",+ "telemetry.sdk.name": "opentelemetry",+ "telemetry.sdk.version": "1.38.0",+ "service.name": "unknown_service"+ },+ "scope": {+ "name": "pydantic-ai",+ "version": "1.26.0",+ "attributes": {}+ }+ },+ "input": {+ "topic": "programming"+ },+ "output": "Dad joke idea: Use a classic setup-punchline format about 'programming' with a groan-worthy twist"+ },+ {+ "id": "199eff9980ea8b99",+ "traceId": "7a38edd8123db47ad8dcb8aa4c5e3926",+ "startTime": "2025-12-04T14:51:24.417Z",+ "projectId": "7a88fb47-b4e2-43b8-a06c-a5ce950dc53a",+ "parentObservationId": "93d5543f7340c2e6",+ "type": "TOOL",+ "environment": "default",+ "endTime": "2025-12-04T14:51:24.422Z",+ "name": "running tool: get_one_liner_suggestion",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-12-04T14:51:25.691Z",+ "updatedAt": "2025-12-04T14:51:25.729Z",+ "model": null,+ "internalModelId": null,+ "modelParameters": {},+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 5,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "metadata": {+ "attributes": {+ "gen_ai.tool.name": "get_one_liner_suggestion",+ "gen_ai.tool.call.id": "call_aRaObiWKKt6GzgDkkUl3bu1Q",+ "tool_arguments": {+ "topic": "programming"+ },+ "logfire.msg": "running tool: get_one_liner_suggestion",+ "logfire.json_schema": {+ "type": "object",+ "properties": {+ "tool_arguments": {+ "type": "object"+ },+ "tool_response": {+ "type": "object"+ },+ "gen_ai.tool.name": {},+ "gen_ai.tool.call.id": {}+ }+ },+ "tool_response": "One-liner idea: Make a quick, witty observation about 'programming' in a single sentence"+ },+ "resourceAttributes": {+ "telemetry.sdk.language": "python",+ "telemetry.sdk.name": "opentelemetry",+ "telemetry.sdk.version": "1.38.0",+ "service.name": "unknown_service"+ },+ "scope": {+ "name": "pydantic-ai",+ "version": "1.26.0",+ "attributes": {}+ }+ },+ "input": {+ "topic": "programming"+ },+ "output": "One-liner idea: Make a quick, witty observation about 'programming' in a single sentence"+ },+ {+ "id": "93d5543f7340c2e6",+ "traceId": "7a38edd8123db47ad8dcb8aa4c5e3926",+ "startTime": "2025-12-04T14:51:24.416Z",+ "projectId": "7a88fb47-b4e2-43b8-a06c-a5ce950dc53a",+ "parentObservationId": "5b5c52d029f28206",+ "type": "SPAN",+ "environment": "default",+ "endTime": "2025-12-04T14:51:24.422Z",+ "name": "running 3 tools",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-12-04T14:51:25.691Z",+ "updatedAt": "2025-12-04T14:51:25.728Z",+ "model": null,+ "internalModelId": null,+ "modelParameters": null,+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 6,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "metadata": {+ "attributes": {+ "tools": [+ "get_pun_suggestion",+ "get_dad_joke_suggestion",+ "get_one_liner_suggestion"+ ],+ "logfire.msg": "running 3 tools"+ },+ "resourceAttributes": {+ "telemetry.sdk.language": "python",+ "telemetry.sdk.name": "opentelemetry",+ "telemetry.sdk.version": "1.38.0",+ "service.name": "unknown_service"+ },+ "scope": {+ "name": "pydantic-ai",+ "version": "1.26.0",+ "attributes": {}+ }+ },+ "input": null,+ "output": null+ },+ {+ "id": "99ec63d0b5ecdbf5",+ "traceId": "7a38edd8123db47ad8dcb8aa4c5e3926",+ "startTime": "2025-12-04T14:51:24.416Z",+ "projectId": "7a88fb47-b4e2-43b8-a06c-a5ce950dc53a",+ "parentObservationId": "93d5543f7340c2e6",+ "type": "TOOL",+ "environment": "default",+ "endTime": "2025-12-04T14:51:24.422Z",+ "name": "running tool: get_pun_suggestion",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-12-04T14:51:25.691Z",+ "updatedAt": "2025-12-04T14:51:25.726Z",+ "model": null,+ "internalModelId": null,+ "modelParameters": {},+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 6,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "metadata": {+ "attributes": {+ "gen_ai.tool.name": "get_pun_suggestion",+ "gen_ai.tool.call.id": "call_X0OSgjUukT5inyEQvuZQnHrk",+ "tool_arguments": {+ "topic": "programming"+ },+ "logfire.msg": "running tool: get_pun_suggestion",+ "logfire.json_schema": {+ "type": "object",+ "properties": {+ "tool_arguments": {+ "type": "object"+ },+ "tool_response": {+ "type": "object"+ },+ "gen_ai.tool.name": {},+ "gen_ai.tool.call.id": {}+ }+ },+ "tool_response": "Pun idea: Play on words related to 'programming' - think about homophones or double meanings"+ },+ "resourceAttributes": {+ "telemetry.sdk.language": "python",+ "telemetry.sdk.name": "opentelemetry",+ "telemetry.sdk.version": "1.38.0",+ "service.name": "unknown_service"+ },+ "scope": {+ "name": "pydantic-ai",+ "version": "1.26.0",+ "attributes": {}+ }+ },+ "input": {+ "topic": "programming"+ },+ "output": "Pun idea: Play on words related to 'programming' - think about homophones or double meanings"+ }+ ]+}\ No newline at end of filediff --git a/worker/src/__tests__/chatml/framework-traces/vercel-aisdk-2025-11-17.chatml.json b/worker/src/__tests__/chatml/framework-traces/vercel-aisdk-2025-11-17.chatml.jsonnew file mode 100644index 0000000000..d1da42cf20--- /dev/null+++ b/worker/src/__tests__/chatml/framework-traces/vercel-aisdk-2025-11-17.chatml.json@@ -0,0 +1,116 @@+{+ "1dc6768109615657": {+ "input": {+ "success": false,+ "error": {+ "name": "ZodError",+ "message": "[\n {\n \"expected\": \"array\",\n \"code\": \"invalid_type\",\n \"path\": [],\n \"message\": \"Invalid input: expected array, received object\"\n }\n]"+ }+ },+ "output": {+ "success": true,+ "data": [+ {+ "role": "assistant",+ "content": "",+ "tool_calls": [+ {+ "id": "call_DgKARp7a7IhJPDczfifMp6Ra",+ "name": "getWeather",+ "arguments": "{\"location\":\"San Francisco\"}",+ "type": "function"+ }+ ]+ }+ ]+ }+ },+ "91a17a2274bfd23f": {+ "input": {+ "success": true,+ "data": [+ {+ "role": "user",+ "content": "What is the weather like today in San Francisco?",+ "tools": [+ {+ "name": "getWeather",+ "description": "Get the weather in a location",+ "parameters": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "type": "object",+ "properties": {+ "location": {+ "description": "The location to get the weather for",+ "type": "string"+ }+ },+ "required": [+ "location"+ ],+ "additionalProperties": false+ }+ }+ ]+ }+ ]+ },+ "output": {+ "success": true,+ "data": [+ {+ "role": "assistant",+ "content": "",+ "tools": [+ {+ "name": "getWeather",+ "description": "Get the weather in a location",+ "parameters": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "type": "object",+ "properties": {+ "location": {+ "description": "The location to get the weather for",+ "type": "string"+ }+ },+ "required": [+ "location"+ ],+ "additionalProperties": false+ }+ }+ ],+ "tool_calls": [+ {+ "id": "call_DgKARp7a7IhJPDczfifMp6Ra",+ "name": "getWeather",+ "arguments": "{\"location\":\"San Francisco\"}",+ "type": "function"+ }+ ]+ }+ ]+ }+ },+ "e9bb8c191e1e4706": {+ "input": {+ "success": false,+ "error": {+ "name": "ZodError",+ "message": "[\n {\n \"expected\": \"array\",\n \"code\": \"invalid_type\",\n \"path\": [],\n \"message\": \"Invalid input: expected array, received object\"\n }\n]"+ }+ },+ "output": {+ "success": true,+ "data": [+ {+ "json": {+ "location": "San Francisco",+ "temperature": 64+ }+ }+ ]+ }+ }+}\ No newline at end of filediff --git a/worker/src/__tests__/chatml/framework-traces/vercel-aisdk-2025-11-17.trace.json b/worker/src/__tests__/chatml/framework-traces/vercel-aisdk-2025-11-17.trace.jsonnew file mode 100644index 0000000000..df6e06dd43--- /dev/null+++ b/worker/src/__tests__/chatml/framework-traces/vercel-aisdk-2025-11-17.trace.json@@ -0,0 +1,418 @@+{+ "trace": {+ "id": "df41e597d0a85e0d7a6ae8ebfaa70aa0",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "name": "ai.generateText",+ "timestamp": "2025-11-17T14:55:18.786Z",+ "environment": "default",+ "tags": [],+ "bookmarked": true,+ "release": null,+ "version": null,+ "userId": null,+ "sessionId": null,+ "public": true,+ "input": "\"{\\\"prompt\\\":\\\"What is the weather like today in San Francisco?\\\"}\"",+ "output": "\"[{\\\"toolCallId\\\":\\\"call_DgKARp7a7IhJPDczfifMp6Ra\\\",\\\"toolName\\\":\\\"getWeather\\\",\\\"input\\\":\\\"{\\\\\\\"location\\\\\\\":\\\\\\\"San Francisco\\\\\\\"}\\\"}]\"",+ "createdAt": "2025-11-17T14:55:42.000Z",+ "updatedAt": "2025-11-17T14:55:41.473Z",+ "metadata": "{\"attributes\":{\"operation.name\":\"ai.generateText\",\"ai.operationId\":\"ai.generateText\",\"ai.model.provider\":\"openai.responses\",\"ai.model.id\":\"gpt-5\",\"ai.settings.maxRetries\":\"2\",\"ai.request.headers.user-agent\":\"ai/5.0.76\",\"ai.response.finishReason\":\"tool-calls\",\"ai.response.providerMetadata\":\"{\\\"openai\\\":{\\\"responseId\\\":\\\"resp_097184780dc1e1bc00691b3756e6848195a954cd789a29c378\\\",\\\"serviceTier\\\":\\\"default\\\"}}\",\"ai.usage.promptTokens\":\"62\",\"ai.usage.completionTokens\":\"85\"},\"resourceAttributes\":{\"host.name\":\"Janniks-MacBook-Pro.local\",\"host.arch\":\"arm64\",\"host.id\":\"04B49C49-15E0-55D5-9040-4D6FF6E415E6\",\"process.pid\":22217,\"process.executable.name\":\"deno\",\"process.executable.path\":\"/opt/homebrew/bin/deno\",\"process.command_args\":[\"/opt/homebrew/bin/deno\",\"/Users/jannik/Documents/GitHub/langfuse-docs/cookbook/$deno$jupyter.mts\"],\"process.runtime.version\":\"20.11.1\",\"process.runtime.name\":\"nodejs\",\"process.runtime.description\":\"Node.js\",\"process.command\":\"/Users/jannik/Documents/GitHub/langfuse-docs/cookbook/$deno$jupyter.mts\",\"process.owner\":\"jannik\",\"service.name\":\"unknown_service:/opt/homebrew/bin/deno\",\"telemetry.sdk.language\":\"nodejs\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"2.1.0\"},\"scope\":{\"name\":\"ai\",\"attributes\":{}}}",+ "scores": [+ {+ "id": "f2b348f6-daee-498f-ba41-5505e57ec54b",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "environment": "default",+ "name": "hallucination",+ "value": 0,+ "source": "EVAL",+ "authorUserId": null,+ "comment": "The generation uses a tool call to get the weather in San Francisco, which is the appropriate way to obtain up-to-date and accurate weather information; it does not contain any hallucinated information.",+ "configId": null,+ "queueId": null,+ "executionTraceId": "fb85023e2d1197ff2dfe4e7cb842eb87",+ "createdAt": "2025-11-17T14:56:10.000Z",+ "updatedAt": "2025-11-17T14:56:09.517Z",+ "timestamp": "2025-11-17T14:56:09.386Z",+ "traceId": "df41e597d0a85e0d7a6ae8ebfaa70aa0",+ "sessionId": null,+ "datasetRunId": null,+ "observationId": null,+ "longStringValue": "",+ "stringValue": null,+ "dataType": "NUMERIC",+ "metadata": "{\"job_execution_id\":\"0db7544c-9622-4de3-9b08-28d4a888abd3\",\"job_configuration_id\":\"af94c82e-ac66-400d-add5-75cdfa77915d\",\"target_trace_id\":\"df41e597d0a85e0d7a6ae8ebfaa70aa0\"}"+ },+ {+ "id": "db3638da-ccfd-4689-9816-4f7f11db3e0a",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "environment": "default",+ "name": "toxicity",+ "value": 0,+ "source": "EVAL",+ "authorUserId": null,+ "comment": "The generation does not contain any harmful, offensive, or disrespectful language; it simply represents a neutral tool call for weather information.",+ "configId": null,+ "queueId": null,+ "executionTraceId": "ae0452b0f13f0ef86458b0c822feee8c",+ "createdAt": "2025-11-17T14:56:10.000Z",+ "updatedAt": "2025-11-17T14:56:09.391Z",+ "timestamp": "2025-11-17T14:56:09.296Z",+ "traceId": "df41e597d0a85e0d7a6ae8ebfaa70aa0",+ "sessionId": null,+ "datasetRunId": null,+ "observationId": null,+ "longStringValue": "",+ "stringValue": null,+ "dataType": "NUMERIC",+ "metadata": "{\"job_execution_id\":\"cad3d2d9-2184-4ec8-9fbe-d7516065da75\",\"job_configuration_id\":\"12436733-36b3-4b19-be24-b97a1a6063ad\",\"target_trace_id\":\"df41e597d0a85e0d7a6ae8ebfaa70aa0\"}"+ }+ ],+ "corrections": [],+ "latency": 3.045,+ "observations": [+ {+ "id": "1dc6768109615657",+ "traceId": "df41e597d0a85e0d7a6ae8ebfaa70aa0",+ "startTime": "2025-11-17T14:55:18.786Z",+ "endTime": "2025-11-17T14:55:21.831Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": null,+ "type": "GENERATION",+ "environment": "default",+ "name": "ai.generateText",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-11-17T14:55:41.219Z",+ "updatedAt": "2025-11-17T14:55:41.219Z",+ "input": null,+ "output": null,+ "model": "gpt-5",+ "internalModelId": "38c3822a-09a3-457b-b200-2c6f17f7cf2f",+ "modelParameters": {+ "maxSteps": null,+ "toolChoice": null,+ "maxTokens": null,+ "finishReason": null,+ "system": "openai.responses",+ "maxRetries": "2",+ "mode": null,+ "temperature": null+ },+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 3.045,+ "timeToFirstToken": null,+ "usageDetails": {+ "input": 14,+ "output": 43,+ "total": 57+ },+ "costDetails": {+ "input": 0.0000175,+ "output": 0.00043,+ "total": 0.0004475+ },+ "providedCostDetails": {},+ "inputCost": 0.0000175,+ "outputCost": 0.00043,+ "totalCost": 0.0004475,+ "inputUsage": 14,+ "outputUsage": 43,+ "totalUsage": 57,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ },+ {+ "id": "91a17a2274bfd23f",+ "traceId": "df41e597d0a85e0d7a6ae8ebfaa70aa0",+ "startTime": "2025-11-17T14:55:18.787Z",+ "endTime": "2025-11-17T14:55:21.830Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "1dc6768109615657",+ "type": "GENERATION",+ "environment": "default",+ "name": "ai.generateText.doGenerate",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-11-17T14:55:41.219Z",+ "updatedAt": "2025-11-17T14:55:41.219Z",+ "input": null,+ "output": null,+ "model": "gpt-5",+ "internalModelId": "38c3822a-09a3-457b-b200-2c6f17f7cf2f",+ "modelParameters": {+ "maxSteps": null,+ "toolChoice": "{\"type\":\"auto\"}",+ "maxTokens": null,+ "finishReason": "tool-calls",+ "system": "openai.responses",+ "maxRetries": "2",+ "mode": null,+ "temperature": null+ },+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 3.043,+ "timeToFirstToken": null,+ "usageDetails": {+ "input": 62,+ "output": 85,+ "total": 147+ },+ "costDetails": {+ "input": 0.0000775,+ "output": 0.00085,+ "total": 0.000927499999+ },+ "providedCostDetails": {},+ "inputCost": 0.0000775,+ "outputCost": 0.00085,+ "totalCost": 0.000927499999,+ "inputUsage": 62,+ "outputUsage": 85,+ "totalUsage": 147,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ },+ {+ "id": "e9bb8c191e1e4706",+ "traceId": "df41e597d0a85e0d7a6ae8ebfaa70aa0",+ "startTime": "2025-11-17T14:55:21.831Z",+ "endTime": "2025-11-17T14:55:21.831Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "1dc6768109615657",+ "type": "TOOL",+ "environment": "default",+ "name": "getWeather",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-11-17T14:55:41.219Z",+ "updatedAt": "2025-11-17T14:55:41.219Z",+ "input": null,+ "output": null,+ "model": null,+ "internalModelId": null,+ "modelParameters": {+ "maxSteps": null,+ "toolChoice": null,+ "maxTokens": null,+ "finishReason": null,+ "system": null,+ "maxRetries": null,+ "mode": null,+ "temperature": null+ },+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 0,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ }+ ]+ },+ "observations": [+ {+ "id": "1dc6768109615657",+ "traceId": "df41e597d0a85e0d7a6ae8ebfaa70aa0",+ "startTime": "2025-11-17T14:55:18.786Z",+ "endTime": "2025-11-17T14:55:21.831Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": null,+ "type": "GENERATION",+ "environment": "default",+ "name": "ai.generateText",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-11-17T14:55:41.219Z",+ "updatedAt": "2025-11-17T14:55:41.219Z",+ "input": "{\"prompt\":\"What is the weather like today in San Francisco?\"}",+ "output": "[{\"toolCallId\":\"call_DgKARp7a7IhJPDczfifMp6Ra\",\"toolName\":\"getWeather\",\"input\":\"{\\\"location\\\":\\\"San Francisco\\\"}\"}]",+ "model": "gpt-5",+ "internalModelId": "38c3822a-09a3-457b-b200-2c6f17f7cf2f",+ "modelParameters": {+ "maxSteps": null,+ "toolChoice": null,+ "maxTokens": null,+ "finishReason": null,+ "system": "openai.responses",+ "maxRetries": "2",+ "mode": null,+ "temperature": null+ },+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 3.045,+ "timeToFirstToken": null,+ "usageDetails": {+ "input": 14,+ "output": 43,+ "total": 57+ },+ "costDetails": {+ "input": 0.0000175,+ "output": 0.00043,+ "total": 0.0004475+ },+ "providedCostDetails": {},+ "inputCost": 0.0000175,+ "outputCost": 0.00043,+ "totalCost": 0.0004475,+ "inputUsage": 14,+ "outputUsage": 43,+ "totalUsage": 57,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"attributes\":{\"operation.name\":\"ai.generateText\",\"ai.operationId\":\"ai.generateText\",\"ai.model.provider\":\"openai.responses\",\"ai.model.id\":\"gpt-5\",\"ai.settings.maxRetries\":\"2\",\"ai.request.headers.user-agent\":\"ai/5.0.76\",\"ai.response.finishReason\":\"tool-calls\",\"ai.response.providerMetadata\":\"{\\\"openai\\\":{\\\"responseId\\\":\\\"resp_097184780dc1e1bc00691b3756e6848195a954cd789a29c378\\\",\\\"serviceTier\\\":\\\"default\\\"}}\",\"ai.usage.promptTokens\":\"62\",\"ai.usage.completionTokens\":\"85\"},\"resourceAttributes\":{\"host.name\":\"Janniks-MacBook-Pro.local\",\"host.arch\":\"arm64\",\"host.id\":\"04B49C49-15E0-55D5-9040-4D6FF6E415E6\",\"process.pid\":22217,\"process.executable.name\":\"deno\",\"process.executable.path\":\"/opt/homebrew/bin/deno\",\"process.command_args\":[\"/opt/homebrew/bin/deno\",\"/Users/jannik/Documents/GitHub/langfuse-docs/cookbook/$deno$jupyter.mts\"],\"process.runtime.version\":\"20.11.1\",\"process.runtime.name\":\"nodejs\",\"process.runtime.description\":\"Node.js\",\"process.command\":\"/Users/jannik/Documents/GitHub/langfuse-docs/cookbook/$deno$jupyter.mts\",\"process.owner\":\"jannik\",\"service.name\":\"unknown_service:/opt/homebrew/bin/deno\",\"telemetry.sdk.language\":\"nodejs\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"2.1.0\"},\"scope\":{\"name\":\"ai\",\"attributes\":{}}}",+ "internalModel": "38c3822a-09a3-457b-b200-2c6f17f7cf2f"+ },+ {+ "id": "91a17a2274bfd23f",+ "traceId": "df41e597d0a85e0d7a6ae8ebfaa70aa0",+ "startTime": "2025-11-17T14:55:18.787Z",+ "endTime": "2025-11-17T14:55:21.830Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "1dc6768109615657",+ "type": "GENERATION",+ "environment": "default",+ "name": "ai.generateText.doGenerate",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-11-17T14:55:41.219Z",+ "updatedAt": "2025-11-17T14:55:41.219Z",+ "input": "[{\"role\":\"user\",\"content\":[{\"type\":\"text\",\"text\":\"What is the weather like today in San Francisco?\"}]}]",+ "output": "[{\"toolCallId\":\"call_DgKARp7a7IhJPDczfifMp6Ra\",\"toolName\":\"getWeather\",\"input\":\"{\\\"location\\\":\\\"San Francisco\\\"}\"}]",+ "model": "gpt-5",+ "internalModelId": "38c3822a-09a3-457b-b200-2c6f17f7cf2f",+ "modelParameters": {+ "maxSteps": null,+ "toolChoice": "{\"type\":\"auto\"}",+ "maxTokens": null,+ "finishReason": "tool-calls",+ "system": "openai.responses",+ "maxRetries": "2",+ "mode": null,+ "temperature": null+ },+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 3.043,+ "timeToFirstToken": null,+ "usageDetails": {+ "input": 62,+ "output": 85,+ "total": 147+ },+ "costDetails": {+ "input": 0.0000775,+ "output": 0.00085,+ "total": 0.000927499999+ },+ "providedCostDetails": {},+ "inputCost": 0.0000775,+ "outputCost": 0.00085,+ "totalCost": 0.000927499999,+ "inputUsage": 62,+ "outputUsage": 85,+ "totalUsage": 147,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"tools\":[\"{\\\"type\\\":\\\"function\\\",\\\"name\\\":\\\"getWeather\\\",\\\"description\\\":\\\"Get the weather in a location\\\",\\\"inputSchema\\\":{\\\"$schema\\\":\\\"http://json-schema.org/draft-07/schema#\\\",\\\"type\\\":\\\"object\\\",\\\"properties\\\":{\\\"location\\\":{\\\"description\\\":\\\"The location to get the weather for\\\",\\\"type\\\":\\\"string\\\"}},\\\"required\\\":[\\\"location\\\"],\\\"additionalProperties\\\":false}}\"],\"attributes\":{\"operation.name\":\"ai.generateText.doGenerate\",\"ai.operationId\":\"ai.generateText.doGenerate\",\"ai.model.provider\":\"openai.responses\",\"ai.model.id\":\"gpt-5\",\"ai.settings.maxRetries\":\"2\",\"ai.request.headers.user-agent\":\"ai/5.0.76\",\"ai.prompt.tools\":\"[\\\"{\\\\\\\"type\\\\\\\":\\\\\\\"function\\\\\\\",\\\\\\\"name\\\\\\\":\\\\\\\"getWeather\\\\\\\",\\\\\\\"description\\\\\\\":\\\\\\\"Get the weather in a location\\\\\\\",\\\\\\\"inputSchema\\\\\\\":{\\\\\\\"$schema\\\\\\\":\\\\\\\"http://json-schema.org/draft-07/schema#\\\\\\\",\\\\\\\"type\\\\\\\":\\\\\\\"object\\\\\\\",\\\\\\\"properties\\\\\\\":{\\\\\\\"location\\\\\\\":{\\\\\\\"description\\\\\\\":\\\\\\\"The location to get the weather for\\\\\\\",\\\\\\\"type\\\\\\\":\\\\\\\"string\\\\\\\"}},\\\\\\\"required\\\\\\\":[\\\\\\\"location\\\\\\\"],\\\\\\\"additionalProperties\\\\\\\":false}}\\\"]\",\"ai.prompt.toolChoice\":\"{\\\"type\\\":\\\"auto\\\"}\",\"gen_ai.system\":\"openai.responses\",\"gen_ai.request.model\":\"gpt-5\",\"ai.response.finishReason\":\"tool-calls\",\"ai.response.id\":\"resp_097184780dc1e1bc00691b3756e6848195a954cd789a29c378\",\"ai.response.model\":\"gpt-5-2025-08-07\",\"ai.response.timestamp\":\"2025-11-17T14:55:18.000Z\",\"ai.response.providerMetadata\":\"{\\\"openai\\\":{\\\"responseId\\\":\\\"resp_097184780dc1e1bc00691b3756e6848195a954cd789a29c378\\\",\\\"serviceTier\\\":\\\"default\\\"}}\",\"ai.usage.promptTokens\":\"62\",\"ai.usage.completionTokens\":\"85\",\"gen_ai.response.finish_reasons\":\"[\\\"tool-calls\\\"]\",\"gen_ai.response.id\":\"resp_097184780dc1e1bc00691b3756e6848195a954cd789a29c378\",\"gen_ai.response.model\":\"gpt-5-2025-08-07\",\"gen_ai.usage.input_tokens\":\"62\",\"gen_ai.usage.output_tokens\":\"85\"},\"resourceAttributes\":{\"host.name\":\"Janniks-MacBook-Pro.local\",\"host.arch\":\"arm64\",\"host.id\":\"04B49C49-15E0-55D5-9040-4D6FF6E415E6\",\"process.pid\":22217,\"process.executable.name\":\"deno\",\"process.executable.path\":\"/opt/homebrew/bin/deno\",\"process.command_args\":[\"/opt/homebrew/bin/deno\",\"/Users/jannik/Documents/GitHub/langfuse-docs/cookbook/$deno$jupyter.mts\"],\"process.runtime.version\":\"20.11.1\",\"process.runtime.name\":\"nodejs\",\"process.runtime.description\":\"Node.js\",\"process.command\":\"/Users/jannik/Documents/GitHub/langfuse-docs/cookbook/$deno$jupyter.mts\",\"process.owner\":\"jannik\",\"service.name\":\"unknown_service:/opt/homebrew/bin/deno\",\"telemetry.sdk.language\":\"nodejs\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"2.1.0\"},\"scope\":{\"name\":\"ai\",\"attributes\":{}}}",+ "internalModel": "38c3822a-09a3-457b-b200-2c6f17f7cf2f"+ },+ {+ "id": "e9bb8c191e1e4706",+ "traceId": "df41e597d0a85e0d7a6ae8ebfaa70aa0",+ "startTime": "2025-11-17T14:55:21.831Z",+ "endTime": "2025-11-17T14:55:21.831Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": "1dc6768109615657",+ "type": "TOOL",+ "environment": "default",+ "name": "getWeather",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-11-17T14:55:41.219Z",+ "updatedAt": "2025-11-17T14:55:41.219Z",+ "input": "{\"location\":\"San Francisco\"}",+ "output": "{\"location\":\"San Francisco\",\"temperature\":64}",+ "model": null,+ "internalModelId": null,+ "modelParameters": {+ "maxSteps": null,+ "toolChoice": null,+ "maxTokens": null,+ "finishReason": null,+ "system": null,+ "maxRetries": null,+ "mode": null,+ "temperature": null+ },+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 0,+ "timeToFirstToken": null,+ "usageDetails": {},+ "costDetails": {},+ "providedCostDetails": {},+ "inputCost": null,+ "outputCost": null,+ "totalCost": 0,+ "inputUsage": 0,+ "outputUsage": 0,+ "totalUsage": 0,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"attributes\":{\"operation.name\":\"ai.toolCall\",\"ai.operationId\":\"ai.toolCall\",\"ai.toolCall.name\":\"getWeather\",\"ai.toolCall.id\":\"call_DgKARp7a7IhJPDczfifMp6Ra\"},\"resourceAttributes\":{\"host.name\":\"Janniks-MacBook-Pro.local\",\"host.arch\":\"arm64\",\"host.id\":\"04B49C49-15E0-55D5-9040-4D6FF6E415E6\",\"process.pid\":22217,\"process.executable.name\":\"deno\",\"process.executable.path\":\"/opt/homebrew/bin/deno\",\"process.command_args\":[\"/opt/homebrew/bin/deno\",\"/Users/jannik/Documents/GitHub/langfuse-docs/cookbook/$deno$jupyter.mts\"],\"process.runtime.version\":\"20.11.1\",\"process.runtime.name\":\"nodejs\",\"process.runtime.description\":\"Node.js\",\"process.command\":\"/Users/jannik/Documents/GitHub/langfuse-docs/cookbook/$deno$jupyter.mts\",\"process.owner\":\"jannik\",\"service.name\":\"unknown_service:/opt/homebrew/bin/deno\",\"telemetry.sdk.language\":\"nodejs\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"2.1.0\"},\"scope\":{\"name\":\"ai\",\"attributes\":{}}}",+ "internalModel": null+ }+ ]+}diff --git a/worker/src/__tests__/chatml/framework-traces/vertex-ai-2025-08-01.chatml.json b/worker/src/__tests__/chatml/framework-traces/vertex-ai-2025-08-01.chatml.jsonnew file mode 100644index 0000000000..aef9ab59ec--- /dev/null+++ b/worker/src/__tests__/chatml/framework-traces/vertex-ai-2025-08-01.chatml.json@@ -0,0 +1,30 @@+{+ "125abcbf5c41f4df": {+ "input": {+ "success": true,+ "data": [+ {+ "role": "user",+ "content": "What is Langfuse?"+ }+ ]+ },+ "output": {+ "success": true,+ "data": [+ {+ "role": "model",+ "content": "**Langfuse** is an **open-source observability and evaluation platform specifically designed for Large Language Model (LLM) applications.**\n\nThink of it as an Application Performance Management (APM) tool, but tailored to the unique challenges of building and running applications powered by LLMs, such as chatbots, summarizers, code generators, and more.\n\n### Why Langfuse Exists (The Problem It Solves)\n\nDeveloping with LLMs introduces new complexities:\n\n1. **Non-Determinism:** LLM outputs can vary even with the same input, making debugging difficult.\n2. **Opacity:** It's hard to see *why* an LLM responded a certain way, especially with complex prompt chains or tool usage.\n3. **Cost & Latency:** LLM API calls can be expensive and slow, requiring careful monitoring.\n4. **Quality Evaluation:** Subjective and difficult to measure if an LLM is truly \"good\" or \"helpful\" for specific tasks.\n5. **Iteration Speed:** Testing prompt changes, different models, or retrieval-augmented generation (RAG) strategies requires robust tooling.\n6. **User Feedback:** Connecting user-reported issues or satisfaction back to specific LLM interactions.\n\n### What Langfuse Does (Key Features)\n\nLangfuse helps address these problems by providing:\n\n1. **Tracing & Debugging:**\n * **End-to-end visibility:** It captures every step of an LLM call or a chain of LLM calls (e.g., initial user query, prompt engineering, internal thoughts of the LLM, tool calls, final response).\n * **Detailed data:** Records prompts, responses, models used, tokens consumed, latency, cost, errors, and custom metadata.\n * **Visual timelines:** Allows developers to inspect the flow of an interaction, pinpointing where issues occurred.\n\n2. **Evaluation & Feedback:**\n * **Manual Annotations:** Allows human reviewers to rate the quality of LLM outputs directly within the platform.\n * **Automated Evaluations:** Integrates with evaluation frameworks to run automated checks (e.g., factual consistency, toxicity, helpfulness).\n * **Feedback Integration:** Connects user feedback (e.g., thumbs up/down, specific comments) directly to the trace of the interaction.\n\n3. **Monitoring & Analytics:**\n * **Dashboards:** Provides metrics on key performance indicators like latency, cost, token usage, error rates, and throughput.\n * **Trend Analysis:** Helps identify regressions or improvements over time.\n * **Experimentation:** Facilitates A/B testing of different prompts, models, or configurations by comparing their performance metrics and evaluations.\n\n4. **Prompt Management:** While not a dedicated prompt engineering tool, its tracing capabilities allow you to see how different prompts perform in production and iterate on them effectively.\n\n### How It Works\n\n* **SDKs:** You integrate Langfuse into your application code using their SDKs (e.g., Python, JavaScript).\n* **Data Capture:** The SDKs automatically capture relevant data about your LLM calls and send it to the Langfuse backend.\n* **Backend:** Langfuse provides a hosted cloud service, or you can self-host their open-source backend (which uses PostgreSQL and ClickHouse).\n* **Web UI:** All the captured data is visualized in a user-friendly web interface for analysis, debugging, and evaluation.\n\n### Who Uses Langfuse?\n\n* **LLM Developers:** For debugging, testing, and improving their LLM-powered applications.\n* **ML Engineers:** To monitor the performance and reliability of LLMs in production.\n* **Product Managers:** To understand user experience and the impact of LLM changes.\n* **Anyone building and deploying Generative AI applications.**\n\nIn essence, Langfuse provides the necessary tools for developers to bring LLM applications from prototype to production with confidence, ensuring they are observable, debuggable, and continuously improving.",+ "json": {+ "usage_metadata": {+ "prompt_token_count": 5,+ "candidates_token_count": 845,+ "total_token_count": 2023+ },+ "model_version": "gemini-2.5-flash"+ }+ }+ ]+ }+ }+}\ No newline at end of filediff --git a/worker/src/__tests__/chatml/framework-traces/vertex-ai-2025-08-01.trace.json b/worker/src/__tests__/chatml/framework-traces/vertex-ai-2025-08-01.trace.jsonnew file mode 100644index 0000000000..7b29fad263--- /dev/null+++ b/worker/src/__tests__/chatml/framework-traces/vertex-ai-2025-08-01.trace.json@@ -0,0 +1,184 @@+{+ "trace": {+ "id": "0298935e31d66d7de9487cac935d7d99",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "name": "generate_content",+ "timestamp": "2025-08-01T12:31:01.518Z",+ "environment": "default",+ "tags": [],+ "bookmarked": false,+ "release": null,+ "version": null,+ "userId": null,+ "sessionId": null,+ "public": true,+ "input": "\"{\\\"contents\\\":[{\\\"role\\\":\\\"user\\\",\\\"parts\\\":[{\\\"text\\\":\\\"What is Langfuse?\\\"}]}],\\\"model\\\":\\\"projects/vertex-ai-integration-467711/locations/europe-central2/publishers/google/models/gemini-2.5-flash\\\",\\\"tools\\\":[],\\\"labels\\\":{},\\\"safety_settings\\\":[]}\"",+ "output": "\"{\\\"candidates\\\":[{\\\"content\\\":{\\\"role\\\":\\\"model\\\",\\\"parts\\\":[{\\\"text\\\":\\\"**Langfuse** is an **open-source observability and evaluation platform specifically designed for Large Language Model (LLM) applications.**\\\\n\\\\nThink of it as an Application Performance Management (APM) tool, but tailored to the unique challenges of building and running applications powered by LLMs, such as chatbots, summarizers, code generators, and more.\\\\n\\\\n### Why Langfuse Exists (The Problem It Solves)\\\\n\\\\nDeveloping with LLMs introduces new complexities:\\\\n\\\\n1. **Non-Determinism:** LLM outputs can vary even with the same input, making debugging difficult.\\\\n2. **Opacity:** It's hard to see *why* an LLM responded a certain way, especially with complex prompt chains or tool usage.\\\\n3. **Cost & Latency:** LLM API calls can be expensive and slow, requiring careful monitoring.\\\\n4. **Quality Evaluation:** Subjective and difficult to measure if an LLM is truly \\\\\\\"good\\\\\\\" or \\\\\\\"helpful\\\\\\\" for specific tasks.\\\\n5. **Iteration Speed:** Testing prompt changes, different models, or retrieval-augmented generation (RAG) strategies requires robust tooling.\\\\n6. **User Feedback:** Connecting user-reported issues or satisfaction back to specific LLM interactions.\\\\n\\\\n### What Langfuse Does (Key Features)\\\\n\\\\nLangfuse helps address these problems by providing:\\\\n\\\\n1. **Tracing & Debugging:**\\\\n * **End-to-end visibility:** It captures every step of an LLM call or a chain of LLM calls (e.g., initial user query, prompt engineering, internal thoughts of the LLM, tool calls, final response).\\\\n * **Detailed data:** Records prompts, responses, models used, tokens consumed, latency, cost, errors, and custom metadata.\\\\n * **Visual timelines:** Allows developers to inspect the flow of an interaction, pinpointing where issues occurred.\\\\n\\\\n2. **Evaluation & Feedback:**\\\\n * **Manual Annotations:** Allows human reviewers to rate the quality of LLM outputs directly within the platform.\\\\n * **Automated Evaluations:** Integrates with evaluation frameworks to run automated checks (e.g., factual consistency, toxicity, helpfulness).\\\\n * **Feedback Integration:** Connects user feedback (e.g., thumbs up/down, specific comments) directly to the trace of the interaction.\\\\n\\\\n3. **Monitoring & Analytics:**\\\\n * **Dashboards:** Provides metrics on key performance indicators like latency, cost, token usage, error rates, and throughput.\\\\n * **Trend Analysis:** Helps identify regressions or improvements over time.\\\\n * **Experimentation:** Facilitates A/B testing of different prompts, models, or configurations by comparing their performance metrics and evaluations.\\\\n\\\\n4. **Prompt Management:** While not a dedicated prompt engineering tool, its tracing capabilities allow you to see how different prompts perform in production and iterate on them effectively.\\\\n\\\\n### How It Works\\\\n\\\\n* **SDKs:** You integrate Langfuse into your application code using their SDKs (e.g., Python, JavaScript).\\\\n* **Data Capture:** The SDKs automatically capture relevant data about your LLM calls and send it to the Langfuse backend.\\\\n* **Backend:** Langfuse provides a hosted cloud service, or you can self-host their open-source backend (which uses PostgreSQL and ClickHouse).\\\\n* **Web UI:** All the captured data is visualized in a user-friendly web interface for analysis, debugging, and evaluation.\\\\n\\\\n### Who Uses Langfuse?\\\\n\\\\n* **LLM Developers:** For debugging, testing, and improving their LLM-powered applications.\\\\n* **ML Engineers:** To monitor the performance and reliability of LLMs in production.\\\\n* **Product Managers:** To understand user experience and the impact of LLM changes.\\\\n* **Anyone building and deploying Generative AI applications.**\\\\n\\\\nIn essence, Langfuse provides the necessary tools for developers to bring LLM applications from prototype to production with confidence, ensuring they are observable, debuggable, and continuously improving.\\\"}]},\\\"finish_reason\\\":1,\\\"avg_logprobs\\\":-0.7123595830251479,\\\"index\\\":0,\\\"score\\\":0,\\\"safety_ratings\\\":[]}],\\\"usage_metadata\\\":{\\\"prompt_token_count\\\":5,\\\"candidates_token_count\\\":845,\\\"total_token_count\\\":2023},\\\"model_version\\\":\\\"gemini-2.5-flash\\\"}\"",+ "createdAt": "2025-08-01T12:31:15.000Z",+ "updatedAt": "2025-08-01T12:31:14.486Z",+ "metadata": "{\"attributes\":{\"input.value\":\"{\\\"contents\\\": [{\\\"role\\\": \\\"user\\\", \\\"parts\\\": [{\\\"text\\\": \\\"What is Langfuse?\\\"}]}], \\\"model\\\": \\\"projects/vertex-ai-integration-467711/locations/europe-central2/publishers/google/models/gemini-2.5-flash\\\", \\\"tools\\\": [], \\\"labels\\\": {}, \\\"safety_settings\\\": []}\",\"input.mime_type\":\"application/json\",\"llm.model_name\":\"projects/vertex-ai-integration-467711/locations/europe-central2/publishers/google/models/gemini-2.5-flash\",\"llm.invocation_parameters\":\"{\\\"stop_sequences\\\": [], \\\"response_mime_type\\\": \\\"\\\"}\",\"llm.input_messages.0.message.role\":\"user\",\"llm.input_messages.0.message.contents.0.message_content.text\":\"What is Langfuse?\",\"output.value\":\"{\\\"candidates\\\": [{\\\"content\\\": {\\\"role\\\": \\\"model\\\", \\\"parts\\\": [{\\\"text\\\": \\\"**Langfuse** is an **open-source observability and evaluation platform specifically designed for Large Language Model (LLM) applications.**\\\\n\\\\nThink of it as an Application Performance Management (APM) tool, but tailored to the unique challenges of building and running applications powered by LLMs, such as chatbots, summarizers, code generators, and more.\\\\n\\\\n### Why Langfuse Exists (The Problem It Solves)\\\\n\\\\nDeveloping with LLMs introduces new complexities:\\\\n\\\\n1. **Non-Determinism:** LLM outputs can vary even with the same input, making debugging difficult.\\\\n2. **Opacity:** It's hard to see *why* an LLM responded a certain way, especially with complex prompt chains or tool usage.\\\\n3. **Cost & Latency:** LLM API calls can be expensive and slow, requiring careful monitoring.\\\\n4. **Quality Evaluation:** Subjective and difficult to measure if an LLM is truly \\\\\\\"good\\\\\\\" or \\\\\\\"helpful\\\\\\\" for specific tasks.\\\\n5. **Iteration Speed:** Testing prompt changes, different models, or retrieval-augmented generation (RAG) strategies requires robust tooling.\\\\n6. **User Feedback:** Connecting user-reported issues or satisfaction back to specific LLM interactions.\\\\n\\\\n### What Langfuse Does (Key Features)\\\\n\\\\nLangfuse helps address these problems by providing:\\\\n\\\\n1. **Tracing & Debugging:**\\\\n * **End-to-end visibility:** It captures every step of an LLM call or a chain of LLM calls (e.g., initial user query, prompt engineering, internal thoughts of the LLM, tool calls, final response).\\\\n * **Detailed data:** Records prompts, responses, models used, tokens consumed, latency, cost, errors, and custom metadata.\\\\n * **Visual timelines:** Allows developers to inspect the flow of an interaction, pinpointing where issues occurred.\\\\n\\\\n2. **Evaluation & Feedback:**\\\\n * **Manual Annotations:** Allows human reviewers to rate the quality of LLM outputs directly within the platform.\\\\n * **Automated Evaluations:** Integrates with evaluation frameworks to run automated checks (e.g., factual consistency, toxicity, helpfulness).\\\\n * **Feedback Integration:** Connects user feedback (e.g., thumbs up/down, specific comments) directly to the trace of the interaction.\\\\n\\\\n3. **Monitoring & Analytics:**\\\\n * **Dashboards:** Provides metrics on key performance indicators like latency, cost, token usage, error rates, and throughput.\\\\n * **Trend Analysis:** Helps identify regressions or improvements over time.\\\\n * **Experimentation:** Facilitates A/B testing of different prompts, models, or configurations by comparing their performance metrics and evaluations.\\\\n\\\\n4. **Prompt Management:** While not a dedicated prompt engineering tool, its tracing capabilities allow you to see how different prompts perform in production and iterate on them effectively.\\\\n\\\\n### How It Works\\\\n\\\\n* **SDKs:** You integrate Langfuse into your application code using their SDKs (e.g., Python, JavaScript).\\\\n* **Data Capture:** The SDKs automatically capture relevant data about your LLM calls and send it to the Langfuse backend.\\\\n* **Backend:** Langfuse provides a hosted cloud service, or you can self-host their open-source backend (which uses PostgreSQL and ClickHouse).\\\\n* **Web UI:** All the captured data is visualized in a user-friendly web interface for analysis, debugging, and evaluation.\\\\n\\\\n### Who Uses Langfuse?\\\\n\\\\n* **LLM Developers:** For debugging, testing, and improving their LLM-powered applications.\\\\n* **ML Engineers:** To monitor the performance and reliability of LLMs in production.\\\\n* **Product Managers:** To understand user experience and the impact of LLM changes.\\\\n* **Anyone building and deploying Generative AI applications.**\\\\n\\\\nIn essence, Langfuse provides the necessary tools for developers to bring LLM applications from prototype to production with confidence, ensuring they are observable, debuggable, and continuously improving.\\\"}]}, \\\"finish_reason\\\": 1, \\\"avg_logprobs\\\": -0.7123595830251479, \\\"index\\\": 0, \\\"score\\\": 0.0, \\\"safety_ratings\\\": []}], \\\"usage_metadata\\\": {\\\"prompt_token_count\\\": 5, \\\"candidates_token_count\\\": 845, \\\"total_token_count\\\": 2023}, \\\"model_version\\\": \\\"gemini-2.5-flash\\\"}\",\"output.mime_type\":\"application/json\",\"llm.token_count.prompt\":\"5\",\"llm.token_count.completion\":\"845\",\"llm.token_count.total\":\"2023\",\"llm.output_messages.0.message.role\":\"assistant\",\"llm.output_messages.0.message.contents.0.message_content.text\":\"**Langfuse** is an **open-source observability and evaluation platform specifically designed for Large Language Model (LLM) applications.**\\n\\nThink of it as an Application Performance Management (APM) tool, but tailored to the unique challenges of building and running applications powered by LLMs, such as chatbots, summarizers, code generators, and more.\\n\\n### Why Langfuse Exists (The Problem It Solves)\\n\\nDeveloping with LLMs introduces new complexities:\\n\\n1. **Non-Determinism:** LLM outputs can vary even with the same input, making debugging difficult.\\n2. **Opacity:** It's hard to see *why* an LLM responded a certain way, especially with complex prompt chains or tool usage.\\n3. **Cost & Latency:** LLM API calls can be expensive and slow, requiring careful monitoring.\\n4. **Quality Evaluation:** Subjective and difficult to measure if an LLM is truly \\\"good\\\" or \\\"helpful\\\" for specific tasks.\\n5. **Iteration Speed:** Testing prompt changes, different models, or retrieval-augmented generation (RAG) strategies requires robust tooling.\\n6. **User Feedback:** Connecting user-reported issues or satisfaction back to specific LLM interactions.\\n\\n### What Langfuse Does (Key Features)\\n\\nLangfuse helps address these problems by providing:\\n\\n1. **Tracing & Debugging:**\\n * **End-to-end visibility:** It captures every step of an LLM call or a chain of LLM calls (e.g., initial user query, prompt engineering, internal thoughts of the LLM, tool calls, final response).\\n * **Detailed data:** Records prompts, responses, models used, tokens consumed, latency, cost, errors, and custom metadata.\\n * **Visual timelines:** Allows developers to inspect the flow of an interaction, pinpointing where issues occurred.\\n\\n2. **Evaluation & Feedback:**\\n * **Manual Annotations:** Allows human reviewers to rate the quality of LLM outputs directly within the platform.\\n * **Automated Evaluations:** Integrates with evaluation frameworks to run automated checks (e.g., factual consistency, toxicity, helpfulness).\\n * **Feedback Integration:** Connects user feedback (e.g., thumbs up/down, specific comments) directly to the trace of the interaction.\\n\\n3. **Monitoring & Analytics:**\\n * **Dashboards:** Provides metrics on key performance indicators like latency, cost, token usage, error rates, and throughput.\\n * **Trend Analysis:** Helps identify regressions or improvements over time.\\n * **Experimentation:** Facilitates A/B testing of different prompts, models, or configurations by comparing their performance metrics and evaluations.\\n\\n4. **Prompt Management:** While not a dedicated prompt engineering tool, its tracing capabilities allow you to see how different prompts perform in production and iterate on them effectively.\\n\\n### How It Works\\n\\n* **SDKs:** You integrate Langfuse into your application code using their SDKs (e.g., Python, JavaScript).\\n* **Data Capture:** The SDKs automatically capture relevant data about your LLM calls and send it to the Langfuse backend.\\n* **Backend:** Langfuse provides a hosted cloud service, or you can self-host their open-source backend (which uses PostgreSQL and ClickHouse).\\n* **Web UI:** All the captured data is visualized in a user-friendly web interface for analysis, debugging, and evaluation.\\n\\n### Who Uses Langfuse?\\n\\n* **LLM Developers:** For debugging, testing, and improving their LLM-powered applications.\\n* **ML Engineers:** To monitor the performance and reliability of LLMs in production.\\n* **Product Managers:** To understand user experience and the impact of LLM changes.\\n* **Anyone building and deploying Generative AI applications.**\\n\\nIn essence, Langfuse provides the necessary tools for developers to bring LLM applications from prototype to production with confidence, ensuring they are observable, debuggable, and continuously improving.\",\"openinference.span.kind\":\"LLM\"},\"resourceAttributes\":{\"telemetry.sdk.language\":\"python\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"1.34.1\",\"service.name\":\"unknown_service\"},\"scope\":{\"name\":\"openinference.instrumentation.vertexai\",\"version\":\"0.1.11\",\"attributes\":{}}}",+ "scores": [+ {+ "id": "06cedde7-c555-4096-b69b-4e29d55f2d65",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "environment": "default",+ "name": "hallucination",+ "value": 0.1,+ "source": "EVAL",+ "authorUserId": null,+ "comment": "The generation provides a detailed and plausible description of Langfuse as an observability and evaluation platform for LLM applications, aligning with known concepts in the field of AI and software development.",+ "configId": null,+ "queueId": null,+ "executionTraceId": null,+ "createdAt": "2025-08-01T12:31:43.000Z",+ "updatedAt": "2025-08-01T12:31:42.705Z",+ "timestamp": "2025-08-01T12:31:42.621Z",+ "traceId": "0298935e31d66d7de9487cac935d7d99",+ "sessionId": null,+ "datasetRunId": null,+ "observationId": null,+ "longStringValue": "",+ "stringValue": null,+ "dataType": "NUMERIC",+ "metadata": "{}"+ },+ {+ "id": "3fc56590-03f9-425b-a205-12e8080fad31",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "environment": "default",+ "name": "toxicity",+ "value": 0,+ "source": "EVAL",+ "authorUserId": null,+ "comment": "The generation provides a detailed and informative explanation of Langfuse without any harmful, offensive, or disrespectful language, thus scoring a 0 for toxicity.",+ "configId": null,+ "queueId": null,+ "executionTraceId": null,+ "createdAt": "2025-08-01T12:31:42.000Z",+ "updatedAt": "2025-08-01T12:31:41.294Z",+ "timestamp": "2025-08-01T12:31:41.163Z",+ "traceId": "0298935e31d66d7de9487cac935d7d99",+ "sessionId": null,+ "datasetRunId": null,+ "observationId": null,+ "longStringValue": "",+ "stringValue": null,+ "dataType": "NUMERIC",+ "metadata": "{}"+ }+ ],+ "corrections": [],+ "latency": 10.722,+ "observations": [+ {+ "id": "125abcbf5c41f4df",+ "traceId": "0298935e31d66d7de9487cac935d7d99",+ "startTime": "2025-08-01T12:31:01.518Z",+ "endTime": "2025-08-01T12:31:12.240Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": null,+ "type": "GENERATION",+ "environment": "default",+ "name": "generate_content",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-08-01T12:31:14.453Z",+ "updatedAt": "2025-08-01T12:31:14.490Z",+ "input": null,+ "output": null,+ "model": "projects/vertex-ai-integration-467711/locations/europe-central2/publishers/google/models/gemini-2.5-flash",+ "internalModelId": "b63d7f4d-ea21-4796-9a42-43bad0fab17e",+ "modelParameters": {+ "stop_sequences": "[]",+ "response_mime_type": ""+ },+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 10.722,+ "timeToFirstToken": null,+ "usageDetails": {+ "input": 5,+ "output": 845,+ "total": 2023+ },+ "costDetails": {+ "input": 0.000005,+ "output": 0.000845,+ "total": 0.00085+ },+ "providedCostDetails": {},+ "inputCost": 0.000005,+ "outputCost": 0.000845,+ "totalCost": 0.00085,+ "inputUsage": 5,+ "outputUsage": 845,+ "totalUsage": 2023,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{}"+ }+ ]+ },+ "observations": [+ {+ "id": "125abcbf5c41f4df",+ "traceId": "0298935e31d66d7de9487cac935d7d99",+ "startTime": "2025-08-01T12:31:01.518Z",+ "endTime": "2025-08-01T12:31:12.240Z",+ "projectId": "cloramnkj0002jz088vzn1ja4",+ "parentObservationId": null,+ "type": "GENERATION",+ "environment": "default",+ "name": "generate_content",+ "level": "DEFAULT",+ "statusMessage": null,+ "version": null,+ "createdAt": "2025-08-01T12:31:14.453Z",+ "updatedAt": "2025-08-01T12:31:14.490Z",+ "input": "{\"contents\": [{\"role\": \"user\", \"parts\": [{\"text\": \"What is Langfuse?\"}]}], \"model\": \"projects/vertex-ai-integration-467711/locations/europe-central2/publishers/google/models/gemini-2.5-flash\", \"tools\": [], \"labels\": {}, \"safety_settings\": []}",+ "output": "{\"candidates\": [{\"content\": {\"role\": \"model\", \"parts\": [{\"text\": \"**Langfuse** is an **open-source observability and evaluation platform specifically designed for Large Language Model (LLM) applications.**\\n\\nThink of it as an Application Performance Management (APM) tool, but tailored to the unique challenges of building and running applications powered by LLMs, such as chatbots, summarizers, code generators, and more.\\n\\n### Why Langfuse Exists (The Problem It Solves)\\n\\nDeveloping with LLMs introduces new complexities:\\n\\n1. **Non-Determinism:** LLM outputs can vary even with the same input, making debugging difficult.\\n2. **Opacity:** It's hard to see *why* an LLM responded a certain way, especially with complex prompt chains or tool usage.\\n3. **Cost & Latency:** LLM API calls can be expensive and slow, requiring careful monitoring.\\n4. **Quality Evaluation:** Subjective and difficult to measure if an LLM is truly \\\"good\\\" or \\\"helpful\\\" for specific tasks.\\n5. **Iteration Speed:** Testing prompt changes, different models, or retrieval-augmented generation (RAG) strategies requires robust tooling.\\n6. **User Feedback:** Connecting user-reported issues or satisfaction back to specific LLM interactions.\\n\\n### What Langfuse Does (Key Features)\\n\\nLangfuse helps address these problems by providing:\\n\\n1. **Tracing & Debugging:**\\n * **End-to-end visibility:** It captures every step of an LLM call or a chain of LLM calls (e.g., initial user query, prompt engineering, internal thoughts of the LLM, tool calls, final response).\\n * **Detailed data:** Records prompts, responses, models used, tokens consumed, latency, cost, errors, and custom metadata.\\n * **Visual timelines:** Allows developers to inspect the flow of an interaction, pinpointing where issues occurred.\\n\\n2. **Evaluation & Feedback:**\\n * **Manual Annotations:** Allows human reviewers to rate the quality of LLM outputs directly within the platform.\\n * **Automated Evaluations:** Integrates with evaluation frameworks to run automated checks (e.g., factual consistency, toxicity, helpfulness).\\n * **Feedback Integration:** Connects user feedback (e.g., thumbs up/down, specific comments) directly to the trace of the interaction.\\n\\n3. **Monitoring & Analytics:**\\n * **Dashboards:** Provides metrics on key performance indicators like latency, cost, token usage, error rates, and throughput.\\n * **Trend Analysis:** Helps identify regressions or improvements over time.\\n * **Experimentation:** Facilitates A/B testing of different prompts, models, or configurations by comparing their performance metrics and evaluations.\\n\\n4. **Prompt Management:** While not a dedicated prompt engineering tool, its tracing capabilities allow you to see how different prompts perform in production and iterate on them effectively.\\n\\n### How It Works\\n\\n* **SDKs:** You integrate Langfuse into your application code using their SDKs (e.g., Python, JavaScript).\\n* **Data Capture:** The SDKs automatically capture relevant data about your LLM calls and send it to the Langfuse backend.\\n* **Backend:** Langfuse provides a hosted cloud service, or you can self-host their open-source backend (which uses PostgreSQL and ClickHouse).\\n* **Web UI:** All the captured data is visualized in a user-friendly web interface for analysis, debugging, and evaluation.\\n\\n### Who Uses Langfuse?\\n\\n* **LLM Developers:** For debugging, testing, and improving their LLM-powered applications.\\n* **ML Engineers:** To monitor the performance and reliability of LLMs in production.\\n* **Product Managers:** To understand user experience and the impact of LLM changes.\\n* **Anyone building and deploying Generative AI applications.**\\n\\nIn essence, Langfuse provides the necessary tools for developers to bring LLM applications from prototype to production with confidence, ensuring they are observable, debuggable, and continuously improving.\"}]}, \"finish_reason\": 1, \"avg_logprobs\": -0.7123595830251479, \"index\": 0, \"score\": 0.0, \"safety_ratings\": []}], \"usage_metadata\": {\"prompt_token_count\": 5, \"candidates_token_count\": 845, \"total_token_count\": 2023}, \"model_version\": \"gemini-2.5-flash\"}",+ "model": "projects/vertex-ai-integration-467711/locations/europe-central2/publishers/google/models/gemini-2.5-flash",+ "internalModelId": "b63d7f4d-ea21-4796-9a42-43bad0fab17e",+ "modelParameters": {+ "stop_sequences": "[]",+ "response_mime_type": ""+ },+ "completionStartTime": null,+ "promptId": null,+ "promptName": null,+ "promptVersion": null,+ "latency": 10.722,+ "timeToFirstToken": null,+ "usageDetails": {+ "input": 5,+ "output": 845,+ "total": 2023+ },+ "costDetails": {+ "input": 0.000005,+ "output": 0.000845,+ "total": 0.00085+ },+ "providedCostDetails": {},+ "inputCost": 0.000005,+ "outputCost": 0.000845,+ "totalCost": 0.00085,+ "inputUsage": 5,+ "outputUsage": 845,+ "totalUsage": 2023,+ "usagePricingTierId": null,+ "usagePricingTierName": null,+ "toolDefinitions": {},+ "toolCalls": [],+ "toolCallNames": [],+ "metadata": "{\"attributes\":{\"input.value\":\"{\\\"contents\\\": [{\\\"role\\\": \\\"user\\\", \\\"parts\\\": [{\\\"text\\\": \\\"What is Langfuse?\\\"}]}], \\\"model\\\": \\\"projects/vertex-ai-integration-467711/locations/europe-central2/publishers/google/models/gemini-2.5-flash\\\", \\\"tools\\\": [], \\\"labels\\\": {}, \\\"safety_settings\\\": []}\",\"input.mime_type\":\"application/json\",\"llm.model_name\":\"projects/vertex-ai-integration-467711/locations/europe-central2/publishers/google/models/gemini-2.5-flash\",\"llm.invocation_parameters\":\"{\\\"stop_sequences\\\": [], \\\"response_mime_type\\\": \\\"\\\"}\",\"llm.input_messages.0.message.role\":\"user\",\"llm.input_messages.0.message.contents.0.message_content.text\":\"What is Langfuse?\",\"output.value\":\"{\\\"candidates\\\": [{\\\"content\\\": {\\\"role\\\": \\\"model\\\", \\\"parts\\\": [{\\\"text\\\": \\\"**Langfuse** is an **open-source observability and evaluation platform specifically designed for Large Language Model (LLM) applications.**\\\\n\\\\nThink of it as an Application Performance Management (APM) tool, but tailored to the unique challenges of building and running applications powered by LLMs, such as chatbots, summarizers, code generators, and more.\\\\n\\\\n### Why Langfuse Exists (The Problem It Solves)\\\\n\\\\nDeveloping with LLMs introduces new complexities:\\\\n\\\\n1. **Non-Determinism:** LLM outputs can vary even with the same input, making debugging difficult.\\\\n2. **Opacity:** It's hard to see *why* an LLM responded a certain way, especially with complex prompt chains or tool usage.\\\\n3. **Cost & Latency:** LLM API calls can be expensive and slow, requiring careful monitoring.\\\\n4. **Quality Evaluation:** Subjective and difficult to measure if an LLM is truly \\\\\\\"good\\\\\\\" or \\\\\\\"helpful\\\\\\\" for specific tasks.\\\\n5. **Iteration Speed:** Testing prompt changes, different models, or retrieval-augmented generation (RAG) strategies requires robust tooling.\\\\n6. **User Feedback:** Connecting user-reported issues or satisfaction back to specific LLM interactions.\\\\n\\\\n### What Langfuse Does (Key Features)\\\\n\\\\nLangfuse helps address these problems by providing:\\\\n\\\\n1. **Tracing & Debugging:**\\\\n * **End-to-end visibility:** It captures every step of an LLM call or a chain of LLM calls (e.g., initial user query, prompt engineering, internal thoughts of the LLM, tool calls, final response).\\\\n * **Detailed data:** Records prompts, responses, models used, tokens consumed, latency, cost, errors, and custom metadata.\\\\n * **Visual timelines:** Allows developers to inspect the flow of an interaction, pinpointing where issues occurred.\\\\n\\\\n2. **Evaluation & Feedback:**\\\\n * **Manual Annotations:** Allows human reviewers to rate the quality of LLM outputs directly within the platform.\\\\n * **Automated Evaluations:** Integrates with evaluation frameworks to run automated checks (e.g., factual consistency, toxicity, helpfulness).\\\\n * **Feedback Integration:** Connects user feedback (e.g., thumbs up/down, specific comments) directly to the trace of the interaction.\\\\n\\\\n3. **Monitoring & Analytics:**\\\\n * **Dashboards:** Provides metrics on key performance indicators like latency, cost, token usage, error rates, and throughput.\\\\n * **Trend Analysis:** Helps identify regressions or improvements over time.\\\\n * **Experimentation:** Facilitates A/B testing of different prompts, models, or configurations by comparing their performance metrics and evaluations.\\\\n\\\\n4. **Prompt Management:** While not a dedicated prompt engineering tool, its tracing capabilities allow you to see how different prompts perform in production and iterate on them effectively.\\\\n\\\\n### How It Works\\\\n\\\\n* **SDKs:** You integrate Langfuse into your application code using their SDKs (e.g., Python, JavaScript).\\\\n* **Data Capture:** The SDKs automatically capture relevant data about your LLM calls and send it to the Langfuse backend.\\\\n* **Backend:** Langfuse provides a hosted cloud service, or you can self-host their open-source backend (which uses PostgreSQL and ClickHouse).\\\\n* **Web UI:** All the captured data is visualized in a user-friendly web interface for analysis, debugging, and evaluation.\\\\n\\\\n### Who Uses Langfuse?\\\\n\\\\n* **LLM Developers:** For debugging, testing, and improving their LLM-powered applications.\\\\n* **ML Engineers:** To monitor the performance and reliability of LLMs in production.\\\\n* **Product Managers:** To understand user experience and the impact of LLM changes.\\\\n* **Anyone building and deploying Generative AI applications.**\\\\n\\\\nIn essence, Langfuse provides the necessary tools for developers to bring LLM applications from prototype to production with confidence, ensuring they are observable, debuggable, and continuously improving.\\\"}]}, \\\"finish_reason\\\": 1, \\\"avg_logprobs\\\": -0.7123595830251479, \\\"index\\\": 0, \\\"score\\\": 0.0, \\\"safety_ratings\\\": []}], \\\"usage_metadata\\\": {\\\"prompt_token_count\\\": 5, \\\"candidates_token_count\\\": 845, \\\"total_token_count\\\": 2023}, \\\"model_version\\\": \\\"gemini-2.5-flash\\\"}\",\"output.mime_type\":\"application/json\",\"llm.token_count.prompt\":\"5\",\"llm.token_count.completion\":\"845\",\"llm.token_count.total\":\"2023\",\"llm.output_messages.0.message.role\":\"assistant\",\"llm.output_messages.0.message.contents.0.message_content.text\":\"**Langfuse** is an **open-source observability and evaluation platform specifically designed for Large Language Model (LLM) applications.**\\n\\nThink of it as an Application Performance Management (APM) tool, but tailored to the unique challenges of building and running applications powered by LLMs, such as chatbots, summarizers, code generators, and more.\\n\\n### Why Langfuse Exists (The Problem It Solves)\\n\\nDeveloping with LLMs introduces new complexities:\\n\\n1. **Non-Determinism:** LLM outputs can vary even with the same input, making debugging difficult.\\n2. **Opacity:** It's hard to see *why* an LLM responded a certain way, especially with complex prompt chains or tool usage.\\n3. **Cost & Latency:** LLM API calls can be expensive and slow, requiring careful monitoring.\\n4. **Quality Evaluation:** Subjective and difficult to measure if an LLM is truly \\\"good\\\" or \\\"helpful\\\" for specific tasks.\\n5. **Iteration Speed:** Testing prompt changes, different models, or retrieval-augmented generation (RAG) strategies requires robust tooling.\\n6. **User Feedback:** Connecting user-reported issues or satisfaction back to specific LLM interactions.\\n\\n### What Langfuse Does (Key Features)\\n\\nLangfuse helps address these problems by providing:\\n\\n1. **Tracing & Debugging:**\\n * **End-to-end visibility:** It captures every step of an LLM call or a chain of LLM calls (e.g., initial user query, prompt engineering, internal thoughts of the LLM, tool calls, final response).\\n * **Detailed data:** Records prompts, responses, models used, tokens consumed, latency, cost, errors, and custom metadata.\\n * **Visual timelines:** Allows developers to inspect the flow of an interaction, pinpointing where issues occurred.\\n\\n2. **Evaluation & Feedback:**\\n * **Manual Annotations:** Allows human reviewers to rate the quality of LLM outputs directly within the platform.\\n * **Automated Evaluations:** Integrates with evaluation frameworks to run automated checks (e.g., factual consistency, toxicity, helpfulness).\\n * **Feedback Integration:** Connects user feedback (e.g., thumbs up/down, specific comments) directly to the trace of the interaction.\\n\\n3. **Monitoring & Analytics:**\\n * **Dashboards:** Provides metrics on key performance indicators like latency, cost, token usage, error rates, and throughput.\\n * **Trend Analysis:** Helps identify regressions or improvements over time.\\n * **Experimentation:** Facilitates A/B testing of different prompts, models, or configurations by comparing their performance metrics and evaluations.\\n\\n4. **Prompt Management:** While not a dedicated prompt engineering tool, its tracing capabilities allow you to see how different prompts perform in production and iterate on them effectively.\\n\\n### How It Works\\n\\n* **SDKs:** You integrate Langfuse into your application code using their SDKs (e.g., Python, JavaScript).\\n* **Data Capture:** The SDKs automatically capture relevant data about your LLM calls and send it to the Langfuse backend.\\n* **Backend:** Langfuse provides a hosted cloud service, or you can self-host their open-source backend (which uses PostgreSQL and ClickHouse).\\n* **Web UI:** All the captured data is visualized in a user-friendly web interface for analysis, debugging, and evaluation.\\n\\n### Who Uses Langfuse?\\n\\n* **LLM Developers:** For debugging, testing, and improving their LLM-powered applications.\\n* **ML Engineers:** To monitor the performance and reliability of LLMs in production.\\n* **Product Managers:** To understand user experience and the impact of LLM changes.\\n* **Anyone building and deploying Generative AI applications.**\\n\\nIn essence, Langfuse provides the necessary tools for developers to bring LLM applications from prototype to production with confidence, ensuring they are observable, debuggable, and continuously improving.\",\"openinference.span.kind\":\"LLM\"},\"resourceAttributes\":{\"telemetry.sdk.language\":\"python\",\"telemetry.sdk.name\":\"opentelemetry\",\"telemetry.sdk.version\":\"1.34.1\",\"service.name\":\"unknown_service\"},\"scope\":{\"name\":\"openinference.instrumentation.vertexai\",\"version\":\"0.1.11\",\"attributes\":{}}}",+ "internalModel": "b63d7f4d-ea21-4796-9a42-43bad0fab17e"+ }+ ]+}diff --git a/worker/src/__tests__/chatml/integration.test.ts b/worker/src/__tests__/chatml/integration.test.tsindex 2a11c7880d..7e16e82ae4 100644--- a/worker/src/__tests__/chatml/integration.test.ts+++ b/worker/src/__tests__/chatml/integration.test.ts@@ -1,38 +1,6 @@import { describe, it, expect, vi } from "vitest";--vi.mock("@langfuse/shared", () => {- const { z } = require("zod/v4");-- return {- ChatMessageRole: {- System: "system",- Developer: "developer",- User: "user",- Assistant: "assistant",- Tool: "tool",- Model: "model",- },- BaseChatMlMessageSchema: z- .object({- role: z.string().optional(),- name: z.string().optional(),- content: z- .union([- z.record(z.string(), z.any()),- z.string(),- z.array(z.any()),- z.any(), // Simplified - was OpenAIContentSchema- ])- .nullish(),- audio: z.any().optional(),- additional_kwargs: z.record(z.string(), z.any()).optional(),- tools: z.array(z.any()).optional(),- tool_calls: z.array(z.any()).optional(),- tool_call_id: z.string().optional(),- })- .passthrough(),- };-});+import { readFileSync, existsSync, writeFileSync, readdirSync } from "fs";+import path from "path";import {normalizeInput,@@ -40,8 +8,11 @@ import {combineInputOutputMessages,cleanLegacyOutput,extractAdditionalInput,+ ChatMlArraySchema,} from "@langfuse/shared/src/utils/chatml";+import { deepParseJson } from "@langfuse/shared";+describe("ChatML Integration", () => {it("should handle OpenAI multimodal format", () => {const input = {@@ -527,3 +498,123 @@ describe("ChatML Integration", () => {expect(allMessages).toHaveLength(4);});});++const tracesDir = path.resolve(__dirname, "framework-traces");+const traceFiles = readdirSync(tracesDir).filter((f) =>+ f.endsWith(".trace.json"),+);+// use this to update the expected mapping result when changing/fixing the mapping logic+const updateExpectedFilesOnFailure = false;++describe("ChatML adaption tests against real observations", () => {+ it.each(traceFiles)(+ "should adapt observations from trace file %s ",+ (traceFile: string) => {+ //load trace file+ const fileDir = path.resolve(__dirname, "framework-traces");+ const traceFilePath = path.join(fileDir, traceFile);+ const traceContent = readFileSync(traceFilePath, "utf-8");+ const observations = JSON.parse(traceContent).observations;++ //load expected file+ const expectedFile = traceFile.replace(/\.trace\.json$/, ".chatml.json");+ const expectedFilePath = path.join(fileDir, expectedFile);++ let errorMessage = `File ${expectedFilePath} should exist`;+ expect(existsSync(expectedFilePath), errorMessage).toBe(true);+ const expectedContent = readFileSync(expectedFilePath, "utf-8");+ const expected = JSON.parse(expectedContent) as Record<+ string,+ {+ input?: ReturnType<typeof ChatMlArraySchema.safeParse>;+ output?: ReturnType<typeof ChatMlArraySchema.safeParse>;+ }+ >;++ //check if data has at least one observation with a non undefined input+ errorMessage = `File should have at least one observation with input and output`;+ const hasFilledObs = observations.some((o: any) => o.input && o.output);+ expect(hasFilledObs, errorMessage).toBe(true);++ //test each observation with an input and/or output+ for (const obs of observations) {+ if (obs.input) {+ const expectedInput = expected[obs.id]?.input;+ errorMessage = `Observation ${obs.id} should have an expected input`;+ expect(expectedInput, errorMessage).not.toBeUndefined();++ const inResult = normalizeInput(deepParseJson(obs.input), {+ metadata: deepParseJson(obs.metadata),+ observationName: obs.name,+ });+ const normalizedInResult = JSON.parse(JSON.stringify(inResult));+ errorMessage = `Observation ${obs.id}'s input should be mapped as expected`;+ try {+ expect(normalizedInResult, errorMessage).toEqual(expectedInput);+ } catch (err) {+ if (updateExpectedFilesOnFailure)+ writeToExpectedFile(+ expectedFile,+ obs.id,+ "input",+ normalizedInResult,+ );+ else throw err;+ }+ expect(normalizedInResult, errorMessage).toEqual(expectedInput);+ }+ if (obs.output) {+ const expectedOutput = expected[obs.id]?.output;+ errorMessage = `Observation ${obs.id} should have an expected output`;+ expect(expectedOutput, errorMessage).not.toBeUndefined();++ const outResult = normalizeOutput(deepParseJson(obs.output), {+ metadata: deepParseJson(obs.metadata),+ observationName: obs.name,+ });+ const normalizedOutResult = JSON.parse(JSON.stringify(outResult));+ errorMessage = `Observation ${obs.id}'s output should be mapped as expected`;+ try {+ expect(normalizedOutResult, errorMessage).toEqual(expectedOutput);+ } catch (err) {+ if (updateExpectedFilesOnFailure)+ writeToExpectedFile(+ expectedFile,+ obs.id,+ "output",+ normalizedOutResult,+ );+ else throw err;+ }+ }+ }+ },+ );+});++/**+ * Helper function to write normalized input/output to expected file for a given observation ID and type (input/output).+ */+function writeToExpectedFile(+ expectedFileName: string,+ observationId: string,+ type: "input" | "output",+ data: any,+) {+ const fileDir = path.resolve(__dirname, "framework-traces");+ const expectedFilePath = path.join(fileDir, expectedFileName);++ let expected: Record<string, any> = {};+ if (existsSync(expectedFilePath)) {+ const expectedContent = readFileSync(expectedFilePath, "utf-8");+ expected = JSON.parse(expectedContent);+ } else {+ //create empty file+ writeFileSync(expectedFilePath, JSON.stringify({}, null, 2), "utf-8");+ }++ expected[observationId] = expected[observationId] || {};+ expected[observationId][type] = data;++ writeFileSync(expectedFilePath, JSON.stringify(expected, null, 2), "utf-8");+}