seenu-agent
seenu-agent is a Python package that provides a framework for creating and managing agents to perform tasks like translation, summarization, and more. The package includes three main classes: Agent, Task, and TaskManager, allowing you to create complex workflows by chaining tasks together. Installation
Install the package using pip:
pip install seenu-agent
Below is a sample usage of the seenu-agent package:
Importing the Classes
from seenu_agent import Agent, Task, TaskManager
Creating Agents
** Translation Agent **
translation_llm = {'repo_name': 'Helsinki-NLP/opus-tatoeba-fi-en', 'operation': 'translation'} translation_agent = Agent(name='Translator', llm=translation_llm)
** Custom Function Agent **
def custom_function(text): return text.lower()
custom_agent = Agent(name='Custom Function Agent', function=custom_function)
Creating Tasks
translation_task = Task(name='Translation Task', task_id=1, agent=translation_agent) custom_task = Task(name='Custom Function Task', task_id=3, agent=custom_agent)
Managing Tasks
task_manager = TaskManager() task_manager.add_task(translation_task) task_manager.add_task(custom_task)
Running Tasks
Sequential Mode
input_texts = ["Your text here..."] sequential_results = task_manager.run(input_texts, mode='sequential')
for i, task_results in enumerate(sequential_results): print(f"Task {i+1} Results:") for result in task_results: print(f" Result : {result}")
Example Output
plaintext
Sequential Task Output: Task 1 Results: Result : Translated text here... Task 2 Results: Result : Summarized text here... Task 3 Results: Result : Transformed text here...
License
This project is licensed under the MIT License - see the LICENSE file for details.
Metadata
Release files for seenu-agent 0.4.1
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 | Actions |
|---|---|---|---|---|
| seenu_agent-0.4.1.tar.gz | 8.7 kB | Without provenance | Details for seenu_agent-0.4.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| seenu_agent-0.4.1-py3-none-any.whl | Python 3 | none | any | Details for seenu_agent-0.4.1-py3-none-any.whl |
Total release size: 12.3 kB
Release files / seenu_agent-0.4.1.tar.gz
| Download URL | seenu_agent-0.4.1.tar.gz |
|---|---|
| Size | 8.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a2e4d6cd81e3098c0f711625f9fab56845d656cedc10321392cf824ce643382f
|
|
BLAKE2b-256 checksum How to use checksums |
6c04df966f0ef826da92d4c16d3a5dbc83dfb3eb8574cfb6f92b3cd2aab3f99d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.9
|
Release files / seenu_agent-0.4.1-py3-none-any.whl
| Download URL | seenu_agent-0.4.1-py3-none-any.whl |
|---|---|
| Size | 3.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5ed01a5fb2764229ba359eefd1b5d89664ffb71063b7a39f3173b0af25243b22
|
|
BLAKE2b-256 checksum How to use checksums |
818649e2b8a9bc119fb6ec9f38554eaf2655ccd05a8edd6480380aabb82dc28b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.9
|
Security for seenu-agent 0.4.1
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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.