PrefectHQ / ControlFlow

🦾 Take control of your AI agents
https://controlflow.ai
Apache License 2.0
709 stars 49 forks source link

Similar CLI output is repeated, repeatedly #362

Open discdiver opened 1 week ago

discdiver commented 1 week ago

Description

Output (truncated a lot due to size) - got a GH error: There was an error creating your Issue: body is too long (maximum is 65536 characters).:


╭─ Agent: Headline Summarizer ─────────────────────────────────────────────────────────────╮
│                                                                                          │
│  ✅ Tool call: "mark_task_e6439315_successful"                                           │
│                                                                                          │
│     Tool args: {'result': ["On November 2, 2023, the S&P 500 experienced its best day    │
│     since April, with the index adding almost 2% following a positive reaction in the    │
│     markets after the Federal Reserve's recent decision.", "America's largest cities     │
│     are in competition to be recognized as the most suitable places to endure potential  │
│     future dystopian scenarios, as they prepare for various challenges."]}               │
╭─ Agent: Headline Summarizer ─────────────────────────────────────────────────────────────╮
│                                                                                          │
│  ✅ Tool call: "duckduckgo_search"                                                       │
│                                                                                          │
│     Tool args: {'query': 'top business news November 2 2023'}                            │
│                                                                                          │
│     Tool result: Nov. 2, 2023 at 6:21 PM EDT The post-Fed party continued Thursday,      │
│     with the S&P 500 recording its best day since April. Read the day's full markets     │
│     roundup here . Today's Headlines. Inside the Deadly Maui Inferno, Hour by Hour. By   │
│     Mike Baker, Malika Khurana, K.K. Rebecca Lai, Riley Mellen, Natalie Reneau, Bedel    │
│     Saget, Elena Shao, Anjali Singhvi and Charlie ... In other news America's biggest    │
│     cities are vying for a hot, new title: best place to ride out dystopia Bob Knight ,  │
│     the famed Indiana basketball coach, has died at age 83 November 2, 2023 at 5:43 PM   │
│     EDT. Save ... the S&P 500 added almost 2% — its best session since April. ... News.  │
│     Markets Economics Technology Politics Green Crypto AI. Search WSJ's digital archive  │
│     of news articles and top headlines from November 2, 2023                             │
│                                                                                          │
╰────────────────────────────────────────────────────────────────────────────  6:17:04 PM ─╯
╭─ Agent: Headline Summarizer ─────────────────────────────────────────────────────────────╮
│                                                                                          │
│  ✅ Tool call: "mark_task_e6439315_successful"                                           │
│                                                                                          │
│     Tool args: {'result': ["On November 2, 2023, the S&P 500 experienced its best day    │
│     since April, with the index adding almost 2% following a positive reaction in the    │
│     markets after the Federal Reserve's recent decision.", "America's largest cities     │
│     are in competition to be recognized as the most suitable places to endure potential  │
│     future dystopian scenarios, as they prepare for various challenges."]}               │
╭─ Agent: Headline Summarizer ─────────────────────────────────────────────────────────────╮
│                                                                                          │
│  ✅ Tool call: "duckduckgo_search"                                                       │
│                                                                                          │
│     Tool args: {'query': 'top business news November 2 2023'}                            │
│                                                                                          │
│     Tool result: Nov. 2, 2023 at 6:21 PM EDT The post-Fed party continued Thursday,      │
│     with the S&P 500 recording its best day since April. Read the day's full markets     │
│     roundup here . Today's Headlines. Inside the Deadly Maui Inferno, Hour by Hour. By   │
│     Mike Baker, Malika Khurana, K.K. Rebecca Lai, Riley Mellen, Natalie Reneau, Bedel    │
│     Saget, Elena Shao, Anjali Singhvi and Charlie ... In other news America's biggest    │
│     cities are vying for a hot, new title: best place to ride out dystopia Bob Knight ,  │
│     the famed Indiana basketball coach, has died at age 83 November 2, 2023 at 5:43 PM   │
│     EDT. Save ... the S&P 500 added almost 2% — its best session since April. ... News.  │
│     Markets Economics Technology Politics Green Crypto AI. Search WSJ's digital archive  │
│     of news articles and top headlines from November 2, 2023                             │
│                                                                                          │
╰────────────────────────────────────────────────────────────────────────────  6:17:04 PM ─╯
╭─ Agent: Headline Summarizer ─────────────────────────────────────────────────────────────╮
│                                                                                          │
│  ✅ Tool call: "mark_task_e6439315_successful"                                           │
│                                                                                          │
│     Tool args: {'result': ["On November 2, 2023, the S&P 500 experienced its best day    │
│     since April, with the index adding almost 2% following a positive reaction in the    │
│     markets after the Federal Reserve's recent decision.", "America's largest cities     │
│     are in competition to be recognized as the most suitable places to endure potential  │
│     future dystopian scenarios, as they prepare for various challenges."]}               │
│                                                                                          │
╭─ Agent: Headline Summarizer ─────────────────────────────────────────────────────────────╮
│                                                                                          │
│  ✅ Tool call: "duckduckgo_search"                                                       │
│                                                                                          │
│     Tool args: {'query': 'top business news November 2 2023'}                            │
│                                                                                          │
│     Tool result: Nov. 2, 2023 at 6:21 PM EDT The post-Fed party continued Thursday,      │
│     with the S&P 500 recording its best day since April. Read the day's full markets     │
│     roundup here . Today's Headlines. Inside the Deadly Maui Inferno, Hour by Hour. By   │
│     Mike Baker, Malika Khurana, K.K. Rebecca Lai, Riley Mellen, Natalie Reneau, Bedel    │
│     Saget, Elena Shao, Anjali Singhvi and Charlie ... In other news America's biggest    │
│     cities are vying for a hot, new title: best place to ride out dystopia Bob Knight ,  │
│     the famed Indiana basketball coach, has died at age 83 November 2, 2023 at 5:43 PM   │
│     EDT. Save ... the S&P 500 added almost 2% — its best session since April. ... News.  │
│     Markets Economics Technology Politics Green Crypto AI. Search WSJ's digital archive  │
│     of news articles and top headlines from November 2, 2023                             │
│                                                                                          │
╰────────────────────────────────────────────────────────────────────────────  6:17:04 PM ─╯
╭─ Agent: Headline Summarizer ─────────────────────────────────────────────────────────────╮
│                                                                                          │
│  ✅ Tool call: "mark_task_e6439315_successful"                                           │
│                                                                                          │
│     Tool args: {'result': ["On November 2, 2023, the S&P 500 experienced its best day    │
│     since April, with the index adding almost 2% following a positive reaction in the    │
│     markets after the Federal Reserve's recent decision.", "America's largest cities     │
│     are in competition to be recognized as the most suitable places to endure potential  │
│     future dystopian scenarios, as they prepare for various challenges."]}               │
│                                                                                          │
╭─ Agent: Headline Summarizer ─────────────────────────────────────────────────────────────╮
│                                                                                          │
│  ✅ Tool call: "duckduckgo_search"                                                       │
│                                                                                          │
│     Tool args: {'query': 'top business news November 2 2023'}                            │
│                                                                                          │
│     Tool result: Nov. 2, 2023 at 6:21 PM EDT The post-Fed party continued Thursday,      │
│     with the S&P 500 recording its best day since April. Read the day's full markets     │
│     roundup here . Today's Headlines. Inside the Deadly Maui Inferno, Hour by Hour. By   │
│     Mike Baker, Malika Khurana, K.K. Rebecca Lai, Riley Mellen, Natalie Reneau, Bedel    │
│     Saget, Elena Shao, Anjali Singhvi and Charlie ... In other news America's biggest    │
│     cities are vying for a hot, new title: best place to ride out dystopia Bob Knight ,  │
│     the famed Indiana basketball coach, has died at age 83 November 2, 2023 at 5:43 PM   │
│     EDT. Save ... the S&P 500 added almost 2% — its best session since April. ... News.  │
│     Markets Economics Technology Politics Green Crypto AI. Search WSJ's digital archive  │
│     of news articles and top headlines from November 2, 2023                             │
│                                                                                          │
╰────────────────────────────────────────────────────────────────────────────  6:17:04 PM ─╯
╭─ Agent: Headline Summarizer ─────────────────────────────────────────────────────────────╮
│                                                                                          │
│  ✅ Tool call: "mark_task_e6439315_successful"                                           │
│                                                                                          │
│     Tool args: {'result': ["On November 2, 2023, the S&P 500 experienced its best day    │
│     since April, with the index adding almost 2% following a positive reaction in the    │
│     markets after the Federal Reserve's recent decision.", "America's largest cities     │
│     are in competition to be recognized as the most suitable places to endure potential  │
│     future dystopian scenarios, as they prepare for various challenges."]}               │
│                                                                                          │
╭─ Agent: Headline Summarizer ─────────────────────────────────────────────────────────────╮
│                                                                                          │
│  ✅ Tool call: "duckduckgo_search"                                                       │
│                                                                                          │
│     Tool args: {'query': 'top business news November 2 2023'}                            │
│                                                                                          │
│     Tool result: Nov. 2, 2023 at 6:21 PM EDT The post-Fed party continued Thursday,      │
│     with the S&P 500 recording its best day since April. Read the day's full markets     │
│     roundup here . Today's Headlines. Inside the Deadly Maui Inferno, Hour by Hour. By   │
│     Mike Baker, Malika Khurana, K.K. Rebecca Lai, Riley Mellen, Natalie Reneau, Bedel    │
│     Saget, Elena Shao, Anjali Singhvi and Charlie ... In other news America's biggest    │
│     cities are vying for a hot, new title: best place to ride out dystopia Bob Knight ,  │
│     the famed Indiana basketball coach, has died at age 83 November 2, 2023 at 5:43 PM   │
│     EDT. Save ... the S&P 500 added almost 2% — its best session since April. ... News.  │
│     Markets Economics Technology Politics Green Crypto AI. Search WSJ's digital archive  │
│     of news articles and top headlines from November 2, 2023                             │
│                                                                                          │
╰────────────────────────────────────────────────────────────────────────────  6:17:04 PM ─╯
╭─ Agent: Headline Summarizer ─────────────────────────────────────────────────────────────╮
│                                                                                          │
│  ✅ Tool call: "mark_task_e6439315_successful"                                           │
│                                                                                          │
│     Tool args: {'result': ["On November 2, 2023, the S&P 500 experienced its best day    │
│     since April, with the index adding almost 2% following a positive reaction in the    │
│     markets after the Federal Reserve's recent decision.", "America's largest cities     │
│     are in competition to be recognized as the most suitable places to endure potential  │
│     future dystopian scenarios, as they prepare for various challenges."]}               │
│                                                                                          │
╭─ Agent: Headline Summarizer ─────────────────────────────────────────────────────────────╮
│                                                                                          │
│  ✅ Tool call: "duckduckgo_search"                                                       │
│                                                                                          │
│     Tool args: {'query': 'top business news November 2 2023'}                            │
│                                                                                          │
│     Tool result: Nov. 2, 2023 at 6:21 PM EDT The post-Fed party continued Thursday,      │
│     with the S&P 500 recording its best day since April. Read the day's full markets     │
│     roundup here . Today's Headlines. Inside the Deadly Maui Inferno, Hour by Hour. By   │
│     Mike Baker, Malika Khurana, K.K. Rebecca Lai, Riley Mellen, Natalie Reneau, Bedel    │
│     Saget, Elena Shao, Anjali Singhvi and Charlie ... In other news America's biggest    │
│     cities are vying for a hot, new title: best place to ride out dystopia Bob Knight ,  │
│     the famed Indiana basketball coach, has died at age 83 November 2, 2023 at 5:43 PM   │
│     EDT. Save ... the S&P 500 added almost 2% — its best session since April. ... News.  │
│     Markets Economics Technology Politics Green Crypto AI. Search WSJ's digital archive  │
│     of news articles and top headlines from November 2, 2023                             │
│                                                                                          │
╰────────────────────────────────────────────────────────────────────────────  6:17:04 PM ─╯
╭─ Agent: Headline Summarizer ─────────────────────────────────────────────────────────────╮
│                                                                                          │
│  ✅ Tool call: "mark_task_e6439315_successful"                                           │
│                                                                                          │
│     Tool args: {'result': ["On November 2, 2023, the S&P 500 experienced its best day    │
│     since April, with the index adding almost 2% following a positive reaction in the    │
│     markets after the Federal Reserve's recent decision.", "America's largest cities     │
│     are in competition to be recognized as the most suitable places to endure potential  │
│     future dystopian scenarios, as they prepare for various challenges."]}               │
│                                                                                          │
╭─ Agent: Headline Summarizer ─────────────────────────────────────────────────────────────╮
│                                                                                          │
│  ✅ Tool call: "duckduckgo_search"                                                       │
│                                                                                          │
│     Tool args: {'query': 'top business news November 2 2023'}                            │
│                                                                                          │
│     Tool result: Nov. 2, 2023 at 6:21 PM EDT The post-Fed party continued Thursday,      │
│     with the S&P 500 recording its best day since April. Read the day's full markets     │
│     roundup here . Today's Headlines. Inside the Deadly Maui Inferno, Hour by Hour. By   │
│     Mike Baker, Malika Khurana, K.K. Rebecca Lai, Riley Mellen, Natalie Reneau, Bedel    │
│     Saget, Elena Shao, Anjali Singhvi and Charlie ... In other news America's biggest    │
│     cities are vying for a hot, new title: best place to ride out dystopia Bob Knight ,  │
│     the famed Indiana basketball coach, has died at age 83 November 2, 2023 at 5:43 PM   │
│     EDT. Save ... the S&P 500 added almost 2% — its best session since April. ... News.  │
│     Markets Economics Technology Politics Green Crypto AI. Search WSJ's digital archive  │
│     of news articles and top headlines from November 2, 2023                             │
│                                                                                          │
╰────────────────────────────────────────────────────────────────────────────  6:17:04 PM ─╯
╭─ Agent: Headline Summarizer ─────────────────────────────────────────────────────────────╮
│                                                                                          │
│  ✅ Tool call: "mark_task_e6439315_successful"                                           │
│                                                                                          │
│     Tool args: {'result': ["On November 2, 2023, the S&P 500 experienced its best day    │
│     since April, with the index adding almost 2% following a positive reaction in the    │
│     markets after the Federal Reserve's recent decision.", "America's largest cities     │
│     are in competition to be recognized as the most suitable places to endure potential  │
│     future dystopian scenarios, as they prepare for various challenges."]}               │
│                                                                                          │
╭─ Agent: Headline Summarizer ─────────────────────────────────────────────────────────────╮
│                                                                                          │
│  ✅ Tool call: "duckduckgo_search"                                                       │
│                                                                                          │
│     Tool args: {'query': 'top business news November 2 2023'}                            │
│                                                                                          │
│     Tool result: Nov. 2, 2023 at 6:21 PM EDT The post-Fed party continued Thursday,      │
│     with the S&P 500 recording its best day since April. Read the day's full markets     │
│     roundup here . Today's Headlines. Inside the Deadly Maui Inferno, Hour by Hour. By   │
│     Mike Baker, Malika Khurana, K.K. Rebecca Lai, Riley Mellen, Natalie Reneau, Bedel    │
│     Saget, Elena Shao, Anjali Singhvi and Charlie ... In other news America's biggest    │
│     cities are vying for a hot, new title: best place to ride out dystopia Bob Knight ,  │
│     the famed Indiana basketball coach, has died at age 83 November 2, 2023 at 5:43 PM   │
│     EDT. Save ... the S&P 500 added almost 2% — its best session since April. ... News.  │
│     Markets Economics Technology Politics Green Crypto AI. Search WSJ's digital archive  │
│     of news articles and top headlines from November 2, 2023                             │
│                                                                                          │
╰────────────────────────────────────────────────────────────────────────────  6:17:04 PM ─╯
╭─ Agent: Headline Summarizer ─────────────────────────────────────────────────────────────╮
│                                                                                          │
│  ✅ Tool call: "mark_task_e6439315_successful"                                           │
│                                                                                          │
│     Tool args: {'result': ["On November 2, 2023, the S&P 500 experienced its best day    │
│     since April, with the index adding almost 2% following a positive reaction in the    │
│     markets after the Federal Reserve's recent decision.", "America's largest cities     │
│     are in competition to be recognized as the most suitable places to endure potential  │
│     future dystopian scenarios, as they prepare for various challenges."]}               │
│                                                                                          │
╭─ Agent: Headline Summarizer ─────────────────────────────────────────────────────────────╮
│                                                                                          │
│  ✅ Tool call: "duckduckgo_search"                                                       │
│                                                                                          │
│     Tool args: {'query': 'top business news November 2 2023'}                            │
│                                                                                          │
│     Tool result: Nov. 2, 2023 at 6:21 PM EDT The post-Fed party continued Thursday,      │
│     with the S&P 500 recording its best day since April. Read the day's full markets     │
│     roundup here . Today's Headlines. Inside the Deadly Maui Inferno, Hour by Hour. By   │
│     Mike Baker, Malika Khurana, K.K. Rebecca Lai, Riley Mellen, Natalie Reneau, Bedel    │
│     Saget, Elena Shao, Anjali Singhvi and Charlie ... In other news America's biggest    │
│     cities are vying for a hot, new title: best place to ride out dystopia Bob Knight ,  │
│     the famed Indiana basketball coach, has died at age 83 November 2, 2023 at 5:43 PM   │
│     EDT. Save ... the S&P 500 added almost 2% — its best session since April. ... News.  │
│     Markets Economics Technology Politics Green Crypto AI. Search WSJ's digital archive  │
│     of news articles and top headlines from November 2, 2023                             │
│                                                                                          │
╰────────────────────────────────────────────────────────────────────────────  6:17:04 PM ─╯
╭─ Agent: Headline Summarizer ─────────────────────────────────────────────────────────────╮
│                                                                                          │
│  ✅ Tool call: "mark_task_e6439315_successful"                                           │
│                                                                                          │
│     Tool args: {'result': ["On November 2, 2023, the S&P 500 experienced its best day    │
│     since April, with the index adding almost 2% following a positive reaction in the    │
│     markets after the Federal Reserve's recent decision.", "America's largest cities     │
│     are in competition to be recognized as the most suitable places to endure potential  │
│     future dystopian scenarios, as they prepare for various challenges."]}               │
│                                                                                          │
╭─ Agent: Headline Summarizer ─────────────────────────────────────────────────────────────╮
│                                                                                          │
│  ✅ Tool call: "duckduckgo_search"                                                       │
│                                                                                          │
│     Tool args: {'query': 'top business news November 2 2023'}                            │
│                                                                                          │
│     Tool result: Nov. 2, 2023 at 6:21 PM EDT The post-Fed party continued Thursday,      │
│     with the S&P 500 recording its best day since April. Read the day's full markets     │
│     roundup here . Today's Headlines. Inside the Deadly Maui Inferno, Hour by Hour. By   │
│     Mike Baker, Malika Khurana, K.K. Rebecca Lai, Riley Mellen, Natalie Reneau, Bedel    │
│     Saget, Elena Shao, Anjali Singhvi and Charlie ... In other news America's biggest    │
│     cities are vying for a hot, new title: best place to ride out dystopia Bob Knight ,  │
│     the famed Indiana basketball coach, has died at age 83 November 2, 2023 at 5:43 PM   │
│     EDT. Save ... the S&P 500 added almost 2% — its best session since April. ... News.  │
│     Markets Economics Technology Politics Green Crypto AI. Search WSJ's digital archive  │
│     of news articles and top headlines from November 2, 2023                             │
│                                                                                          │
╰────────────────────────────────────────────────────────────────────────────  6:17:04 PM ─╯
╭─ Agent: Headline Summarizer ─────────────────────────────────────────────────────────────╮
│                                                                                          │
│  ✅ Tool call: "mark_task_e6439315_successful"                                           │
│                                                                                          │
│     Tool args: {'result': ["On November 2, 2023, the S&P 500 experienced its best day    │
│     since April, with the index adding almost 2% following a positive reaction in the    │
│     markets after the Federal Reserve's recent decision.", "America's largest cities     │
│     are in competition to be recognized as the most suitable places to endure potential  │
│     future dystopian scenarios, as they prepare for various challenges."]}               │
│                                                                                          │
╭─ Agent: Headline Summarizer ─────────────────────────────────────────────────────────────╮
│                                                                                          │
│  ✅ Tool call: "duckduckgo_search"                                                       │
│                                                                                          │
│     Tool args: {'query': 'top business news November 2 2023'}                            │
│                                                                                          │
│     Tool result: Nov. 2, 2023 at 6:21 PM EDT The post-Fed party continued Thursday,      │
│     with the S&P 500 recording its best day since April. Read the day's full markets     │
│     roundup here . Today's Headlines. Inside the Deadly Maui Inferno, Hour by Hour. By   │
│     Mike Baker, Malika Khurana, K.K. Rebecca Lai, Riley Mellen, Natalie Reneau, Bedel    │
│     Saget, Elena Shao, Anjali Singhvi and Charlie ... In other news America's biggest    │
│     cities are vying for a hot, new title: best place to ride out dystopia Bob Knight ,  │
│     the famed Indiana basketball coach, has died at age 83 November 2, 2023 at 5:43 PM   │
│     EDT. Save ... the S&P 500 added almost 2% — its best session since April. ... News.  │
│     Markets Economics Technology Politics Green Crypto AI. Search WSJ's digital archive  │
│     of news articles and top headlines from November 2, 2023                             │
│                                                                                          │
╰────────────────────────────────────────────────────────────────────────────  6:17:04 PM ─╯
╭─ Agent: Headline Summarizer ─────────────────────────────────────────────────────────────╮
│                                                                                          │
│  ✅ Tool call: "mark_task_e6439315_successful"                                           │
│                                                                                          │
│     Tool args: {'result': ["On November 2, 2023, the S&P 500 experienced its best day    │
│     since April, with the index adding almost 2% following a positive reaction in the    │
│     markets after the Federal Reserve's recent decision.", "America's largest cities     │
│     are in competition to be recognized as the most suitable places to endure potential  │
│     future dystopian scenarios, as they prepare for various challenges."]}               │
│                                                                                          │
╭─ Agent: Headline Summarizer ─────────────────────────────────────────────────────────────╮
│                                                                                          │
│  ✅ Tool call: "duckduckgo_search"                                                       │
│                                                                                          │
│     Tool args: {'query': 'top business news November 2 2023'}                            │
│                                                                                          │
│     Tool result: Nov. 2, 2023 at 6:21 PM EDT The post-Fed party continued Thursday,      │
│     with the S&P 500 recording its best day since April. Read the day's full markets     │
│     roundup here . Today's Headlines. Inside the Deadly Maui Inferno, Hour by Hour. By   │
│     Mike Baker, Malika Khurana, K.K. Rebecca Lai, Riley Mellen, Natalie Reneau, Bedel    │
│     Saget, Elena Shao, Anjali Singhvi and Charlie ... In other news America's biggest    │
│     cities are vying for a hot, new title: best place to ride out dystopia Bob Knight ,  │
│     the famed Indiana basketball coach, has died at age 83 November 2, 2023 at 5:43 PM   │
│     EDT. Save ... the S&P 500 added almost 2% — its best session since April. ... News.  │
│     Markets Economics Technology Politics Green Crypto AI. Search WSJ's digital archive  │
│     of news articles and top headlines from November 2, 2023                             │
│                                                                                          │
╰────────────────────────────────────────────────────────────────────────────  6:17:04 PM ─╯
╭─ Agent: Headline Summarizer ─────────────────────────────────────────────────────────────╮
│                                                                                          │
│  ✅ Tool call: "mark_task_e6439315_successful"                                           │
│                                                                                          │
│     Tool args: {'result': ["On November 2, 2023, the S&P 500 experienced its best day    │
│     since April, with the index adding almost 2% following a positive reaction in the    │
│     markets after the Federal Reserve's recent decision.", "America's largest cities     │
│     are in competition to be recognized as the most suitable places to endure potential  │
│     future dystopian scenarios, as they prepare for various challenges."]}               │
│                                                                                          │
╭─ Agent: Headline Summarizer ─────────────────────────────────────────────────────────────╮
│                                                                                          │
│  ✅ Tool call: "duckduckgo_search"                                                       │
│                                                                                          │
│     Tool args: {'query': 'top business news November 2 2023'}                            │
│                                                                                          │
│     Tool result: Nov. 2, 2023 at 6:21 PM EDT The post-Fed party continued Thursday,      │
│     with the S&P 500 recording its best day since April. Read the day's full markets     │
│     roundup here . Today's Headlines. Inside the Deadly Maui Inferno, Hour by Hour. By   │
│     Mike Baker, Malika Khurana, K.K. Rebecca Lai, Riley Mellen, Natalie Reneau, Bedel    │
│     Saget, Elena Shao, Anjali Singhvi and Charlie ... In other news America's biggest    │
│     cities are vying for a hot, new title: best place to ride out dystopia Bob Knight ,  │
│     the famed Indiana basketball coach, has died at age 83 November 2, 2023 at 5:43 PM   │
│     EDT. Save ... the S&P 500 added almost 2% — its best session since April. ... News.  │
│     Markets Economics Technology Politics Green Crypto AI. Search WSJ's digital archive  │
│     of news articles and top headlines from November 2, 2023                             │
│                                                                                          │
╰────────────────────────────────────────────────────────────────────────────  6:17:04 PM ─╯
╭─ Agent: Headline Summarizer ─────────────────────────────────────────────────────────────╮
│                                                                                          │
│  ✅ Tool call: "mark_task_e6439315_successful"                                           │
│                                                                                          │
│     Tool args: {'result': ["On November 2, 2023, the S&P 500 experienced its best day    │
│     since April, with the index adding almost 2% following a positive reaction in the    │
│     markets after the Federal Reserve's recent decision.", "America's largest cities     │
│     are in competition to be recognized as the most suitable places to endure potential  │
│     future dystopian scenarios, as they prepare for various challenges."]}               │
│                                                                                          │
╭─ Agent: Headline Summarizer ─────────────────────────────────────────────────────────────╮
│                                                                                          │
│  ✅ Tool call: "duckduckgo_search"                                                       │
│                                                                                          │
│     Tool args: {'query': 'top business news November 2 2023'}                            │
│                                                                                          │
│     Tool result: Nov. 2, 2023 at 6:21 PM EDT The post-Fed party continued Thursday,      │
│     with the S&P 500 recording its best day since April. Read the day's full markets     │
│     roundup here . Today's Headlines. Inside the Deadly Maui Inferno, Hour by Hour. By   │
│     Mike Baker, Malika Khurana, K.K. Rebecca Lai, Riley Mellen, Natalie Reneau, Bedel    │
│     Saget, Elena Shao, Anjali Singhvi and Charlie ... In other news America's biggest    │
│     cities are vying for a hot, new title: best place to ride out dystopia Bob Knight ,  │
│     the famed Indiana basketball coach, has died at age 83 November 2, 2023 at 5:43 PM   │
│     EDT. Save ... the S&P 500 added almost 2% — its best session since April. ... News.  │
│     Markets Economics Technology Politics Green Crypto AI. Search WSJ's digital archive  │
│     of news articles and top headlines from November 2, 2023                             │
│                                                                                          │
╰────────────────────────────────────────────────────────────────────────────  6:17:04 PM ─╯
╭─ Agent: Headline Summarizer ─────────────────────────────────────────────────────────────╮
│                                                                                          │
│  ✅ Tool call: "mark_task_e6439315_successful"                                           │
│                                                                                          │
│     Tool args: {'result': ["On November 2, 2023, the S&P 500 experienced its best day    │
│     since April, with the index adding almost 2% following a positive reaction in the    │
│     markets after the Federal Reserve's recent decision.", "America's largest cities     │
│     are in competition to be recognized as the most suitable places to endure potential  │
│     future dystopian scenarios, as they prepare for various challenges."]}               │
│                                                                                          │
╭─ Agent: Headline Summarizer ─────────────────────────────────────────────────────────────╮
│                                                                                          │
│  ✅ Tool call: "duckduckgo_search"                                                       │
│                                                                                          │
│     Tool args: {'query': 'top business news November 2 2023'}                            │
│                                                                                          │
│     Tool result: Nov. 2, 2023 at 6:21 PM EDT The post-Fed party continued Thursday,      │
│     with the S&P 500 recording its best day since April. Read the day's full markets     │
│     roundup here . Today's Headlines. Inside the Deadly Maui Inferno, Hour by Hour. By   │
│     Mike Baker, Malika Khurana, K.K. Rebecca Lai, Riley Mellen, Natalie Reneau, Bedel    │
│     Saget, Elena Shao, Anjali Singhvi and Charlie ... In other news America's biggest    │
│     cities are vying for a hot, new title: best place to ride out dystopia Bob Knight ,  │
│     the famed Indiana basketball coach, has died at age 83 November 2, 2023 at 5:43 PM   │
│     EDT. Save ... the S&P 500 added almost 2% — its best session since April. ... News.  │
│     Markets Economics Technology Politics Green Crypto AI. Search WSJ's digital archive  │
│     of news articles and top headlines from November 2, 2023                             │
│                                                                                          │
╰────────────────────────────────────────────────────────────────────────────  6:17:04 PM ─╯
╭─ Agent: Headline Summarizer ─────────────────────────────────────────────────────────────╮
│                                                                                          │
│  ✅ Tool call: "mark_task_e6439315_successful"                                           │
│                                                                                          │
│     Tool args: {'result': ["On November 2, 2023, the S&P 500 experienced its best day    │
│     since April, with the index adding almost 2% following a positive reaction in the    │
│     markets after the Federal Reserve's recent decision.", "America's largest cities     │
│     are in competition to be recognized as the most suitable places to endure potential  │
│     future dystopian scenarios, as they prepare for various challenges."]}               │
│                                                                                          │
╭─ Agent: Headline Summarizer ─────────────────────────────────────────────────────────────╮
│                                                                                          │
│  ✅ Tool call: "duckduckgo_search"                                                       │
│                                                                                          │
│     Tool args: {'query': 'top business news November 2 2023'}                            │
│                                                                                          │
│     Tool result: Nov. 2, 2023 at 6:21 PM EDT The post-Fed party continued Thursday,      │
│     with the S&P 500 recording its best day since April. Read the day's full markets     │
│     roundup here . Today's Headlines. Inside the Deadly Maui Inferno, Hour by Hour. By   │
│     Mike Baker, Malika Khurana, K.K. Rebecca Lai, Riley Mellen, Natalie Reneau, Bedel    │
│     Saget, Elena Shao, Anjali Singhvi and Charlie ... In other news America's biggest    │
│     cities are vying for a hot, new title: best place to ride out dystopia Bob Knight ,  │
│     the famed Indiana basketball coach, has died at age 83 November 2, 2023 at 5:43 PM   │
│     EDT. Save ... the S&P 500 added almost 2% — its best session since April. ... News.  │
│     Markets Economics Technology Politics Green Crypto AI. Search WSJ's digital archive  │
│     of news articles and top headlines from November 2, 2023                             │
│                                                                                          │
╰────────────────────────────────────────────────────────────────────────────  6:17:04 PM ─╯
╭─ Agent: Headline Summarizer ─────────────────────────────────────────────────────────────╮
│                                                                                          │
│  ✅ Tool call: "mark_task_e6439315_successful"                                           │
│                                                                                          │
│     Tool args: {'result': ["On November 2, 2023, the S&P 500 experienced its best day    │
│     since April, with the index adding almost 2% following a positive reaction in the    │
│     markets after the Federal Reserve's recent decision.", "America's largest cities     │
│     are in competition to be recognized as the most suitable places to endure potential  │
│     future dystopian scenarios, as they prepare for various challenges."]}               │
│                                                                                          │
│     Tool result: Task #e6439315 ("Retrieve and summarize today's two top business        │
│     he...") marked successful.                                                           │
│                                                                                          │
╭─ Agent: Headline Summarizer ─────────────────────────────────────────────────────────────╮
│                                                                                          │
│  ✅ Tool call: "duckduckgo_search"                                                       │
│                                                                                          │
│     Tool args: {'query': 'top business news November 2 2023'}                            │
│                                                                                          │
│     Tool result: Nov. 2, 2023 at 6:21 PM EDT The post-Fed party continued Thursday,      │
│     with the S&P 500 recording its best day since April. Read the day's full markets     │
│     roundup here . Today's Headlines. Inside the Deadly Maui Inferno, Hour by Hour. By   │
│     Mike Baker, Malika Khurana, K.K. Rebecca Lai, Riley Mellen, Natalie Reneau, Bedel    │
│     Saget, Elena Shao, Anjali Singhvi and Charlie ... In other news America's biggest    │
│     cities are vying for a hot, new title: best place to ride out dystopia Bob Knight ,  │
│     the famed Indiana basketball coach, has died at age 83 November 2, 2023 at 5:43 PM   │
│     EDT. Save ... the S&P 500 added almost 2% — its best session since April. ... News.  │
│     Markets Economics Technology Politics Green Crypto AI. Search WSJ's digital archive  │
│     of news articles and top headlines from November 2, 2023                             │
│                                                                                          │
╰────────────────────────────────────────────────────────────────────────────  6:17:04 PM ─╯
╭─ Agent: Headline Summarizer ─────────────────────────────────────────────────────────────╮
│                                                                                          │
│  ✅ Tool call: "mark_task_e6439315_successful"                                           │
│                                                                                          │
│     Tool args: {'result': ["On November 2, 2023, the S&P 500 experienced its best day    │
│     since April, with the index adding almost 2% following a positive reaction in the    │
│     markets after the Federal Reserve's recent decision.", "America's largest cities     │
│     are in competition to be recognized as the most suitable places to endure potential  │
│     future dystopian scenarios, as they prepare for various challenges."]}               │
│                                                                                          │
│     Tool result: Task #e6439315 ("Retrieve and summarize today's two top business        │
│     he...") marked successful.                                                           │
│                                                                                          │
╰────────────────────────────────────────────────────────────────────────────  6:17:07 PM ─╯
╭─ Agent: Entity Extractor ────────────────────────────────────────────────────────────────╮
│                                                                                          │
│  ✅ Tool call: "mark_task_f59000ff_successful"                                           │
│                                                                                          │
│     Tool args: {'result': "1. S&P 500 - The sentiment is positive as the index           │
│     experienced its best day since April, adding almost 2% following a favorable market  │
│     reaction.\n2. No specific Fortune 500 companies were mentioned in the second         │
│     headline about America's largest cities preparing for dystopian scenarios."}         │
│                                                                                          │
│     Tool result: Task #f59000ff ("Extract any fortune 500 companies mentioned in         │
│     the...") marked successful.                                                          │
│                                                                                          │
╰────────────────────────────────────────────────────────────────────────────  6:17:10 PM ─╯

Example Code

import controlflow as cf
from langchain_community.tools import DuckDuckGoSearchRun

summarizer = cf.Agent(
    name="Headline Summarizer",
    instructions="An AI agent that fetches and summarizes current events",
    tools=[DuckDuckGoSearchRun()],
)

extractor = cf.Agent(
    name="Entity Extractor",
    instructions="An AI agent that does named entity recognition",
)

# @cf.flow()
def get_headlines():

    summarizer_task = cf.Task(
        "Retrieve and summarize today's two top business headlines",
        agents=[summarizer],
        result_type=list[str],
    )

    extractor_task = cf.Task(
        "Extract any fortune 500 companies mentioned in the headlines and whether the sentiment is positive, neutral, or negative",
        agents=[extractor],
        depends_on=[summarizer_task],
    )

    results = cf.run_tasks([summarizer_task, extractor_task])
    return results

if __name__ == "__main__":
    results = get_headlines()
    print(results)

Version Information

ControlFlow version: 0.11.0                                              
       Prefect version: 3.0.10                                              
LangChain Core version: 0.3.12                                              
        Python version: 3.12.2                                              
              Platform: macOS-15.0.1-arm64-arm-64bit                        
                  Path: /opt/homebrew/Caskroom/miniforge/base/lib/python3.12

Additional Context

No response

zzstoatzz commented 6 days ago

sorry, what's the issue that you're expressing? i.e. what exactly should be different?

you can disable all the pretty logs with CONTROLFLOW_PRETTY_PRINT_AGENT_EVENTS=0

discdiver commented 6 days ago

In previous versions of CF, I did not get dozens of logs. If that can be controlled, by changing the setting CONTROLFLOW_PRETTY_PRINT_AGENT_EVENTS=0, then I think that should be the default.

jlowin commented 4 days ago

Is it performing the same task over and over in those logs? Or are those different calls?

discdiver commented 3 days ago

Just ran it again and saw multiple, slightly different calls. For example:

Tool call: "duckduckgo_search"                             │
│                                                                │
│     Tool args: {'query': 'top business headlines October 20    │
│     2023'}     

Tool call: "duckduckgo_search"                             │
│                                                                │
│     Tool args: {'query': 'business news October 20 2023'}    

Tool call: "duckduckgo_search"                             │
│                                                                │
│     Tool args: {'query': 'top business news October 20 2023'} 

Tool call: "duckduckgo_search"                             │
│                                                                │
│     Tool args: {'query': 'top business news October 20 2023'}  │
│             
Tool call: "duckduckgo_search"                             │
│                                                                │
│     Tool args: {'query': 'business news October 20 2023'}  

I would expect a single call.

Also surprised that the LLM thinks the date is Oct. 20, 2023. I could change my code to be explicitly pass today's date in the instructions (don't remember having to do that previously).