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.
Metadata
Release files for just-agents-router 0.8.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| just_agents_router-0.8.9.tar.gz | 3.7 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| just_agents_router-0.8.9-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.0 kB
Release files / just_agents_router-0.8.9.tar.gz
| Download URL | just_agents_router-0.8.9.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b9a3d37c2cd48fab5146d1fccc991e27c8b48c5d7672587f4b8665f089473d9c
|
|
BLAKE2b-256 checksum How to use checksums |
93bf60c1153a3abc967757df8fa519f683fc78821fc351b6224fe388a3f1b9a8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.2.1 CPython/3.10.12 Linux/5.15.0-161-generic
|
Release files / just_agents_router-0.8.9-py3-none-any.whl
| Download URL | just_agents_router-0.8.9-py3-none-any.whl |
|---|---|
| Size | 4.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
79b7d7c113eb01270a11e708023c9e5d7511831bbb3cbaafadc43eb09ef76aab
|
|
BLAKE2b-256 checksum How to use checksums |
15bdd3d639b7da3fa0df52bbf54a87fb59d3329d0789dacfdf53f9e8254cde88
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.2.1 CPython/3.10.12 Linux/5.15.0-161-generic
|
Security for just-agents-router 0.8.9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.