How to access and parse forwardedProps in MAF request context #5222
-
|
Description: I’m currently working with MAF and trying to understand how to properly access and parse the forwardedProps field from the incoming request. In my use case, the request payload looks like this: Questions: 1.Where exactly is forwardedProps exposed within the MAF execution lifecycle (e.g., middleware, workflow, tool context)? Additional Context: The request is sent from CopilotKit with structured form data. Any guidance or examples would be greatly appreciated. Thanks! 🙏 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
|
Hi @Aimee-min-code, How forwardedProps works in MAF today: forwardedProps is parsed by the AG-UI layer (AGUIRequest model) but is currently only consumed for resume/interrupt flows, specifically forwardedProps.command.resume. Custom data like your document_ids, extraction_spec, and prefilled_data won't automatically surface in your agent, tools, or workflow context. Recommended approaches for your use case:
For your structured extraction scenario specifically, state gives you the most framework-level support (schema defaults, state snapshots, predictive state updates). |
Beta Was this translation helpful? Give feedback.
Hi @Aimee-min-code,
How forwardedProps works in MAF today:
forwardedProps is parsed by the AG-UI layer (AGUIRequest model) but is currently only consumed for resume/interrupt flows, specifically forwardedProps.command.resume. Custom data like your document_ids, extraction_spec, and prefilled_data won't automatically surface in your agent, tools, or workflow context.
Recommended approaches for your use case: