agentify-core 0.1.0__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 (39) hide show
  1. agentify_core-0.1.0/LICENSE +21 -0
  2. agentify_core-0.1.0/MANIFEST.in +8 -0
  3. agentify_core-0.1.0/PKG-INFO +148 -0
  4. agentify_core-0.1.0/README.md +101 -0
  5. agentify_core-0.1.0/agentify/__init__.py +32 -0
  6. agentify_core-0.1.0/agentify/core/__init__.py +13 -0
  7. agentify_core-0.1.0/agentify/core/agent.py +624 -0
  8. agentify_core-0.1.0/agentify/core/callbacks.py +73 -0
  9. agentify_core-0.1.0/agentify/core/config.py +30 -0
  10. agentify_core-0.1.0/agentify/core/tool.py +30 -0
  11. agentify_core-0.1.0/agentify/extensions/__init__.py +0 -0
  12. agentify_core-0.1.0/agentify/extensions/prompts/__init__.py +3 -0
  13. agentify_core-0.1.0/agentify/extensions/prompts/assistant.py +16 -0
  14. agentify_core-0.1.0/agentify/extensions/tools/__init__.py +9 -0
  15. agentify_core-0.1.0/agentify/extensions/tools/calculator.py +56 -0
  16. agentify_core-0.1.0/agentify/extensions/tools/time.py +21 -0
  17. agentify_core-0.1.0/agentify/extensions/tools/weather.py +51 -0
  18. agentify_core-0.1.0/agentify/llm/__init__.py +6 -0
  19. agentify_core-0.1.0/agentify/llm/client.py +133 -0
  20. agentify_core-0.1.0/agentify/memory/__init__.py +17 -0
  21. agentify_core-0.1.0/agentify/memory/interfaces.py +101 -0
  22. agentify_core-0.1.0/agentify/memory/policies.py +79 -0
  23. agentify_core-0.1.0/agentify/memory/service.py +114 -0
  24. agentify_core-0.1.0/agentify/memory/stores/__init__.py +6 -0
  25. agentify_core-0.1.0/agentify/memory/stores/in_memory_store.py +29 -0
  26. agentify_core-0.1.0/agentify/memory/stores/redis_store.py +51 -0
  27. agentify_core-0.1.0/agentify/multi_agent/__init__.py +9 -0
  28. agentify_core-0.1.0/agentify/multi_agent/hierarchical.py +85 -0
  29. agentify_core-0.1.0/agentify/multi_agent/pipeline.py +67 -0
  30. agentify_core-0.1.0/agentify/multi_agent/team.py +62 -0
  31. agentify_core-0.1.0/agentify/multi_agent/tool_wrapper.py +124 -0
  32. agentify_core-0.1.0/agentify_core.egg-info/PKG-INFO +148 -0
  33. agentify_core-0.1.0/agentify_core.egg-info/SOURCES.txt +37 -0
  34. agentify_core-0.1.0/agentify_core.egg-info/dependency_links.txt +1 -0
  35. agentify_core-0.1.0/agentify_core.egg-info/requires.txt +26 -0
  36. agentify_core-0.1.0/agentify_core.egg-info/top_level.txt +1 -0
  37. agentify_core-0.1.0/pyproject.toml +98 -0
  38. agentify_core-0.1.0/requirements.txt +18 -0
  39. agentify_core-0.1.0/setup.cfg +4 -0
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Fabian M
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,8 @@
1
+ include README.md
2
+ include LICENSE
3
+ include requirements.txt
4
+ recursive-include agentify *.py
5
+ recursive-include agentify/extensions *.py
6
+ recursive-exclude * __pycache__
7
+ recursive-exclude * *.py[co]
8
+ recursive-exclude * .DS_Store
@@ -0,0 +1,148 @@
1
+ Metadata-Version: 2.4
2
+ Name: agentify-core
3
+ Version: 0.1.0
4
+ Summary: Framework-agnostic AI agent library for building single and multi-agent systems
5
+ Author-email: Fabian M <fabian@example.com>
6
+ License: MIT
7
+ Project-URL: Homepage, https://github.com/fa8i/Agentify
8
+ Project-URL: Repository, https://github.com/fa8i/Agentify
9
+ Project-URL: Bug Tracker, https://github.com/fa8i/Agentify/issues
10
+ Keywords: agent,multi-agent,ai,llm,openai,framework
11
+ Classifier: Development Status :: 3 - Alpha
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: License :: OSI Approved :: MIT License
14
+ Classifier: Operating System :: OS Independent
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Programming Language :: Python :: 3.9
17
+ Classifier: Programming Language :: Python :: 3.10
18
+ Classifier: Programming Language :: Python :: 3.11
19
+ Classifier: Programming Language :: Python :: 3.12
20
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
21
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
22
+ Requires-Python: >=3.9
23
+ Description-Content-Type: text/markdown
24
+ License-File: LICENSE
25
+ Requires-Dist: openai>=1.0.0
26
+ Requires-Dist: python-dotenv>=0.19.0
27
+ Requires-Dist: Pillow>=9.0.0
28
+ Provides-Extra: redis
29
+ Requires-Dist: redis>=4.0.0; extra == "redis"
30
+ Provides-Extra: tools
31
+ Requires-Dist: requests>=2.25.0; extra == "tools"
32
+ Provides-Extra: ui
33
+ Requires-Dist: gradio>=3.0.0; extra == "ui"
34
+ Provides-Extra: all
35
+ Requires-Dist: redis>=4.0.0; extra == "all"
36
+ Requires-Dist: requests>=2.25.0; extra == "all"
37
+ Requires-Dist: gradio>=3.0.0; extra == "all"
38
+ Provides-Extra: dev
39
+ Requires-Dist: pytest>=7.0.0; extra == "dev"
40
+ Requires-Dist: pytest-cov>=4.0.0; extra == "dev"
41
+ Requires-Dist: black>=22.0.0; extra == "dev"
42
+ Requires-Dist: flake8>=5.0.0; extra == "dev"
43
+ Requires-Dist: mypy>=1.0.0; extra == "dev"
44
+ Requires-Dist: twine>=4.0.0; extra == "dev"
45
+ Requires-Dist: build>=0.10.0; extra == "dev"
46
+ Dynamic: license-file
47
+
48
+ # Agentify
49
+
50
+ **Framework-agnostic AI agent library for building single and multi-agent systems**
51
+
52
+ Agentify is a Python library for building and orchestrating AI agents, from simple assistants to complex multi-agent systems. It focuses on a small set of composable primitives for LLM integration, memory, tools and coordination, so you can focus on product logic instead of framework details.
53
+
54
+ ## Why Agentify?
55
+
56
+ - **Built for production**: clear abstractions, explicit configuration, error handling and extension points that map well to real deployments.
57
+ - **Orchestration-first design**: a uniform `run()` interface for agents, teams, pipelines and hierarchies makes it straightforward to compose and refactor flows.
58
+ - **Providers**: switch between OpenAI, Gemini, Azure OpenAI, DeepSeek, Claude and others without changing your agent code.
59
+
60
+
61
+ ## Key Features
62
+
63
+ - **Agents and multi-agent patterns**
64
+ Single Agents with tools and memory, supervisor–worker Multi-Agent Teams, Sequential Pipelines where output flows from step to step, Hierarchical Structures for complex delegation, and Dynamic Flows where a controller decides at runtime which sub-agents or teams to invoke.
65
+
66
+ - **Memory service and isolation**
67
+ Pluggable backends (in-memory, Redis, …) with per-use-case policies (TTL, maximum messages, etc.), plus optional memory isolation so each agent can maintain its own conversation history for scalability and privacy.
68
+
69
+ - **Tools and actions**
70
+ Type-annotated tool interface, straightforward registration of custom tools.
71
+
72
+ - **Observability hooks**
73
+ Callback system for logging, monitoring and debugging agent behaviour across complex flows.
74
+
75
+ - **I/O capabilities**
76
+ Streaming support for real-time responses and vision/image models for multimodal interactions.
77
+
78
+
79
+ ## Installation
80
+
81
+ ```bash
82
+ pip install agentify
83
+ ```
84
+
85
+ For optional features:
86
+ ```bash
87
+ pip install agentify[all] # Installs all optional dependencies
88
+ ```
89
+
90
+ ## Quick Start
91
+
92
+ ```python
93
+ from agentify import BaseAgent, AgentConfig, MemoryService, MemoryAddress
94
+ from agentify.memory.stores import InMemoryStore
95
+
96
+ # 1. Create memory service
97
+ memory = MemoryService(store=InMemoryStore())
98
+ addr = MemoryAddress(conversation_id="session_1")
99
+
100
+ # 2. Create an Agent
101
+ agent = BaseAgent(
102
+ config=AgentConfig(
103
+ name="Assistant",
104
+ system_prompt="You are a helpful AI assistant.",
105
+ provider="openai",
106
+ model_name="gpt-4.1-mini"
107
+ ),
108
+ memory=memory,
109
+ memory_address=addr
110
+ )
111
+
112
+ # 3. Run a conversation
113
+ response = agent.respond(user_input="Hello! How can you help me?")
114
+ ```
115
+
116
+ ## Composable Flows
117
+
118
+ Agentify provides powerful primitives that can be combined to build arbitrarily complex systems:
119
+
120
+ * **BaseAgent**: The fundamental unit of work.
121
+ * **Teams**: A group of agents managed by a supervisor.
122
+ * **Pipelines**: A sequence of steps where output passes from one to the next.
123
+ * **Hierarchies**: Tree structures for massive delegation.
124
+
125
+ Because all flows share the same `run()` interface, you can build Teams made of Pipelines, Pipelines made of Teams, and deeply nested Hierarchies.
126
+
127
+ Agentify supports both **strict workflows** (fixed, pre-defined Pipelines and Hierarchies) and **dynamic agentic flows**, where a supervisor/router agent decides at runtime which agent, Team or Pipeline to call next.
128
+
129
+
130
+ ### More Examples
131
+
132
+ Check out the [examples](examples/) directory for detailed implementations:
133
+
134
+ * [Single Agent Chatbot](examples/chatbot/)
135
+ * [Multi-Agent Teams](examples/multi_agent/team/)
136
+ * [Sequential Pipelines](examples/multi_agent/pipeline/)
137
+ * [Hierarchical Structures](examples/multi_agent/hierarchical/)
138
+
139
+
140
+ ## Author
141
+
142
+ - **Fabian Melchor** [fabianmp_98@hotmail.com](mailto:fabianmp_98@hotmail.com)
143
+
144
+
145
+ ## Links
146
+
147
+ - **Repository**: https://github.com/fa8i/Agentify
148
+ - **Issues**: https://github.com/fa8i/Agentify/issues
@@ -0,0 +1,101 @@
1
+ # Agentify
2
+
3
+ **Framework-agnostic AI agent library for building single and multi-agent systems**
4
+
5
+ Agentify is a Python library for building and orchestrating AI agents, from simple assistants to complex multi-agent systems. It focuses on a small set of composable primitives for LLM integration, memory, tools and coordination, so you can focus on product logic instead of framework details.
6
+
7
+ ## Why Agentify?
8
+
9
+ - **Built for production**: clear abstractions, explicit configuration, error handling and extension points that map well to real deployments.
10
+ - **Orchestration-first design**: a uniform `run()` interface for agents, teams, pipelines and hierarchies makes it straightforward to compose and refactor flows.
11
+ - **Providers**: switch between OpenAI, Gemini, Azure OpenAI, DeepSeek, Claude and others without changing your agent code.
12
+
13
+
14
+ ## Key Features
15
+
16
+ - **Agents and multi-agent patterns**
17
+ Single Agents with tools and memory, supervisor–worker Multi-Agent Teams, Sequential Pipelines where output flows from step to step, Hierarchical Structures for complex delegation, and Dynamic Flows where a controller decides at runtime which sub-agents or teams to invoke.
18
+
19
+ - **Memory service and isolation**
20
+ Pluggable backends (in-memory, Redis, …) with per-use-case policies (TTL, maximum messages, etc.), plus optional memory isolation so each agent can maintain its own conversation history for scalability and privacy.
21
+
22
+ - **Tools and actions**
23
+ Type-annotated tool interface, straightforward registration of custom tools.
24
+
25
+ - **Observability hooks**
26
+ Callback system for logging, monitoring and debugging agent behaviour across complex flows.
27
+
28
+ - **I/O capabilities**
29
+ Streaming support for real-time responses and vision/image models for multimodal interactions.
30
+
31
+
32
+ ## Installation
33
+
34
+ ```bash
35
+ pip install agentify
36
+ ```
37
+
38
+ For optional features:
39
+ ```bash
40
+ pip install agentify[all] # Installs all optional dependencies
41
+ ```
42
+
43
+ ## Quick Start
44
+
45
+ ```python
46
+ from agentify import BaseAgent, AgentConfig, MemoryService, MemoryAddress
47
+ from agentify.memory.stores import InMemoryStore
48
+
49
+ # 1. Create memory service
50
+ memory = MemoryService(store=InMemoryStore())
51
+ addr = MemoryAddress(conversation_id="session_1")
52
+
53
+ # 2. Create an Agent
54
+ agent = BaseAgent(
55
+ config=AgentConfig(
56
+ name="Assistant",
57
+ system_prompt="You are a helpful AI assistant.",
58
+ provider="openai",
59
+ model_name="gpt-4.1-mini"
60
+ ),
61
+ memory=memory,
62
+ memory_address=addr
63
+ )
64
+
65
+ # 3. Run a conversation
66
+ response = agent.respond(user_input="Hello! How can you help me?")
67
+ ```
68
+
69
+ ## Composable Flows
70
+
71
+ Agentify provides powerful primitives that can be combined to build arbitrarily complex systems:
72
+
73
+ * **BaseAgent**: The fundamental unit of work.
74
+ * **Teams**: A group of agents managed by a supervisor.
75
+ * **Pipelines**: A sequence of steps where output passes from one to the next.
76
+ * **Hierarchies**: Tree structures for massive delegation.
77
+
78
+ Because all flows share the same `run()` interface, you can build Teams made of Pipelines, Pipelines made of Teams, and deeply nested Hierarchies.
79
+
80
+ Agentify supports both **strict workflows** (fixed, pre-defined Pipelines and Hierarchies) and **dynamic agentic flows**, where a supervisor/router agent decides at runtime which agent, Team or Pipeline to call next.
81
+
82
+
83
+ ### More Examples
84
+
85
+ Check out the [examples](examples/) directory for detailed implementations:
86
+
87
+ * [Single Agent Chatbot](examples/chatbot/)
88
+ * [Multi-Agent Teams](examples/multi_agent/team/)
89
+ * [Sequential Pipelines](examples/multi_agent/pipeline/)
90
+ * [Hierarchical Structures](examples/multi_agent/hierarchical/)
91
+
92
+
93
+ ## Author
94
+
95
+ - **Fabian Melchor** [fabianmp_98@hotmail.com](mailto:fabianmp_98@hotmail.com)
96
+
97
+
98
+ ## Links
99
+
100
+ - **Repository**: https://github.com/fa8i/Agentify
101
+ - **Issues**: https://github.com/fa8i/Agentify/issues
@@ -0,0 +1,32 @@
1
+ # Core exports
2
+ from agentify.core import (
3
+ BaseAgent,
4
+ Tool,
5
+ AgentConfig,
6
+ ImageConfig,
7
+ AgentCallbackHandler,
8
+ LoggingCallbackHandler,
9
+ )
10
+
11
+ # LLM exports
12
+ from agentify.llm import LLMClientFactory
13
+
14
+ # Memory exports
15
+ from agentify.memory.service import MemoryService
16
+ from agentify.memory.interfaces import MemoryAddress
17
+ from agentify.memory.policies import MemoryPolicy
18
+
19
+ __version__ = "0.1.0"
20
+
21
+ __all__ = [
22
+ "BaseAgent",
23
+ "Tool",
24
+ "AgentConfig",
25
+ "ImageConfig",
26
+ "AgentCallbackHandler",
27
+ "LoggingCallbackHandler",
28
+ "LLMClientFactory",
29
+ "MemoryService",
30
+ "MemoryAddress",
31
+ "MemoryPolicy",
32
+ ]
@@ -0,0 +1,13 @@
1
+ from agentify.core.agent import BaseAgent
2
+ from agentify.core.tool import Tool
3
+ from agentify.core.callbacks import AgentCallbackHandler, LoggingCallbackHandler
4
+ from agentify.core.config import AgentConfig, ImageConfig
5
+
6
+ __all__ = [
7
+ "BaseAgent",
8
+ "Tool",
9
+ "AgentCallbackHandler",
10
+ "LoggingCallbackHandler",
11
+ "AgentConfig",
12
+ "ImageConfig",
13
+ ]