A simple agentic AI package using reinforcement learning
Project description
Agentic AI
A simple agentic AI package using reinforcement learning. This package provides a basic implementation of a Q-learning agent that can interact with a simple environment to achieve goals.
Installation
pip install agentic-ai
Usage
from agentic_ai.agent import QLearningAgent
from agentic_ai.environment import SimpleEnv
# Create environment and agent
env = SimpleEnv()
agent = QLearningAgent(state_space=env.state_space, action_space=env.action_space)
# Train the agent
for episode in range(100):
state = env.reset()
done = False
while not done:
action = agent.choose_action(state)
next_state, reward, done = env.step(action)
agent.learn(state, action, reward, next_state)
state = next_state
agent.decay_exploration()
# Test the trained agent
state = env.reset()
done = False
total_reward = 0
while not done:
action = agent.choose_action(state)
next_state, reward, done = env.step(action)
total_reward += reward
state = next_state
print(f"State: {state}, Action: {action}, Reward: {reward}")
print(f"Total reward: {total_reward}")
Features
- Simple Q-learning agent implementation
- Basic environment with states and actions
- Configurable learning parameters
- Exploration rate decay for better convergence
License
MIT
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
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 agenticlearnpro-0.1.0-py3-none-any.whl.
File metadata
- Download URL: agenticlearnpro-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dfe0f86f8e3db8be26ff3a86993a22c3c8e273b7da8f65305c27b534725faaef
|
|
| MD5 |
2ce4e80a2cd72468a32fc6d23c5d526e
|
|
| BLAKE2b-256 |
b4542779a822fba64e4ab5f6d87d5b9f0094b7346993ab737f5a80b657541ba3
|