Skip to content

Multi agent support#10

Merged
andres-javier-lopez merged 6 commits intomainfrom
feat/multi-agent-support
Nov 4, 2025
Merged

Multi agent support#10
andres-javier-lopez merged 6 commits intomainfrom
feat/multi-agent-support

Conversation

@andres-javier-lopez
Copy link
Contributor

Description

Add MultiAgent support to existing builders
Improve BuilderContext management

Type of change

  • Bugfix
  • New feature
  • Documentation update
  • Refactor
  • Chore

Checklist

Please run through the checklist and mark the items off before requesting review.

  • Tests added/updated for changes in behavior
  • Linter/formatter run (make format / make lint)
  • Documentation updated (if applicable)
  • CHANGELOG.md updated with a short entry describing the change (Required)

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR refactors the factory and builder architecture to support multi-agent workflows with conditional entry points. The main changes replace the abstract BaseAgentFactory with a more flexible, composition-based ContextFactory that accepts pluggable factory functions for all components.

Key changes:

  • Replaced BaseAgentFactory with ContextFactory that uses composition over inheritance for pluggable components
  • Added MultiAgentContext and MultiAgentDirector to enable conditional entry point routing based on an active_agent state field
  • Updated the datetime builder prompt to include an internal-use notice

Reviewed Changes

Copilot reviewed 12 out of 12 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
assistant_core/factories.py Replaced abstract BaseAgentFactory with composition-based ContextFactory and added deprecation wrapper
assistant_core/builder/context.py Added create() and clone() methods to BuilderContext, introduced MultiAgentContext for multi-agent workflows
assistant_core/builder/agent.py Added MultiAgentDirector to manage multi-agent workflows with conditional entry points
assistant_core/builder/init.py Exported new MultiAgent and MultiAgentContext classes
assistant_core/state.py Added MultiAgentState with active_agent field for agent selection
assistant_core/builder/datetime.py Updated date prompt with "CONTEXT:" prefix and internal-use notice
tests/conftest.py Updated fixtures to use ContextFactory instead of BaseAgentFactory
tests/unit/test_builder_context.py Added comprehensive tests for new BuilderContext and MultiAgentContext functionality
tests/unit/test_builder.py Added tests for MultiAgent director behavior and entrypoint mapping
tests/unit/test_datetime_builder.py Updated tests to match new datetime prompt format
CHANGELOG.md Documented the breaking changes and new features
.github/copilot-instructions.md Added guidance to prefer Poetry for running tests

@andres-javier-lopez andres-javier-lopez merged commit dabf271 into main Nov 4, 2025
1 check passed
@andres-javier-lopez andres-javier-lopez deleted the feat/multi-agent-support branch November 4, 2025 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants