mirror of
https://github.com/run-llama/create-llama.git
synced 2026-07-18 04:49:33 -04:00
[PR #592] [MERGED] Support the new workflow for @llamaindex/server #621
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/run-llama/create-llama/pull/592
Author: @leehuwuj
Created: 5/2/2025
Status: ✅ Merged
Merged: 5/7/2025
Merged by: @marcusschiesser
Base:
main← Head:lee/use-llamaflow📝 Commits (10+)
c360e3euse the new llama-flow workflowa5b027bupdate create-llamacdc5349update deep research workflow to use llama-flow6063a9bupdate ts config to avoid overhead checking python1e806dbRefactor workflows to use startAgentEvent and remove workflowInputEvent. Clean up unused imports and improve error handling for missing user input.fc10ab0Refactor runWorkflow to utilize AgentInputData and improve error handling for missing user input. Replace workflowInputEvent with startAgentEvent and enhance chat history management. Add callbacks for suggested questions event.216b94cImplement code artifact workflow and update TypeScript helpers. Introduce newcode_workflow.tsfor managing code generation and updates, and create a factory function inworkflow.ts. Modify TypeScript helper to copy all.tsfiles instead of justworkflow.ts. Update chat handler to utilizeAgentInputDatafor improved data handling.8ac0693Refactor runWorkflow to utilize the run function for workflow execution, replacing the previous context creation method. This change simplifies the workflow stream initialization and enhances code clarity.caf5cbcRefactor workflows to replace stopEvent with stopAgentEvent and enhance event handling in code_workflow.ts and workflow.ts. Update grammar in enhancedPrompt for clarity and improve response handling in agentStreamEvent.b4faf3cRefactor financial report workflow to streamline event handling and improve memory management. Replace custom event classes with workflowEvent for better clarity and maintainability. Update workflow definition to utilize getWorkflow function, enhancing code organization and readability.📊 Changes
15 files changed (+261 additions, -250 deletions)
View changed files
➕
.changeset/smart-clocks-guess.md(+5 -0)📝
.prettierignore(+6 -0)📝
eslint.config.mjs(+3 -0)📝
packages/server/package.json(+1 -1)📝
packages/server/src/events.ts(+21 -27)📝
packages/server/src/handlers/chat.ts(+33 -11)📝
packages/server/src/index.ts(+0 -1)📝
packages/server/src/server.ts(+3 -3)📝
packages/server/src/types.ts(+3 -15)📝
packages/server/src/utils/gen-ui.ts(+6 -4)📝
packages/server/src/utils/request.ts(+3 -3)➕
packages/server/src/utils/stream.ts(+80 -0)📝
packages/server/src/utils/suggestion.ts(+4 -4)📝
packages/server/src/utils/workflow.ts(+67 -175)📝
pnpm-lock.yaml(+26 -6)📄 Description
Summary by CodeRabbit
New Features
Refactor
Chores
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.