[PR #495] [MERGED] Standardize the code of workflow use cases #542

Closed
opened 2026-02-15 20:15:14 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/run-llama/create-llama/pull/495
Author: @leehuwuj
Created: 1/24/2025
Status: Merged
Merged: 2/4/2025
Merged by: @marcusschiesser

Base: mainHead: lee/agent-workflow


📝 Commits (10+)

  • 0f91bc3 init change
  • 4b03399 use event stream
  • 843bbf3 fix deprecated upload-artifact
  • c27cd06 fix deprecated upload-artifact
  • 3718fde update financial report
  • 35ab9a9 Refactor streaming and event handling in financial report and multiagent components
  • 53a530d revert change on replace AgentRunner
  • f0aae8f update params streaming to stream
  • b053489 add back stream cancel handler
  • c24eb3a Merge remote-tracking branch 'origin' into lee/agent-workflow

📊 Changes

12 files changed (+304 additions, -177 deletions)

View changed files

.changeset/kind-mice-repair.md (+5 -0)
📝 templates/components/agents/python/deep_research/app/workflows/deep_research.py (+9 -11)
📝 templates/components/agents/python/financial_report/app/workflows/financial_report.py (+24 -21)
📝 templates/components/agents/python/form_filling/app/workflows/form_filling.py (+15 -15)
templates/components/multiagent/python/app/api/callbacks/__init__.py (+0 -0)
templates/components/multiagent/python/app/api/callbacks/base.py (+32 -0)
templates/components/multiagent/python/app/api/callbacks/llamacloud.py (+42 -0)
templates/components/multiagent/python/app/api/callbacks/next_question.py (+34 -0)
templates/components/multiagent/python/app/api/callbacks/stream_handler.py (+66 -0)
📝 templates/components/multiagent/python/app/api/routers/chat.py (+14 -9)
📝 templates/components/multiagent/python/app/api/routers/vercel_response.py (+58 -119)
📝 templates/components/multiagent/python/app/workflows/tools.py (+5 -2)

📄 Description

Summary by CodeRabbit

  • Refactor

    • Updated workflows to capture conversation history dynamically at runtime rather than via static initialization, streamlining interaction handling.
  • New Features

    • Enhanced streaming responses with improved dynamic control, error handling, and cancellation processes for a more robust and responsive user experience.
    • Introduced a new stream attribute for better management of streaming logic across workflows.
    • Added a new entry for "create-llama" to standardize workflow use cases in Python.
    • Introduced new classes for handling event callbacks, including EventCallback, LlamaCloudFileDownload, SuggestNextQuestions, and StreamHandler.
    • Improved handling of user messages and chat history within workflows, allowing for more flexible interactions.

���� This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/run-llama/create-llama/pull/495 **Author:** [@leehuwuj](https://github.com/leehuwuj) **Created:** 1/24/2025 **Status:** ✅ Merged **Merged:** 2/4/2025 **Merged by:** [@marcusschiesser](https://github.com/marcusschiesser) **Base:** `main` ← **Head:** `lee/agent-workflow` --- ### 📝 Commits (10+) - [`0f91bc3`](https://github.com/run-llama/create-llama/commit/0f91bc3e110604d68069323109afac4fae0768dc) init change - [`4b03399`](https://github.com/run-llama/create-llama/commit/4b03399deb22bf49199f52a7eac4c0d63a2ac5b1) use event stream - [`843bbf3`](https://github.com/run-llama/create-llama/commit/843bbf3d27491633918dc87610c0534a23af7229) fix deprecated upload-artifact - [`c27cd06`](https://github.com/run-llama/create-llama/commit/c27cd06e5eb56c3f1c16e3a6c53caf2e1668edac) fix deprecated upload-artifact - [`3718fde`](https://github.com/run-llama/create-llama/commit/3718fde5c0ad828631538a1e265061406dd659fa) update financial report - [`35ab9a9`](https://github.com/run-llama/create-llama/commit/35ab9a9799b3b37c62f5c52f8d5e4f5a698f36c9) Refactor streaming and event handling in financial report and multiagent components - [`53a530d`](https://github.com/run-llama/create-llama/commit/53a530db25c5cf3364094f050da8e58236b734fd) revert change on replace AgentRunner - [`f0aae8f`](https://github.com/run-llama/create-llama/commit/f0aae8fe1bc629c7b0918b5a11171738f034aff9) update params streaming to stream - [`b053489`](https://github.com/run-llama/create-llama/commit/b053489901018f1d0e6b86c57acd4f5109ec2fac) add back stream cancel handler - [`c24eb3a`](https://github.com/run-llama/create-llama/commit/c24eb3a5cc6dcae486f580cec767f720cedac2c9) Merge remote-tracking branch 'origin' into lee/agent-workflow ### 📊 Changes **12 files changed** (+304 additions, -177 deletions) <details> <summary>View changed files</summary> ➕ `.changeset/kind-mice-repair.md` (+5 -0) 📝 `templates/components/agents/python/deep_research/app/workflows/deep_research.py` (+9 -11) 📝 `templates/components/agents/python/financial_report/app/workflows/financial_report.py` (+24 -21) 📝 `templates/components/agents/python/form_filling/app/workflows/form_filling.py` (+15 -15) ➕ `templates/components/multiagent/python/app/api/callbacks/__init__.py` (+0 -0) ➕ `templates/components/multiagent/python/app/api/callbacks/base.py` (+32 -0) ➕ `templates/components/multiagent/python/app/api/callbacks/llamacloud.py` (+42 -0) ➕ `templates/components/multiagent/python/app/api/callbacks/next_question.py` (+34 -0) ➕ `templates/components/multiagent/python/app/api/callbacks/stream_handler.py` (+66 -0) 📝 `templates/components/multiagent/python/app/api/routers/chat.py` (+14 -9) 📝 `templates/components/multiagent/python/app/api/routers/vercel_response.py` (+58 -119) 📝 `templates/components/multiagent/python/app/workflows/tools.py` (+5 -2) </details> ### 📄 Description <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Refactor** - Updated workflows to capture conversation history dynamically at runtime rather than via static initialization, streamlining interaction handling. - **New Features** - Enhanced streaming responses with improved dynamic control, error handling, and cancellation processes for a more robust and responsive user experience. - Introduced a new `stream` attribute for better management of streaming logic across workflows. - Added a new entry for "create-llama" to standardize workflow use cases in Python. - Introduced new classes for handling event callbacks, including `EventCallback`, `LlamaCloudFileDownload`, `SuggestNextQuestions`, and `StreamHandler`. - Improved handling of user messages and chat history within workflows, allowing for more flexible interactions. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>���� This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-15 20:15:14 -05:00
yindo closed this issue 2026-02-15 20:15:14 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: run-llama/create-llama#542