fix: Add session_id Parameter to run_flow_from_json Function (#3989)
This pull request fixes the `run_flow_from_json` function by adding `session_id` parameter. This update ensures that session management is properly handled during flow execution. Changes include: - Added `session_id` as an optional input parameter. - Updated function documentation to reflect the inclusion of the new parameter. - Added unit test for run_flow_from_json input parameters This fix enhances the function's usability by allowing for better tracking of individual sessions.
This commit is contained in:
parent
75ffe0b11b
commit
461238aa0e
4 changed files with 33 additions and 1 deletions
|
|
@ -22,6 +22,7 @@ TWEAKS = ${tweaksString}
|
|||
|
||||
result = run_flow_from_json(flow="${flowName}.json",
|
||||
input_value="message",
|
||||
session_id="", # provide a session id if you want to use session state
|
||||
fallback_to_env_vars=True, # False by default
|
||||
tweaks=TWEAKS)`;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue