Skip to content

Instantly share code, notes, and snippets.

@kausmeows
Created August 1, 2025 11:17
Show Gist options
  • Select an option

  • Save kausmeows/bd32726a56de601b6e63281f6589ddcb to your computer and use it in GitHub Desktop.

Select an option

Save kausmeows/bd32726a56de601b6e63281f6589ddcb to your computer and use it in GitHub Desktop.
[
{
"content": "Je vais bien, merci ! Comment puis-je vous aider aujourd'hui ?",
"content_type": "str",
"metrics": {
"input_tokens": 81,
"output_tokens": 14,
"total_tokens": 95,
"prompt_tokens": 81,
"completion_tokens": 14,
"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": 1.492022333201021,
"time_to_first_token": 1.2560338750481606
},
"model": "gpt-4o",
"model_provider": "OpenAI",
"run_id": "1d772c03-f254-4b85-8ca4-4df58591eedb",
"agent_id": "81ec4481-f848-47d6-81eb-8a98187d8e18",
"agent_name": "French Agent",
"session_id": "f69d3258-1c12-492d-be40-b57fc57169e9",
"team_session_id": "f69d3258-1c12-492d-be40-b57fc57169e9",
"parent_run_id": "1133f62f-7437-4368-9610-0e56f9f295d6",
"created_at": 1754046345,
"status": "COMPLETED",
"messages": [
{
"content": "<your_role>\nYou can only answer in French\n</your_role>\n\n<instructions>\nYou must only respond in French\n</instructions>\n\n<additional_information>\n- Use markdown to format your answers.\n</additional_information>",
"from_history": false,
"stop_after_tool_call": false,
"role": "system",
"created_at": 1754046345
},
{
"content": "Comment allez-vous?\n\n<expected_output>\nJe vais bien, merci ! Comment puis-je vous aider aujourd'hui ?\n</expected_output>",
"from_history": false,
"stop_after_tool_call": false,
"role": "user",
"created_at": 1754046345
},
{
"content": "Je vais bien, merci ! Comment puis-je vous aider aujourd'hui ?",
"from_history": false,
"stop_after_tool_call": false,
"role": "assistant",
"metrics": {
"input_tokens": 81,
"output_tokens": 14,
"total_tokens": 95,
"prompt_tokens": 81,
"completion_tokens": 14,
"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": 1.492022333201021,
"time_to_first_token": 1.2560338750481606
},
"created_at": 1754046345
}
]
},
{
"content": "Je vais bien, merci ! Comment puis-je vous aider aujourd'hui ?",
"content_type": "str",
"metrics": {
"input_tokens": 471,
"output_tokens": 37,
"total_tokens": 508,
"prompt_tokens": 471,
"completion_tokens": 37,
"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": 1.973340000025928,
"time_to_first_token": 1.5605906671844423
},
"model": "gpt-4o",
"model_provider": "OpenAI",
"member_responses": [],
"run_id": "1133f62f-7437-4368-9610-0e56f9f295d6",
"team_id": "23fb2f78-0179-4b43-9a22-9af26ced95f3",
"team_name": "Multi Language Team",
"session_id": "f69d3258-1c12-492d-be40-b57fc57169e9",
"formatted_tool_calls": [
"forward_task_to_member(member_id=french-agent, expected_output=Je vais bien, merci ! Comment puis-je vous aider aujourd'hui ?)"
],
"created_at": 1754046343,
"status": "RUNNING",
"messages": [
{
"content": "You are the leader of a team and sub-teams of AI Agents.\nYour task is to coordinate the team to complete the user's request.\n\nHere are the members in your team:\n<team_members>\n - Agent 1:\n - ID: french-agent\n - Name: French Agent\n - Role: You can only answer in French\n - Agent 2:\n - ID: english-agent\n - Name: English Agent\n - Role: You can only answer in English\n</team_members>\n\n<how_to_respond>\n- You can either respond directly or forward tasks to members in your team with the highest likelihood of completing the user's request.\n- Carefully analyze the tools available to the members and their roles before forwarding tasks.\n- When you forward a task to another Agent, make sure to include:\n - member_id (str): The ID of the member to forward the task to. Use only the ID of the member, not the ID of the team followed by the ID of the member.\n - expected_output (str): The expected output.\n- You can forward tasks to multiple members at once.\n</how_to_respond>\n\nYour name is: Multi Language Team\n\n<instructions>\n- You are a language router that directs questions to the appropriate language agent.\n- If the user asks in a language whose agent is not a team member, respond in English with:\n- 'I can only answer in the following languages: English, Spanish, Japanese, French and German. Please ask your question in one of these languages.'\n- Always check the language of the user's input before routing to an agent.\n- For unsupported languages like Italian, respond in English with the above message.\n</instructions>\n\n<additional_information>\n- Use markdown to format your answers.\n</additional_information>",
"from_history": false,
"stop_after_tool_call": false,
"role": "system",
"created_at": 1754046343
},
{
"content": "Comment allez-vous?",
"from_history": false,
"stop_after_tool_call": false,
"role": "user",
"created_at": 1754046343
},
{
"from_history": false,
"stop_after_tool_call": false,
"role": "assistant",
"tool_calls": [
{
"id": "call_qDuP3hh6D2abULPrYuqC6h06",
"type": "function",
"function": {
"name": "forward_task_to_member",
"arguments": "{\"member_id\":\"french-agent\",\"expected_output\":\"Je vais bien, merci ! Comment puis-je vous aider aujourd'hui ?\"}"
}
}
],
"metrics": {
"input_tokens": 471,
"output_tokens": 37,
"total_tokens": 508,
"prompt_tokens": 471,
"completion_tokens": 37,
"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": 1.973340000025928,
"time_to_first_token": 1.5605906671844423
},
"created_at": 1754046343
},
{
"content": "Je vais bien, merci ! Comment puis-je vous aider aujourd'hui ?",
"from_history": false,
"stop_after_tool_call": true,
"role": "tool",
"tool_call_id": "call_qDuP3hh6D2abULPrYuqC6h06",
"tool_name": "forward_task_to_member",
"tool_args": {
"member_id": "french-agent",
"expected_output": "Je vais bien, merci ! Comment puis-je vous aider aujourd'hui ?"
},
"tool_call_error": false,
"metrics": {
"time": 0.00043441588059067726
},
"created_at": 1754046347
}
],
"tools": [
{
"tool_call_id": "call_qDuP3hh6D2abULPrYuqC6h06",
"tool_name": "forward_task_to_member",
"tool_args": {
"member_id": "french-agent",
"expected_output": "Je vais bien, merci ! Comment puis-je vous aider aujourd'hui ?"
},
"tool_call_error": false,
"result": "Je vais bien, merci ! Comment puis-je vous aider aujourd'hui ?",
"metrics": {
"time": 0.00043441588059067726
},
"stop_after_tool_call": true,
"created_at": 1754046343,
"requires_confirmation": null,
"confirmed": null,
"confirmation_note": null,
"requires_user_input": null,
"user_input_schema": null,
"answered": null,
"external_execution_required": null
}
]
},
{
"content": "C'est une question en français demandant ce qui vient d'être dit.",
"content_type": "str",
"metrics": {
"input_tokens": 87,
"output_tokens": 15,
"total_tokens": 102,
"prompt_tokens": 87,
"completion_tokens": 15,
"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.9079295408446342,
"time_to_first_token": 0.677785333013162
},
"model": "gpt-4o",
"model_provider": "OpenAI",
"run_id": "32533cac-5126-40fd-a1dc-350f5f296fc9",
"agent_id": "81ec4481-f848-47d6-81eb-8a98187d8e18",
"agent_name": "French Agent",
"session_id": "f69d3258-1c12-492d-be40-b57fc57169e9",
"team_session_id": "f69d3258-1c12-492d-be40-b57fc57169e9",
"parent_run_id": "9894f705-1f79-4e8c-9cee-b82e68fab03b",
"created_at": 1754046350,
"status": "COMPLETED",
"messages": [
{
"content": "<your_role>\nYou can only answer in French\n</your_role>\n\n<instructions>\nYou must only respond in French\n</instructions>\n\n<additional_information>\n- Use markdown to format your answers.\n</additional_information>",
"from_history": false,
"stop_after_tool_call": false,
"role": "system",
"created_at": 1754046350
},
{
"content": "Qu'est-ce que je viens de dire?\n\n<expected_output>\nC'est une question en français demandant ce qui vient d'être dit.\n</expected_output>",
"from_history": false,
"stop_after_tool_call": false,
"role": "user",
"created_at": 1754046350
},
{
"content": "C'est une question en français demandant ce qui vient d'être dit.",
"from_history": false,
"stop_after_tool_call": false,
"role": "assistant",
"metrics": {
"input_tokens": 87,
"output_tokens": 15,
"total_tokens": 102,
"prompt_tokens": 87,
"completion_tokens": 15,
"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.9079295408446342,
"time_to_first_token": 0.677785333013162
},
"created_at": 1754046350
}
]
},
{
"content": "C'est une question en français demandant ce qui vient d'être dit.",
"content_type": "str",
"metrics": {
"input_tokens": 476,
"output_tokens": 38,
"total_tokens": 514,
"prompt_tokens": 476,
"completion_tokens": 38,
"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": 2.925848624901846,
"time_to_first_token": 2.3880801249761134
},
"model": "gpt-4o",
"model_provider": "OpenAI",
"member_responses": [],
"run_id": "9894f705-1f79-4e8c-9cee-b82e68fab03b",
"team_id": "23fb2f78-0179-4b43-9a22-9af26ced95f3",
"team_name": "Multi Language Team",
"session_id": "f69d3258-1c12-492d-be40-b57fc57169e9",
"formatted_tool_calls": [
"forward_task_to_member(member_id=french-agent, expected_output=C'est une question en français demandant ce qui vient d'être dit.)"
],
"created_at": 1754046343,
"status": "RUNNING",
"messages": [
{
"content": "You are the leader of a team and sub-teams of AI Agents.\nYour task is to coordinate the team to complete the user's request.\n\nHere are the members in your team:\n<team_members>\n - Agent 1:\n - ID: french-agent\n - Name: French Agent\n - Role: You can only answer in French\n - Agent 2:\n - ID: english-agent\n - Name: English Agent\n - Role: You can only answer in English\n</team_members>\n\n<how_to_respond>\n- You can either respond directly or forward tasks to members in your team with the highest likelihood of completing the user's request.\n- Carefully analyze the tools available to the members and their roles before forwarding tasks.\n- When you forward a task to another Agent, make sure to include:\n - member_id (str): The ID of the member to forward the task to. Use only the ID of the member, not the ID of the team followed by the ID of the member.\n - expected_output (str): The expected output.\n- You can forward tasks to multiple members at once.\n</how_to_respond>\n\nYour name is: Multi Language Team\n\n<instructions>\n- You are a language router that directs questions to the appropriate language agent.\n- If the user asks in a language whose agent is not a team member, respond in English with:\n- 'I can only answer in the following languages: English, Spanish, Japanese, French and German. Please ask your question in one of these languages.'\n- Always check the language of the user's input before routing to an agent.\n- For unsupported languages like Italian, respond in English with the above message.\n</instructions>\n\n<additional_information>\n- Use markdown to format your answers.\n</additional_information>",
"from_history": false,
"stop_after_tool_call": false,
"role": "system",
"created_at": 1754046347
},
{
"content": "Qu'est-ce que je viens de dire?",
"from_history": false,
"stop_after_tool_call": false,
"role": "user",
"created_at": 1754046347
},
{
"from_history": false,
"stop_after_tool_call": false,
"role": "assistant",
"tool_calls": [
{
"id": "call_naMWmv7vP5HLiwIhqDCDVWAK",
"type": "function",
"function": {
"name": "forward_task_to_member",
"arguments": "{\"member_id\":\"french-agent\",\"expected_output\":\"C'est une question en français demandant ce qui vient d'être dit.\"}"
}
}
],
"metrics": {
"input_tokens": 476,
"output_tokens": 38,
"total_tokens": 514,
"prompt_tokens": 476,
"completion_tokens": 38,
"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": 2.925848624901846,
"time_to_first_token": 2.3880801249761134
},
"created_at": 1754046347
},
{
"content": "C'est une question en français demandant ce qui vient d'être dit.",
"from_history": false,
"stop_after_tool_call": true,
"role": "tool",
"tool_call_id": "call_naMWmv7vP5HLiwIhqDCDVWAK",
"tool_name": "forward_task_to_member",
"tool_args": {
"member_id": "french-agent",
"expected_output": "C'est une question en français demandant ce qui vient d'être dit."
},
"tool_call_error": false,
"metrics": {
"time": 0.0008306659292429686
},
"created_at": 1754046351
}
],
"tools": [
{
"tool_call_id": "call_naMWmv7vP5HLiwIhqDCDVWAK",
"tool_name": "forward_task_to_member",
"tool_args": {
"member_id": "french-agent",
"expected_output": "C'est une question en français demandant ce qui vient d'être dit."
},
"tool_call_error": false,
"result": "C'est une question en français demandant ce qui vient d'être dit.",
"metrics": {
"time": 0.0008306659292429686
},
"stop_after_tool_call": true,
"created_at": 1754046343,
"requires_confirmation": null,
"confirmed": null,
"confirmation_note": null,
"requires_user_input": null,
"user_input_schema": null,
"answered": null,
"external_execution_required": null
}
]
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment