Skip to main content

Just Agents - Router Components

Project description

Just-Agents Router

The router module in just-agents provides functionality for routing conversations and tasks between different agents. This enables complex multi-agent interactions where specialized agents can handle different aspects of a task.

Key Components

SecretaryAgent

The SecretaryAgent acts as a routing coordinator, determining which agent should handle specific requests. As shown in the tests, it maintains a configuration that can be loaded from YAML files and includes:

  • Agent descriptions and roles
  • Personality traits
  • Model configurations
  • Routing rules

Example Usage

Here's a simplified test setup demonstrating the secretary agent configuration:

from just_agents.router.secretary_agent import SecretaryAgent

# Initialize secretary with specific configuration
secretary = SecretaryAgent(
    autoload_from_yaml=False,
    llm_options=your_llm_options,
    extra_dict={
        "personality_traits": "Agent's personality traits go here",
    }
)

# Secretary can update its profile and routing rules
info = secretary.get_info(secretary)
to_populate = secretary.get_to_populate(secretary)
secretary.update_profile(secretary, info, to_populate)

# Save configuration for future use
secretary.save_to_yaml()

The secretary can then use this configuration to determine which specialized agent (e.g., a manager, researcher, or technical expert) should handle incoming requests.

Configuration

Agents can be configured using YAML files, which specify:

  • Agent roles and responsibilities
  • Routing rules and conditions
  • Model preferences
  • Custom personality traits

See the tests directory for complete examples of router configuration and usage.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

just_agents_router-0.8.9.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

just_agents_router-0.8.9-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file just_agents_router-0.8.9.tar.gz.

File metadata

  • Download URL: just_agents_router-0.8.9.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.10.12 Linux/5.15.0-161-generic

File hashes

Hashes for just_agents_router-0.8.9.tar.gz
Algorithm Hash digest
SHA256 b9a3d37c2cd48fab5146d1fccc991e27c8b48c5d7672587f4b8665f089473d9c
MD5 af7d0ca12fa9da7e260aa1de7e8d06b4
BLAKE2b-256 93bf60c1153a3abc967757df8fa519f683fc78821fc351b6224fe388a3f1b9a8

See more details on using hashes here.

File details

Details for the file just_agents_router-0.8.9-py3-none-any.whl.

File metadata

  • Download URL: just_agents_router-0.8.9-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.10.12 Linux/5.15.0-161-generic

File hashes

Hashes for just_agents_router-0.8.9-py3-none-any.whl
Algorithm Hash digest
SHA256 79b7d7c113eb01270a11e708023c9e5d7511831bbb3cbaafadc43eb09ef76aab
MD5 c1f2d0580747b1c155f572398c657b3a
BLAKE2b-256 15bdd3d639b7da3fa0df52bbf54a87fb59d3329d0789dacfdf53f9e8254cde88

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page