grasp_agents 0.1.5__py3-none-any.whl → 0.1.7__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,203 @@
1
+ Metadata-Version: 2.4
2
+ Name: grasp_agents
3
+ Version: 0.1.7
4
+ Summary: Grasp Agents Library
5
+ License-File: LICENSE
6
+ Requires-Python: <3.12,>=3.11.4
7
+ Requires-Dist: httpx<1,>=0.27.0
8
+ Requires-Dist: openai<2,>=1.68.2
9
+ Requires-Dist: tenacity>=9.1.2
10
+ Requires-Dist: termcolor<3,>=2.4.0
11
+ Requires-Dist: tqdm<5,>=4.66.2
12
+ Description-Content-Type: text/markdown
13
+
14
+ # grasp_agents
15
+
16
+ <br/>
17
+ <img src="./.assets/grasp.svg" alt="Grasp Agents" width="320" />
18
+ <br/>
19
+ <br/>
20
+
21
+ [![PyPI version](https://badge.fury.io/py/grasp_agents.svg)](https://badge.fury.io/py/grasp_agents)
22
+ [![Python Versions](https://img.shields.io/pypi/pyversions/grasp_agents?style=flat-square)](https://pypi.org/project/grasp_agents/)
23
+ [![License: MIT](https://img.shields.io/badge/license-MIT-yellow?style=flat-square)](LICENSE)
24
+
25
+ ## Overview
26
+
27
+ grasp-agents is a modular Python framework for building agentic AI pipelines and applications. It provides reusable agent classes, message handling, LLM integration, memory, and orchestration utilities. The framework is designed for flexibility, composability, and clarity, enabling rapid prototyping and robust development of multi-agent systems.
28
+
29
+ ## Features
30
+
31
+ - Modular agent base classes
32
+ - Message and memory management
33
+ - LLM and tool orchestration
34
+ - Logging and usage tracking
35
+ - Extensible architecture
36
+
37
+ ## Project Structure
38
+
39
+ - `src/grasp_agents/` — Core framework modules
40
+ - `base_agent.py`, `llm_agent.py`, `comm_agent.py`: Agent classes
41
+ - `agent_message.py`, `agent_message_pool.py`: Messaging
42
+ - `memory.py`: Memory management
43
+ - `cloud_llm.py`, `llm.py`: LLM integration
44
+ - `tool_orchestrator.py`: Tool orchestration
45
+ - `usage_tracker.py`, `grasp_logging.py`: Usage and logging
46
+ - `data_retrieval/`, `openai/`, `typing/`, `workflow/`: Extensions and utilities
47
+ - `configs/` — Configuration files
48
+ - `data/` — Logs and datasets
49
+
50
+ ## Quickstart & Installation Variants
51
+
52
+ ### Option 1: UV Package Manager Project
53
+
54
+ #### 1. Prerequisites
55
+
56
+ Install the [UV Package Manager](https://github.com/astral-sh/uv):
57
+
58
+ ```bash
59
+ curl -LsSf https://astral.sh/uv/install.sh | sh
60
+ ```
61
+
62
+ #### 2. Create Project & Install Dependencies
63
+
64
+ ```bash
65
+ mkdir my-test-uv-app
66
+ cd my-test-uv-app
67
+ uv init .
68
+ ```
69
+
70
+ Create and activate a virtual environment:
71
+
72
+ ```bash
73
+ uv venv
74
+ source .venv/bin/activate
75
+ ```
76
+
77
+ Add and sync dependencies:
78
+
79
+ ```bash
80
+ uv add grasp_agents
81
+ uv sync
82
+ ```
83
+
84
+ #### 3. Example Usage
85
+
86
+ Create a file, e.g., `hello.py`:
87
+
88
+ ```python
89
+ from grasp_agents.llm_agent import LLMAgent
90
+ from grasp_agents.base_agent import BaseAgentConfig
91
+
92
+ agent = LLMAgent(
93
+ config=BaseAgentConfig(
94
+ model="gpt-4o-mini",
95
+ memory=None, # or your memory implementation
96
+ )
97
+ )
98
+
99
+ response = agent.run("Hello, agent!")
100
+ print(response)
101
+ ```
102
+
103
+ Run your script:
104
+
105
+ ```bash
106
+ python hello.py
107
+ ```
108
+
109
+ ---
110
+
111
+ ### Option 2: PIP-only (requirements.txt-based) Project
112
+
113
+ #### 1. Create Project Folder
114
+
115
+ ```bash
116
+ mkdir my-test-pip-app
117
+ cd my-test-pip-app
118
+ ```
119
+
120
+ #### 2. Install Python 3.11.9 (Recommended)
121
+
122
+ If using [pyenv](https://github.com/pyenv/pyenv):
123
+
124
+ ```bash
125
+ brew install pyenv
126
+ pyenv install 3.11.9
127
+ pyenv local 3.11.9
128
+ ```
129
+
130
+ Open a new terminal after setting the Python version.
131
+
132
+ #### 3. Create & Activate Virtual Environment
133
+
134
+ ```bash
135
+ python -m venv .venv
136
+ source .venv/bin/activate
137
+ ```
138
+
139
+ If you see `ModuleNotFoundError: No module named 'yaml'`, run:
140
+
141
+ ```bash
142
+ pip install pyyaml
143
+ ```
144
+
145
+ #### 4. Install Grasp Agents SDK
146
+
147
+ If you have a `requirements.txt`:
148
+
149
+ ```bash
150
+ pip install -r requirements.txt
151
+ ```
152
+
153
+ Or install directly:
154
+
155
+ ```bash
156
+ pip install grasp-agents
157
+ ```
158
+
159
+ #### 5. Example Usage
160
+
161
+ Create a file, e.g., `hello.py`, and use the same code as above.
162
+
163
+ #### 6. Run the App
164
+
165
+ ```bash
166
+ python hello.py
167
+ ```
168
+
169
+ ---
170
+
171
+ ## License
172
+
173
+ MIT License. See [LICENSE](LICENSE) for details.
174
+
175
+ ## Development
176
+
177
+ To develop and test the library locally, follow these steps:
178
+
179
+ ### 1. Install UV Package Manager
180
+
181
+ Make sure [UV](https://github.com/astral-sh/uv) is installed on your system:
182
+
183
+ ```bash
184
+ curl -LsSf https://astral.sh/uv/install.sh | sh
185
+ ```
186
+
187
+ ### 2. Install Dependencies
188
+
189
+ Create a new virtual environment and install dependencies:
190
+
191
+ ```bash
192
+ uv venv
193
+ source .venv/bin/activate
194
+ uv sync
195
+ ```
196
+
197
+ ### 3. Test Example
198
+
199
+ - Install the Jupyter Notebook extension for VS Code.
200
+ - Open `src/grasp_agents/examples/notebooks/agents_demo.ipynb` in VS Code.
201
+ - Ensure you have a `.env` file with your OpenAI and Google AI Studio API keys set (see `.env.example`).
202
+
203
+ You're now ready to run and experiment with the example notebook.
@@ -38,7 +38,7 @@ grasp_agents/workflow/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3h
38
38
  grasp_agents/workflow/looped_agent.py,sha256=YBOgOIvy3_NwKvEoGgzQJ2fY9SNG66MQk6obSBGWvCc,3896
39
39
  grasp_agents/workflow/sequential_agent.py,sha256=yDt2nA-b1leVByD8jsKrWD6bHe0o9z33jrOJGOLwbyk,2004
40
40
  grasp_agents/workflow/workflow_agent.py,sha256=9U94IQ39Vb1W_5u8aoqHb65ikdarEhEJkexDz8xwHD4,2294
41
- grasp_agents-0.1.5.dist-info/METADATA,sha256=3AG9RAi-4U0LzWtpcvZFzK5eBGYVRfARDyRQMDtculM,362
42
- grasp_agents-0.1.5.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
43
- grasp_agents-0.1.5.dist-info/licenses/LICENSE,sha256=GRDob7--af0SOT8BRgu7Ds1NqhunPyxGjyETcCk-o7s,1062
44
- grasp_agents-0.1.5.dist-info/RECORD,,
41
+ grasp_agents-0.1.7.dist-info/METADATA,sha256=NO6iKRFjBeL_PmhnqvjRCsw8Lrw7Ud8okeB_ezEphfk,4413
42
+ grasp_agents-0.1.7.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
43
+ grasp_agents-0.1.7.dist-info/licenses/LICENSE,sha256=GRDob7--af0SOT8BRgu7Ds1NqhunPyxGjyETcCk-o7s,1062
44
+ grasp_agents-0.1.7.dist-info/RECORD,,
@@ -1,14 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: grasp_agents
3
- Version: 0.1.5
4
- Summary: Add your description here
5
- License-File: LICENSE
6
- Requires-Python: <3.12,>=3.11.4
7
- Requires-Dist: httpx<1,>=0.27.0
8
- Requires-Dist: openai<2,>=1.68.2
9
- Requires-Dist: tenacity>=9.1.2
10
- Requires-Dist: termcolor<3,>=2.4.0
11
- Requires-Dist: tqdm<5,>=4.66.2
12
- Description-Content-Type: text/markdown
13
-
14
- # grasp-agents