-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prototype runner #48
Prototype runner #48
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added comments on the points I wanted to confirm.
Please check them!
@shige I forgot to remove the debugging code. I've removed it now, please review again. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 💯
Thank you for fixing it right away!
Tomorrow morning, I'll deploy, migrate, and update the database. 📆
FYI: Released 🚀 @toyamarinyon
|
Note
This change is a prototype for flow execution. Since we cannot yet verify its operation, we will release it in private beta status.
Note
After merging, please perform schema and data migration. For details, please check the "Release Flow:" section.
This pull request introduces a new flow management system to the playground application, including actions, reducers, and UI components to handle flow state and execution. The most important changes include adding new types and actions for flow management, implementing a reducer to handle flow actions, creating a run button component, and updating the header and viewer components to integrate the new flow functionalities.
Flow Management System:
app/(playground)/p/[agentId]/beta-proto/flow/action.ts
: Added new types and actions for managing flow state, includingV2FlowAction
,SetFlowAction
, andv2FlowReducer
. (app/(playground)/p/[agentId]/beta-proto/flow/action.tsR1-R42)app/(playground)/p/[agentId]/beta-proto/flow/types.ts
: Defined new types for flow management, such asFlow
,QueuedFlow
,RunningFlow
, and their statuses. (app/(playground)/p/[agentId]/beta-proto/flow/types.tsR1-R76)Reducer and Context Updates:
app/(playground)/p/[agentId]/beta-proto/graph/reducer.ts
: Updated the graph reducer to handle flow actions by integratingv2FlowReducer
. (app/(playground)/p/[agentId]/beta-proto/graph/reducer.tsR1, app/(playground)/p/[agentId]/beta-proto/graph/reducer.tsR29-R37)app/(playground)/p/[agentId]/beta-proto/graph/types.ts
: Addedflow
to theGraph
type to include flow state in the graph context. (app/(playground)/p/[agentId]/beta-proto/graph/types.tsR3-R5, app/(playground)/p/[agentId]/beta-proto/graph/types.tsR15-R21)UI Components:
app/(playground)/p/[agentId]/beta-proto/flow/components/run-button.tsx
: Created a newRunButton
component to trigger flow execution, with support for single and multiple final nodes. (app/(playground)/p/[agentId]/beta-proto/flow/components/run-button.tsxR1-R76)app/(playground)/p/[agentId]/beta-proto/header.tsx
: Replaced the static run button with the newRunButton
component. (app/(playground)/p/[agentId]/beta-proto/header.tsxR6, app/(playground)/p/[agentId]/beta-proto/header.tsxL43-R44)app/(playground)/p/[agentId]/beta-proto/viewer.tsx
: Updated the viewer component to display the flow state or a message if no flow exists. (app/(playground)/p/[agentId]/beta-proto/viewer.tsxR1-R13, app/(playground)/p/[agentId]/beta-proto/viewer.tsxR27-R36, app/(playground)/p/[agentId]/beta-proto/viewer.tsxR47-R49)Flow Execution:
app/(playground)/p/[agentId]/beta-proto/flow/composite-actions.ts
: Implemented therunFlow
action to handle the flow execution process, including setting flow state and dispatching actions. (app/(playground)/p/[agentId]/beta-proto/flow/composite-actions.tsR1-R54)app/(playground)/p/[agentId]/beta-proto/flow/server-action.ts
: Added server-side logic for running actions within a flow, including placeholder methods for text generation and web search. (app/(playground)/p/[agentId]/beta-proto/flow/server-action.tsR1-R159)These changes collectively introduce a robust flow management system, enhancing the application's ability to manage and execute complex workflows.
Release flow
Migrate schema
Migrate data