grasp_agents 0.1.9__tar.gz → 0.1.10__tar.gz
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.
- {grasp_agents-0.1.9 → grasp_agents-0.1.10}/LICENSE.md +2 -0
- {grasp_agents-0.1.9 → grasp_agents-0.1.10}/PKG-INFO +71 -11
- {grasp_agents-0.1.9 → grasp_agents-0.1.10}/README.md +70 -10
- {grasp_agents-0.1.9 → grasp_agents-0.1.10}/pyproject.toml +2 -1
- {grasp_agents-0.1.9 → grasp_agents-0.1.10}/.gitignore +0 -0
- {grasp_agents-0.1.9 → grasp_agents-0.1.10}/LICENSE +0 -0
- {grasp_agents-0.1.9 → grasp_agents-0.1.10}/src/grasp_agents/agent_message.py +0 -0
- {grasp_agents-0.1.9 → grasp_agents-0.1.10}/src/grasp_agents/agent_message_pool.py +0 -0
- {grasp_agents-0.1.9 → grasp_agents-0.1.10}/src/grasp_agents/base_agent.py +0 -0
- {grasp_agents-0.1.9 → grasp_agents-0.1.10}/src/grasp_agents/cloud_llm.py +0 -0
- {grasp_agents-0.1.9 → grasp_agents-0.1.10}/src/grasp_agents/comm_agent.py +0 -0
- {grasp_agents-0.1.9 → grasp_agents-0.1.10}/src/grasp_agents/costs_dict.yaml +0 -0
- {grasp_agents-0.1.9 → grasp_agents-0.1.10}/src/grasp_agents/data_retrieval/__init__.py +0 -0
- {grasp_agents-0.1.9 → grasp_agents-0.1.10}/src/grasp_agents/data_retrieval/rate_limiter_chunked.py +0 -0
- {grasp_agents-0.1.9 → grasp_agents-0.1.10}/src/grasp_agents/data_retrieval/types.py +0 -0
- {grasp_agents-0.1.9 → grasp_agents-0.1.10}/src/grasp_agents/data_retrieval/utils.py +0 -0
- {grasp_agents-0.1.9 → grasp_agents-0.1.10}/src/grasp_agents/grasp_logging.py +0 -0
- {grasp_agents-0.1.9 → grasp_agents-0.1.10}/src/grasp_agents/http_client.py +0 -0
- {grasp_agents-0.1.9 → grasp_agents-0.1.10}/src/grasp_agents/llm.py +0 -0
- {grasp_agents-0.1.9 → grasp_agents-0.1.10}/src/grasp_agents/llm_agent.py +0 -0
- {grasp_agents-0.1.9 → grasp_agents-0.1.10}/src/grasp_agents/llm_agent_state.py +0 -0
- {grasp_agents-0.1.9 → grasp_agents-0.1.10}/src/grasp_agents/memory.py +0 -0
- {grasp_agents-0.1.9 → grasp_agents-0.1.10}/src/grasp_agents/openai/__init__.py +0 -0
- {grasp_agents-0.1.9 → grasp_agents-0.1.10}/src/grasp_agents/openai/completion_converters.py +0 -0
- {grasp_agents-0.1.9 → grasp_agents-0.1.10}/src/grasp_agents/openai/content_converters.py +0 -0
- {grasp_agents-0.1.9 → grasp_agents-0.1.10}/src/grasp_agents/openai/converters.py +0 -0
- {grasp_agents-0.1.9 → grasp_agents-0.1.10}/src/grasp_agents/openai/message_converters.py +0 -0
- {grasp_agents-0.1.9 → grasp_agents-0.1.10}/src/grasp_agents/openai/openai_llm.py +0 -0
- {grasp_agents-0.1.9 → grasp_agents-0.1.10}/src/grasp_agents/openai/tool_converters.py +0 -0
- {grasp_agents-0.1.9 → grasp_agents-0.1.10}/src/grasp_agents/printer.py +0 -0
- {grasp_agents-0.1.9 → grasp_agents-0.1.10}/src/grasp_agents/prompt_builder.py +0 -0
- {grasp_agents-0.1.9 → grasp_agents-0.1.10}/src/grasp_agents/run_context.py +0 -0
- {grasp_agents-0.1.9 → grasp_agents-0.1.10}/src/grasp_agents/tool_orchestrator.py +0 -0
- {grasp_agents-0.1.9 → grasp_agents-0.1.10}/src/grasp_agents/typing/__init__.py +0 -0
- {grasp_agents-0.1.9 → grasp_agents-0.1.10}/src/grasp_agents/typing/completion.py +0 -0
- {grasp_agents-0.1.9 → grasp_agents-0.1.10}/src/grasp_agents/typing/content.py +0 -0
- {grasp_agents-0.1.9 → grasp_agents-0.1.10}/src/grasp_agents/typing/converters.py +0 -0
- {grasp_agents-0.1.9 → grasp_agents-0.1.10}/src/grasp_agents/typing/io.py +0 -0
- {grasp_agents-0.1.9 → grasp_agents-0.1.10}/src/grasp_agents/typing/message.py +0 -0
- {grasp_agents-0.1.9 → grasp_agents-0.1.10}/src/grasp_agents/typing/tool.py +0 -0
- {grasp_agents-0.1.9 → grasp_agents-0.1.10}/src/grasp_agents/usage_tracker.py +0 -0
- {grasp_agents-0.1.9 → grasp_agents-0.1.10}/src/grasp_agents/utils.py +0 -0
- {grasp_agents-0.1.9 → grasp_agents-0.1.10}/src/grasp_agents/workflow/__init__.py +0 -0
- {grasp_agents-0.1.9 → grasp_agents-0.1.10}/src/grasp_agents/workflow/looped_agent.py +0 -0
- {grasp_agents-0.1.9 → grasp_agents-0.1.10}/src/grasp_agents/workflow/sequential_agent.py +0 -0
- {grasp_agents-0.1.9 → grasp_agents-0.1.10}/src/grasp_agents/workflow/workflow_agent.py +0 -0
@@ -4,6 +4,8 @@ Package production dependencies are licensed under the following terms:
|
|
4
4
|
|
5
5
|
| Name | Version | License | URL |
|
6
6
|
| --------- | ------- | ------------------------------------------------- | --------------------------------------- |
|
7
|
+
| PyYAML | 6.0.2 | MIT License | https://pyyaml.org/ |
|
8
|
+
| dotenv | 0.9.9 | BSD-3-Clause license | https://github.com/pedroburon/dotenv |
|
7
9
|
| httpx | 0.28.1 | BSD License | https://github.com/encode/httpx |
|
8
10
|
| openai | 1.77.0 | Apache Software License | https://github.com/openai/openai-python |
|
9
11
|
| tenacity | 9.1.2 | Apache Software License | https://github.com/jd/tenacity |
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: grasp_agents
|
3
|
-
Version: 0.1.
|
3
|
+
Version: 0.1.10
|
4
4
|
Summary: Grasp Agents Library
|
5
5
|
License-File: LICENSE
|
6
6
|
License-File: LICENSE.md
|
@@ -14,10 +14,10 @@ Requires-Dist: termcolor<3,>=2.4.0
|
|
14
14
|
Requires-Dist: tqdm<5,>=4.66.2
|
15
15
|
Description-Content-Type: text/markdown
|
16
16
|
|
17
|
-
#
|
17
|
+
# Grasp Agents
|
18
18
|
|
19
19
|
<br/>
|
20
|
-
<img src="./.assets/grasp.
|
20
|
+
<img src="./.assets/grasp.png" alt="Grasp Agents" width="320" />
|
21
21
|
<br/>
|
22
22
|
<br/>
|
23
23
|
|
@@ -27,7 +27,7 @@ Description-Content-Type: text/markdown
|
|
27
27
|
|
28
28
|
## Overview
|
29
29
|
|
30
|
-
|
30
|
+
**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.
|
31
31
|
|
32
32
|
## Features
|
33
33
|
|
@@ -182,15 +182,9 @@ python -m venv .venv
|
|
182
182
|
source .venv/bin/activate
|
183
183
|
```
|
184
184
|
|
185
|
-
If you see `ModuleNotFoundError: No module named 'yaml'`, run:
|
186
|
-
|
187
|
-
```bash
|
188
|
-
pip install pyyaml
|
189
|
-
```
|
190
|
-
|
191
185
|
#### 4. Install Grasp Agents SDK
|
192
186
|
|
193
|
-
If you have a `requirements.txt
|
187
|
+
If you have a `requirements.txt` file:
|
194
188
|
|
195
189
|
```bash
|
196
190
|
pip install -r requirements.txt
|
@@ -214,6 +208,72 @@ python hello.py
|
|
214
208
|
|
215
209
|
---
|
216
210
|
|
211
|
+
### Option 3: Poetry-based Project
|
212
|
+
|
213
|
+
> **Note:** You can check this sample project code in the [src/grasp_agents/examples/demo/poetry](src/grasp_agents/examples/demo/poetry) folder. Feel free to copy and paste the code from there to a separate project.
|
214
|
+
|
215
|
+
#### 1. Create Project Folder
|
216
|
+
|
217
|
+
```bash
|
218
|
+
mkdir my-test-poetry-app
|
219
|
+
cd my-test-poetry-app
|
220
|
+
```
|
221
|
+
|
222
|
+
#### 2. Install Python 3.11.9 via pyenv
|
223
|
+
|
224
|
+
```bash
|
225
|
+
brew install pyenv
|
226
|
+
pyenv install 3.11.9
|
227
|
+
pyenv local 3.11.9
|
228
|
+
```
|
229
|
+
|
230
|
+
#### 3. Install Poetry Package Manager
|
231
|
+
|
232
|
+
If you don't have Poetry, install it:
|
233
|
+
|
234
|
+
```bash
|
235
|
+
curl -sSL https://install.python-poetry.org | python3 -
|
236
|
+
```
|
237
|
+
|
238
|
+
Open a new terminal after installing Poetry.
|
239
|
+
|
240
|
+
#### 4. Create and Activate a Virtual Environment
|
241
|
+
|
242
|
+
```bash
|
243
|
+
python -m venv .venv
|
244
|
+
source .venv/bin/activate
|
245
|
+
```
|
246
|
+
|
247
|
+
#### 5. Make Poetry Use the Virtual Environment's Python
|
248
|
+
|
249
|
+
```bash
|
250
|
+
poetry env use $(which python)
|
251
|
+
```
|
252
|
+
|
253
|
+
#### 6. Install the Grasp Agents SDK
|
254
|
+
|
255
|
+
```bash
|
256
|
+
poetry install
|
257
|
+
```
|
258
|
+
|
259
|
+
#### 7. Example Usage
|
260
|
+
|
261
|
+
Create a file, e.g., `hello.py`, and use the same code as above.
|
262
|
+
|
263
|
+
#### 8. Environment Variables
|
264
|
+
|
265
|
+
Ensure you have a `.env` file with your OpenAI API key set:
|
266
|
+
|
267
|
+
```
|
268
|
+
OPENAI_API_KEY=your_openai_api_key
|
269
|
+
```
|
270
|
+
|
271
|
+
#### 9. Run the App
|
272
|
+
|
273
|
+
```bash
|
274
|
+
poetry run python hello.py
|
275
|
+
```
|
276
|
+
|
217
277
|
## Development
|
218
278
|
|
219
279
|
To develop and test the library locally, follow these steps:
|
@@ -1,7 +1,7 @@
|
|
1
|
-
#
|
1
|
+
# Grasp Agents
|
2
2
|
|
3
3
|
<br/>
|
4
|
-
<img src="./.assets/grasp.
|
4
|
+
<img src="./.assets/grasp.png" alt="Grasp Agents" width="320" />
|
5
5
|
<br/>
|
6
6
|
<br/>
|
7
7
|
|
@@ -11,7 +11,7 @@
|
|
11
11
|
|
12
12
|
## Overview
|
13
13
|
|
14
|
-
|
14
|
+
**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.
|
15
15
|
|
16
16
|
## Features
|
17
17
|
|
@@ -166,15 +166,9 @@ python -m venv .venv
|
|
166
166
|
source .venv/bin/activate
|
167
167
|
```
|
168
168
|
|
169
|
-
If you see `ModuleNotFoundError: No module named 'yaml'`, run:
|
170
|
-
|
171
|
-
```bash
|
172
|
-
pip install pyyaml
|
173
|
-
```
|
174
|
-
|
175
169
|
#### 4. Install Grasp Agents SDK
|
176
170
|
|
177
|
-
If you have a `requirements.txt
|
171
|
+
If you have a `requirements.txt` file:
|
178
172
|
|
179
173
|
```bash
|
180
174
|
pip install -r requirements.txt
|
@@ -198,6 +192,72 @@ python hello.py
|
|
198
192
|
|
199
193
|
---
|
200
194
|
|
195
|
+
### Option 3: Poetry-based Project
|
196
|
+
|
197
|
+
> **Note:** You can check this sample project code in the [src/grasp_agents/examples/demo/poetry](src/grasp_agents/examples/demo/poetry) folder. Feel free to copy and paste the code from there to a separate project.
|
198
|
+
|
199
|
+
#### 1. Create Project Folder
|
200
|
+
|
201
|
+
```bash
|
202
|
+
mkdir my-test-poetry-app
|
203
|
+
cd my-test-poetry-app
|
204
|
+
```
|
205
|
+
|
206
|
+
#### 2. Install Python 3.11.9 via pyenv
|
207
|
+
|
208
|
+
```bash
|
209
|
+
brew install pyenv
|
210
|
+
pyenv install 3.11.9
|
211
|
+
pyenv local 3.11.9
|
212
|
+
```
|
213
|
+
|
214
|
+
#### 3. Install Poetry Package Manager
|
215
|
+
|
216
|
+
If you don't have Poetry, install it:
|
217
|
+
|
218
|
+
```bash
|
219
|
+
curl -sSL https://install.python-poetry.org | python3 -
|
220
|
+
```
|
221
|
+
|
222
|
+
Open a new terminal after installing Poetry.
|
223
|
+
|
224
|
+
#### 4. Create and Activate a Virtual Environment
|
225
|
+
|
226
|
+
```bash
|
227
|
+
python -m venv .venv
|
228
|
+
source .venv/bin/activate
|
229
|
+
```
|
230
|
+
|
231
|
+
#### 5. Make Poetry Use the Virtual Environment's Python
|
232
|
+
|
233
|
+
```bash
|
234
|
+
poetry env use $(which python)
|
235
|
+
```
|
236
|
+
|
237
|
+
#### 6. Install the Grasp Agents SDK
|
238
|
+
|
239
|
+
```bash
|
240
|
+
poetry install
|
241
|
+
```
|
242
|
+
|
243
|
+
#### 7. Example Usage
|
244
|
+
|
245
|
+
Create a file, e.g., `hello.py`, and use the same code as above.
|
246
|
+
|
247
|
+
#### 8. Environment Variables
|
248
|
+
|
249
|
+
Ensure you have a `.env` file with your OpenAI API key set:
|
250
|
+
|
251
|
+
```
|
252
|
+
OPENAI_API_KEY=your_openai_api_key
|
253
|
+
```
|
254
|
+
|
255
|
+
#### 9. Run the App
|
256
|
+
|
257
|
+
```bash
|
258
|
+
poetry run python hello.py
|
259
|
+
```
|
260
|
+
|
201
261
|
## Development
|
202
262
|
|
203
263
|
To develop and test the library locally, follow these steps:
|
@@ -1,6 +1,6 @@
|
|
1
1
|
[project]
|
2
2
|
name = "grasp_agents"
|
3
|
-
version = "0.1.
|
3
|
+
version = "0.1.10"
|
4
4
|
description = "Grasp Agents Library"
|
5
5
|
readme = "README.md"
|
6
6
|
requires-python = ">=3.11.4,<3.12"
|
@@ -27,6 +27,7 @@ dev = [
|
|
27
27
|
"twine>=5.1.1,<6",
|
28
28
|
"ruff>=0.11.8",
|
29
29
|
"pyright>=1.1.400",
|
30
|
+
"pip-licenses>=5.0.0",
|
30
31
|
]
|
31
32
|
|
32
33
|
[build-system]
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{grasp_agents-0.1.9 → grasp_agents-0.1.10}/src/grasp_agents/data_retrieval/rate_limiter_chunked.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|