Skip to main content

๐Ÿค– 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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wyn_agent_s-0.1.2.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wyn_agent_s-0.1.2-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

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

Hashes for wyn_agent_s-0.1.2.tar.gz
Algorithm Hash digest
SHA256 1f891a540be4fcdc4a6d076a683bbc002a93691ea405f8540db0940ba3e0c9e5
MD5 f27e3085e3c1ebeb8f9877f87125c6a1
BLAKE2b-256 acfed60a3eb87be30dd7c2266d43b4a72e289f23191eb72476b150ccb28bf6b0

See more details on using hashes here.

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

Hashes for wyn_agent_s-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e39f9b36c70bbe1612e2ff12a93e211e972222c519c251023754c9619fe590c3
MD5 035b0c61ac890ff1fe1ebf136e56156c
BLAKE2b-256 dc7af30276d2a1c3af499fc07c5ec05ec591fc9e63c93e358020d0391085fecc

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 files

0.1.1

2 files

0.1.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page