idun-agent-engine 0.2.7__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.
Files changed (41) hide show
  1. idun_agent_engine/_version.py +1 -1
  2. idun_agent_engine/agent/adk/__init__.py +5 -0
  3. idun_agent_engine/agent/adk/adk.py +296 -0
  4. idun_agent_engine/agent/base.py +7 -1
  5. idun_agent_engine/agent/haystack/haystack.py +5 -1
  6. idun_agent_engine/agent/langgraph/langgraph.py +146 -55
  7. idun_agent_engine/core/app_factory.py +9 -0
  8. idun_agent_engine/core/config_builder.py +214 -23
  9. idun_agent_engine/core/engine_config.py +1 -2
  10. idun_agent_engine/core/server_runner.py +2 -3
  11. idun_agent_engine/guardrails/__init__.py +0 -0
  12. idun_agent_engine/guardrails/base.py +24 -0
  13. idun_agent_engine/guardrails/guardrails_hub/guardrails_hub.py +101 -0
  14. idun_agent_engine/guardrails/guardrails_hub/utils.py +1 -0
  15. idun_agent_engine/mcp/__init__.py +5 -0
  16. idun_agent_engine/mcp/helpers.py +97 -0
  17. idun_agent_engine/mcp/registry.py +109 -0
  18. idun_agent_engine/observability/__init__.py +6 -2
  19. idun_agent_engine/observability/base.py +73 -12
  20. idun_agent_engine/observability/gcp_logging/__init__.py +0 -0
  21. idun_agent_engine/observability/gcp_logging/gcp_logging_handler.py +52 -0
  22. idun_agent_engine/observability/gcp_trace/__init__.py +0 -0
  23. idun_agent_engine/observability/gcp_trace/gcp_trace_handler.py +116 -0
  24. idun_agent_engine/observability/langfuse/langfuse_handler.py +17 -10
  25. idun_agent_engine/server/dependencies.py +13 -1
  26. idun_agent_engine/server/lifespan.py +83 -16
  27. idun_agent_engine/server/routers/agent.py +116 -24
  28. idun_agent_engine/server/routers/agui.py +47 -0
  29. idun_agent_engine/server/routers/base.py +55 -1
  30. idun_agent_engine/templates/__init__.py +1 -0
  31. idun_agent_engine/templates/correction.py +65 -0
  32. idun_agent_engine/templates/deep_research.py +40 -0
  33. idun_agent_engine/templates/translation.py +70 -0
  34. {idun_agent_engine-0.2.7.dist-info → idun_agent_engine-0.3.0.dist-info}/METADATA +62 -10
  35. idun_agent_engine-0.3.0.dist-info/RECORD +60 -0
  36. {idun_agent_engine-0.2.7.dist-info → idun_agent_engine-0.3.0.dist-info}/WHEEL +1 -1
  37. idun_platform_cli/groups/agent/package.py +3 -3
  38. idun_platform_cli/groups/agent/serve.py +8 -5
  39. idun_agent_engine/cli/__init__.py +0 -16
  40. idun_agent_engine-0.2.7.dist-info/RECORD +0 -43
  41. {idun_agent_engine-0.2.7.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.13-slim
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.2.7 --system
43
- RUN uv pip install idun-agent-engine==0.2.7 --system
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
- print(f"[ERROR]: Cannot fetch config from {self._path}: {e} ")
57
- sys.exit(1)
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=o2wtvcZFXHMC9HdGCpCMglFAwq-cYBJIAi_MTK4BIFo,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=JT_U4tgC6yPi0IYbDjSQ2a6W2YwABiC9NSGjYPCe8Yw,3059
6
- idun_agent_engine/agent/haystack/__init__.py,sha256=y5ADrD8gWBeYIvV7tmu6OpPdJ8POHt-tyraIL7RkkWI,179
7
- idun_agent_engine/agent/haystack/haystack.py,sha256=6WHW9z9LqMa5hHkfxUEaxyMMFw7y9nUu9wnXavxdsg8,10872
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=eawnV6XgC9gxplTogyKioeqnHvdBwCtwobA8tLYmaYk,18167
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=Af57kuEic6g4RA3JyLr9-gl_MQh41xcpHGA_wx92cO8,2372
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=3b9ADxZWMqDsye2yOPsZ_uPlj1hHynN5vnv0sW2SLkI,1580
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=PIdSZjrrskvaLRYksE7qWIyfrOwvRCSiPr07xTt4XiA,3456
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=gc7HoA2wtHlFC9f7rDXgGEBZUvibEwh9Vmlr-C1C1uA,2525
39
- idun_platform_cli/groups/agent/serve.py,sha256=IHC3vp_R45RW4enkNQCE-SP_J9GkmapAycktKcxT9Y8,3800
40
- idun_agent_engine-0.2.7.dist-info/METADATA,sha256=Zg4GQA7qBy5Zl1FgrFHAbVYTrUXCL9GgwSK4zKtFnE0,8747
41
- idun_agent_engine-0.2.7.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
42
- idun_agent_engine-0.2.7.dist-info/entry_points.txt,sha256=XG3oxlSOaCrYKT1oyhKa0Ag1iJPMZ-WF6gaV_mzIJW4,52
43
- idun_agent_engine-0.2.7.dist-info/RECORD,,