microsoft / TaskWeaver

A code-first agent framework for seamlessly planning and executing data analytics tasks.
https://microsoft.github.io/TaskWeaver/
MIT License
5.37k stars 688 forks source link

multi role in ext_role #380

Open SHX9610 opened 4 months ago

SHX9610 commented 4 months ago

hello,

There are multiple roles in the ext_role folder, how to transfer the output of A role to B role?

liqul commented 4 months ago

Not quite get your problem. Are you saying how role A can hear the ouput of role B? If this is the case, all the messages are routed by the Planner. If you want role B to hear what role A said, you need to say that explicitly in role A's and role B's description s that will be passed to the Planner's prompt during the conversation.

SHX9610 commented 4 months ago

Not quite get your problem. Are you saying how role A can hear the output of role B? If this is the case, all the messages are routed by the Planner. If you want role B to hear what role A said, you need to say that explicitly in role A's and role B's descriptions , that will be passed to the Planner's prompt during the conversation.

Your understanding is correct.

However, I do not want to explicitly pass the results through the planner prompt

I have a question: can the LLM be asked to search for the field information that appeared in the previous rounds of conversations in the yaml (prompt) of planner examples folder?

SHX9610 commented 4 months ago

question

Or can we save the key output of Role in other ways and use it when needed ?