No project description provided
Project description
๐ค WYN Agent-S
WYN Agent-S is an agentic framework that seamlessly integrates a built-in router, intent classifier, and dependency resolver to enable conversational AI with external API interactions. Designed with modularity and extensibility in mind, it simplifies building intelligent chatbots and assistants with structured, goal-driven behavior.
๐ฆ Installation
Install the package from PyPI:
pip install wyn-agent-s
๐ Quick Start
Here's how to set up and start chatting with Agent_S in a Colab notebook:
from google.colab import userdata
OPENAI_API_KEY = userdata.get('OPENAI_API_KEY')
SERPAPI_API_KEY = userdata.get('SERPAPI_API_KEY')
from wyn_agent_s.main import Agent_S
# Initialize the agent
agent = Agent_S(
openai_api_key=OPENAI_API_KEY,
serpapi_key=SERPAPI_API_KEY
)
# Start chat session
agent.start_chat()
๐ฌ Sample Interaction
๐ Welcome! Press 'EXIT' to quit the chat at any time.
๐ค User: how are you?
๐ค Bot Response: As an artificial intelligence, I don't have feelings, but I'm here and ready to help you. How can I assist you today?
๐ No API call found in the event stream. Exiting.
๐ค User: I want to do a google search
Match found for trigger: 'google search'
๐ Intent detected for API call: google_search
Please provide engine: Google
Please provide query: today's weather in New York
Please provide location: New York, NY
Please provide num: 3
Run google search API using:
query=today's weather in New York,
location=New York, NY
๐ Results:
| Title | Link | Snippet |
| :--- | :--- | :--- |
| Weather Forecast and Conditions for New York City, NY | [Link](https://weather.com/weather/today/l/...) | Occasional rain likely to continue for the next several hours. |
| New York, NY Weather Forecast | [Link](https://www.accuweather.com/en/us/new-york/...) | 10-Day Weather Forecast ... |
| New York - BBC Weather | [Link](https://www.bbc.com/weather/...) | Day by day forecast ... |
๐ค User: EXIT
๐ Thanks for chatting! Have a great day! ๐
๐ง Key Features
- ๐งญ Built-in Router: Dynamically selects the correct function based on user intent.
- ๐ฏ Intent Classifier: Detects user goals using natural language prompts.
- ๐งฉ Dependency Resolver: Gathers required parameters for API calls through dialogue.
- ๐ Modular Design: Clean separation between core logic, helpers, and API definitions.
- ๐งช Test Suite: Includes unit tests for framework robustness.
๐๏ธ Project Structure
wyn-agent-s/
โโโ wyn_agent_s/
โ โโโ __init__.py
โ โโโ main.py # Core Agent_S logic
โ โโโ helper.py # Utility functions
โ โโโ list_of_apis.py # Registered APIs and triggers
โ โโโ metadata.json # API metadata config
โโโ tests/
โ โโโ __init__.py
โ โโโ test.py # Unit tests
โโโ dist/ # Distribution artifacts
โโโ LICENSE
โโโ pyproject.toml # Poetry project config
โโโ README.md # This file
๐งช Run Tests
To run unit tests:
python -m unittest discover tests
๐ License
This project is licensed under the terms of the MIT License.
๐ Contributing
Contributions are welcome! Please fork the repo and submit a pull request.
๐ Links
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file wyn_agent_s-0.1.2.tar.gz.
File metadata
- Download URL: wyn_agent_s-0.1.2.tar.gz
- Upload date:
- Size: 8.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.9.13 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1f891a540be4fcdc4a6d076a683bbc002a93691ea405f8540db0940ba3e0c9e5
|
|
| MD5 |
f27e3085e3c1ebeb8f9877f87125c6a1
|
|
| BLAKE2b-256 |
acfed60a3eb87be30dd7c2266d43b4a72e289f23191eb72476b150ccb28bf6b0
|
File details
Details for the file wyn_agent_s-0.1.2-py3-none-any.whl.
File metadata
- Download URL: wyn_agent_s-0.1.2-py3-none-any.whl
- Upload date:
- Size: 9.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.9.13 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e39f9b36c70bbe1612e2ff12a93e211e972222c519c251023754c9619fe590c3
|
|
| MD5 |
035b0c61ac890ff1fe1ebf136e56156c
|
|
| BLAKE2b-256 |
dc7af30276d2a1c3af499fc07c5ec05ec591fc9e63c93e358020d0391085fecc
|