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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: just_agents_router-0.4.0.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.4.0.tar.gz
Algorithm Hash digest
SHA256 95bfc7942f4e6f8fea491b16fd1a3db1f5e9399c0e679cf16284011880f50838
MD5 9e8a3667022dad9876eba3b43a76c0c0
BLAKE2b-256 13a1f6377921eb980abaee8cc8d5e165e00187e5e1fb66e1f69bb6a64272bfc5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for just_agents_router-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5e243f81e62979152390a44f5311aa70377beb96a0ce386cf5edb25901c0c2d2
MD5 bbdbf3475903e66531cbc9682725a6f6
BLAKE2b-256 147b45ccec5b71d01f8cf7e663e40085c2096e13ee38037e2276c1b789522a4d

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