Fix subagent params alias dispatch#359
Conversation
|
Hello @zfoong , @ahmad-ajmal , @korivi-CraftOS . |
|
Is it possible to fix the output format and make sure the LLM does not return a fault format, rather than having an ad hoc parser to handle special cases like this? Code will be harder to manage with bandaid solution like this. But I would like to keep this PR open and observe if this happens too frequently. If yes, perhaps it is good to keep this here. |
|
Hi @zfoong . |
|
@RED-ROSE515 Let's keep this open and observe if we are getting this issue a lot. If not, I will close this PR soon. Thank you for contributing! Are you in our Discord server yet? |
|
@zfoong , Not yet. |
|
@RED-ROSE515 Here goes the link: https://discord.gg/MsFR26nBP |
Summary
Fixes #355.
Sub-agent action dispatch now accepts
paramsas an alias forparameters.Some LLM outputs mirror the compact action schema key
params, which previously caused the runner to drop the payload before callingsub_task_end.As a result,
sub_task_endreceived only_session_idand failed withInvalid status.Changes
SubAgentRunnerparametersbehavior and gives it precedence overparamsparamsalias dispatchparametersprecedence when both keys are presentVerification
python -m compileall app\subagent\runner.py tests\test_subagent_runner.pypassed