Skip to content

Instantly share code, notes, and snippets.

@mshick
Last active November 1, 2024 02:44
Show Gist options
  • Save mshick/c9b7ce304927f4f97c7873f67a7e4ca8 to your computer and use it in GitHub Desktop.
Save mshick/c9b7ce304927f4f97c7873f67a7e4ca8 to your computer and use it in GitHub Desktop.
arize otel debug
  • Tool Call
    Name fooBar
    Args {foo: 'BAR'}

Hello!

New paragraph.

{
  resource: {
    attributes: {
      'service.name': 'takeshape',
      'telemetry.sdk.language': 'nodejs',
      'telemetry.sdk.name': 'opentelemetry',
      'telemetry.sdk.version': '1.27.0',
      'service.version': 'v1',
      model_id: 'chat:openai:gpt-4o',
      model_version: 'v1'
    }
  },
  instrumentationScope: { name: 'chat', version: 'v1', schemaUrl: undefined },
  traceId: '9df3ee09a38c2682e7c9b3b38350898e',
  parentId: 'b3b057ae475172ef',
  traceState: undefined,
  name: 'ai.generateText.doGenerate',
  id: 'f51952030daf577f',
  kind: 0,
  timestamp: 1730237037791000,
  duration: 834242.458,
  attributes: {
    'session.id': '8f115f6a-a06f-4591-9a5f-f345c34bfb51',
    'user.id': '492f1e41-d810-4ec6-9c9b-29f4448549ff',
    'operation.name': 'ai.generateText.doGenerate',
    'ai.operationId': 'ai.generateText.doGenerate',
    'ai.model.provider': 'openai.chat',
    'ai.model.id': 'gpt-4o',
    'ai.settings.temperature': 0,
    'ai.settings.presencePenalty': 0,
    'ai.settings.frequencyPenalty': 0,
    'ai.prompt.format': 'messages',
    'ai.prompt.messages': `[{"role":"system","content":"You are a helpful assistant who helps the user find a book. Use the getBookList tool to help find a suggestion."},{"role":"user","content":[{"type":"text","text":"can you recommend a book?"}]},{"role":"assistant","content":[{"type":"tool-call","toolCallId":"call_k59WuvPybqNzL6fhJXF2zhtv","toolName":"getBookList","args":{"size":1}}]},{"role":"tool","content":[{"type":"tool-result","toolCallId":"call_k59WuvPybqNzL6fhJXF2zhtv","toolName":"getBookList","result":"{\\"items\\":[],\\"total\\":0}"}]},{"role":"assistant","content":[{"type":"text","text":"I'm sorry, but it seems I couldn't find any book recommendations at the moment. Could you please provide more details or specify a genre or author you're interested in?"}]},{"role":"user","content":[{"type":"text","text":"please?"}]}]`,
    'gen_ai.system': 'openai.chat',
    'gen_ai.request.model': 'gpt-4o',
    'gen_ai.request.frequency_penalty': 0,
    'gen_ai.request.presence_penalty': 0,
    'gen_ai.request.temperature': 0,
    'ai.response.finishReason': 'tool-calls',
    'ai.response.toolCalls': '[{"toolCallType":"function","toolCallId":"call_YLfPezKPLJ3hnJC8R7OloXVV","toolName":"getBookList","args":"{\\"size\\":1}"}]',
    'ai.response.id': 'aitxt-GrgLnFuCN0ex9ZarDSFhswyd',
    'ai.response.model': 'gpt-4o',
    'ai.response.timestamp': '2024-10-29T21:23:58.625Z',
    'ai.usage.promptTokens': 1380,
    'ai.usage.completionTokens': 15,
    'ai.finishReason': 'tool-calls',
    'ai.result.toolCalls': '[{"toolCallType":"function","toolCallId":"call_YLfPezKPLJ3hnJC8R7OloXVV","toolName":"getBookList","args":"{\\"size\\":1}"}]',
    'gen_ai.response.finish_reasons': [ 'tool-calls' ],
    'gen_ai.response.id': 'aitxt-GrgLnFuCN0ex9ZarDSFhswyd',
    'gen_ai.response.model': 'gpt-4o',
    'gen_ai.usage.input_tokens': 1380,
    'gen_ai.usage.output_tokens': 15,
    'openinference.span.kind': 'LLM',
    'llm.model_name': 'gpt-4o',
    'llm.invocation_parameters': '{"temperature":0,"presencePenalty":0,"frequencyPenalty":0}',
    'llm.token_count.completion': 15,
    'llm.token_count.prompt': 1380,
    'llm.output_messages.0.message.role': 'assistant',
    'llm.output_messages.0.message.tool_calls.0.tool_call.function.name': 'getBookList',
    'llm.output_messages.0.message.tool_calls.0.tool_call.function.arguments': '"{\\"size\\":1}"',
    'llm.input_messages.0.message.content': 'You are a helpful assistant who helps the user find a book. Use the getBookList tool to help find a suggestion.',
    'llm.input_messages.0.message.role': 'system',
    'llm.input_messages.1.message.contents.0.message_content.type': 'text',
    'llm.input_messages.1.message.contents.0.message_content.text': 'can you recommend a book?',
    'llm.input_messages.1.message.contents.0.message_content.image': undefined,
    'llm.input_messages.1.message.role': 'user',
    'llm.input_messages.2.message.contents.0.message_content.type': 'tool-call',
    'llm.input_messages.2.message.contents.0.message_content.text': undefined,
    'llm.input_messages.2.message.contents.0.message_content.image': undefined,
    'llm.input_messages.2.message.role': 'assistant',
    'llm.input_messages.3.message.contents.0.message_content.type': 'tool-result',
    'llm.input_messages.3.message.contents.0.message_content.text': undefined,
    'llm.input_messages.3.message.contents.0.message_content.image': undefined,
    'llm.input_messages.3.message.role': 'tool',
    'llm.input_messages.4.message.contents.0.message_content.type': 'text',
    'llm.input_messages.4.message.contents.0.message_content.text': "I'm sorry, but it seems I couldn't find any book recommendations at the moment. Could you please provide more details or specify a genre or author you're interested in?",
    'llm.input_messages.4.message.contents.0.message_content.image': undefined,
    'llm.input_messages.4.message.role': 'assistant',
    'llm.input_messages.5.message.contents.0.message_content.type': 'text',
    'llm.input_messages.5.message.contents.0.message_content.text': 'please?',
    'llm.input_messages.5.message.contents.0.message_content.image': undefined,
    'llm.input_messages.5.message.role': 'user'
  },
  status: { code: 0 },
  events: [],
  links: []
}
{
  resource: {
    attributes: {
      'service.name': 'takeshape',
      'telemetry.sdk.language': 'nodejs',
      'telemetry.sdk.name': 'opentelemetry',
      'telemetry.sdk.version': '1.27.0',
      'service.version': 'v1',
      model_id: 'chat:openai:gpt-4o',
      model_version: 'v1'
    }
  },
  instrumentationScope: { name: 'chat', version: 'v1', schemaUrl: undefined },
  traceId: '9df3ee09a38c2682e7c9b3b38350898e',
  parentId: 'f51952030daf577f',
  traceState: undefined,
  name: 'ai.toolCall',
  id: '0be54eaccce472c7',
  kind: 0,
  timestamp: 1730237038661000,
  duration: 28904.792,
  attributes: {
    'session.id': '8f115f6a-a06f-4591-9a5f-f345c34bfb51',
    'user.id': '492f1e41-d810-4ec6-9c9b-29f4448549ff',
    'operation.name': 'ai.toolCall',
    'ai.operationId': 'ai.toolCall',
    'ai.toolCall.name': 'getBookList',
    'ai.toolCall.id': 'call_YLfPezKPLJ3hnJC8R7OloXVV',
    'ai.toolCall.args': '{"size":1}',
    'ai.toolCall.result': '"{\\"items\\":[],\\"total\\":0}"',
    'openinference.span.kind': 'TOOL',
    'tool.name': 'getBookList',
    'tool.parameters': '{"size":1}',
    'input.value': '{"size":1}',
    'input.mime_type': 'application/json',
    'output.value': '"{\\"items\\":[],\\"total\\":0}"',
    'output.mime_type': 'text/plain'
  },
  status: { code: 0 },
  events: [],
  links: []
}
{
  resource: {
    attributes: {
      'service.name': 'takeshape',
      'telemetry.sdk.language': 'nodejs',
      'telemetry.sdk.name': 'opentelemetry',
      'telemetry.sdk.version': '1.27.0',
      'service.version': 'v1',
      model_id: 'chat:openai:gpt-4o',
      model_version: 'v1'
    }
  },
  instrumentationScope: { name: 'chat', version: 'v1', schemaUrl: undefined },
  traceId: '9df3ee09a38c2682e7c9b3b38350898e',
  parentId: '0be54eaccce472c7',
  traceState: undefined,
  name: 'ai.generateText.doGenerate',
  id: '291cc7dc8df43ed0',
  kind: 0,
  timestamp: 1730237038690000,
  duration: 1527902.459,
  attributes: {
    'session.id': '8f115f6a-a06f-4591-9a5f-f345c34bfb51',
    'user.id': '492f1e41-d810-4ec6-9c9b-29f4448549ff',
    'operation.name': 'ai.generateText.doGenerate',
    'ai.operationId': 'ai.generateText.doGenerate',
    'ai.model.provider': 'openai.chat',
    'ai.model.id': 'gpt-4o',
    'ai.settings.temperature': 0,
    'ai.settings.presencePenalty': 0,
    'ai.settings.frequencyPenalty': 0,
    'ai.prompt.format': 'messages',
    'ai.prompt.messages': `[{"role":"system","content":"You are a helpful assistant who helps the user find a book. Use the getBookList tool to help find a suggestion."},{"role":"user","content":[{"type":"text","text":"can you recommend a book?"}]},{"role":"assistant","content":[{"type":"tool-call","toolCallId":"call_k59WuvPybqNzL6fhJXF2zhtv","toolName":"getBookList","args":{"size":1}}]},{"role":"tool","content":[{"type":"tool-result","toolCallId":"call_k59WuvPybqNzL6fhJXF2zhtv","toolName":"getBookList","result":"{\\"items\\":[],\\"total\\":0}"}]},{"role":"assistant","content":[{"type":"text","text":"I'm sorry, but it seems I couldn't find any book recommendations at the moment. Could you please provide more details or specify a genre or author you're interested in?"}]},{"role":"user","content":[{"type":"text","text":"please?"}]},{"role":"assistant","content":[{"type":"tool-call","toolCallId":"call_YLfPezKPLJ3hnJC8R7OloXVV","toolName":"getBookList","args":{"size":1}}]},{"role":"tool","content":[{"type":"tool-result","toolCallId":"call_YLfPezKPLJ3hnJC8R7OloXVV","toolName":"getBookList","result":"{\\"items\\":[],\\"total\\":0}"}]}]`,
    'gen_ai.system': 'openai.chat',
    'gen_ai.request.model': 'gpt-4o',
    'gen_ai.request.frequency_penalty': 0,
    'gen_ai.request.presence_penalty': 0,
    'gen_ai.request.temperature': 0,
    'ai.response.finishReason': 'stop',
    'ai.response.text': "I'm still unable to find any book recommendations. Could you please provide more specific details, such as a genre, author, or topic you're interested in? This might help me find a suitable suggestion for you.",
    'ai.response.id': 'aitxt-6m0lDYNxAtiBmmRDMxGGrc3Q',
    'ai.response.model': 'gpt-4o',
    'ai.response.timestamp': '2024-10-29T21:24:00.218Z',
    'ai.usage.promptTokens': 1414,
    'ai.usage.completionTokens': 42,
    'ai.finishReason': 'stop',
    'ai.result.text': "I'm still unable to find any book recommendations. Could you please provide more specific details, such as a genre, author, or topic you're interested in? This might help me find a suitable suggestion for you.",
    'gen_ai.response.finish_reasons': [ 'stop' ],
    'gen_ai.response.id': 'aitxt-6m0lDYNxAtiBmmRDMxGGrc3Q',
    'gen_ai.response.model': 'gpt-4o',
    'gen_ai.usage.input_tokens': 1414,
    'gen_ai.usage.output_tokens': 42,
    'openinference.span.kind': 'LLM',
    'llm.model_name': 'gpt-4o',
    'llm.invocation_parameters': '{"temperature":0,"presencePenalty":0,"frequencyPenalty":0}',
    'llm.token_count.completion': 42,
    'llm.token_count.prompt': 1414,
    'output.value': "I'm still unable to find any book recommendations. Could you please provide more specific details, such as a genre, author, or topic you're interested in? This might help me find a suitable suggestion for you.",
    'output.mime_type': 'text/plain',
    'llm.input_messages.0.message.content': 'You are a helpful assistant who helps the user find a book. Use the getBookList tool to help find a suggestion.',
    'llm.input_messages.0.message.role': 'system',
    'llm.input_messages.1.message.contents.0.message_content.type': 'text',
    'llm.input_messages.1.message.contents.0.message_content.text': 'can you recommend a book?',
    'llm.input_messages.1.message.contents.0.message_content.image': undefined,
    'llm.input_messages.1.message.role': 'user',
    'llm.input_messages.2.message.contents.0.message_content.type': 'tool-call',
    'llm.input_messages.2.message.contents.0.message_content.text': undefined,
    'llm.input_messages.2.message.contents.0.message_content.image': undefined,
    'llm.input_messages.2.message.role': 'assistant',
    'llm.input_messages.3.message.contents.0.message_content.type': 'tool-result',
    'llm.input_messages.3.message.contents.0.message_content.text': undefined,
    'llm.input_messages.3.message.contents.0.message_content.image': undefined,
    'llm.input_messages.3.message.role': 'tool',
    'llm.input_messages.4.message.contents.0.message_content.type': 'text',
    'llm.input_messages.4.message.contents.0.message_content.text': "I'm sorry, but it seems I couldn't find any book recommendations at the moment. Could you please provide more details or specify a genre or author you're interested in?",
    'llm.input_messages.4.message.contents.0.message_content.image': undefined,
    'llm.input_messages.4.message.role': 'assistant',
    'llm.input_messages.5.message.contents.0.message_content.type': 'text',
    'llm.input_messages.5.message.contents.0.message_content.text': 'please?',
    'llm.input_messages.5.message.contents.0.message_content.image': undefined,
    'llm.input_messages.5.message.role': 'user',
    'llm.input_messages.6.message.contents.0.message_content.type': 'tool-call',
    'llm.input_messages.6.message.contents.0.message_content.text': undefined,
    'llm.input_messages.6.message.contents.0.message_content.image': undefined,
    'llm.input_messages.6.message.role': 'assistant',
    'llm.input_messages.7.message.contents.0.message_content.type': 'tool-result',
    'llm.input_messages.7.message.contents.0.message_content.text': undefined,
    'llm.input_messages.7.message.contents.0.message_content.image': undefined,
    'llm.input_messages.7.message.role': 'tool'
  },
  status: { code: 0 },
  events: [],
  links: []
}
{
  resource: {
    attributes: {
      'service.name': 'takeshape',
      'telemetry.sdk.language': 'nodejs',
      'telemetry.sdk.name': 'opentelemetry',
      'telemetry.sdk.version': '1.27.0',
      'service.version': 'v1',
      model_id: 'chat:openai:gpt-4o',
      model_version: 'v1'
    }
  },
  instrumentationScope: { name: 'chat', version: 'v1', schemaUrl: undefined },
  traceId: '9df3ee09a38c2682e7c9b3b38350898e',
  parentId: 'e6591cb87f385f86',
  traceState: undefined,
  name: 'ai.generateText',
  id: 'b3b057ae475172ef',
  kind: 0,
  timestamp: 1730237037791000,
  duration: 2428494.25,
  attributes: {
    'session.id': '8f115f6a-a06f-4591-9a5f-f345c34bfb51',
    'user.id': '492f1e41-d810-4ec6-9c9b-29f4448549ff',
    'operation.name': 'ai.generateText',
    'ai.operationId': 'ai.generateText',
    'ai.model.provider': 'openai.chat',
    'ai.model.id': 'gpt-4o',
    'ai.settings.temperature': 0,
    'ai.settings.presencePenalty': 0,
    'ai.settings.frequencyPenalty': 0,
    'ai.prompt': `{"messages":[{"role":"system","content":"You are a helpful assistant who helps the user find a book. Use the getBookList tool to help find a suggestion."},{"role":"user","content":"can you recommend a book?"},{"role":"assistant","content":[{"type":"text","text":""},{"type":"tool-call","toolCallId":"call_k59WuvPybqNzL6fhJXF2zhtv","toolName":"getBookList","args":{"size":1}}]},{"role":"tool","content":[{"type":"tool-result","toolCallId":"call_k59WuvPybqNzL6fhJXF2zhtv","toolName":"getBookList","result":"{\\"items\\":[],\\"total\\":0}"}]},{"role":"assistant","content":[{"type":"text","text":"I'm sorry, but it seems I couldn't find any book recommendations at the moment. Could you please provide more details or specify a genre or author you're interested in?"}]},{"role":"user","content":"please?"}]}`,
    'ai.settings.maxSteps': 11,
    'ai.response.finishReason': 'stop',
    'ai.response.text': "I'm still unable to find any book recommendations. Could you please provide more specific details, such as a genre, author, or topic you're interested in? This might help me find a suitable suggestion for you.",
    'ai.usage.promptTokens': 1414,
    'ai.usage.completionTokens': 42,
    'ai.finishReason': 'stop',
    'ai.result.text': "I'm still unable to find any book recommendations. Could you please provide more specific details, such as a genre, author, or topic you're interested in? This might help me find a suitable suggestion for you.",
    'openinference.span.kind': 'CHAIN',
    'llm.model_name': 'gpt-4o',
    'llm.invocation_parameters': '{"temperature":0,"presencePenalty":0,"frequencyPenalty":0,"maxSteps":11}',
    'output.value': "I'm still unable to find any book recommendations. Could you please provide more specific details, such as a genre, author, or topic you're interested in? This might help me find a suitable suggestion for you.",
    'output.mime_type': 'text/plain',
    'input.value': `{"messages":[{"role":"system","content":"You are a helpful assistant who helps the user find a book. Use the getBookList tool to help find a suggestion."},{"role":"user","content":"can you recommend a book?"},{"role":"assistant","content":[{"type":"text","text":""},{"type":"tool-call","toolCallId":"call_k59WuvPybqNzL6fhJXF2zhtv","toolName":"getBookList","args":{"size":1}}]},{"role":"tool","content":[{"type":"tool-result","toolCallId":"call_k59WuvPybqNzL6fhJXF2zhtv","toolName":"getBookList","result":"{\\"items\\":[],\\"total\\":0}"}]},{"role":"assistant","content":[{"type":"text","text":"I'm sorry, but it seems I couldn't find any book recommendations at the moment. Could you please provide more details or specify a genre or author you're interested in?"}]},{"role":"user","content":"please?"}]}`,
    'input.mime_type': 'application/json'
  },
  status: { code: 0 },
  events: [],
  links: []
}
{
  resource: {
    attributes: {
      'service.name': 'takeshape',
      'telemetry.sdk.language': 'nodejs',
      'telemetry.sdk.name': 'opentelemetry',
      'telemetry.sdk.version': '1.27.0',
      'service.version': 'v1',
      model_id: 'chat:openai:gpt-4o',
      model_version: 'v1'
    }
  },
  instrumentationScope: { name: 'chat', version: 'v1', schemaUrl: undefined },
  traceId: '9df3ee09a38c2682e7c9b3b38350898e',
  parentId: undefined,
  traceState: undefined,
  name: 'ai:chat',
  id: 'e6591cb87f385f86',
  kind: 0,
  timestamp: 1730237037788000,
  duration: 2445102.834,
  attributes: {
    'session.id': '8f115f6a-a06f-4591-9a5f-f345c34bfb51',
    'user.id': '492f1e41-d810-4ec6-9c9b-29f4448549ff',
    'operation.name': 'ai.generateText',
    'openinference.span.kind': 'CHAIN'
  },
  status: { code: 1 },
  events: [],
  links: []
}

Only Openinference

{
  resource: {
    attributes: {
      'service.name': 'takeshape',
      'telemetry.sdk.language': 'nodejs',
      'telemetry.sdk.name': 'opentelemetry',
      'telemetry.sdk.version': '1.27.0',
      'service.version': 'v1',
      model_id: 'chat:openai:gpt-4o',
      model_version: 'v1'
    }
  },
  instrumentationScope: { name: 'chat', version: 'v1', schemaUrl: undefined },
  traceId: '22fd32dbef66da05ebba944c27a75c46',
  parentId: 'a0484cd89123f82d',
  traceState: undefined,
  name: 'ai.generateText.doGenerate',
  id: 'c8c0c3f33b284cc5',
  kind: 0,
  timestamp: 1730237420765000,
  duration: 1781511.292,
  attributes: {
    'session.id': '8f115f6a-a06f-4591-9a5f-f345c34bfb51',
    'user.id': '492f1e41-d810-4ec6-9c9b-29f4448549ff',
    'operation.name': 'ai.generateText.doGenerate',
    'ai.operationId': 'ai.generateText.doGenerate',
    'ai.model.provider': 'openai.chat',
    'ai.model.id': 'gpt-4o',
    'ai.settings.temperature': 0,
    'ai.settings.presencePenalty': 0,
    'ai.settings.frequencyPenalty': 0,
    'ai.prompt.format': 'messages',
    'ai.prompt.messages': `[{"role":"system","content":"You are a helpful assistant who helps the user find a book. Use the getBookList tool to help find a suggestion."},{"role":"user","content":[{"type":"text","text":"can you recommend a book?"}]},{"role":"assistant","content":[{"type":"tool-call","toolCallId":"call_k59WuvPybqNzL6fhJXF2zhtv","toolName":"getBookList","args":{"size":1}}]},{"role":"tool","content":[{"type":"tool-result","toolCallId":"call_k59WuvPybqNzL6fhJXF2zhtv","toolName":"getBookList","result":"{\\"items\\":[],\\"total\\":0}"}]},{"role":"assistant","content":[{"type":"text","text":"I'm sorry, but it seems I couldn't find any book recommendations at the moment. Could you please provide more details or specify a genre or author you're interested in?"}]},{"role":"user","content":[{"type":"text","text":"please?"}]},{"role":"assistant","content":[{"type":"tool-call","toolCallId":"call_YLfPezKPLJ3hnJC8R7OloXVV","toolName":"getBookList","args":{"size":1}}]},{"role":"tool","content":[{"type":"tool-result","toolCallId":"call_YLfPezKPLJ3hnJC8R7OloXVV","toolName":"getBookList","result":"{\\"items\\":[],\\"total\\":0}"}]},{"role":"assistant","content":[{"type":"text","text":"I'm still unable to find any book recommendations. Could you please provide more specific details, such as a genre, author, or topic you're interested in? This might help me find a suitable suggestion for you."}]},{"role":"user","content":[{"type":"text","text":"one more time"}]},{"role":"assistant","content":[{"type":"tool-call","toolCallId":"call_zjb3Df6s1AQSfVDDjkBxL9rI","toolName":"getBookList","args":{"size":1}}]},{"role":"tool","content":[{"type":"tool-result","toolCallId":"call_zjb3Df6s1AQSfVDDjkBxL9rI","toolName":"getBookList","result":"{\\"items\\":[],\\"total\\":0}"}]},{"role":"assistant","content":[{"type":"text","text":"I apologize for the inconvenience, but it seems there are no book recommendations available at the moment. If you have any specific preferences or criteria, please let me know, and I'll do my best to assist you!"}]},{"role":"user","content":[{"type":"text","text":"now?"}]}]`,
    'gen_ai.system': 'openai.chat',
    'gen_ai.request.model': 'gpt-4o',
    'gen_ai.request.frequency_penalty': 0,
    'gen_ai.request.presence_penalty': 0,
    'gen_ai.request.temperature': 0,
    'ai.response.finishReason': 'tool-calls',
    'ai.response.toolCalls': '[{"toolCallType":"function","toolCallId":"call_6Zy8xN6FExdlzR1XXrSldgBd","toolName":"getBookList","args":"{\\"size\\":1}"}]',
    'ai.response.id': 'aitxt-wLQ1NXtDh6L4GgzcR9JfHsxL',
    'ai.response.model': 'gpt-4o',
    'ai.response.timestamp': '2024-10-29T21:30:22.546Z',
    'ai.usage.promptTokens': 1552,
    'ai.usage.completionTokens': 15,
    'ai.finishReason': 'tool-calls',
    'ai.result.toolCalls': '[{"toolCallType":"function","toolCallId":"call_6Zy8xN6FExdlzR1XXrSldgBd","toolName":"getBookList","args":"{\\"size\\":1}"}]',
    'gen_ai.response.finish_reasons': [ 'tool-calls' ],
    'gen_ai.response.id': 'aitxt-wLQ1NXtDh6L4GgzcR9JfHsxL',
    'gen_ai.response.model': 'gpt-4o',
    'gen_ai.usage.input_tokens': 1552,
    'gen_ai.usage.output_tokens': 15,
    'openinference.span.kind': 'LLM',
    'llm.model_name': 'gpt-4o',
    'llm.invocation_parameters': '{"temperature":0,"presencePenalty":0,"frequencyPenalty":0}',
    'llm.token_count.completion': 15,
    'llm.token_count.prompt': 1552,
    'llm.output_messages.0.message.role': 'assistant',
    'llm.output_messages.0.message.tool_calls.0.tool_call.function.name': 'getBookList',
    'llm.output_messages.0.message.tool_calls.0.tool_call.function.arguments': '"{\\"size\\":1}"',
    'llm.input_messages.0.message.content': 'You are a helpful assistant who helps the user find a book. Use the getBookList tool to help find a suggestion.',
    'llm.input_messages.0.message.role': 'system',
    'llm.input_messages.1.message.contents.0.message_content.type': 'text',
    'llm.input_messages.1.message.contents.0.message_content.text': 'can you recommend a book?',
    'llm.input_messages.1.message.contents.0.message_content.image': undefined,
    'llm.input_messages.1.message.role': 'user',
    'llm.input_messages.2.message.contents.0.message_content.type': 'tool-call',
    'llm.input_messages.2.message.contents.0.message_content.text': undefined,
    'llm.input_messages.2.message.contents.0.message_content.image': undefined,
    'llm.input_messages.2.message.role': 'assistant',
    'llm.input_messages.3.message.contents.0.message_content.type': 'tool-result',
    'llm.input_messages.3.message.contents.0.message_content.text': undefined,
    'llm.input_messages.3.message.contents.0.message_content.image': undefined,
    'llm.input_messages.3.message.role': 'tool',
    'llm.input_messages.4.message.contents.0.message_content.type': 'text',
    'llm.input_messages.4.message.contents.0.message_content.text': "I'm sorry, but it seems I couldn't find any book recommendations at the moment. Could you please provide more details or specify a genre or author you're interested in?",
    'llm.input_messages.4.message.contents.0.message_content.image': undefined,
    'llm.input_messages.4.message.role': 'assistant',
    'llm.input_messages.5.message.contents.0.message_content.type': 'text',
    'llm.input_messages.5.message.contents.0.message_content.text': 'please?',
    'llm.input_messages.5.message.contents.0.message_content.image': undefined,
    'llm.input_messages.5.message.role': 'user',
    'llm.input_messages.6.message.contents.0.message_content.type': 'tool-call',
    'llm.input_messages.6.message.contents.0.message_content.text': undefined,
    'llm.input_messages.6.message.contents.0.message_content.image': undefined,
    'llm.input_messages.6.message.role': 'assistant',
    'llm.input_messages.7.message.contents.0.message_content.type': 'tool-result',
    'llm.input_messages.7.message.contents.0.message_content.text': undefined,
    'llm.input_messages.7.message.contents.0.message_content.image': undefined,
    'llm.input_messages.7.message.role': 'tool',
    'llm.input_messages.8.message.contents.0.message_content.type': 'text',
    'llm.input_messages.8.message.contents.0.message_content.text': "I'm still unable to find any book recommendations. Could you please provide more specific details, such as a genre, author, or topic you're interested in? This might help me find a suitable suggestion for you.",
    'llm.input_messages.8.message.contents.0.message_content.image': undefined,
    'llm.input_messages.8.message.role': 'assistant',
    'llm.input_messages.9.message.contents.0.message_content.type': 'text',
    'llm.input_messages.9.message.contents.0.message_content.text': 'one more time',
    'llm.input_messages.9.message.contents.0.message_content.image': undefined,
    'llm.input_messages.9.message.role': 'user',
    'llm.input_messages.10.message.contents.0.message_content.type': 'tool-call',
    'llm.input_messages.10.message.contents.0.message_content.text': undefined,
    'llm.input_messages.10.message.contents.0.message_content.image': undefined,
    'llm.input_messages.10.message.role': 'assistant',
    'llm.input_messages.11.message.contents.0.message_content.type': 'tool-result',
    'llm.input_messages.11.message.contents.0.message_content.text': undefined,
    'llm.input_messages.11.message.contents.0.message_content.image': undefined,
    'llm.input_messages.11.message.role': 'tool',
    'llm.input_messages.12.message.contents.0.message_content.type': 'text',
    'llm.input_messages.12.message.contents.0.message_content.text': "I apologize for the inconvenience, but it seems there are no book recommendations available at the moment. If you have any specific preferences or criteria, please let me know, and I'll do my best to assist you!",
    'llm.input_messages.12.message.contents.0.message_content.image': undefined,
    'llm.input_messages.12.message.role': 'assistant',
    'llm.input_messages.13.message.contents.0.message_content.type': 'text',
    'llm.input_messages.13.message.contents.0.message_content.text': 'now?',
    'llm.input_messages.13.message.contents.0.message_content.image': undefined,
    'llm.input_messages.13.message.role': 'user'
  },
  status: { code: 0 },
  events: [],
  links: []
}
{
  resource: {
    attributes: {
      'service.name': 'takeshape',
      'telemetry.sdk.language': 'nodejs',
      'telemetry.sdk.name': 'opentelemetry',
      'telemetry.sdk.version': '1.27.0',
      'service.version': 'v1',
      model_id: 'chat:openai:gpt-4o',
      model_version: 'v1'
    }
  },
  instrumentationScope: { name: 'chat', version: 'v1', schemaUrl: undefined },
  traceId: '22fd32dbef66da05ebba944c27a75c46',
  parentId: 'c8c0c3f33b284cc5',
  traceState: undefined,
  name: 'ai.toolCall',
  id: 'b28f2a3a80b466d7',
  kind: 0,
  timestamp: 1730237422591000,
  duration: 28737.25,
  attributes: {
    'session.id': '8f115f6a-a06f-4591-9a5f-f345c34bfb51',
    'user.id': '492f1e41-d810-4ec6-9c9b-29f4448549ff',
    'operation.name': 'ai.toolCall',
    'ai.operationId': 'ai.toolCall',
    'ai.toolCall.name': 'getBookList',
    'ai.toolCall.id': 'call_6Zy8xN6FExdlzR1XXrSldgBd',
    'ai.toolCall.args': '{"size":1}',
    'ai.toolCall.result': '"{\\"items\\":[],\\"total\\":0}"',
    'openinference.span.kind': 'TOOL',
    'tool.name': 'getBookList',
    'tool.parameters': '{"size":1}',
    'input.value': '{"size":1}',
    'input.mime_type': 'application/json',
    'output.value': '"{\\"items\\":[],\\"total\\":0}"',
    'output.mime_type': 'text/plain'
  },
  status: { code: 0 },
  events: [],
  links: []
}
{
  resource: {
    attributes: {
      'service.name': 'takeshape',
      'telemetry.sdk.language': 'nodejs',
      'telemetry.sdk.name': 'opentelemetry',
      'telemetry.sdk.version': '1.27.0',
      'service.version': 'v1',
      model_id: 'chat:openai:gpt-4o',
      model_version: 'v1'
    }
  },
  instrumentationScope: { name: 'chat', version: 'v1', schemaUrl: undefined },
  traceId: '22fd32dbef66da05ebba944c27a75c46',
  parentId: 'b28f2a3a80b466d7',
  traceState: undefined,
  name: 'ai.generateText.doGenerate',
  id: 'ad73813e1f6d6265',
  kind: 0,
  timestamp: 1730237422621000,
  duration: 1318552.708,
  attributes: {
    'session.id': '8f115f6a-a06f-4591-9a5f-f345c34bfb51',
    'user.id': '492f1e41-d810-4ec6-9c9b-29f4448549ff',
    'operation.name': 'ai.generateText.doGenerate',
    'ai.operationId': 'ai.generateText.doGenerate',
    'ai.model.provider': 'openai.chat',
    'ai.model.id': 'gpt-4o',
    'ai.settings.temperature': 0,
    'ai.settings.presencePenalty': 0,
    'ai.settings.frequencyPenalty': 0,
    'ai.prompt.format': 'messages',
    'ai.prompt.messages': `[{"role":"system","content":"You are a helpful assistant who helps the user find a book. Use the getBookList tool to help find a suggestion."},{"role":"user","content":[{"type":"text","text":"can you recommend a book?"}]},{"role":"assistant","content":[{"type":"tool-call","toolCallId":"call_k59WuvPybqNzL6fhJXF2zhtv","toolName":"getBookList","args":{"size":1}}]},{"role":"tool","content":[{"type":"tool-result","toolCallId":"call_k59WuvPybqNzL6fhJXF2zhtv","toolName":"getBookList","result":"{\\"items\\":[],\\"total\\":0}"}]},{"role":"assistant","content":[{"type":"text","text":"I'm sorry, but it seems I couldn't find any book recommendations at the moment. Could you please provide more details or specify a genre or author you're interested in?"}]},{"role":"user","content":[{"type":"text","text":"please?"}]},{"role":"assistant","content":[{"type":"tool-call","toolCallId":"call_YLfPezKPLJ3hnJC8R7OloXVV","toolName":"getBookList","args":{"size":1}}]},{"role":"tool","content":[{"type":"tool-result","toolCallId":"call_YLfPezKPLJ3hnJC8R7OloXVV","toolName":"getBookList","result":"{\\"items\\":[],\\"total\\":0}"}]},{"role":"assistant","content":[{"type":"text","text":"I'm still unable to find any book recommendations. Could you please provide more specific details, such as a genre, author, or topic you're interested in? This might help me find a suitable suggestion for you."}]},{"role":"user","content":[{"type":"text","text":"one more time"}]},{"role":"assistant","content":[{"type":"tool-call","toolCallId":"call_zjb3Df6s1AQSfVDDjkBxL9rI","toolName":"getBookList","args":{"size":1}}]},{"role":"tool","content":[{"type":"tool-result","toolCallId":"call_zjb3Df6s1AQSfVDDjkBxL9rI","toolName":"getBookList","result":"{\\"items\\":[],\\"total\\":0}"}]},{"role":"assistant","content":[{"type":"text","text":"I apologize for the inconvenience, but it seems there are no book recommendations available at the moment. If you have any specific preferences or criteria, please let me know, and I'll do my best to assist you!"}]},{"role":"user","content":[{"type":"text","text":"now?"}]},{"role":"assistant","content":[{"type":"tool-call","toolCallId":"call_6Zy8xN6FExdlzR1XXrSldgBd","toolName":"getBookList","args":{"size":1}}]},{"role":"tool","content":[{"type":"tool-result","toolCallId":"call_6Zy8xN6FExdlzR1XXrSldgBd","toolName":"getBookList","result":"{\\"items\\":[],\\"total\\":0}"}]}]`,
    'gen_ai.system': 'openai.chat',
    'gen_ai.request.model': 'gpt-4o',
    'gen_ai.request.frequency_penalty': 0,
    'gen_ai.request.presence_penalty': 0,
    'gen_ai.request.temperature': 0,
    'ai.response.finishReason': 'stop',
    'ai.response.text': "I'm still unable to find any book recommendations. If you have any specific preferences, such as a genre, author, or topic, please let me know, and I'll try to assist you further!",
    'ai.response.id': 'aitxt-0azUglq0bd8tEPjOAfQ4K5sU',
    'ai.response.model': 'gpt-4o',
    'ai.response.timestamp': '2024-10-29T21:30:23.939Z',
    'ai.usage.promptTokens': 1586,
    'ai.usage.completionTokens': 40,
    'ai.finishReason': 'stop',
    'ai.result.text': "I'm still unable to find any book recommendations. If you have any specific preferences, such as a genre, author, or topic, please let me know, and I'll try to assist you further!",
    'gen_ai.response.finish_reasons': [ 'stop' ],
    'gen_ai.response.id': 'aitxt-0azUglq0bd8tEPjOAfQ4K5sU',
    'gen_ai.response.model': 'gpt-4o',
    'gen_ai.usage.input_tokens': 1586,
    'gen_ai.usage.output_tokens': 40,
    'openinference.span.kind': 'LLM',
    'llm.model_name': 'gpt-4o',
    'llm.invocation_parameters': '{"temperature":0,"presencePenalty":0,"frequencyPenalty":0}',
    'llm.token_count.completion': 40,
    'llm.token_count.prompt': 1586,
    'output.value': "I'm still unable to find any book recommendations. If you have any specific preferences, such as a genre, author, or topic, please let me know, and I'll try to assist you further!",
    'output.mime_type': 'text/plain',
    'llm.input_messages.0.message.content': 'You are a helpful assistant who helps the user find a book. Use the getBookList tool to help find a suggestion.',
    'llm.input_messages.0.message.role': 'system',
    'llm.input_messages.1.message.contents.0.message_content.type': 'text',
    'llm.input_messages.1.message.contents.0.message_content.text': 'can you recommend a book?',
    'llm.input_messages.1.message.contents.0.message_content.image': undefined,
    'llm.input_messages.1.message.role': 'user',
    'llm.input_messages.2.message.contents.0.message_content.type': 'tool-call',
    'llm.input_messages.2.message.contents.0.message_content.text': undefined,
    'llm.input_messages.2.message.contents.0.message_content.image': undefined,
    'llm.input_messages.2.message.role': 'assistant',
    'llm.input_messages.3.message.contents.0.message_content.type': 'tool-result',
    'llm.input_messages.3.message.contents.0.message_content.text': undefined,
    'llm.input_messages.3.message.contents.0.message_content.image': undefined,
    'llm.input_messages.3.message.role': 'tool',
    'llm.input_messages.4.message.contents.0.message_content.type': 'text',
    'llm.input_messages.4.message.contents.0.message_content.text': "I'm sorry, but it seems I couldn't find any book recommendations at the moment. Could you please provide more details or specify a genre or author you're interested in?",
    'llm.input_messages.4.message.contents.0.message_content.image': undefined,
    'llm.input_messages.4.message.role': 'assistant',
    'llm.input_messages.5.message.contents.0.message_content.type': 'text',
    'llm.input_messages.5.message.contents.0.message_content.text': 'please?',
    'llm.input_messages.5.message.contents.0.message_content.image': undefined,
    'llm.input_messages.5.message.role': 'user',
    'llm.input_messages.6.message.contents.0.message_content.type': 'tool-call',
    'llm.input_messages.6.message.contents.0.message_content.text': undefined,
    'llm.input_messages.6.message.contents.0.message_content.image': undefined,
    'llm.input_messages.6.message.role': 'assistant',
    'llm.input_messages.7.message.contents.0.message_content.type': 'tool-result',
    'llm.input_messages.7.message.contents.0.message_content.text': undefined,
    'llm.input_messages.7.message.contents.0.message_content.image': undefined,
    'llm.input_messages.7.message.role': 'tool',
    'llm.input_messages.8.message.contents.0.message_content.type': 'text',
    'llm.input_messages.8.message.contents.0.message_content.text': "I'm still unable to find any book recommendations. Could you please provide more specific details, such as a genre, author, or topic you're interested in? This might help me find a suitable suggestion for you.",
    'llm.input_messages.8.message.contents.0.message_content.image': undefined,
    'llm.input_messages.8.message.role': 'assistant',
    'llm.input_messages.9.message.contents.0.message_content.type': 'text',
    'llm.input_messages.9.message.contents.0.message_content.text': 'one more time',
    'llm.input_messages.9.message.contents.0.message_content.image': undefined,
    'llm.input_messages.9.message.role': 'user',
    'llm.input_messages.10.message.contents.0.message_content.type': 'tool-call',
    'llm.input_messages.10.message.contents.0.message_content.text': undefined,
    'llm.input_messages.10.message.contents.0.message_content.image': undefined,
    'llm.input_messages.10.message.role': 'assistant',
    'llm.input_messages.11.message.contents.0.message_content.type': 'tool-result',
    'llm.input_messages.11.message.contents.0.message_content.text': undefined,
    'llm.input_messages.11.message.contents.0.message_content.image': undefined,
    'llm.input_messages.11.message.role': 'tool',
    'llm.input_messages.12.message.contents.0.message_content.type': 'text',
    'llm.input_messages.12.message.contents.0.message_content.text': "I apologize for the inconvenience, but it seems there are no book recommendations available at the moment. If you have any specific preferences or criteria, please let me know, and I'll do my best to assist you!",
    'llm.input_messages.12.message.contents.0.message_content.image': undefined,
    'llm.input_messages.12.message.role': 'assistant',
    'llm.input_messages.13.message.contents.0.message_content.type': 'text',
    'llm.input_messages.13.message.contents.0.message_content.text': 'now?',
    'llm.input_messages.13.message.contents.0.message_content.image': undefined,
    'llm.input_messages.13.message.role': 'user',
    'llm.input_messages.14.message.contents.0.message_content.type': 'tool-call',
    'llm.input_messages.14.message.contents.0.message_content.text': undefined,
    'llm.input_messages.14.message.contents.0.message_content.image': undefined,
    'llm.input_messages.14.message.role': 'assistant',
    'llm.input_messages.15.message.contents.0.message_content.type': 'tool-result',
    'llm.input_messages.15.message.contents.0.message_content.text': undefined,
    'llm.input_messages.15.message.contents.0.message_content.image': undefined,
    'llm.input_messages.15.message.role': 'tool'
  },
  status: { code: 0 },
  events: [],
  links: []
}
{
  resource: {
    attributes: {
      'service.name': 'takeshape',
      'telemetry.sdk.language': 'nodejs',
      'telemetry.sdk.name': 'opentelemetry',
      'telemetry.sdk.version': '1.27.0',
      'service.version': 'v1',
      model_id: 'chat:openai:gpt-4o',
      model_version: 'v1'
    }
  },
  instrumentationScope: { name: 'chat', version: 'v1', schemaUrl: undefined },
  traceId: '22fd32dbef66da05ebba944c27a75c46',
  parentId: '8000c050cf4a81f1',
  traceState: undefined,
  name: 'ai.generateText',
  id: 'a0484cd89123f82d',
  kind: 0,
  timestamp: 1730237420764000,
  duration: 3178812.916,
  attributes: {
    'session.id': '8f115f6a-a06f-4591-9a5f-f345c34bfb51',
    'user.id': '492f1e41-d810-4ec6-9c9b-29f4448549ff',
    'operation.name': 'ai.generateText',
    'ai.operationId': 'ai.generateText',
    'ai.model.provider': 'openai.chat',
    'ai.model.id': 'gpt-4o',
    'ai.settings.temperature': 0,
    'ai.settings.presencePenalty': 0,
    'ai.settings.frequencyPenalty': 0,
    'ai.prompt': `{"messages":[{"role":"system","content":"You are a helpful assistant who helps the user find a book. Use the getBookList tool to help find a suggestion."},{"role":"user","content":"can you recommend a book?"},{"role":"assistant","content":[{"type":"text","text":""},{"type":"tool-call","toolCallId":"call_k59WuvPybqNzL6fhJXF2zhtv","toolName":"getBookList","args":{"size":1}}]},{"role":"tool","content":[{"type":"tool-result","toolCallId":"call_k59WuvPybqNzL6fhJXF2zhtv","toolName":"getBookList","result":"{\\"items\\":[],\\"total\\":0}"}]},{"role":"assistant","content":[{"type":"text","text":"I'm sorry, but it seems I couldn't find any book recommendations at the moment. Could you please provide more details or specify a genre or author you're interested in?"}]},{"role":"user","content":"please?"},{"role":"assistant","content":[{"type":"text","text":""},{"type":"tool-call","toolCallId":"call_YLfPezKPLJ3hnJC8R7OloXVV","toolName":"getBookList","args":{"size":1}}]},{"role":"tool","content":[{"type":"tool-result","toolCallId":"call_YLfPezKPLJ3hnJC8R7OloXVV","toolName":"getBookList","result":"{\\"items\\":[],\\"total\\":0}"}]},{"role":"assistant","content":[{"type":"text","text":"I'm still unable to find any book recommendations. Could you please provide more specific details, such as a genre, author, or topic you're interested in? This might help me find a suitable suggestion for you."}]},{"role":"user","content":"one more time"},{"role":"assistant","content":[{"type":"text","text":""},{"type":"tool-call","toolCallId":"call_zjb3Df6s1AQSfVDDjkBxL9rI","toolName":"getBookList","args":{"size":1}}]},{"role":"tool","content":[{"type":"tool-result","toolCallId":"call_zjb3Df6s1AQSfVDDjkBxL9rI","toolName":"getBookList","result":"{\\"items\\":[],\\"total\\":0}"}]},{"role":"assistant","content":[{"type":"text","text":"I apologize for the inconvenience, but it seems there are no book recommendations available at the moment. If you have any specific preferences or criteria, please let me know, and I'll do my best to assist you!"}]},{"role":"user","content":"now?"}]}`,
    'ai.settings.maxSteps': 11,
    'ai.response.finishReason': 'stop',
    'ai.response.text': "I'm still unable to find any book recommendations. If you have any specific preferences, such as a genre, author, or topic, please let me know, and I'll try to assist you further!",
    'ai.usage.promptTokens': 1586,
    'ai.usage.completionTokens': 40,
    'ai.finishReason': 'stop',
    'ai.result.text': "I'm still unable to find any book recommendations. If you have any specific preferences, such as a genre, author, or topic, please let me know, and I'll try to assist you further!",
    'openinference.span.kind': 'CHAIN',
    'llm.model_name': 'gpt-4o',
    'llm.invocation_parameters': '{"temperature":0,"presencePenalty":0,"frequencyPenalty":0,"maxSteps":11}',
    'output.value': "I'm still unable to find any book recommendations. If you have any specific preferences, such as a genre, author, or topic, please let me know, and I'll try to assist you further!",
    'output.mime_type': 'text/plain',
    'input.value': `{"messages":[{"role":"system","content":"You are a helpful assistant who helps the user find a book. Use the getBookList tool to help find a suggestion."},{"role":"user","content":"can you recommend a book?"},{"role":"assistant","content":[{"type":"text","text":""},{"type":"tool-call","toolCallId":"call_k59WuvPybqNzL6fhJXF2zhtv","toolName":"getBookList","args":{"size":1}}]},{"role":"tool","content":[{"type":"tool-result","toolCallId":"call_k59WuvPybqNzL6fhJXF2zhtv","toolName":"getBookList","result":"{\\"items\\":[],\\"total\\":0}"}]},{"role":"assistant","content":[{"type":"text","text":"I'm sorry, but it seems I couldn't find any book recommendations at the moment. Could you please provide more details or specify a genre or author you're interested in?"}]},{"role":"user","content":"please?"},{"role":"assistant","content":[{"type":"text","text":""},{"type":"tool-call","toolCallId":"call_YLfPezKPLJ3hnJC8R7OloXVV","toolName":"getBookList","args":{"size":1}}]},{"role":"tool","content":[{"type":"tool-result","toolCallId":"call_YLfPezKPLJ3hnJC8R7OloXVV","toolName":"getBookList","result":"{\\"items\\":[],\\"total\\":0}"}]},{"role":"assistant","content":[{"type":"text","text":"I'm still unable to find any book recommendations. Could you please provide more specific details, such as a genre, author, or topic you're interested in? This might help me find a suitable suggestion for you."}]},{"role":"user","content":"one more time"},{"role":"assistant","content":[{"type":"text","text":""},{"type":"tool-call","toolCallId":"call_zjb3Df6s1AQSfVDDjkBxL9rI","toolName":"getBookList","args":{"size":1}}]},{"role":"tool","content":[{"type":"tool-result","toolCallId":"call_zjb3Df6s1AQSfVDDjkBxL9rI","toolName":"getBookList","result":"{\\"items\\":[],\\"total\\":0}"}]},{"role":"assistant","content":[{"type":"text","text":"I apologize for the inconvenience, but it seems there are no book recommendations available at the moment. If you have any specific preferences or criteria, please let me know, and I'll do my best to assist you!"}]},{"role":"user","content":"now?"}]}`,
    'input.mime_type': 'application/json'
  },
  status: { code: 0 },
  events: [],
  links: []
}
{
  resource: {
    attributes: {
      'service.name': 'takeshape',
      'telemetry.sdk.language': 'nodejs',
      'telemetry.sdk.name': 'opentelemetry',
      'telemetry.sdk.version': '1.27.0',
      'service.version': 'v1',
      model_id: 'chat:openai:gpt-4o',
      model_version: 'v1'
    }
  },
  instrumentationScope: { name: 'chat', version: 'v1', schemaUrl: undefined },
  traceId: '22fd32dbef66da05ebba944c27a75c46',
  parentId: undefined,
  traceState: undefined,
  name: 'ai:chat',
  id: '8000c050cf4a81f1',
  kind: 0,
  timestamp: 1730237420758000,
  duration: 3227236.292,
  attributes: {
    'session.id': '8f115f6a-a06f-4591-9a5f-f345c34bfb51',
    'user.id': '492f1e41-d810-4ec6-9c9b-29f4448549ff',
    'operation.name': 'ai.generateText',
    'openinference.span.kind': 'CHAIN'
  },
  status: { code: 1 },
  events: [],
  links: []
}
{
  "schemaId": "production~82f94c95-7b45-4900-8ae5-4dcd7e3181a2",
  "messages": "[{\"role\":\"system\",\"content\":\"You are a helpful assistant who helps the user find a book. Use the getBookList tool to help find a suggestion.\"},{\"role\":\"user\",\"content\":\"Can you recommend a book?\"},{\"role\":\"assistant\",\"content\":[{\"type\":\"text\",\"text\":\"\"},{\"type\":\"tool-call\",\"toolCallId\":\"call_TBAaUNoFRlCiv9kNc7iiVB2u\",\"toolName\":\"getBookList\",\"args\":{\"size\":1}}]},{\"role\":\"tool\",\"content\":[{\"type\":\"tool-result\",\"toolCallId\":\"call_TBAaUNoFRlCiv9kNc7iiVB2u\",\"toolName\":\"getBookList\"}]},{\"role\":\"assistant\",\"content\":[{\"type\":\"text\",\"text\":\"I'm sorry, but it seems I couldn't find any book recommendations at the moment. Could you please provide more details or specify a genre or author you're interested in?\"}]},{\"role\":\"user\",\"content\":\"Any book\"},{\"role\":\"assistant\",\"content\":[{\"type\":\"text\",\"text\":\"\"},{\"type\":\"tool-call\",\"toolCallId\":\"call_dFyPM5yeEFyP1jlRqJUqduLd\",\"toolName\":\"getBookList\",\"args\":{\"size\":1}}]},{\"role\":\"tool\",\"content\":[{\"type\":\"tool-result\",\"toolCallId\":\"call_dFyPM5yeEFyP1jlRqJUqduLd\",\"toolName\":\"getBookList\",\"result\":{\"items\":[],\"total\":0}}]},{\"role\":\"assistant\",\"content\":[{\"type\":\"text\",\"text\":\"I apologize, but it seems there are no book recommendations available at the moment. Could you try specifying a particular genre, author, or topic you are interested in? This might help in finding a suitable book for you.\"}]}]",
  "sessionId": "ca98b835-08f3-4916-b724-157c34d3fe90",
  "__updatedRegion": "us-east-1",
  "projectId": "82f94c95-7b45-4900-8ae5-4dcd7e3181a2",
  "ttl": 1730394580,
  "updated": 1730308180262
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment