Skip to content

Commit

Permalink
standard - utilize SubclassUnion[ConversationBase]
Browse files Browse the repository at this point in the history
  • Loading branch information
cobycloud committed Jan 9, 2025
1 parent 5ab73f7 commit ae1f749
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@

from swarmauri_base.llms.LLMBase import LLMBase
from swarmauri_base.agents.AgentBase import AgentBase
from swarmauri_base.conversations.ConversationBase import ConversationBase
from swarmauri_core.ComponentBase import SubclassUnion, ComponentBase

@ComponentBase.register_type(AgentBase, 'QAAgent')
class QAAgent(AgentBase):
conversation: MaxSystemContextConversation = MaxSystemContextConversation(max_size=2)
conversation: SubclassUnion[ConversationBase] = MaxSystemContextConversation(max_size=2)
type: Literal['QAAgent'] = 'QAAgent'

def exec(self,
Expand Down

0 comments on commit ae1f749

Please sign in to comment.