Skip to content
Discussion options

You must be logged in to vote

Actually, @JensDeClercq1, as I re-read this, I have some thoughts to share. The approach you're trying is more complex than needed - the builders handle the wrapping for you. The idea is to pass agents directly, not AgentExecutor instances:

from agent_framework import GroupChatBuilder, FileCheckpointStorage

storage = FileCheckpointStorage("./checkpoints")

workflow = (
    GroupChatBuilder()
    .set_manager(manager_agent)
    .participants(researcher=researcher_agent, writer=writer_agent)
    .with_checkpointing(storage)
    .build()
)

The builders automatically wrap AgentProtocol instances in AgentExecutor internally. When you pass an AgentExecutor directly, it gets treated as a generi…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@moonbox3
Comment options

Answer selected by JensDeClercq1
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
python agent orchestration Issues related to agent orchestration workflows Related to Workflows in agent-framework
2 participants