Skip to content

Confusing usage of RuntimeContext in workflowRoute and chatRoute #10438

@daneatmastra

Description

@daneatmastra

This issue was created from Discord post 1442490262503952504:

Open in Discord

I was just using the RuntimeContext to store additional info from within a Middleware as described here.
But when using workflowRoute, the additional info was missing in the RuntimeContext.

I looked at the sources and noticed that in workflowRoute, the RuntimeContext is not explicitly extracted anywhere. It is just passed from the request body as part of the rest parameters.

I compared this with the chatRoute and found that there the RuntimeContext is explicitly extracted from the Hono context. But it doesn't seem to be supported through the request body.

Maybe I'm missing something, but I expected all these configuration points to be supported and rather be merged if there are no conflicting keys. That way some params could be provided via the request body and others can be provided through the middleware.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions