grasp_agents 0.1.5__tar.gz → 0.1.7__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.
Files changed (47) hide show
  1. grasp_agents-0.1.7/PKG-INFO +203 -0
  2. grasp_agents-0.1.7/README.md +190 -0
  3. {grasp_agents-0.1.5 → grasp_agents-0.1.7}/pyproject.toml +2 -5
  4. grasp_agents-0.1.5/PKG-INFO +0 -14
  5. grasp_agents-0.1.5/README.md +0 -1
  6. {grasp_agents-0.1.5 → grasp_agents-0.1.7}/.gitignore +0 -0
  7. {grasp_agents-0.1.5 → grasp_agents-0.1.7}/LICENSE +0 -0
  8. {grasp_agents-0.1.5 → grasp_agents-0.1.7}/src/grasp_agents/agent_message.py +0 -0
  9. {grasp_agents-0.1.5 → grasp_agents-0.1.7}/src/grasp_agents/agent_message_pool.py +0 -0
  10. {grasp_agents-0.1.5 → grasp_agents-0.1.7}/src/grasp_agents/base_agent.py +0 -0
  11. {grasp_agents-0.1.5 → grasp_agents-0.1.7}/src/grasp_agents/cloud_llm.py +0 -0
  12. {grasp_agents-0.1.5 → grasp_agents-0.1.7}/src/grasp_agents/comm_agent.py +0 -0
  13. {grasp_agents-0.1.5 → grasp_agents-0.1.7}/src/grasp_agents/costs_dict.yaml +0 -0
  14. {grasp_agents-0.1.5 → grasp_agents-0.1.7}/src/grasp_agents/data_retrieval/__init__.py +0 -0
  15. {grasp_agents-0.1.5 → grasp_agents-0.1.7}/src/grasp_agents/data_retrieval/rate_limiter_chunked.py +0 -0
  16. {grasp_agents-0.1.5 → grasp_agents-0.1.7}/src/grasp_agents/data_retrieval/types.py +0 -0
  17. {grasp_agents-0.1.5 → grasp_agents-0.1.7}/src/grasp_agents/data_retrieval/utils.py +0 -0
  18. {grasp_agents-0.1.5 → grasp_agents-0.1.7}/src/grasp_agents/grasp_logging.py +0 -0
  19. {grasp_agents-0.1.5 → grasp_agents-0.1.7}/src/grasp_agents/http_client.py +0 -0
  20. {grasp_agents-0.1.5 → grasp_agents-0.1.7}/src/grasp_agents/llm.py +0 -0
  21. {grasp_agents-0.1.5 → grasp_agents-0.1.7}/src/grasp_agents/llm_agent.py +0 -0
  22. {grasp_agents-0.1.5 → grasp_agents-0.1.7}/src/grasp_agents/llm_agent_state.py +0 -0
  23. {grasp_agents-0.1.5 → grasp_agents-0.1.7}/src/grasp_agents/memory.py +0 -0
  24. {grasp_agents-0.1.5 → grasp_agents-0.1.7}/src/grasp_agents/openai/__init__.py +0 -0
  25. {grasp_agents-0.1.5 → grasp_agents-0.1.7}/src/grasp_agents/openai/completion_converters.py +0 -0
  26. {grasp_agents-0.1.5 → grasp_agents-0.1.7}/src/grasp_agents/openai/content_converters.py +0 -0
  27. {grasp_agents-0.1.5 → grasp_agents-0.1.7}/src/grasp_agents/openai/converters.py +0 -0
  28. {grasp_agents-0.1.5 → grasp_agents-0.1.7}/src/grasp_agents/openai/message_converters.py +0 -0
  29. {grasp_agents-0.1.5 → grasp_agents-0.1.7}/src/grasp_agents/openai/openai_llm.py +0 -0
  30. {grasp_agents-0.1.5 → grasp_agents-0.1.7}/src/grasp_agents/openai/tool_converters.py +0 -0
  31. {grasp_agents-0.1.5 → grasp_agents-0.1.7}/src/grasp_agents/printer.py +0 -0
  32. {grasp_agents-0.1.5 → grasp_agents-0.1.7}/src/grasp_agents/prompt_builder.py +0 -0
  33. {grasp_agents-0.1.5 → grasp_agents-0.1.7}/src/grasp_agents/run_context.py +0 -0
  34. {grasp_agents-0.1.5 → grasp_agents-0.1.7}/src/grasp_agents/tool_orchestrator.py +0 -0
  35. {grasp_agents-0.1.5 → grasp_agents-0.1.7}/src/grasp_agents/typing/__init__.py +0 -0
  36. {grasp_agents-0.1.5 → grasp_agents-0.1.7}/src/grasp_agents/typing/completion.py +0 -0
  37. {grasp_agents-0.1.5 → grasp_agents-0.1.7}/src/grasp_agents/typing/content.py +0 -0
  38. {grasp_agents-0.1.5 → grasp_agents-0.1.7}/src/grasp_agents/typing/converters.py +0 -0
  39. {grasp_agents-0.1.5 → grasp_agents-0.1.7}/src/grasp_agents/typing/io.py +0 -0
  40. {grasp_agents-0.1.5 → grasp_agents-0.1.7}/src/grasp_agents/typing/message.py +0 -0
  41. {grasp_agents-0.1.5 → grasp_agents-0.1.7}/src/grasp_agents/typing/tool.py +0 -0
  42. {grasp_agents-0.1.5 → grasp_agents-0.1.7}/src/grasp_agents/usage_tracker.py +0 -0
  43. {grasp_agents-0.1.5 → grasp_agents-0.1.7}/src/grasp_agents/utils.py +0 -0
  44. {grasp_agents-0.1.5 → grasp_agents-0.1.7}/src/grasp_agents/workflow/__init__.py +0 -0
  45. {grasp_agents-0.1.5 → grasp_agents-0.1.7}/src/grasp_agents/workflow/looped_agent.py +0 -0
  46. {grasp_agents-0.1.5 → grasp_agents-0.1.7}/src/grasp_agents/workflow/sequential_agent.py +0 -0
  47. {grasp_agents-0.1.5 → grasp_agents-0.1.7}/src/grasp_agents/workflow/workflow_agent.py +0 -0
@@ -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.
@@ -0,0 +1,190 @@
1
+ # grasp_agents
2
+
3
+ <br/>
4
+ <img src="./.assets/grasp.svg" alt="Grasp Agents" width="320" />
5
+ <br/>
6
+ <br/>
7
+
8
+ [![PyPI version](https://badge.fury.io/py/grasp_agents.svg)](https://badge.fury.io/py/grasp_agents)
9
+ [![Python Versions](https://img.shields.io/pypi/pyversions/grasp_agents?style=flat-square)](https://pypi.org/project/grasp_agents/)
10
+ [![License: MIT](https://img.shields.io/badge/license-MIT-yellow?style=flat-square)](LICENSE)
11
+
12
+ ## Overview
13
+
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
+
16
+ ## Features
17
+
18
+ - Modular agent base classes
19
+ - Message and memory management
20
+ - LLM and tool orchestration
21
+ - Logging and usage tracking
22
+ - Extensible architecture
23
+
24
+ ## Project Structure
25
+
26
+ - `src/grasp_agents/` — Core framework modules
27
+ - `base_agent.py`, `llm_agent.py`, `comm_agent.py`: Agent classes
28
+ - `agent_message.py`, `agent_message_pool.py`: Messaging
29
+ - `memory.py`: Memory management
30
+ - `cloud_llm.py`, `llm.py`: LLM integration
31
+ - `tool_orchestrator.py`: Tool orchestration
32
+ - `usage_tracker.py`, `grasp_logging.py`: Usage and logging
33
+ - `data_retrieval/`, `openai/`, `typing/`, `workflow/`: Extensions and utilities
34
+ - `configs/` — Configuration files
35
+ - `data/` — Logs and datasets
36
+
37
+ ## Quickstart & Installation Variants
38
+
39
+ ### Option 1: UV Package Manager Project
40
+
41
+ #### 1. Prerequisites
42
+
43
+ Install the [UV Package Manager](https://github.com/astral-sh/uv):
44
+
45
+ ```bash
46
+ curl -LsSf https://astral.sh/uv/install.sh | sh
47
+ ```
48
+
49
+ #### 2. Create Project & Install Dependencies
50
+
51
+ ```bash
52
+ mkdir my-test-uv-app
53
+ cd my-test-uv-app
54
+ uv init .
55
+ ```
56
+
57
+ Create and activate a virtual environment:
58
+
59
+ ```bash
60
+ uv venv
61
+ source .venv/bin/activate
62
+ ```
63
+
64
+ Add and sync dependencies:
65
+
66
+ ```bash
67
+ uv add grasp_agents
68
+ uv sync
69
+ ```
70
+
71
+ #### 3. Example Usage
72
+
73
+ Create a file, e.g., `hello.py`:
74
+
75
+ ```python
76
+ from grasp_agents.llm_agent import LLMAgent
77
+ from grasp_agents.base_agent import BaseAgentConfig
78
+
79
+ agent = LLMAgent(
80
+ config=BaseAgentConfig(
81
+ model="gpt-4o-mini",
82
+ memory=None, # or your memory implementation
83
+ )
84
+ )
85
+
86
+ response = agent.run("Hello, agent!")
87
+ print(response)
88
+ ```
89
+
90
+ Run your script:
91
+
92
+ ```bash
93
+ python hello.py
94
+ ```
95
+
96
+ ---
97
+
98
+ ### Option 2: PIP-only (requirements.txt-based) Project
99
+
100
+ #### 1. Create Project Folder
101
+
102
+ ```bash
103
+ mkdir my-test-pip-app
104
+ cd my-test-pip-app
105
+ ```
106
+
107
+ #### 2. Install Python 3.11.9 (Recommended)
108
+
109
+ If using [pyenv](https://github.com/pyenv/pyenv):
110
+
111
+ ```bash
112
+ brew install pyenv
113
+ pyenv install 3.11.9
114
+ pyenv local 3.11.9
115
+ ```
116
+
117
+ Open a new terminal after setting the Python version.
118
+
119
+ #### 3. Create & Activate Virtual Environment
120
+
121
+ ```bash
122
+ python -m venv .venv
123
+ source .venv/bin/activate
124
+ ```
125
+
126
+ If you see `ModuleNotFoundError: No module named 'yaml'`, run:
127
+
128
+ ```bash
129
+ pip install pyyaml
130
+ ```
131
+
132
+ #### 4. Install Grasp Agents SDK
133
+
134
+ If you have a `requirements.txt`:
135
+
136
+ ```bash
137
+ pip install -r requirements.txt
138
+ ```
139
+
140
+ Or install directly:
141
+
142
+ ```bash
143
+ pip install grasp-agents
144
+ ```
145
+
146
+ #### 5. Example Usage
147
+
148
+ Create a file, e.g., `hello.py`, and use the same code as above.
149
+
150
+ #### 6. Run the App
151
+
152
+ ```bash
153
+ python hello.py
154
+ ```
155
+
156
+ ---
157
+
158
+ ## License
159
+
160
+ MIT License. See [LICENSE](LICENSE) for details.
161
+
162
+ ## Development
163
+
164
+ To develop and test the library locally, follow these steps:
165
+
166
+ ### 1. Install UV Package Manager
167
+
168
+ Make sure [UV](https://github.com/astral-sh/uv) is installed on your system:
169
+
170
+ ```bash
171
+ curl -LsSf https://astral.sh/uv/install.sh | sh
172
+ ```
173
+
174
+ ### 2. Install Dependencies
175
+
176
+ Create a new virtual environment and install dependencies:
177
+
178
+ ```bash
179
+ uv venv
180
+ source .venv/bin/activate
181
+ uv sync
182
+ ```
183
+
184
+ ### 3. Test Example
185
+
186
+ - Install the Jupyter Notebook extension for VS Code.
187
+ - Open `src/grasp_agents/examples/notebooks/agents_demo.ipynb` in VS Code.
188
+ - Ensure you have a `.env` file with your OpenAI and Google AI Studio API keys set (see `.env.example`).
189
+
190
+ You're now ready to run and experiment with the example notebook.
@@ -1,7 +1,7 @@
1
1
  [project]
2
2
  name = "grasp_agents"
3
- version = "0.1.5"
4
- description = "Add your description here"
3
+ version = "0.1.7"
4
+ description = "Grasp Agents Library"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.11.4,<3.12"
7
7
  dependencies = [
@@ -19,13 +19,10 @@ dev = [
19
19
  "ipykernel>=6.19.1,<7",
20
20
  "ipywidgets>=8.0.4,<9",
21
21
  "widgetsnbextension>=4.0.5,<5",
22
- "tk>=0.1.0,<0.2",
23
22
  "types-cachetools>=5.0.1,<6",
24
- "keyring>=24.2.0,<25",
25
23
  "pydantic>=2",
26
24
  "pre-commit-uv>=4.1.4",
27
25
  "twine>=5.1.1,<6",
28
- "keyrings-google-artifactregistry-auth>=1.1.2,<2",
29
26
  "ruff>=0.11.8",
30
27
  "pyright>=1.1.400",
31
28
  ]
@@ -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
@@ -1 +0,0 @@
1
- # grasp-agents
File without changes
File without changes