You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
If you instantiate an agent and give it a ruleset, it automatically adds that ruleset to both the Agent and it's associated task:
default_ruleset=Ruleset(name="Default_Ruleset", rules=[Rule("You are happy!")])
# Create the agentagent_A=Agent(rulesets=[default_ruleset], stream=True)
If you look at the dict created, you'll see the ruleset is on both the Agent, and also on the PromptTask:
The agent will also still have the original ruleset..
which results in 3 rulesets.
My assumption is that Rulesets would only exist on the entity you give it, otherwise it's a bit confusing as to where they end up, and you end up needing to manipulate them in multiple places if you want to make changes.
The text was updated successfully, but these errors were encountered:
This is an unfortunate side effect of how Rules are inherited from Structures. I've actually been thinking about removing the ability to set Rules on Structures; I feel that it only adds confusion and does not provide much real world value.
Yeah, I think that would confuse me - I like having structures with rules that are overarching, and then specific rules per-task.
Mixing and matching can be helpful, especially if you've got task/swapping going on. So IMHO I'd love to not get rid of structure rulesets, and also keep task rulesets. When instantiating the agent, if the ruleset is on it, then just put it on the agent. If it's on the task, then put it on the task.
Describe the bug
If you instantiate an agent and give it a ruleset, it automatically adds that ruleset to both the Agent and it's associated task:
If you look at the dict created, you'll see the ruleset is on both the Agent, and also on the PromptTask:
If you then create a PromptTask with a different ruleset and add it to the agent:
the PromptTask will have two rulesets.. the original and the new ruleset.
The agent will also still have the original ruleset..
which results in 3 rulesets.
My assumption is that Rulesets would only exist on the entity you give it, otherwise it's a bit confusing as to where they end up, and you end up needing to manipulate them in multiple places if you want to make changes.
The text was updated successfully, but these errors were encountered: