idun-agent-engine 0.2.6__py3-none-any.whl → 0.3.0__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.
- idun_agent_engine/_version.py +1 -1
- idun_agent_engine/agent/adk/__init__.py +5 -0
- idun_agent_engine/agent/adk/adk.py +296 -0
- idun_agent_engine/agent/base.py +16 -1
- idun_agent_engine/agent/haystack/haystack.py +14 -1
- idun_agent_engine/agent/langgraph/langgraph.py +165 -55
- idun_agent_engine/core/app_factory.py +11 -1
- idun_agent_engine/core/config_builder.py +214 -23
- idun_agent_engine/core/engine_config.py +1 -2
- idun_agent_engine/core/server_runner.py +2 -3
- idun_agent_engine/guardrails/__init__.py +0 -0
- idun_agent_engine/guardrails/base.py +24 -0
- idun_agent_engine/guardrails/guardrails_hub/guardrails_hub.py +101 -0
- idun_agent_engine/guardrails/guardrails_hub/utils.py +1 -0
- idun_agent_engine/mcp/__init__.py +5 -0
- idun_agent_engine/mcp/helpers.py +97 -0
- idun_agent_engine/mcp/registry.py +109 -0
- idun_agent_engine/observability/__init__.py +6 -2
- idun_agent_engine/observability/base.py +73 -12
- idun_agent_engine/observability/gcp_logging/__init__.py +0 -0
- idun_agent_engine/observability/gcp_logging/gcp_logging_handler.py +52 -0
- idun_agent_engine/observability/gcp_trace/__init__.py +0 -0
- idun_agent_engine/observability/gcp_trace/gcp_trace_handler.py +116 -0
- idun_agent_engine/observability/langfuse/langfuse_handler.py +17 -10
- idun_agent_engine/server/dependencies.py +30 -1
- idun_agent_engine/server/lifespan.py +83 -16
- idun_agent_engine/server/routers/agent.py +128 -8
- idun_agent_engine/server/routers/agui.py +47 -0
- idun_agent_engine/server/routers/base.py +55 -1
- idun_agent_engine/templates/__init__.py +1 -0
- idun_agent_engine/templates/correction.py +65 -0
- idun_agent_engine/templates/deep_research.py +40 -0
- idun_agent_engine/templates/translation.py +70 -0
- {idun_agent_engine-0.2.6.dist-info → idun_agent_engine-0.3.0.dist-info}/METADATA +65 -11
- idun_agent_engine-0.3.0.dist-info/RECORD +60 -0
- {idun_agent_engine-0.2.6.dist-info → idun_agent_engine-0.3.0.dist-info}/WHEEL +1 -1
- idun_platform_cli/groups/agent/package.py +3 -3
- idun_platform_cli/groups/agent/serve.py +8 -5
- idun_agent_engine/cli/__init__.py +0 -16
- idun_agent_engine-0.2.6.dist-info/RECORD +0 -43
- {idun_agent_engine-0.2.6.dist-info → idun_agent_engine-0.3.0.dist-info}/entry_points.txt +0 -0
|
@@ -36,11 +36,11 @@ def generate_dockerfile(dependency: Dependency) -> str:
|
|
|
36
36
|
return "" # Unreachable, but satisfies type checker
|
|
37
37
|
if dependency == Dependency.REQUIREMENT:
|
|
38
38
|
# TODO: use from file
|
|
39
|
-
requirements_dockerfile = f"""FROM python:3.
|
|
39
|
+
requirements_dockerfile = f"""FROM python:3.12-slim
|
|
40
40
|
RUN apt-get update && pip install uv
|
|
41
41
|
|
|
42
|
-
RUN uv pip install idun-agent-schema==0.
|
|
43
|
-
RUN uv pip install idun-agent-engine==0.
|
|
42
|
+
RUN uv pip install idun-agent-schema==0.3.0 --system
|
|
43
|
+
RUN uv pip install idun-agent-engine==0.3.0 --system
|
|
44
44
|
|
|
45
45
|
COPY . .
|
|
46
46
|
RUN uv pip install -r requirements.txt --system
|
|
@@ -3,6 +3,7 @@ import sys
|
|
|
3
3
|
from enum import StrEnum
|
|
4
4
|
|
|
5
5
|
import click
|
|
6
|
+
|
|
6
7
|
from idun_agent_engine.core.app_factory import create_app
|
|
7
8
|
from idun_agent_engine.core.config_builder import ConfigBuilder
|
|
8
9
|
from idun_agent_engine.core.engine_config import EngineConfig
|
|
@@ -48,13 +49,14 @@ class Serve:
|
|
|
48
49
|
|
|
49
50
|
def _fetch_from_path(self) -> EngineConfig | None:
|
|
50
51
|
try:
|
|
51
|
-
config = ConfigBuilder().load_from_file(self._path)
|
|
52
|
-
print(f"Successfully fetched and built config from {self._path}")
|
|
52
|
+
config = ConfigBuilder().load_from_file(self._path or "")
|
|
53
|
+
print(f"✅ Successfully fetched and built config from {self._path}")
|
|
53
54
|
return config
|
|
54
55
|
|
|
55
56
|
except Exception as e:
|
|
56
|
-
|
|
57
|
-
|
|
57
|
+
raise ValueError(
|
|
58
|
+
f"[ERROR]: Cannot fetch config from {self._path}: {e} "
|
|
59
|
+
) from e
|
|
58
60
|
|
|
59
61
|
def _fetch_from_manager(self) -> EngineConfig | None:
|
|
60
62
|
"""Fetches the config from the api."""
|
|
@@ -64,7 +66,7 @@ class Serve:
|
|
|
64
66
|
.with_config_from_api(agent_api_key=self._agent_api_key, url=self._url)
|
|
65
67
|
.build()
|
|
66
68
|
)
|
|
67
|
-
print(f"Successfully fetched and built config from {self._url}")
|
|
69
|
+
print(f"✅ Successfully fetched and built config from {self._url}")
|
|
68
70
|
return config
|
|
69
71
|
except Exception as e:
|
|
70
72
|
print(f"[ERROR]: Cannot fetch config from {self._url}: {e} ")
|
|
@@ -102,3 +104,4 @@ def serve_command(source: str, path: str | None):
|
|
|
102
104
|
s.serve()
|
|
103
105
|
case _:
|
|
104
106
|
print(f"[ERROR]: Argument {source} not recognized.")
|
|
107
|
+
sys.exit(1)
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"""Command Line Interface for Idun Agent Engine.
|
|
2
|
-
|
|
3
|
-
This module will provide CLI tools for:
|
|
4
|
-
- Generating boilerplate projects
|
|
5
|
-
- Running agents from the command line
|
|
6
|
-
- Validating configurations
|
|
7
|
-
- Deploying agents to various platforms
|
|
8
|
-
|
|
9
|
-
Future commands will include:
|
|
10
|
-
- `idun init` - Create a new agent project
|
|
11
|
-
- `idun run` - Run an agent from config
|
|
12
|
-
- `idun validate` - Validate configuration files
|
|
13
|
-
- `idun deploy` - Deploy to cloud platforms
|
|
14
|
-
"""
|
|
15
|
-
|
|
16
|
-
# Future CLI entry points will be defined here
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
idun_agent_engine/__init__.py,sha256=PhOL6foq5V0eXaoXw7xKUeCWXIWrOHrAFB8OuJnBqyM,550
|
|
2
|
-
idun_agent_engine/_version.py,sha256=jFT6ls-HWdmskfvazh4Y97lUpXNfGjicAwVcU5G2mok,72
|
|
3
|
-
idun_agent_engine/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
-
idun_agent_engine/agent/__init__.py,sha256=foyOoRdI_04q1b6f2A5EXEpWSCKjZxpgWMWrKcsHNl8,220
|
|
5
|
-
idun_agent_engine/agent/base.py,sha256=xzuHIV_P7EwGyK7V2qbFUZccpm5xHaAjAkIxJL4tAwo,2856
|
|
6
|
-
idun_agent_engine/agent/haystack/__init__.py,sha256=y5ADrD8gWBeYIvV7tmu6OpPdJ8POHt-tyraIL7RkkWI,179
|
|
7
|
-
idun_agent_engine/agent/haystack/haystack.py,sha256=6xq7tOlvQxyc2w9KxikpS5S6vmXjUlK9Giwhmzg2X0w,10556
|
|
8
|
-
idun_agent_engine/agent/haystack/haystack_model.py,sha256=EtOYnsWRufcrQufTRMeB3V-rZVQqfnmwKwPsYGfZdCs,362
|
|
9
|
-
idun_agent_engine/agent/haystack/utils.py,sha256=sKRoPhzZWFw1NPsYwCockafzMBCCq3lGOrndbNE_C3M,609
|
|
10
|
-
idun_agent_engine/agent/langgraph/__init__.py,sha256=CoBdkp9P4livdy5B0bvj9o7ftoqKmXEr9cZv4TZLncs,107
|
|
11
|
-
idun_agent_engine/agent/langgraph/langgraph.py,sha256=Fm6t-TeG_7s0tJHev5sIbKcD7gLLXv22pJH0S14Hp2k,17412
|
|
12
|
-
idun_agent_engine/cli/__init__.py,sha256=5S_Oo7n7YwKk5VPyqborrRqKVz6lvwODQ5olj70wbnQ,490
|
|
13
|
-
idun_agent_engine/core/__init__.py,sha256=F0DMDlWcSWS_1dvh3xMbrdcVvZRHVnoAFFgREuSJfBI,408
|
|
14
|
-
idun_agent_engine/core/app_factory.py,sha256=fqxX6n4huCAsEY5lzPQPtBb7nWWaxzvhYaPsRUbZuEY,2333
|
|
15
|
-
idun_agent_engine/core/config_builder.py,sha256=lLyAvnatPSWR5PqTj4sWPNxnMBKgXdtFuxzqAYzhxcY,16322
|
|
16
|
-
idun_agent_engine/core/engine_config.py,sha256=pHa-qiYUS7mvzW2eb6sXJoxxJCxC5fwcNUTcqiO90c0,584
|
|
17
|
-
idun_agent_engine/core/server_runner.py,sha256=01_aAJC-s0C5fdkEUQzwk4Vlf1SX4lsZwRTkVaJx0VE,4898
|
|
18
|
-
idun_agent_engine/observability/__init__.py,sha256=Jei-E8SgYulxFu5HkJz9HfcorIfQ6O7WZWGzP41ZK-4,298
|
|
19
|
-
idun_agent_engine/observability/base.py,sha256=uVCptXKmU_8OAvLRZliK5RqG6fOxj3a3bg18GVGMeHU,3575
|
|
20
|
-
idun_agent_engine/observability/langfuse/__init__.py,sha256=J8XcHV4aT1pF97k5EZiqrnYYPs9VjwfV5rUMihc5Pgk,128
|
|
21
|
-
idun_agent_engine/observability/langfuse/langfuse_handler.py,sha256=Hn3FxqiYDrLmGNF3JXNRBpFit_c8s2w61jl2EQO_Lco,2385
|
|
22
|
-
idun_agent_engine/observability/phoenix/__init__.py,sha256=tEwJYijcvSGNhFW4QJmvBcTu1D0YVJkZRTmkNCGTteM,130
|
|
23
|
-
idun_agent_engine/observability/phoenix/phoenix_handler.py,sha256=lGqSq-L1vmoEhAr9rbWO3KlNX5HSgBhCKESHMdZ-AfY,2539
|
|
24
|
-
idun_agent_engine/observability/phoenix_local/__init__.py,sha256=m9dIw1GWGKAW4wP08jxA7j4yrOg0Nxq_08bwVh8YogE,146
|
|
25
|
-
idun_agent_engine/observability/phoenix_local/phoenix_local_handler.py,sha256=wjOZuMpAxdD5D33rzxycNEzFMunETpPnYjiHjbjz5GA,4252
|
|
26
|
-
idun_agent_engine/server/__init__.py,sha256=WaFektUsy37bNg2niAUy_TykzStukgWPnxC-t49CEwo,177
|
|
27
|
-
idun_agent_engine/server/dependencies.py,sha256=7yGYWxqbL4xNafpj8g8-S-TQ_GmGlPnSB_wRbW_lfMA,824
|
|
28
|
-
idun_agent_engine/server/lifespan.py,sha256=BC914qErOmKLNZY0-XkMkYnA0aVhLZFY7nhpKXx2D_g,1301
|
|
29
|
-
idun_agent_engine/server/server_config.py,sha256=RYA7Y0c5aRw_WXaX8svFUIEtTPqzn3o-WQRm2p52C6g,213
|
|
30
|
-
idun_agent_engine/server/routers/__init__.py,sha256=BgNzSVvHtGPGn5zhXhomwpKlDYBkeFi7xCbdcWVOgc8,102
|
|
31
|
-
idun_agent_engine/server/routers/agent.py,sha256=7vVzhnKXYv6yZEKP8o-ETMWhIa0Hd2qyMu63MhoiLL0,2361
|
|
32
|
-
idun_agent_engine/server/routers/base.py,sha256=BWueBPN7ecdNWOyQaxpdpnd6GxOcN78N8bFWN_aNgmU,1899
|
|
33
|
-
idun_platform_cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
34
|
-
idun_platform_cli/main.py,sha256=jWL7Ob0p4KdRUqgPTP_EB68n7z2LyMKC2DeUsfWlBO4,200
|
|
35
|
-
idun_platform_cli/groups/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
36
|
-
idun_platform_cli/groups/agent/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
37
|
-
idun_platform_cli/groups/agent/main.py,sha256=QMGQi3JZ76SeFI3miIjVWpMt0L-hGz5FwxtTPQX4-Uw,301
|
|
38
|
-
idun_platform_cli/groups/agent/package.py,sha256=l47w89BrXqaYsWDo--X2ulfpyofSuHuxvUZci6e9bq4,2525
|
|
39
|
-
idun_platform_cli/groups/agent/serve.py,sha256=IHC3vp_R45RW4enkNQCE-SP_J9GkmapAycktKcxT9Y8,3800
|
|
40
|
-
idun_agent_engine-0.2.6.dist-info/METADATA,sha256=1qXM-PDrBXoLDVK1xn2peLDL5-F5ncb5DVNCtemEdGc,8660
|
|
41
|
-
idun_agent_engine-0.2.6.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
42
|
-
idun_agent_engine-0.2.6.dist-info/entry_points.txt,sha256=XG3oxlSOaCrYKT1oyhKa0Ag1iJPMZ-WF6gaV_mzIJW4,52
|
|
43
|
-
idun_agent_engine-0.2.6.dist-info/RECORD,,
|
|
File without changes
|