feat(workflow): support token usage metrics and subgraph state output

- expose token consumption for workflow runs
- enable loop nodes to output subgraph states
- enhance executor logging
This commit is contained in:
Eternity
2026-01-19 10:21:56 +08:00
parent 07760d55b7
commit 0489013ddd
6 changed files with 74 additions and 49 deletions

View File

@@ -567,6 +567,7 @@ async def chat(
with get_db_read() as db:
source_config = WorkflowConfigRepository(db).get_by_app_id(release.app_id)
config.id = source_config.id
config.id = uuid.UUID(config.id)
if payload.stream:
async def event_generator():
async for event in app_chat_service.workflow_chat_stream(