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.3.9.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

just_agents_router-0.3.9-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: just_agents_router-0.3.9.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.10

File hashes

Hashes for just_agents_router-0.3.9.tar.gz
Algorithm Hash digest
SHA256 1a0c249841830f007722726b6299a20ea9b901ccbfaac060b2bf0c3597268c30
MD5 13486844c9e241682223a0f975fb5747
BLAKE2b-256 b323be65bf32af9051032009c9c28cf094f09d320b06a50778c453bb4820b3b3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for just_agents_router-0.3.9-py3-none-any.whl
Algorithm Hash digest
SHA256 49b5582d4a8d73c2b5ca20557454415b8cb4c80bffca3bab9c124ce7b4d15e83
MD5 f245d012efb02b283822ea873d6419b3
BLAKE2b-256 45489a52aa64ad6a31330967122b9d74cb71029ced76eef0fdb5c10c57c51ce6

See more details on using hashes here.

Supported by

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