agentcomet 0.1.0b1__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. agentcomet-0.1.0b1/LICENSE +201 -0
  2. agentcomet-0.1.0b1/NOTICE +6 -0
  3. agentcomet-0.1.0b1/PKG-INFO +238 -0
  4. agentcomet-0.1.0b1/README.md +218 -0
  5. agentcomet-0.1.0b1/agentcomet/__init__.py +10 -0
  6. agentcomet-0.1.0b1/agentcomet/agents/__init__.py +10 -0
  7. agentcomet-0.1.0b1/agentcomet/agents/agent.py +638 -0
  8. agentcomet-0.1.0b1/agentcomet/agents/base_agent.py +19 -0
  9. agentcomet-0.1.0b1/agentcomet/agents/factory.py +21 -0
  10. agentcomet-0.1.0b1/agentcomet/agents/loader.py +96 -0
  11. agentcomet-0.1.0b1/agentcomet/agents/registry.py +34 -0
  12. agentcomet-0.1.0b1/agentcomet/cli.py +95 -0
  13. agentcomet-0.1.0b1/agentcomet/communication/__init__.py +5 -0
  14. agentcomet-0.1.0b1/agentcomet/communication/message_broker.py +45 -0
  15. agentcomet-0.1.0b1/agentcomet/communication/protocols.py +17 -0
  16. agentcomet-0.1.0b1/agentcomet/communication/state_manager.py +20 -0
  17. agentcomet-0.1.0b1/agentcomet/memory.py +66 -0
  18. agentcomet-0.1.0b1/agentcomet/models/__init__.py +4 -0
  19. agentcomet-0.1.0b1/agentcomet/models/base_model.py +17 -0
  20. agentcomet-0.1.0b1/agentcomet/models/providers.py +271 -0
  21. agentcomet-0.1.0b1/agentcomet/orchestrators/__init__.py +4 -0
  22. agentcomet-0.1.0b1/agentcomet/orchestrators/agent_orchestrator.py +70 -0
  23. agentcomet-0.1.0b1/agentcomet/orchestrators/execution_engine.py +83 -0
  24. agentcomet-0.1.0b1/agentcomet/settings.py +22 -0
  25. agentcomet-0.1.0b1/agentcomet/tools/__init__.py +10 -0
  26. agentcomet-0.1.0b1/agentcomet/tools/core.py +81 -0
  27. agentcomet-0.1.0b1/agentcomet/tools/registry.py +41 -0
  28. agentcomet-0.1.0b1/agentcomet/utils/__init__.py +4 -0
  29. agentcomet-0.1.0b1/agentcomet/utils/serialization.py +24 -0
  30. agentcomet-0.1.0b1/agentcomet/utils/validation.py +15 -0
  31. agentcomet-0.1.0b1/agentcomet/vcs/__init__.py +3 -0
  32. agentcomet-0.1.0b1/agentcomet/vcs/repository.py +156 -0
  33. agentcomet-0.1.0b1/agentcomet/workflows/__init__.py +7 -0
  34. agentcomet-0.1.0b1/agentcomet/workflows/conditional_router.py +29 -0
  35. agentcomet-0.1.0b1/agentcomet/workflows/dag_builder.py +47 -0
  36. agentcomet-0.1.0b1/agentcomet/workflows/patterns.py +11 -0
  37. agentcomet-0.1.0b1/agentcomet/workflows/templates.py +74 -0
  38. agentcomet-0.1.0b1/agentcomet/workflows/workflow_builder.py +58 -0
  39. agentcomet-0.1.0b1/agentcomet.egg-info/PKG-INFO +238 -0
  40. agentcomet-0.1.0b1/agentcomet.egg-info/SOURCES.txt +45 -0
  41. agentcomet-0.1.0b1/agentcomet.egg-info/dependency_links.txt +1 -0
  42. agentcomet-0.1.0b1/agentcomet.egg-info/requires.txt +3 -0
  43. agentcomet-0.1.0b1/agentcomet.egg-info/top_level.txt +1 -0
  44. agentcomet-0.1.0b1/setup.cfg +4 -0
  45. agentcomet-0.1.0b1/setup.py +25 -0
  46. agentcomet-0.1.0b1/tests/test_llms.py +45 -0
  47. agentcomet-0.1.0b1/tests/test_sdk.py +64 -0
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to the Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2026 AgentComet Contributors
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -0,0 +1,6 @@
1
+ This product includes software developed as part of the AgentComet project.
2
+
3
+ Copyright © 2026 Vaibhav Haswani.
4
+
5
+ Any redistribution, derivative work, or public deployment must retain
6
+ this NOTICE file and clearly attribute the original project as "AgentComet".
@@ -0,0 +1,238 @@
1
+ Metadata-Version: 2.4
2
+ Name: agentcomet
3
+ Version: 0.1.0b1
4
+ Summary: Modern Agent Management, Version Control & Orchestration Framework
5
+ Author: Vaibhav Haswani
6
+ Requires-Python: >=3.8
7
+ Description-Content-Type: text/markdown
8
+ License-File: LICENSE
9
+ License-File: NOTICE
10
+ Requires-Dist: uaf-cli
11
+ Requires-Dist: requests
12
+ Requires-Dist: pyyaml
13
+ Dynamic: author
14
+ Dynamic: description
15
+ Dynamic: description-content-type
16
+ Dynamic: license-file
17
+ Dynamic: requires-dist
18
+ Dynamic: requires-python
19
+ Dynamic: summary
20
+
21
+ <h1 align="center">🌠 AgentComet</h1>
22
+
23
+ <p align="center">
24
+ <img src="https://img.shields.io/badge/AgentComet-v0.1.0_beta-blueviolet?style=for-the-badge" alt="Version"/>
25
+ <img src="https://img.shields.io/badge/Python-3.8+-blue?style=for-the-badge&logo=python&logoColor=white" alt="Python"/>
26
+ <img src="https://img.shields.io/badge/License-Apache%202.0-green?style=for-the-badge" alt="License"/>
27
+ <img src="https://img.shields.io/badge/UAF-v2-orange?style=for-the-badge" alt="UAF v2"/>
28
+ </p>
29
+
30
+ <p align="center">
31
+ <strong>Build once. Run anywhere. Resume anytime.</strong><br/>
32
+ <em>Stateful. Portable. Composable AI agents.</em>
33
+ </p>
34
+
35
+ ---
36
+
37
+ ## ⚡ The Problem
38
+
39
+ Every AI team ends up rebuilding the same agents.
40
+
41
+ Same logic. Same tools.
42
+ Different environment. New framework.
43
+
44
+ And the worst part? **All the memory, context, and progress is lost.**
45
+ Agents today are stateless, fragile, and non-portable.
46
+
47
+ ---
48
+
49
+ ## 🚀 Introducing AgentComet
50
+
51
+ AgentComet is a modern agent framework designed to make agents:
52
+ - **Stateful by default**
53
+ - **Portable across environments**
54
+ - **Resumable at any point in time**
55
+
56
+ Instead of treating agents like scripts, AgentComet treats them like **artifacts**.
57
+
58
+ ---
59
+
60
+ ## 🎯 What makes AgentComet different?
61
+
62
+ AgentComet introduces a new primitive: **Portable, Stateful Agent Artifacts (`.uaf`)**
63
+
64
+ You don't just write agents. You package, move, version, and resume them.
65
+
66
+ ---
67
+
68
+ ## 🚀 Quick Start
69
+
70
+ ### Installation
71
+
72
+ ```bash
73
+ pip install agentcomet
74
+ ```
75
+
76
+ ### Build an Agent
77
+
78
+ Create an agent, assign it custom tools, and let it handle the heavy lifting.
79
+
80
+ ```python
81
+ from agentcomet import Agent, tool
82
+ from agentcomet.models import Ollama
83
+
84
+ @tool
85
+ def greet(name: str) -> str:
86
+ return f"Hello, {name}!"
87
+
88
+ class GreeterAgent(Agent):
89
+ def setup(self):
90
+ self.name = "greeter"
91
+ self.add_tools(greet)
92
+
93
+ # Instantiate and chat
94
+ agent = GreeterAgent(llm=Ollama(model="llama3"))
95
+ print(agent.run("Say hello to Alice!"))
96
+ ```
97
+
98
+ ---
99
+
100
+ ## ✨ Core Capabilities
101
+
102
+ ### 🧠 Persistent Memory
103
+
104
+ Every agent comes with a highly flexible key-value memory store (`self.memory`). Conversational history is **auto-saved** without any manual boilerplate.
105
+
106
+ ```python
107
+ agent.memory.save("user_preferences", {"theme": "dark"})
108
+ print(agent.memory.get("messages"))
109
+ ```
110
+
111
+ ### 💾 State Checkpoints
112
+
113
+ Save and restore exact agent timelines. Need to rollback a prompt mistake? Just load the state.
114
+
115
+ ```python
116
+ agent.save_state("checkpoint-1")
117
+ agent.load_state("checkpoint-1")
118
+ ```
119
+
120
+ ### 📦 Portable Agents with .uaf
121
+
122
+ Stop writing boilerplate to serialize agent code. Export your entire agent—along with its memory, history, LLM config, and tools—into a portable `.uaf` archive.
123
+
124
+ ```python
125
+ agent.export("assistant.uaf")
126
+
127
+ from agentcomet import load_agent
128
+ agent = load_agent("assistant.uaf")
129
+ ```
130
+
131
+ ### ☁️ Local Registry (Push & Pull)
132
+
133
+ Sync your agents with a locally hosted AgentComet Studio registry. Version, share, and pull agents across your team — like git, but for agents.
134
+
135
+ #### 1. Start AgentComet Studio
136
+
137
+ ```bash
138
+ docker pull vaibhavhaswani/agentcomet-studio:latest
139
+
140
+ docker run -p 3451:3451 \
141
+ -v $(pwd)/data:/app/data \
142
+ vaibhavhaswani/agentcomet-studio:latest
143
+ ```
144
+
145
+ > **Windows (PowerShell):**
146
+ > ```powershell
147
+ > docker run -p 3451:3451 -v ${PWD}/data:/app/data vaibhavhaswani/agentcomet-studio:latest
148
+ > ```
149
+
150
+ #### 2. Configure the SDK
151
+
152
+ ```python
153
+ from agentcomet import Settings
154
+
155
+ Settings.init(
156
+ AGENTCOMET_LOCAL_URL="http://localhost:3451",
157
+ AGENTCOMET_LOCAL_KEY="your-secret-key"
158
+ )
159
+ ```
160
+
161
+ Or set environment variables:
162
+ ```bash
163
+ export AGENTCOMET_LOCAL_URL=http://localhost:3451
164
+ export AGENTCOMET_LOCAL_KEY=your-secret-key
165
+ ```
166
+
167
+ #### 3. Push & Pull
168
+
169
+ ```python
170
+ # Push — auto-increments version
171
+ agent.push_local()
172
+
173
+ # Pull — latest or specific version
174
+ agent = Agent.pull_local("greeter")
175
+ agent = Agent.pull_local("greeter", version="0.1.2")
176
+ ```
177
+
178
+ ### 🔌 Multi-Provider LLM Support
179
+
180
+ Switching your backend is as simple as defining a new class.
181
+
182
+ ```python
183
+ from agentcomet.models import OpenAIChat, Gemini, Anthropic, Ollama
184
+
185
+ agent.use_llm(OpenAIChat(model="gpt-4o"))
186
+ ```
187
+
188
+ ---
189
+
190
+ ## 🧠 Why this matters
191
+
192
+ We believe the future of AI is not just models.
193
+ It's agents that evolve over time.
194
+
195
+ Agents that:
196
+ - Learn
197
+ - Persist
198
+ - Move
199
+ - Continue
200
+
201
+ AgentComet is a step toward that future.
202
+
203
+ ---
204
+
205
+ ## 🛣️ Vision
206
+
207
+ This is just the beginning.
208
+
209
+ AgentComet is part of a larger vision to build:
210
+ - A universal agent format
211
+ - A global agent registry
212
+ - A composable ecosystem of agents
213
+
214
+ Where agents are not rewritten, but shared, reused, and extended.
215
+
216
+ ---
217
+
218
+ ## 📚 Documentation
219
+
220
+ For a detailed look at all features, API methods, schemas, and configurations, check out the comprehensive [Usage Documentation](docs/usage_documentation.md).
221
+
222
+ ---
223
+
224
+ ## 🤝 Contributing
225
+
226
+ - ⭐ Star the repo
227
+ - 🛠️ Break things
228
+ - 🚀 Open PRs
229
+
230
+ All contributions are welcome.
231
+
232
+ ---
233
+
234
+ ## 📄 License & Legal
235
+
236
+ - **License:** Apache License 2.0
237
+ - **Patent:** Indian Provisional Patent Application No. 202611013684
238
+ - **Branding:** "AgentComet" is a trademark. See [BRANDING.md](./BRANDING.md).
@@ -0,0 +1,218 @@
1
+ <h1 align="center">🌠 AgentComet</h1>
2
+
3
+ <p align="center">
4
+ <img src="https://img.shields.io/badge/AgentComet-v0.1.0_beta-blueviolet?style=for-the-badge" alt="Version"/>
5
+ <img src="https://img.shields.io/badge/Python-3.8+-blue?style=for-the-badge&logo=python&logoColor=white" alt="Python"/>
6
+ <img src="https://img.shields.io/badge/License-Apache%202.0-green?style=for-the-badge" alt="License"/>
7
+ <img src="https://img.shields.io/badge/UAF-v2-orange?style=for-the-badge" alt="UAF v2"/>
8
+ </p>
9
+
10
+ <p align="center">
11
+ <strong>Build once. Run anywhere. Resume anytime.</strong><br/>
12
+ <em>Stateful. Portable. Composable AI agents.</em>
13
+ </p>
14
+
15
+ ---
16
+
17
+ ## ⚡ The Problem
18
+
19
+ Every AI team ends up rebuilding the same agents.
20
+
21
+ Same logic. Same tools.
22
+ Different environment. New framework.
23
+
24
+ And the worst part? **All the memory, context, and progress is lost.**
25
+ Agents today are stateless, fragile, and non-portable.
26
+
27
+ ---
28
+
29
+ ## 🚀 Introducing AgentComet
30
+
31
+ AgentComet is a modern agent framework designed to make agents:
32
+ - **Stateful by default**
33
+ - **Portable across environments**
34
+ - **Resumable at any point in time**
35
+
36
+ Instead of treating agents like scripts, AgentComet treats them like **artifacts**.
37
+
38
+ ---
39
+
40
+ ## 🎯 What makes AgentComet different?
41
+
42
+ AgentComet introduces a new primitive: **Portable, Stateful Agent Artifacts (`.uaf`)**
43
+
44
+ You don't just write agents. You package, move, version, and resume them.
45
+
46
+ ---
47
+
48
+ ## 🚀 Quick Start
49
+
50
+ ### Installation
51
+
52
+ ```bash
53
+ pip install agentcomet
54
+ ```
55
+
56
+ ### Build an Agent
57
+
58
+ Create an agent, assign it custom tools, and let it handle the heavy lifting.
59
+
60
+ ```python
61
+ from agentcomet import Agent, tool
62
+ from agentcomet.models import Ollama
63
+
64
+ @tool
65
+ def greet(name: str) -> str:
66
+ return f"Hello, {name}!"
67
+
68
+ class GreeterAgent(Agent):
69
+ def setup(self):
70
+ self.name = "greeter"
71
+ self.add_tools(greet)
72
+
73
+ # Instantiate and chat
74
+ agent = GreeterAgent(llm=Ollama(model="llama3"))
75
+ print(agent.run("Say hello to Alice!"))
76
+ ```
77
+
78
+ ---
79
+
80
+ ## ✨ Core Capabilities
81
+
82
+ ### 🧠 Persistent Memory
83
+
84
+ Every agent comes with a highly flexible key-value memory store (`self.memory`). Conversational history is **auto-saved** without any manual boilerplate.
85
+
86
+ ```python
87
+ agent.memory.save("user_preferences", {"theme": "dark"})
88
+ print(agent.memory.get("messages"))
89
+ ```
90
+
91
+ ### 💾 State Checkpoints
92
+
93
+ Save and restore exact agent timelines. Need to rollback a prompt mistake? Just load the state.
94
+
95
+ ```python
96
+ agent.save_state("checkpoint-1")
97
+ agent.load_state("checkpoint-1")
98
+ ```
99
+
100
+ ### 📦 Portable Agents with .uaf
101
+
102
+ Stop writing boilerplate to serialize agent code. Export your entire agent—along with its memory, history, LLM config, and tools—into a portable `.uaf` archive.
103
+
104
+ ```python
105
+ agent.export("assistant.uaf")
106
+
107
+ from agentcomet import load_agent
108
+ agent = load_agent("assistant.uaf")
109
+ ```
110
+
111
+ ### ☁️ Local Registry (Push & Pull)
112
+
113
+ Sync your agents with a locally hosted AgentComet Studio registry. Version, share, and pull agents across your team — like git, but for agents.
114
+
115
+ #### 1. Start AgentComet Studio
116
+
117
+ ```bash
118
+ docker pull vaibhavhaswani/agentcomet-studio:latest
119
+
120
+ docker run -p 3451:3451 \
121
+ -v $(pwd)/data:/app/data \
122
+ vaibhavhaswani/agentcomet-studio:latest
123
+ ```
124
+
125
+ > **Windows (PowerShell):**
126
+ > ```powershell
127
+ > docker run -p 3451:3451 -v ${PWD}/data:/app/data vaibhavhaswani/agentcomet-studio:latest
128
+ > ```
129
+
130
+ #### 2. Configure the SDK
131
+
132
+ ```python
133
+ from agentcomet import Settings
134
+
135
+ Settings.init(
136
+ AGENTCOMET_LOCAL_URL="http://localhost:3451",
137
+ AGENTCOMET_LOCAL_KEY="your-secret-key"
138
+ )
139
+ ```
140
+
141
+ Or set environment variables:
142
+ ```bash
143
+ export AGENTCOMET_LOCAL_URL=http://localhost:3451
144
+ export AGENTCOMET_LOCAL_KEY=your-secret-key
145
+ ```
146
+
147
+ #### 3. Push & Pull
148
+
149
+ ```python
150
+ # Push — auto-increments version
151
+ agent.push_local()
152
+
153
+ # Pull — latest or specific version
154
+ agent = Agent.pull_local("greeter")
155
+ agent = Agent.pull_local("greeter", version="0.1.2")
156
+ ```
157
+
158
+ ### 🔌 Multi-Provider LLM Support
159
+
160
+ Switching your backend is as simple as defining a new class.
161
+
162
+ ```python
163
+ from agentcomet.models import OpenAIChat, Gemini, Anthropic, Ollama
164
+
165
+ agent.use_llm(OpenAIChat(model="gpt-4o"))
166
+ ```
167
+
168
+ ---
169
+
170
+ ## 🧠 Why this matters
171
+
172
+ We believe the future of AI is not just models.
173
+ It's agents that evolve over time.
174
+
175
+ Agents that:
176
+ - Learn
177
+ - Persist
178
+ - Move
179
+ - Continue
180
+
181
+ AgentComet is a step toward that future.
182
+
183
+ ---
184
+
185
+ ## 🛣️ Vision
186
+
187
+ This is just the beginning.
188
+
189
+ AgentComet is part of a larger vision to build:
190
+ - A universal agent format
191
+ - A global agent registry
192
+ - A composable ecosystem of agents
193
+
194
+ Where agents are not rewritten, but shared, reused, and extended.
195
+
196
+ ---
197
+
198
+ ## 📚 Documentation
199
+
200
+ For a detailed look at all features, API methods, schemas, and configurations, check out the comprehensive [Usage Documentation](docs/usage_documentation.md).
201
+
202
+ ---
203
+
204
+ ## 🤝 Contributing
205
+
206
+ - ⭐ Star the repo
207
+ - 🛠️ Break things
208
+ - 🚀 Open PRs
209
+
210
+ All contributions are welcome.
211
+
212
+ ---
213
+
214
+ ## 📄 License & Legal
215
+
216
+ - **License:** Apache License 2.0
217
+ - **Patent:** Indian Provisional Patent Application No. 202611013684
218
+ - **Branding:** "AgentComet" is a trademark. See [BRANDING.md](./BRANDING.md).
@@ -0,0 +1,10 @@
1
+ __version__ = "0.1.0b1"
2
+
3
+ from .agents.agent import Agent
4
+ from .agents.factory import create_agent
5
+ from .agents.loader import load_agent
6
+ from .tools.core import tool
7
+ from .memory import Memory
8
+ from .settings import Settings
9
+
10
+ __all__ = ["Agent", "create_agent", "load_agent", "tool", "Memory", "Settings", "__version__"]
@@ -0,0 +1,10 @@
1
+ from .base_agent import BaseAgent
2
+ from .agent import Agent
3
+ from .factory import create_agent
4
+ from .loader import load_agent
5
+ from .registry import AgentRegistry
6
+
7
+
8
+
9
+
10
+ __all__ = ["BaseAgent", "Agent", "create_agent", "AgentRegistry", "load_agent"]