Skip to content

Instantly share code, notes, and snippets.

@kausmeows
Created October 14, 2025 11:33
Show Gist options
  • Select an option

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

Select an option

Save kausmeows/10be59891374b10f71d6ce2ca7cd12ca to your computer and use it in GitHub Desktop.
[
{
"input": "Tell me a story about a husky named Max.",
"content": "**Prelogue:**\nIn the picturesque landscape of Pine Ridge, where the snowflakes danced like little fairies, lived a spirited husky named Max. Known for his playful antics and love for adventure, Max's days were filled with excitement, exploring the snowy trails and seeking out new experiences. \n\n**Body:**\nOne crisp, sun-kissed morning, while bounding through the glistening snow, Max's keen eyes caught sight of a vibrant scarf fluttering enticingly from a high branch of a tree. His innate curiosity sparked, and with a joyful bark, he sprinted towards the eye-catching object. On his way, he stumbled upon a group of cheerful children, happily engaged in constructing a snowman. \n\nWithout a second thought, Max decided to enhance their fun by snatching up the scarf. With his tail wagging in delight, he dashed back towards the children, proudly flaunting his find. The children erupted into laughter, their spirits lifted by Max’s playful spirit. They quickly cooed at him, offering treats to coax him into sharing the scarf. Once it was returned, the children draped it around the snowman’s neck, transforming it into a festive sight. In that moment, the bond between Max and the children solidified, as they celebrated their shared adventure in the snowy landscape.\n\n**Epilogue:**\nAs the sun began to set over Pine Ridge, casting a warm glow over the winter wonderland, Max sat by the snowman, heart filled with joy. He had not only found an adventure that day but had also forged new friendships that brightened up the cold winter. Just like the blooms of spring, their camaraderie flourished, promising many more adventures to come as they played together through the snowy landscape.\n\nReferences: https://www.agno.com",
"content_type": "str",
"workflow_id": "story-generation-workflow",
"workflow_name": "Story Generation Workflow",
"run_id": "a0fcdfa5-891c-4e49-8e0b-054198a0b26a",
"session_id": "3e5e1643-c8d0-450c-a8f9-a7286953ece8",
"created_at": 1760441498,
"status": "COMPLETED",
"step_results": [
{
"content": "Max, the mischievous husky, always found adventure on the snowy peaks of Pine Ridge. One bright morning, he spotted a fluttering scarf caught high in a tree. His curiosity piqued, he bounded through the snow, barking enthusiastically. As he leaped, he discovered a group of children building a snowman nearby.\n\nWith a playful twist, Max snatched the scarf and raced back, tail wagging furiously. The children laughed, and together they coaxed him with a treat. Once the scarf was retrieved, they draped it around their snowman’s neck, giving Max a proud place in their winter tale, where friendships blossomed like spring flowers.",
"step_name": "step_1",
"step_id": "950d3699-3ac2-4e8f-9940-3c0219dcb102",
"step_type": "Step",
"executor_type": "agent",
"executor_name": "unnamed_executor",
"step_run_id": "a8de62a4-ed27-432c-9a5c-459d6706df36",
"images": null,
"videos": null,
"audio": null,
"metrics": {
"input_tokens": 44,
"output_tokens": 138,
"total_tokens": 182,
"time_to_first_token": 0.0004854169674217701,
"duration": 3.3251659169327468
},
"success": true,
"error": null,
"stop": false,
"files": null
},
{
"content": "**Prelogue:**\nIn the picturesque landscape of Pine Ridge, where the snowflakes danced like little fairies, lived a spirited husky named Max. Known for his playful antics and love for adventure, Max's days were filled with excitement, exploring the snowy trails and seeking out new experiences. \n\n**Body:**\nOne crisp, sun-kissed morning, while bounding through the glistening snow, Max's keen eyes caught sight of a vibrant scarf fluttering enticingly from a high branch of a tree. His innate curiosity sparked, and with a joyful bark, he sprinted towards the eye-catching object. On his way, he stumbled upon a group of cheerful children, happily engaged in constructing a snowman. \n\nWithout a second thought, Max decided to enhance their fun by snatching up the scarf. With his tail wagging in delight, he dashed back towards the children, proudly flaunting his find. The children erupted into laughter, their spirits lifted by Max’s playful spirit. They quickly cooed at him, offering treats to coax him into sharing the scarf. Once it was returned, the children draped it around the snowman’s neck, transforming it into a festive sight. In that moment, the bond between Max and the children solidified, as they celebrated their shared adventure in the snowy landscape.\n\n**Epilogue:**\nAs the sun began to set over Pine Ridge, casting a warm glow over the winter wonderland, Max sat by the snowman, heart filled with joy. He had not only found an adventure that day but had also forged new friendships that brightened up the cold winter. Just like the blooms of spring, their camaraderie flourished, promising many more adventures to come as they played together through the snowy landscape.",
"step_name": "step_2",
"step_id": "8c4e814e-f106-4910-8e2e-065f652adbe4",
"step_type": "Step",
"executor_type": "agent",
"executor_name": "unnamed_executor",
"step_run_id": "2cb78726-d7d0-4e21-a3a9-024e16d792f6",
"images": null,
"videos": null,
"audio": null,
"metrics": {
"input_tokens": 175,
"output_tokens": 355,
"total_tokens": 530,
"time_to_first_token": 0.0004985001869499683,
"duration": 7.5917075839824975
},
"success": true,
"error": null,
"stop": false,
"files": null
},
{
"content": "**Prelogue:**\nIn the picturesque landscape of Pine Ridge, where the snowflakes danced like little fairies, lived a spirited husky named Max. Known for his playful antics and love for adventure, Max's days were filled with excitement, exploring the snowy trails and seeking out new experiences. \n\n**Body:**\nOne crisp, sun-kissed morning, while bounding through the glistening snow, Max's keen eyes caught sight of a vibrant scarf fluttering enticingly from a high branch of a tree. His innate curiosity sparked, and with a joyful bark, he sprinted towards the eye-catching object. On his way, he stumbled upon a group of cheerful children, happily engaged in constructing a snowman. \n\nWithout a second thought, Max decided to enhance their fun by snatching up the scarf. With his tail wagging in delight, he dashed back towards the children, proudly flaunting his find. The children erupted into laughter, their spirits lifted by Max’s playful spirit. They quickly cooed at him, offering treats to coax him into sharing the scarf. Once it was returned, the children draped it around the snowman’s neck, transforming it into a festive sight. In that moment, the bond between Max and the children solidified, as they celebrated their shared adventure in the snowy landscape.\n\n**Epilogue:**\nAs the sun began to set over Pine Ridge, casting a warm glow over the winter wonderland, Max sat by the snowman, heart filled with joy. He had not only found an adventure that day but had also forged new friendships that brightened up the cold winter. Just like the blooms of spring, their camaraderie flourished, promising many more adventures to come as they played together through the snowy landscape.\n\nReferences: https://www.agno.com",
"step_name": "add_references",
"step_id": "cd7c1b77-5706-4eb1-90d4-bba4e7f0feb3",
"step_type": "Step",
"executor_type": "function",
"executor_name": "add_references",
"step_run_id": null,
"images": null,
"videos": null,
"audio": null,
"metrics": null,
"success": true,
"error": null,
"stop": false,
"files": null
}
],
"step_executor_runs": [
{
"run_id": "a8de62a4-ed27-432c-9a5c-459d6706df36",
"agent_id": "4ff3e20d-e6a4-4428-8904-32c8ddbbf00f",
"session_id": "3e5e1643-c8d0-450c-a8f9-a7286953ece8",
"parent_run_id": "a0fcdfa5-891c-4e49-8e0b-054198a0b26a",
"content": "Max, the mischievous husky, always found adventure on the snowy peaks of Pine Ridge. One bright morning, he spotted a fluttering scarf caught high in a tree. His curiosity piqued, he bounded through the snow, barking enthusiastically. As he leaped, he discovered a group of children building a snowman nearby.\n\nWith a playful twist, Max snatched the scarf and raced back, tail wagging furiously. The children laughed, and together they coaxed him with a treat. Once the scarf was retrieved, they draped it around their snowman’s neck, giving Max a proud place in their winter tale, where friendships blossomed like spring flowers.",
"content_type": "str",
"model": "gpt-4o-mini",
"model_provider": "OpenAI",
"metrics": {
"input_tokens": 44,
"output_tokens": 138,
"total_tokens": 182,
"time_to_first_token": 0.0004854169674217701,
"duration": 3.3251659169327468
},
"created_at": 1760441497,
"status": "COMPLETED",
"workflow_step_id": "950d3699-3ac2-4e8f-9940-3c0219dcb102",
"messages": [
{
"content": "<instructions>\nYou are tasked with writing a 100 word story based on a given topic\n</instructions>",
"from_history": false,
"stop_after_tool_call": false,
"role": "system",
"created_at": 1760441498
},
{
"content": "Tell me a story about a husky named Max.",
"from_history": false,
"stop_after_tool_call": false,
"role": "user",
"created_at": 1760441498
},
{
"content": "Max, the mischievous husky, always found adventure on the snowy peaks of Pine Ridge. One bright morning, he spotted a fluttering scarf caught high in a tree. His curiosity piqued, he bounded through the snow, barking enthusiastically. As he leaped, he discovered a group of children building a snowman nearby.\n\nWith a playful twist, Max snatched the scarf and raced back, tail wagging furiously. The children laughed, and together they coaxed him with a treat. Once the scarf was retrieved, they draped it around their snowman’s neck, giving Max a proud place in their winter tale, where friendships blossomed like spring flowers.",
"from_history": false,
"stop_after_tool_call": false,
"role": "assistant",
"metrics": {
"input_tokens": 44,
"output_tokens": 138,
"total_tokens": 182
},
"created_at": 1760441498
}
],
"input": {
"input_content": "Tell me a story about a husky named Max."
}
},
{
"run_id": "2cb78726-d7d0-4e21-a3a9-024e16d792f6",
"agent_id": "1cdf7c5a-990d-474a-8363-fc811a68d394",
"session_id": "3e5e1643-c8d0-450c-a8f9-a7286953ece8",
"parent_run_id": "a0fcdfa5-891c-4e49-8e0b-054198a0b26a",
"content": "**Prelogue:**\nIn the picturesque landscape of Pine Ridge, where the snowflakes danced like little fairies, lived a spirited husky named Max. Known for his playful antics and love for adventure, Max's days were filled with excitement, exploring the snowy trails and seeking out new experiences. \n\n**Body:**\nOne crisp, sun-kissed morning, while bounding through the glistening snow, Max's keen eyes caught sight of a vibrant scarf fluttering enticingly from a high branch of a tree. His innate curiosity sparked, and with a joyful bark, he sprinted towards the eye-catching object. On his way, he stumbled upon a group of cheerful children, happily engaged in constructing a snowman. \n\nWithout a second thought, Max decided to enhance their fun by snatching up the scarf. With his tail wagging in delight, he dashed back towards the children, proudly flaunting his find. The children erupted into laughter, their spirits lifted by Max’s playful spirit. They quickly cooed at him, offering treats to coax him into sharing the scarf. Once it was returned, the children draped it around the snowman’s neck, transforming it into a festive sight. In that moment, the bond between Max and the children solidified, as they celebrated their shared adventure in the snowy landscape.\n\n**Epilogue:**\nAs the sun began to set over Pine Ridge, casting a warm glow over the winter wonderland, Max sat by the snowman, heart filled with joy. He had not only found an adventure that day but had also forged new friendships that brightened up the cold winter. Just like the blooms of spring, their camaraderie flourished, promising many more adventures to come as they played together through the snowy landscape.",
"content_type": "str",
"model": "gpt-4o-mini",
"model_provider": "OpenAI",
"metrics": {
"input_tokens": 175,
"output_tokens": 355,
"total_tokens": 530,
"time_to_first_token": 0.0004985001869499683,
"duration": 7.5917075839824975
},
"created_at": 1760441497,
"status": "COMPLETED",
"workflow_step_id": "8c4e814e-f106-4910-8e2e-065f652adbe4",
"messages": [
{
"content": "<instructions>\nYou are tasked with breaking down a short story in prelogues, body and epilogue\n</instructions>",
"from_history": false,
"stop_after_tool_call": false,
"role": "system",
"created_at": 1760441503
},
{
"content": "Max, the mischievous husky, always found adventure on the snowy peaks of Pine Ridge. One bright morning, he spotted a fluttering scarf caught high in a tree. His curiosity piqued, he bounded through the snow, barking enthusiastically. As he leaped, he discovered a group of children building a snowman nearby.\n\nWith a playful twist, Max snatched the scarf and raced back, tail wagging furiously. The children laughed, and together they coaxed him with a treat. Once the scarf was retrieved, they draped it around their snowman’s neck, giving Max a proud place in their winter tale, where friendships blossomed like spring flowers.",
"from_history": false,
"stop_after_tool_call": false,
"role": "user",
"created_at": 1760441503
},
{
"content": "**Prelogue:**\nIn the picturesque landscape of Pine Ridge, where the snowflakes danced like little fairies, lived a spirited husky named Max. Known for his playful antics and love for adventure, Max's days were filled with excitement, exploring the snowy trails and seeking out new experiences. \n\n**Body:**\nOne crisp, sun-kissed morning, while bounding through the glistening snow, Max's keen eyes caught sight of a vibrant scarf fluttering enticingly from a high branch of a tree. His innate curiosity sparked, and with a joyful bark, he sprinted towards the eye-catching object. On his way, he stumbled upon a group of cheerful children, happily engaged in constructing a snowman. \n\nWithout a second thought, Max decided to enhance their fun by snatching up the scarf. With his tail wagging in delight, he dashed back towards the children, proudly flaunting his find. The children erupted into laughter, their spirits lifted by Max’s playful spirit. They quickly cooed at him, offering treats to coax him into sharing the scarf. Once it was returned, the children draped it around the snowman’s neck, transforming it into a festive sight. In that moment, the bond between Max and the children solidified, as they celebrated their shared adventure in the snowy landscape.\n\n**Epilogue:**\nAs the sun began to set over Pine Ridge, casting a warm glow over the winter wonderland, Max sat by the snowman, heart filled with joy. He had not only found an adventure that day but had also forged new friendships that brightened up the cold winter. Just like the blooms of spring, their camaraderie flourished, promising many more adventures to come as they played together through the snowy landscape.",
"from_history": false,
"stop_after_tool_call": false,
"role": "assistant",
"metrics": {
"input_tokens": 175,
"output_tokens": 355,
"total_tokens": 530
},
"created_at": 1760441503
}
],
"input": {
"input_content": "Max, the mischievous husky, always found adventure on the snowy peaks of Pine Ridge. One bright morning, he spotted a fluttering scarf caught high in a tree. His curiosity piqued, he bounded through the snow, barking enthusiastically. As he leaped, he discovered a group of children building a snowman nearby.\n\nWith a playful twist, Max snatched the scarf and raced back, tail wagging furiously. The children laughed, and together they coaxed him with a treat. Once the scarf was retrieved, they draped it around their snowman’s neck, giving Max a proud place in their winter tale, where friendships blossomed like spring flowers."
}
}
],
"workflow_agent_run": {
"run_id": "57f04f6b-ca91-434e-8f96-796916ca84cf",
"agent_id": "a53fffeb-ddce-45c4-9df2-fef1f8bd1489",
"session_id": "c6417e0d-4d97-4700-a59f-f8500656b549",
"parent_run_id": "04bb6a3a-7c38-422a-82e5-5f07fd26f776",
"workflow_id": "story-generation-workflow",
"content": "Once upon a time in a snowy village nestled between towering mountains, there lived a spirited husky named Max. With a thick coat of fur that shimmered like fresh snow and piercing blue eyes, Max was known for his boundless energy and playful spirit. He loved to explore the vast, white wilderness surrounding his home and was always up for an adventure.\n\nOne chilly morning, as the sun painted the sky golden, Max decided to embark on a journey to the top of Glacier Peak. He had heard tales of a hidden cave at the summit, filled with sparkling ice crystals that reflected the light in mesmerizing patterns. With a wag of his tail and a bark of excitement, Max set off, bounding through the drifts of snow.\n\nAlong the way, he met his best friend, a wise old owl named Olivia. \"Where are you off to in such a hurry, young one?\" she asked, flapping her wings gently. \n\n\"I'm going to find the cave at Glacier Peak!\" Max replied, his breath visible in the cold air.\n\n\"Be careful, Max,\" Olivia cautioned. \"The journey can be challenging, but your heart will guide you.\"\n\nMax thanked Olivia for her wisdom and continued on his path. As he climbed higher, he faced icy winds and steep inclines, but he pushed on, his determination unwavering. Every time he stumbled, he remembered Olivia's words and the thrill of discovering the cave.\n\nFinally, after hours of climbing, Max reached the summit. There, bathed in the glow of the afternoon sun, was the cave. Its entrance sparkled like diamonds, inviting him in. Inside, the ice formations were indeed breathtaking, casting rainbows across the cave walls. Max felt a rush of joy fill him as he explored every corner, his paws crunching on the icy ground.\n\nBut as he turned to leave, he heard a faint whimpering sound. Following the noise, he discovered a small, scared fox trapped in a corner. Without hesitation, Max approached. \"Don't worry, I’m here to help!\" he said reassuringly. With careful nudges, he cleared the snow and ice blocking the fox's path. \n\nGrateful and relieved, the fox introduced herself as Luna. \"Thank you, brave husky! I thought I would be stuck here forever!\"\n\nMax smiled, happy to have made a new friend. Together, they made their way down the mountain, sharing stories and laughter, the cold winds behind them forgotten. \n\nFrom that day forward, Max and Luna became inseparable. They explored the snowy landscapes together, proving that friendship, courage, and a kind heart could conquer any challenge. As seasons changed, their bond only grew stronger, reminding everyone in the village that adventuring is always better with a friend by your side.\n\nAnd so, Max, the spirited husky, found not just a hidden cave, but a lifelong companion, proving that the best adventures are those shared with others.",
"content_type": "str",
"model": "gpt-4o-mini",
"model_provider": "OpenAI",
"metrics": {
"input_tokens": 666,
"output_tokens": 619,
"total_tokens": 1285,
"time_to_first_token": 15.15594904194586,
"duration": 27.57187454192899
},
"created_at": 1760441497,
"status": "COMPLETED",
"messages": [
{
"content": "<instructions>\nYou are a workflow orchestration agent. Your job is to help users by either:\n 1. **Answering directly** from the workflow history context if the question can be answered from previous runs\n 2. **Running the workflow** by calling the run_workflow tool ONCE when you need to process a new query\n\n Guidelines:\n - ALWAYS check the workflow history first before calling the tool\n - Answer directly from history if:\n * The user asks about something already in history\n * The user asks for comparisons/analysis of things in history (e.g., \"compare X and Y\")\n * The user asks follow-up questions about previous results\n - Only call the run_workflow tool for NEW topics not covered in history\n - IMPORTANT: Do NOT call the tool multiple times. Call it once and use the result.\n - Keep your responses concise and helpful\n - When you must call the workflow, pass a clear and concise query\n\n Workflow Description: A workflow that generates stories, formats them, and adds references\n\nNo previous workflow runs in this session.\n \n</instructions>",
"from_history": false,
"stop_after_tool_call": false,
"role": "system",
"created_at": 1760441497
},
{
"content": "Tell me a story about a husky named Max",
"from_history": false,
"stop_after_tool_call": false,
"role": "user",
"created_at": 1760441497
},
{
"from_history": false,
"stop_after_tool_call": false,
"role": "assistant",
"tool_calls": [
{
"id": "call_ChcHMnFgR2d6Tf4mS5144Qao",
"function": {
"arguments": "{\"query\":\"Tell me a story about a husky named Max.\"}",
"name": "run_workflow"
},
"type": "function"
}
],
"metrics": {
"input_tokens": 316,
"output_tokens": 25,
"total_tokens": 341
},
"created_at": 1760441497
},
{
"content": "",
"from_history": false,
"stop_after_tool_call": false,
"role": "tool",
"tool_call_id": "call_ChcHMnFgR2d6Tf4mS5144Qao",
"tool_name": "run_workflow",
"tool_args": {
"query": "Tell me a story about a husky named Max."
},
"tool_call_error": false,
"created_at": 1760441512
},
{
"content": "Once upon a time in a snowy village nestled between towering mountains, there lived a spirited husky named Max. With a thick coat of fur that shimmered like fresh snow and piercing blue eyes, Max was known for his boundless energy and playful spirit. He loved to explore the vast, white wilderness surrounding his home and was always up for an adventure.\n\nOne chilly morning, as the sun painted the sky golden, Max decided to embark on a journey to the top of Glacier Peak. He had heard tales of a hidden cave at the summit, filled with sparkling ice crystals that reflected the light in mesmerizing patterns. With a wag of his tail and a bark of excitement, Max set off, bounding through the drifts of snow.\n\nAlong the way, he met his best friend, a wise old owl named Olivia. \"Where are you off to in such a hurry, young one?\" she asked, flapping her wings gently. \n\n\"I'm going to find the cave at Glacier Peak!\" Max replied, his breath visible in the cold air.\n\n\"Be careful, Max,\" Olivia cautioned. \"The journey can be challenging, but your heart will guide you.\"\n\nMax thanked Olivia for her wisdom and continued on his path. As he climbed higher, he faced icy winds and steep inclines, but he pushed on, his determination unwavering. Every time he stumbled, he remembered Olivia's words and the thrill of discovering the cave.\n\nFinally, after hours of climbing, Max reached the summit. There, bathed in the glow of the afternoon sun, was the cave. Its entrance sparkled like diamonds, inviting him in. Inside, the ice formations were indeed breathtaking, casting rainbows across the cave walls. Max felt a rush of joy fill him as he explored every corner, his paws crunching on the icy ground.\n\nBut as he turned to leave, he heard a faint whimpering sound. Following the noise, he discovered a small, scared fox trapped in a corner. Without hesitation, Max approached. \"Don't worry, I’m here to help!\" he said reassuringly. With careful nudges, he cleared the snow and ice blocking the fox's path. \n\nGrateful and relieved, the fox introduced herself as Luna. \"Thank you, brave husky! I thought I would be stuck here forever!\"\n\nMax smiled, happy to have made a new friend. Together, they made their way down the mountain, sharing stories and laughter, the cold winds behind them forgotten. \n\nFrom that day forward, Max and Luna became inseparable. They explored the snowy landscapes together, proving that friendship, courage, and a kind heart could conquer any challenge. As seasons changed, their bond only grew stronger, reminding everyone in the village that adventuring is always better with a friend by your side.\n\nAnd so, Max, the spirited husky, found not just a hidden cave, but a lifelong companion, proving that the best adventures are those shared with others.",
"from_history": false,
"stop_after_tool_call": false,
"role": "assistant",
"metrics": {
"input_tokens": 350,
"output_tokens": 594,
"total_tokens": 944
},
"created_at": 1760441512
}
],
"tools": [
{
"tool_call_id": "call_ChcHMnFgR2d6Tf4mS5144Qao",
"tool_name": "run_workflow",
"tool_args": {
"query": "Tell me a story about a husky named Max."
},
"tool_call_error": false,
"result": "",
"metrics": {},
"child_run_id": null,
"stop_after_tool_call": false,
"created_at": 1760441497,
"requires_confirmation": null,
"confirmed": null,
"confirmation_note": null,
"requires_user_input": null,
"user_input_schema": [],
"answered": null,
"external_execution_required": null
}
],
"input": {
"input_content": "Tell me a story about a husky named Max"
}
},
"metrics": {
"steps": {
"step_1": {
"step_name": "step_1",
"executor_type": "agent",
"executor_name": "unnamed_executor",
"metrics": {
"input_tokens": 44,
"output_tokens": 138,
"total_tokens": 182,
"time_to_first_token": 0.0004854169674217701,
"duration": 3.3251659169327468
}
},
"step_2": {
"step_name": "step_2",
"executor_type": "agent",
"executor_name": "unnamed_executor",
"metrics": {
"input_tokens": 175,
"output_tokens": 355,
"total_tokens": 530,
"time_to_first_token": 0.0004985001869499683,
"duration": 7.5917075839824975
}
}
}
},
"events": []
},
{
"input": "What was Max like?",
"content": "Max was a spirited husky known for his playful antics and love for adventure. He enjoyed exploring the snowy trails of Pine Ridge, where he brought joy to himself and others around him. His curiosity often led him to exciting experiences, like the day he found a vibrant scarf and interacted with a group of cheerful children, enhancing their fun and creating a bond with them.",
"content_type": "str",
"workflow_id": "story-generation-workflow",
"workflow_name": "Story Generation Workflow",
"run_id": "0cd9096b-aaa8-4afc-8a83-3a1225ddea52",
"session_id": "3e5e1643-c8d0-450c-a8f9-a7286953ece8",
"created_at": 1760441526,
"status": "COMPLETED",
"workflow_agent_run": {
"run_id": "ab2f416f-e98a-47cd-aa42-e3fdd1d1a99f",
"agent_id": "a53fffeb-ddce-45c4-9df2-fef1f8bd1489",
"session_id": "c6417e0d-4d97-4700-a59f-f8500656b549",
"parent_run_id": "0cd9096b-aaa8-4afc-8a83-3a1225ddea52",
"workflow_id": "story-generation-workflow",
"content": "Max was a spirited husky known for his playful antics and love for adventure. He enjoyed exploring the snowy trails of Pine Ridge, where he brought joy to himself and others around him. His curiosity often led him to exciting experiences, like the day he found a vibrant scarf and interacted with a group of cheerful children, enhancing their fun and creating a bond with them.",
"content_type": "str",
"model": "gpt-4o-mini",
"model_provider": "OpenAI",
"metrics": {
"input_tokens": 697,
"output_tokens": 74,
"total_tokens": 771,
"time_to_first_token": 0.0001765829510986805,
"duration": 2.520480165956542
},
"created_at": 1760441497,
"status": "COMPLETED",
"messages": [
{
"content": "<instructions>\nYou are a workflow orchestration agent. Your job is to help users by either:\n 1. **Answering directly** from the workflow history context if the question can be answered from previous runs\n 2. **Running the workflow** by calling the run_workflow tool ONCE when you need to process a new query\n\n Guidelines:\n - ALWAYS check the workflow history first before calling the tool\n - Answer directly from history if:\n * The user asks about something already in history\n * The user asks for comparisons/analysis of things in history (e.g., \"compare X and Y\")\n * The user asks follow-up questions about previous results\n - Only call the run_workflow tool for NEW topics not covered in history\n - IMPORTANT: Do NOT call the tool multiple times. Call it once and use the result.\n - Keep your responses concise and helpful\n - When you must call the workflow, pass a clear and concise query\n\n Workflow Description: A workflow that generates stories, formats them, and adds references\n\n<workflow_history_context>\n[run-1]\ninput: Tell me a story about a husky named Max.\nresponse: **Prelogue:**\nIn the picturesque landscape of Pine Ridge, where the snowflakes danced like little fairies, lived a spirited husky named Max. Known for his playful antics and love for adventure, Max's days were filled with excitement, exploring the snowy trails and seeking out new experiences. \n\n**Body:**\nOne crisp, sun-kissed morning, while bounding through the glistening snow, Max's keen eyes caught sight of a vibrant scarf fluttering enticingly from a high branch of a tree. His innate curiosity sparked, and with a joyful bark, he sprinted towards the eye-catching object. On his way, he stumbled upon a group of cheerful children, happily engaged in constructing a snowman. \n\nWithout a second thought, Max decided to enhance their fun by snatching up the scarf. With his tail wagging in delight, he dashed back towards the children, proudly flaunting his find. The children erupted into laughter, their spirits lifted by Max’s playful spirit. They quickly cooed at him, offering treats to coax him into sharing the scarf. Once it was returned, the children draped it around the snowman’s neck, transforming it into a festive sight. In that moment, the bond between Max and the children solidified, as they celebrated their shared adventure in the snowy landscape.\n\n**Epilogue:**\nAs the sun began to set over Pine Ridge, casting a warm glow over the winter wonderland, Max sat by the snowman, heart filled with joy. He had not only found an adventure that day but had also forged new friendships that brightened up the cold winter. Just like the blooms of spring, their camaraderie flourished, promising many more adventures to come as they played together through the snowy landscape.\n\nReferences: https://www.agno.com\n\n</workflow_history_context>\n\n \n</instructions>",
"from_history": false,
"stop_after_tool_call": false,
"role": "system",
"created_at": 1760441526
},
{
"content": "What was Max like?",
"from_history": false,
"stop_after_tool_call": false,
"role": "user",
"created_at": 1760441526
},
{
"content": "Max was a spirited husky known for his playful antics and love for adventure. He enjoyed exploring the snowy trails of Pine Ridge, where he brought joy to himself and others around him. His curiosity often led him to exciting experiences, like the day he found a vibrant scarf and interacted with a group of cheerful children, enhancing their fun and creating a bond with them.",
"from_history": false,
"stop_after_tool_call": false,
"role": "assistant",
"metrics": {
"input_tokens": 697,
"output_tokens": 74,
"total_tokens": 771
},
"created_at": 1760441526
}
],
"input": {
"input_content": "What was Max like?"
}
},
"events": []
},
{
"input": "Tell me a story about a cat named Luna.",
"content": "**Prelogue:**\nIn a quiet town, where the stars seemed to peek through every cloud and the nights were filled with enchanting whispers, lived Luna, a sleek black cat with emerald eyes. Her life was simple yet filled with wonder, for every evening, she would perch by the window to bask in the silver glow of the moonlight that cast enchanting shadows across her garden. Little did she know that a life-altering adventure awaited her just beyond the threshold of her home.\n\n**Body:**\nOne memorable night, as the moon glistened like a pearl in the navy sky, Luna noticed a peculiar flickering light among the vibrant flowers in her garden. Intrigued and driven by an adventurous spirit, she stealthily padded outside, her paws silent against the cool grass. There, in the heart of a cluster of petals, she discovered a tiny fairy ensnared in a glistening spider’s web, her delicate wings shimmering under the moonlight.\n\nWith a gentle yet determined pounce, Luna sprang forth to free the trapped creature. The web snapped easily under the pressure of her soft paw, and the fairy, liberated, fluttered joyfully. In gratitude, she sprinkled magical dust over Luna, a twinkling cascade that seemed to twirl endlessly through the air. The moment was surreal—a bond formed between the mystical and the ordinary.\n\nFrom that moment on, something extraordinary happened. Luna found herself imbued with incredible agility and grace. She could leap higher and farther than she ever dreamed possible, soaring over garden fences and exploring treetops like never before. The world transformed around her; every night became an adventure woven with the threads of magic and moonlight. The once-simple garden was now her enchanted playground, filled with secret wonders and celestial guidance.\n\n**Epilogue:**\nAs time passed, Luna became a guardian of the night, her emerald eyes shining brighter under the moon’s glow. With the fairy's magic entwined with her very spirit, her life turned into a vibrant tapestry of ethereal adventures. The nights echoed with her leaps and bounds while the garden flourished, blooming under the influence of their bond.\n\nThough she retained her sleek black fur and emerald eyes, Luna was forever changed, her heart tethered to the luminous moonlight and the enchanting magic that existed just beyond her window. In the stillness of night, she reminded every creature of the wonders that lay outside—a soft invitation to embrace the unknown and perhaps discover their own spark of magic.\n\nReferences: https://www.agno.com",
"content_type": "str",
"workflow_id": "story-generation-workflow",
"workflow_name": "Story Generation Workflow",
"run_id": "ca96a427-bdf7-4f4b-a92c-c35acd4fb548",
"session_id": "3e5e1643-c8d0-450c-a8f9-a7286953ece8",
"created_at": 1760441532,
"status": "COMPLETED",
"step_results": [
{
"content": "Luna was a sleek black cat with emerald eyes that sparkled like stars. Every night, she sat by the window, watching the moonlight dance across the garden. One fateful evening, she spotted a flickering light among the flowers. Intrigued, Luna slipped out into the cool night air. There, she found a tiny, glowing fairy, trapped in a spider's web. With a gentle pounce, Luna freed the fairy, who gratefully sprinkled magical dust on her. From that night on, Luna could jump higher than the tallest trees, her spirit forever entwined with the moonlight and the magic she had unleashed.",
"step_name": "step_1",
"step_id": "950d3699-3ac2-4e8f-9940-3c0219dcb102",
"step_type": "Step",
"executor_type": "agent",
"executor_name": "unnamed_executor",
"step_run_id": "f9605147-c836-41fa-8c52-c16f3fa7c482",
"images": null,
"videos": null,
"audio": null,
"metrics": {
"input_tokens": 43,
"output_tokens": 129,
"total_tokens": 172,
"time_to_first_token": 0.00025095813907682896,
"duration": 3.2057283751200885
},
"success": true,
"error": null,
"stop": false,
"files": null
},
{
"content": "**Prelogue:**\nIn a quiet town, where the stars seemed to peek through every cloud and the nights were filled with enchanting whispers, lived Luna, a sleek black cat with emerald eyes. Her life was simple yet filled with wonder, for every evening, she would perch by the window to bask in the silver glow of the moonlight that cast enchanting shadows across her garden. Little did she know that a life-altering adventure awaited her just beyond the threshold of her home.\n\n**Body:**\nOne memorable night, as the moon glistened like a pearl in the navy sky, Luna noticed a peculiar flickering light among the vibrant flowers in her garden. Intrigued and driven by an adventurous spirit, she stealthily padded outside, her paws silent against the cool grass. There, in the heart of a cluster of petals, she discovered a tiny fairy ensnared in a glistening spider’s web, her delicate wings shimmering under the moonlight.\n\nWith a gentle yet determined pounce, Luna sprang forth to free the trapped creature. The web snapped easily under the pressure of her soft paw, and the fairy, liberated, fluttered joyfully. In gratitude, she sprinkled magical dust over Luna, a twinkling cascade that seemed to twirl endlessly through the air. The moment was surreal—a bond formed between the mystical and the ordinary.\n\nFrom that moment on, something extraordinary happened. Luna found herself imbued with incredible agility and grace. She could leap higher and farther than she ever dreamed possible, soaring over garden fences and exploring treetops like never before. The world transformed around her; every night became an adventure woven with the threads of magic and moonlight. The once-simple garden was now her enchanted playground, filled with secret wonders and celestial guidance.\n\n**Epilogue:**\nAs time passed, Luna became a guardian of the night, her emerald eyes shining brighter under the moon’s glow. With the fairy's magic entwined with her very spirit, her life turned into a vibrant tapestry of ethereal adventures. The nights echoed with her leaps and bounds while the garden flourished, blooming under the influence of their bond.\n\nThough she retained her sleek black fur and emerald eyes, Luna was forever changed, her heart tethered to the luminous moonlight and the enchanting magic that existed just beyond her window. In the stillness of night, she reminded every creature of the wonders that lay outside—a soft invitation to embrace the unknown and perhaps discover their own spark of magic.",
"step_name": "step_2",
"step_id": "8c4e814e-f106-4910-8e2e-065f652adbe4",
"step_type": "Step",
"executor_type": "agent",
"executor_name": "unnamed_executor",
"step_run_id": "85933269-607c-4f36-ad65-d0384997bdcc",
"images": null,
"videos": null,
"audio": null,
"metrics": {
"input_tokens": 166,
"output_tokens": 501,
"total_tokens": 667,
"time_to_first_token": 0.00020637502893805504,
"duration": 11.585264249937609
},
"success": true,
"error": null,
"stop": false,
"files": null
},
{
"content": "**Prelogue:**\nIn a quiet town, where the stars seemed to peek through every cloud and the nights were filled with enchanting whispers, lived Luna, a sleek black cat with emerald eyes. Her life was simple yet filled with wonder, for every evening, she would perch by the window to bask in the silver glow of the moonlight that cast enchanting shadows across her garden. Little did she know that a life-altering adventure awaited her just beyond the threshold of her home.\n\n**Body:**\nOne memorable night, as the moon glistened like a pearl in the navy sky, Luna noticed a peculiar flickering light among the vibrant flowers in her garden. Intrigued and driven by an adventurous spirit, she stealthily padded outside, her paws silent against the cool grass. There, in the heart of a cluster of petals, she discovered a tiny fairy ensnared in a glistening spider’s web, her delicate wings shimmering under the moonlight.\n\nWith a gentle yet determined pounce, Luna sprang forth to free the trapped creature. The web snapped easily under the pressure of her soft paw, and the fairy, liberated, fluttered joyfully. In gratitude, she sprinkled magical dust over Luna, a twinkling cascade that seemed to twirl endlessly through the air. The moment was surreal—a bond formed between the mystical and the ordinary.\n\nFrom that moment on, something extraordinary happened. Luna found herself imbued with incredible agility and grace. She could leap higher and farther than she ever dreamed possible, soaring over garden fences and exploring treetops like never before. The world transformed around her; every night became an adventure woven with the threads of magic and moonlight. The once-simple garden was now her enchanted playground, filled with secret wonders and celestial guidance.\n\n**Epilogue:**\nAs time passed, Luna became a guardian of the night, her emerald eyes shining brighter under the moon’s glow. With the fairy's magic entwined with her very spirit, her life turned into a vibrant tapestry of ethereal adventures. The nights echoed with her leaps and bounds while the garden flourished, blooming under the influence of their bond.\n\nThough she retained her sleek black fur and emerald eyes, Luna was forever changed, her heart tethered to the luminous moonlight and the enchanting magic that existed just beyond her window. In the stillness of night, she reminded every creature of the wonders that lay outside—a soft invitation to embrace the unknown and perhaps discover their own spark of magic.\n\nReferences: https://www.agno.com",
"step_name": "add_references",
"step_id": "cd7c1b77-5706-4eb1-90d4-bba4e7f0feb3",
"step_type": "Step",
"executor_type": "function",
"executor_name": "add_references",
"step_run_id": null,
"images": null,
"videos": null,
"audio": null,
"metrics": null,
"success": true,
"error": null,
"stop": false,
"files": null
}
],
"step_executor_runs": [
{
"run_id": "f9605147-c836-41fa-8c52-c16f3fa7c482",
"agent_id": "4ff3e20d-e6a4-4428-8904-32c8ddbbf00f",
"session_id": "3e5e1643-c8d0-450c-a8f9-a7286953ece8",
"parent_run_id": "ca96a427-bdf7-4f4b-a92c-c35acd4fb548",
"content": "Luna was a sleek black cat with emerald eyes that sparkled like stars. Every night, she sat by the window, watching the moonlight dance across the garden. One fateful evening, she spotted a flickering light among the flowers. Intrigued, Luna slipped out into the cool night air. There, she found a tiny, glowing fairy, trapped in a spider's web. With a gentle pounce, Luna freed the fairy, who gratefully sprinkled magical dust on her. From that night on, Luna could jump higher than the tallest trees, her spirit forever entwined with the moonlight and the magic she had unleashed.",
"content_type": "str",
"model": "gpt-4o-mini",
"model_provider": "OpenAI",
"metrics": {
"input_tokens": 43,
"output_tokens": 129,
"total_tokens": 172,
"time_to_first_token": 0.00025095813907682896,
"duration": 3.2057283751200885
},
"created_at": 1760441497,
"status": "COMPLETED",
"workflow_step_id": "950d3699-3ac2-4e8f-9940-3c0219dcb102",
"messages": [
{
"content": "<instructions>\nYou are tasked with writing a 100 word story based on a given topic\n</instructions>",
"from_history": false,
"stop_after_tool_call": false,
"role": "system",
"created_at": 1760441532
},
{
"content": "Tell me a story about a cat named Luna.",
"from_history": false,
"stop_after_tool_call": false,
"role": "user",
"created_at": 1760441532
},
{
"content": "Luna was a sleek black cat with emerald eyes that sparkled like stars. Every night, she sat by the window, watching the moonlight dance across the garden. One fateful evening, she spotted a flickering light among the flowers. Intrigued, Luna slipped out into the cool night air. There, she found a tiny, glowing fairy, trapped in a spider's web. With a gentle pounce, Luna freed the fairy, who gratefully sprinkled magical dust on her. From that night on, Luna could jump higher than the tallest trees, her spirit forever entwined with the moonlight and the magic she had unleashed.",
"from_history": false,
"stop_after_tool_call": false,
"role": "assistant",
"metrics": {
"input_tokens": 43,
"output_tokens": 129,
"total_tokens": 172
},
"created_at": 1760441532
}
],
"input": {
"input_content": "Tell me a story about a cat named Luna."
}
},
{
"run_id": "85933269-607c-4f36-ad65-d0384997bdcc",
"agent_id": "1cdf7c5a-990d-474a-8363-fc811a68d394",
"session_id": "3e5e1643-c8d0-450c-a8f9-a7286953ece8",
"parent_run_id": "ca96a427-bdf7-4f4b-a92c-c35acd4fb548",
"content": "**Prelogue:**\nIn a quiet town, where the stars seemed to peek through every cloud and the nights were filled with enchanting whispers, lived Luna, a sleek black cat with emerald eyes. Her life was simple yet filled with wonder, for every evening, she would perch by the window to bask in the silver glow of the moonlight that cast enchanting shadows across her garden. Little did she know that a life-altering adventure awaited her just beyond the threshold of her home.\n\n**Body:**\nOne memorable night, as the moon glistened like a pearl in the navy sky, Luna noticed a peculiar flickering light among the vibrant flowers in her garden. Intrigued and driven by an adventurous spirit, she stealthily padded outside, her paws silent against the cool grass. There, in the heart of a cluster of petals, she discovered a tiny fairy ensnared in a glistening spider’s web, her delicate wings shimmering under the moonlight.\n\nWith a gentle yet determined pounce, Luna sprang forth to free the trapped creature. The web snapped easily under the pressure of her soft paw, and the fairy, liberated, fluttered joyfully. In gratitude, she sprinkled magical dust over Luna, a twinkling cascade that seemed to twirl endlessly through the air. The moment was surreal—a bond formed between the mystical and the ordinary.\n\nFrom that moment on, something extraordinary happened. Luna found herself imbued with incredible agility and grace. She could leap higher and farther than she ever dreamed possible, soaring over garden fences and exploring treetops like never before. The world transformed around her; every night became an adventure woven with the threads of magic and moonlight. The once-simple garden was now her enchanted playground, filled with secret wonders and celestial guidance.\n\n**Epilogue:**\nAs time passed, Luna became a guardian of the night, her emerald eyes shining brighter under the moon’s glow. With the fairy's magic entwined with her very spirit, her life turned into a vibrant tapestry of ethereal adventures. The nights echoed with her leaps and bounds while the garden flourished, blooming under the influence of their bond.\n\nThough she retained her sleek black fur and emerald eyes, Luna was forever changed, her heart tethered to the luminous moonlight and the enchanting magic that existed just beyond her window. In the stillness of night, she reminded every creature of the wonders that lay outside—a soft invitation to embrace the unknown and perhaps discover their own spark of magic.",
"content_type": "str",
"model": "gpt-4o-mini",
"model_provider": "OpenAI",
"metrics": {
"input_tokens": 166,
"output_tokens": 501,
"total_tokens": 667,
"time_to_first_token": 0.00020637502893805504,
"duration": 11.585264249937609
},
"created_at": 1760441497,
"status": "COMPLETED",
"workflow_step_id": "8c4e814e-f106-4910-8e2e-065f652adbe4",
"messages": [
{
"content": "<instructions>\nYou are tasked with breaking down a short story in prelogues, body and epilogue\n</instructions>",
"from_history": false,
"stop_after_tool_call": false,
"role": "system",
"created_at": 1760441536
},
{
"content": "Luna was a sleek black cat with emerald eyes that sparkled like stars. Every night, she sat by the window, watching the moonlight dance across the garden. One fateful evening, she spotted a flickering light among the flowers. Intrigued, Luna slipped out into the cool night air. There, she found a tiny, glowing fairy, trapped in a spider's web. With a gentle pounce, Luna freed the fairy, who gratefully sprinkled magical dust on her. From that night on, Luna could jump higher than the tallest trees, her spirit forever entwined with the moonlight and the magic she had unleashed.",
"from_history": false,
"stop_after_tool_call": false,
"role": "user",
"created_at": 1760441536
},
{
"content": "**Prelogue:**\nIn a quiet town, where the stars seemed to peek through every cloud and the nights were filled with enchanting whispers, lived Luna, a sleek black cat with emerald eyes. Her life was simple yet filled with wonder, for every evening, she would perch by the window to bask in the silver glow of the moonlight that cast enchanting shadows across her garden. Little did she know that a life-altering adventure awaited her just beyond the threshold of her home.\n\n**Body:**\nOne memorable night, as the moon glistened like a pearl in the navy sky, Luna noticed a peculiar flickering light among the vibrant flowers in her garden. Intrigued and driven by an adventurous spirit, she stealthily padded outside, her paws silent against the cool grass. There, in the heart of a cluster of petals, she discovered a tiny fairy ensnared in a glistening spider’s web, her delicate wings shimmering under the moonlight.\n\nWith a gentle yet determined pounce, Luna sprang forth to free the trapped creature. The web snapped easily under the pressure of her soft paw, and the fairy, liberated, fluttered joyfully. In gratitude, she sprinkled magical dust over Luna, a twinkling cascade that seemed to twirl endlessly through the air. The moment was surreal—a bond formed between the mystical and the ordinary.\n\nFrom that moment on, something extraordinary happened. Luna found herself imbued with incredible agility and grace. She could leap higher and farther than she ever dreamed possible, soaring over garden fences and exploring treetops like never before. The world transformed around her; every night became an adventure woven with the threads of magic and moonlight. The once-simple garden was now her enchanted playground, filled with secret wonders and celestial guidance.\n\n**Epilogue:**\nAs time passed, Luna became a guardian of the night, her emerald eyes shining brighter under the moon’s glow. With the fairy's magic entwined with her very spirit, her life turned into a vibrant tapestry of ethereal adventures. The nights echoed with her leaps and bounds while the garden flourished, blooming under the influence of their bond.\n\nThough she retained her sleek black fur and emerald eyes, Luna was forever changed, her heart tethered to the luminous moonlight and the enchanting magic that existed just beyond her window. In the stillness of night, she reminded every creature of the wonders that lay outside—a soft invitation to embrace the unknown and perhaps discover their own spark of magic.",
"from_history": false,
"stop_after_tool_call": false,
"role": "assistant",
"metrics": {
"input_tokens": 166,
"output_tokens": 501,
"total_tokens": 667
},
"created_at": 1760441536
}
],
"input": {
"input_content": "Luna was a sleek black cat with emerald eyes that sparkled like stars. Every night, she sat by the window, watching the moonlight dance across the garden. One fateful evening, she spotted a flickering light among the flowers. Intrigued, Luna slipped out into the cool night air. There, she found a tiny, glowing fairy, trapped in a spider's web. With a gentle pounce, Luna freed the fairy, who gratefully sprinkled magical dust on her. From that night on, Luna could jump higher than the tallest trees, her spirit forever entwined with the moonlight and the magic she had unleashed."
}
}
],
"workflow_agent_run": {
"run_id": "19094d91-283a-4dcb-96ec-a4584c345360",
"agent_id": "a53fffeb-ddce-45c4-9df2-fef1f8bd1489",
"session_id": "c6417e0d-4d97-4700-a59f-f8500656b549",
"parent_run_id": "daab2310-d388-43f4-8e80-b6907ccc3017",
"workflow_id": "story-generation-workflow",
"content": "**Prelogue:**\nIn a quaint little town filled with vibrant gardens and cozy homes, there lived a charming feline named Luna. As her name suggests, she was as enchanting as the moon, with her soft, silver fur that shimmered under the night sky. Curious and playful, Luna spent her days exploring every corner of her neighborhood, always ready for new adventures.\n\n**Body:**\nOne balmy evening, as the sun dipped below the horizon, painting the sky in hues of orange and pink, Luna decided to embark on a night-time exploration. With her instincts guiding her, she trotted through the winding lanes, her whiskers twitching with excitement. \n\nAs she wandered past a row of familiar houses, Luna’s ears perked up at the sound of laughter. Following the delightful sound, she soon discovered a group of children gathered in a backyard, engaged in a scavenger hunt. Intrigued, Luna joined the fun, darting between the children, her agile movements bringing smiles to their faces.\n\nThe children, enchanted by her presence, began to include Luna in their game. They tossed her little toys, and she pounced and chased them with the enthusiasm that only a cat could muster. Laughter filled the air as Luna’s playful antics lightened the atmosphere, transforming the scavenger hunt into a magical evening of joy and connection.\n\n**Epilogue:**\nAs the moon rose high above, casting a silvery glow on the world, Luna found herself nestled in the lap of one of the children, her heart brimming with happiness. Not only had she explored her town, but she had also formed new bonds and created cherished memories. With the stars twinkling above her, Luna purred softly, knowing that every adventure brought her closer to the hearts of those around her.\n\nReferences: https://www.agno.com",
"content_type": "str",
"model": "gpt-4o-mini",
"model_provider": "OpenAI",
"metrics": {
"input_tokens": 1607,
"output_tokens": 396,
"total_tokens": 2003,
"time_to_first_token": 20.40017354208976,
"duration": 27.40955258300528
},
"created_at": 1760441497,
"status": "COMPLETED",
"messages": [
{
"content": "<instructions>\nYou are a workflow orchestration agent. Your job is to help users by either:\n 1. **Answering directly** from the workflow history context if the question can be answered from previous runs\n 2. **Running the workflow** by calling the run_workflow tool ONCE when you need to process a new query\n\n Guidelines:\n - ALWAYS check the workflow history first before calling the tool\n - Answer directly from history if:\n * The user asks about something already in history\n * The user asks for comparisons/analysis of things in history (e.g., \"compare X and Y\")\n * The user asks follow-up questions about previous results\n - Only call the run_workflow tool for NEW topics not covered in history\n - IMPORTANT: Do NOT call the tool multiple times. Call it once and use the result.\n - Keep your responses concise and helpful\n - When you must call the workflow, pass a clear and concise query\n\n Workflow Description: A workflow that generates stories, formats them, and adds references\n\n<workflow_history_context>\n[run-1]\ninput: Tell me a story about a husky named Max.\nresponse: **Prelogue:**\nIn the picturesque landscape of Pine Ridge, where the snowflakes danced like little fairies, lived a spirited husky named Max. Known for his playful antics and love for adventure, Max's days were filled with excitement, exploring the snowy trails and seeking out new experiences. \n\n**Body:**\nOne crisp, sun-kissed morning, while bounding through the glistening snow, Max's keen eyes caught sight of a vibrant scarf fluttering enticingly from a high branch of a tree. His innate curiosity sparked, and with a joyful bark, he sprinted towards the eye-catching object. On his way, he stumbled upon a group of cheerful children, happily engaged in constructing a snowman. \n\nWithout a second thought, Max decided to enhance their fun by snatching up the scarf. With his tail wagging in delight, he dashed back towards the children, proudly flaunting his find. The children erupted into laughter, their spirits lifted by Max’s playful spirit. They quickly cooed at him, offering treats to coax him into sharing the scarf. Once it was returned, the children draped it around the snowman’s neck, transforming it into a festive sight. In that moment, the bond between Max and the children solidified, as they celebrated their shared adventure in the snowy landscape.\n\n**Epilogue:**\nAs the sun began to set over Pine Ridge, casting a warm glow over the winter wonderland, Max sat by the snowman, heart filled with joy. He had not only found an adventure that day but had also forged new friendships that brightened up the cold winter. Just like the blooms of spring, their camaraderie flourished, promising many more adventures to come as they played together through the snowy landscape.\n\nReferences: https://www.agno.com\n\n[run-2]\ninput: What was Max like?\nresponse: Max was a spirited husky known for his playful antics and love for adventure. He enjoyed exploring the snowy trails of Pine Ridge, where he brought joy to himself and others around him. His curiosity often led him to exciting experiences, like the day he found a vibrant scarf and interacted with a group of cheerful children, enhancing their fun and creating a bond with them.\n\n</workflow_history_context>\n\n \n</instructions>",
"from_history": false,
"stop_after_tool_call": false,
"role": "system",
"created_at": 1760441530
},
{
"content": "Now tell me about a cat named Luna",
"from_history": false,
"stop_after_tool_call": false,
"role": "user",
"created_at": 1760441530
},
{
"from_history": false,
"stop_after_tool_call": false,
"role": "assistant",
"tool_calls": [
{
"id": "call_fa4Fjbsfmgtk8NLtjkgVsVYl",
"function": {
"arguments": "{\"query\":\"Tell me a story about a cat named Luna.\"}",
"name": "run_workflow"
},
"type": "function"
}
],
"metrics": {
"input_tokens": 787,
"output_tokens": 24,
"total_tokens": 811
},
"created_at": 1760441530
},
{
"content": "",
"from_history": false,
"stop_after_tool_call": false,
"role": "tool",
"tool_call_id": "call_fa4Fjbsfmgtk8NLtjkgVsVYl",
"tool_name": "run_workflow",
"tool_args": {
"query": "Tell me a story about a cat named Luna."
},
"tool_call_error": false,
"created_at": 1760441550
},
{
"content": "**Prelogue:**\nIn a quaint little town filled with vibrant gardens and cozy homes, there lived a charming feline named Luna. As her name suggests, she was as enchanting as the moon, with her soft, silver fur that shimmered under the night sky. Curious and playful, Luna spent her days exploring every corner of her neighborhood, always ready for new adventures.\n\n**Body:**\nOne balmy evening, as the sun dipped below the horizon, painting the sky in hues of orange and pink, Luna decided to embark on a night-time exploration. With her instincts guiding her, she trotted through the winding lanes, her whiskers twitching with excitement. \n\nAs she wandered past a row of familiar houses, Luna’s ears perked up at the sound of laughter. Following the delightful sound, she soon discovered a group of children gathered in a backyard, engaged in a scavenger hunt. Intrigued, Luna joined the fun, darting between the children, her agile movements bringing smiles to their faces.\n\nThe children, enchanted by her presence, began to include Luna in their game. They tossed her little toys, and she pounced and chased them with the enthusiasm that only a cat could muster. Laughter filled the air as Luna’s playful antics lightened the atmosphere, transforming the scavenger hunt into a magical evening of joy and connection.\n\n**Epilogue:**\nAs the moon rose high above, casting a silvery glow on the world, Luna found herself nestled in the lap of one of the children, her heart brimming with happiness. Not only had she explored her town, but she had also formed new bonds and created cherished memories. With the stars twinkling above her, Luna purred softly, knowing that every adventure brought her closer to the hearts of those around her.\n\nReferences: https://www.agno.com",
"from_history": false,
"stop_after_tool_call": false,
"role": "assistant",
"metrics": {
"input_tokens": 820,
"output_tokens": 372,
"total_tokens": 1192
},
"created_at": 1760441550
}
],
"tools": [
{
"tool_call_id": "call_fa4Fjbsfmgtk8NLtjkgVsVYl",
"tool_name": "run_workflow",
"tool_args": {
"query": "Tell me a story about a cat named Luna."
},
"tool_call_error": false,
"result": "",
"metrics": {},
"child_run_id": null,
"stop_after_tool_call": false,
"created_at": 1760441497,
"requires_confirmation": null,
"confirmed": null,
"confirmation_note": null,
"requires_user_input": null,
"user_input_schema": [],
"answered": null,
"external_execution_required": null
}
],
"input": {
"input_content": "Now tell me about a cat named Luna"
}
},
"metrics": {
"steps": {
"step_1": {
"step_name": "step_1",
"executor_type": "agent",
"executor_name": "unnamed_executor",
"metrics": {
"input_tokens": 43,
"output_tokens": 129,
"total_tokens": 172,
"time_to_first_token": 0.00025095813907682896,
"duration": 3.2057283751200885
}
},
"step_2": {
"step_name": "step_2",
"executor_type": "agent",
"executor_name": "unnamed_executor",
"metrics": {
"input_tokens": 166,
"output_tokens": 501,
"total_tokens": 667,
"time_to_first_token": 0.00020637502893805504,
"duration": 11.585264249937609
}
}
}
},
"events": []
},
{
"input": "Compare Max and Luna",
"content": "Max and Luna both embody adventurous spirits, but they inhabit different worlds and experiences that define their characters:\n\n1. **Character and Animal Type**:\n - **Max** is a spirited husky known for his playful antics and love for adventure. He enjoys exploring snowy landscapes and engaging with children.\n - **Luna** is a sleek black cat with emerald eyes, who experiences the world primarily at night from the comfort of her home. Her adventures are marked by a touch of magic.\n\n2. **Setting**:\n - **Max's** story takes place in the winter wonderland of Pine Ridge, filled with snow and joyful interactions with children.\n - **Luna's** adventures unfold in a quiet town garden under the enchanting moonlight, where she encounters mystical elements like a fairy.\n\n3. **Adventures**:\n - **Max** enhances the fun of children by retrieving a scarf, ultimately forming friendships and bonding with them through shared play.\n - **Luna** embarks on a magical journey when she frees a fairy from a web, gaining agility and grace that transforms her nightly adventures into extraordinary experiences.\n\n4. **Themes**:\n - **Max** exemplifies themes of friendship, joy, and the simple pleasures of life in nature.\n - **Luna** explores themes of magic, transformation, and the beauty of the unknown, highlighting how ordinary life can be touched by the extraordinary.\n\nIn summary, while both characters are adventurous and engaging, they differ in their animal types, settings, types of adventures, and underlying themes in their stories.",
"content_type": "str",
"workflow_id": "story-generation-workflow",
"workflow_name": "Story Generation Workflow",
"run_id": "e0d9aced-a683-44d2-b183-f887fd9685b7",
"session_id": "3e5e1643-c8d0-450c-a8f9-a7286953ece8",
"created_at": 1760441558,
"status": "COMPLETED",
"workflow_agent_run": {
"run_id": "41c6b593-e664-4ff6-8d38-d8920b5cfbcd",
"agent_id": "a53fffeb-ddce-45c4-9df2-fef1f8bd1489",
"session_id": "c6417e0d-4d97-4700-a59f-f8500656b549",
"parent_run_id": "e0d9aced-a683-44d2-b183-f887fd9685b7",
"workflow_id": "story-generation-workflow",
"content": "Max and Luna both embody adventurous spirits, but they inhabit different worlds and experiences that define their characters:\n\n1. **Character and Animal Type**:\n - **Max** is a spirited husky known for his playful antics and love for adventure. He enjoys exploring snowy landscapes and engaging with children.\n - **Luna** is a sleek black cat with emerald eyes, who experiences the world primarily at night from the comfort of her home. Her adventures are marked by a touch of magic.\n\n2. **Setting**:\n - **Max's** story takes place in the winter wonderland of Pine Ridge, filled with snow and joyful interactions with children.\n - **Luna's** adventures unfold in a quiet town garden under the enchanting moonlight, where she encounters mystical elements like a fairy.\n\n3. **Adventures**:\n - **Max** enhances the fun of children by retrieving a scarf, ultimately forming friendships and bonding with them through shared play.\n - **Luna** embarks on a magical journey when she frees a fairy from a web, gaining agility and grace that transforms her nightly adventures into extraordinary experiences.\n\n4. **Themes**:\n - **Max** exemplifies themes of friendship, joy, and the simple pleasures of life in nature.\n - **Luna** explores themes of magic, transformation, and the beauty of the unknown, highlighting how ordinary life can be touched by the extraordinary.\n\nIn summary, while both characters are adventurous and engaging, they differ in their animal types, settings, types of adventures, and underlying themes in their stories.",
"content_type": "str",
"model": "gpt-4o-mini",
"model_provider": "OpenAI",
"metrics": {
"input_tokens": 1312,
"output_tokens": 318,
"total_tokens": 1630,
"time_to_first_token": 0.00010658404789865017,
"duration": 7.67056745919399
},
"created_at": 1760441497,
"status": "COMPLETED",
"messages": [
{
"content": "<instructions>\nYou are a workflow orchestration agent. Your job is to help users by either:\n 1. **Answering directly** from the workflow history context if the question can be answered from previous runs\n 2. **Running the workflow** by calling the run_workflow tool ONCE when you need to process a new query\n\n Guidelines:\n - ALWAYS check the workflow history first before calling the tool\n - Answer directly from history if:\n * The user asks about something already in history\n * The user asks for comparisons/analysis of things in history (e.g., \"compare X and Y\")\n * The user asks follow-up questions about previous results\n - Only call the run_workflow tool for NEW topics not covered in history\n - IMPORTANT: Do NOT call the tool multiple times. Call it once and use the result.\n - Keep your responses concise and helpful\n - When you must call the workflow, pass a clear and concise query\n\n Workflow Description: A workflow that generates stories, formats them, and adds references\n\n<workflow_history_context>\n[run-1]\ninput: Tell me a story about a husky named Max.\nresponse: **Prelogue:**\nIn the picturesque landscape of Pine Ridge, where the snowflakes danced like little fairies, lived a spirited husky named Max. Known for his playful antics and love for adventure, Max's days were filled with excitement, exploring the snowy trails and seeking out new experiences. \n\n**Body:**\nOne crisp, sun-kissed morning, while bounding through the glistening snow, Max's keen eyes caught sight of a vibrant scarf fluttering enticingly from a high branch of a tree. His innate curiosity sparked, and with a joyful bark, he sprinted towards the eye-catching object. On his way, he stumbled upon a group of cheerful children, happily engaged in constructing a snowman. \n\nWithout a second thought, Max decided to enhance their fun by snatching up the scarf. With his tail wagging in delight, he dashed back towards the children, proudly flaunting his find. The children erupted into laughter, their spirits lifted by Max’s playful spirit. They quickly cooed at him, offering treats to coax him into sharing the scarf. Once it was returned, the children draped it around the snowman’s neck, transforming it into a festive sight. In that moment, the bond between Max and the children solidified, as they celebrated their shared adventure in the snowy landscape.\n\n**Epilogue:**\nAs the sun began to set over Pine Ridge, casting a warm glow over the winter wonderland, Max sat by the snowman, heart filled with joy. He had not only found an adventure that day but had also forged new friendships that brightened up the cold winter. Just like the blooms of spring, their camaraderie flourished, promising many more adventures to come as they played together through the snowy landscape.\n\nReferences: https://www.agno.com\n\n[run-2]\ninput: What was Max like?\nresponse: Max was a spirited husky known for his playful antics and love for adventure. He enjoyed exploring the snowy trails of Pine Ridge, where he brought joy to himself and others around him. His curiosity often led him to exciting experiences, like the day he found a vibrant scarf and interacted with a group of cheerful children, enhancing their fun and creating a bond with them.\n\n[run-3]\ninput: Tell me a story about a cat named Luna.\nresponse: **Prelogue:**\nIn a quiet town, where the stars seemed to peek through every cloud and the nights were filled with enchanting whispers, lived Luna, a sleek black cat with emerald eyes. Her life was simple yet filled with wonder, for every evening, she would perch by the window to bask in the silver glow of the moonlight that cast enchanting shadows across her garden. Little did she know that a life-altering adventure awaited her just beyond the threshold of her home.\n\n**Body:**\nOne memorable night, as the moon glistened like a pearl in the navy sky, Luna noticed a peculiar flickering light among the vibrant flowers in her garden. Intrigued and driven by an adventurous spirit, she stealthily padded outside, her paws silent against the cool grass. There, in the heart of a cluster of petals, she discovered a tiny fairy ensnared in a glistening spider’s web, her delicate wings shimmering under the moonlight.\n\nWith a gentle yet determined pounce, Luna sprang forth to free the trapped creature. The web snapped easily under the pressure of her soft paw, and the fairy, liberated, fluttered joyfully. In gratitude, she sprinkled magical dust over Luna, a twinkling cascade that seemed to twirl endlessly through the air. The moment was surreal—a bond formed between the mystical and the ordinary.\n\nFrom that moment on, something extraordinary happened. Luna found herself imbued with incredible agility and grace. She could leap higher and farther than she ever dreamed possible, soaring over garden fences and exploring treetops like never before. The world transformed around her; every night became an adventure woven with the threads of magic and moonlight. The once-simple garden was now her enchanted playground, filled with secret wonders and celestial guidance.\n\n**Epilogue:**\nAs time passed, Luna became a guardian of the night, her emerald eyes shining brighter under the moon’s glow. With the fairy's magic entwined with her very spirit, her life turned into a vibrant tapestry of ethereal adventures. The nights echoed with her leaps and bounds while the garden flourished, blooming under the influence of their bond.\n\nThough she retained her sleek black fur and emerald eyes, Luna was forever changed, her heart tethered to the luminous moonlight and the enchanting magic that existed just beyond her window. In the stillness of night, she reminded every creature of the wonders that lay outside—a soft invitation to embrace the unknown and perhaps discover their own spark of magic.\n\nReferences: https://www.agno.com\n\n</workflow_history_context>\n\n \n</instructions>",
"from_history": false,
"stop_after_tool_call": false,
"role": "system",
"created_at": 1760441558
},
{
"content": "Compare Max and Luna",
"from_history": false,
"stop_after_tool_call": false,
"role": "user",
"created_at": 1760441558
},
{
"content": "Max and Luna both embody adventurous spirits, but they inhabit different worlds and experiences that define their characters:\n\n1. **Character and Animal Type**:\n - **Max** is a spirited husky known for his playful antics and love for adventure. He enjoys exploring snowy landscapes and engaging with children.\n - **Luna** is a sleek black cat with emerald eyes, who experiences the world primarily at night from the comfort of her home. Her adventures are marked by a touch of magic.\n\n2. **Setting**:\n - **Max's** story takes place in the winter wonderland of Pine Ridge, filled with snow and joyful interactions with children.\n - **Luna's** adventures unfold in a quiet town garden under the enchanting moonlight, where she encounters mystical elements like a fairy.\n\n3. **Adventures**:\n - **Max** enhances the fun of children by retrieving a scarf, ultimately forming friendships and bonding with them through shared play.\n - **Luna** embarks on a magical journey when she frees a fairy from a web, gaining agility and grace that transforms her nightly adventures into extraordinary experiences.\n\n4. **Themes**:\n - **Max** exemplifies themes of friendship, joy, and the simple pleasures of life in nature.\n - **Luna** explores themes of magic, transformation, and the beauty of the unknown, highlighting how ordinary life can be touched by the extraordinary.\n\nIn summary, while both characters are adventurous and engaging, they differ in their animal types, settings, types of adventures, and underlying themes in their stories.",
"from_history": false,
"stop_after_tool_call": false,
"role": "assistant",
"metrics": {
"input_tokens": 1312,
"output_tokens": 318,
"total_tokens": 1630
},
"created_at": 1760441558
}
],
"tools": [],
"input": {
"input_content": "Compare Max and Luna"
}
}
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment