idun-agent-schema 0.1.3__py3-none-any.whl → 0.1.5__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.
Potentially problematic release.
This version of idun-agent-schema might be problematic. Click here for more details.
- idun_agent_schema/__init__.py +10 -10
- idun_agent_schema/engine/__init__.py +11 -11
- idun_agent_schema/engine/agent.py +16 -16
- idun_agent_schema/engine/api.py +29 -29
- idun_agent_schema/engine/config.py +4 -7
- idun_agent_schema/engine/haystack.py +13 -13
- idun_agent_schema/engine/langgraph.py +47 -47
- idun_agent_schema/engine/server.py +15 -15
- idun_agent_schema/manager/__init__.py +50 -50
- idun_agent_schema/manager/api.py +158 -158
- idun_agent_schema/manager/deployments.py +12 -12
- idun_agent_schema/manager/deps.py +14 -14
- idun_agent_schema/manager/domain.py +276 -276
- idun_agent_schema/manager/dto.py +131 -131
- idun_agent_schema/manager/errors.py +22 -22
- idun_agent_schema/manager/settings.py +161 -161
- idun_agent_schema/shared/__init__.py +5 -5
- idun_agent_schema/shared/observability.py +56 -56
- {idun_agent_schema-0.1.3.dist-info → idun_agent_schema-0.1.5.dist-info}/METADATA +1 -1
- idun_agent_schema-0.1.5.dist-info/RECORD +22 -0
- idun_agent_schema-0.1.3.dist-info/RECORD +0 -22
- {idun_agent_schema-0.1.3.dist-info → idun_agent_schema-0.1.5.dist-info}/WHEEL +0 -0
|
@@ -1,56 +1,56 @@
|
|
|
1
|
-
"""Provider-agnostic observability configuration model (shared)."""
|
|
2
|
-
|
|
3
|
-
from __future__ import annotations
|
|
4
|
-
|
|
5
|
-
import os
|
|
6
|
-
from typing import Any
|
|
7
|
-
|
|
8
|
-
from pydantic import BaseModel, Field
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
def _resolve_env(value: Any) -> Any:
|
|
12
|
-
"""Resolve environment placeholders in strings.
|
|
13
|
-
|
|
14
|
-
Supports patterns ${VAR} and $VAR. Non-strings are returned unchanged.
|
|
15
|
-
"""
|
|
16
|
-
if isinstance(value, str):
|
|
17
|
-
if value.startswith("${") and value.endswith("}"):
|
|
18
|
-
return os.getenv(value[2:-1])
|
|
19
|
-
if value.startswith("$"):
|
|
20
|
-
return os.getenv(value[1:])
|
|
21
|
-
return value
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
class ObservabilityConfig(BaseModel):
|
|
25
|
-
"""Provider-agnostic observability configuration based on Pydantic.
|
|
26
|
-
|
|
27
|
-
Example YAML:
|
|
28
|
-
observability:
|
|
29
|
-
provider: "langfuse" # or "phoenix"
|
|
30
|
-
enabled: true
|
|
31
|
-
options:
|
|
32
|
-
host: ${LANGFUSE_HOST}
|
|
33
|
-
public_key: ${LANGFUSE_PUBLIC_KEY}
|
|
34
|
-
secret_key: ${LANGFUSE_SECRET_KEY}
|
|
35
|
-
run_name: "my-run"
|
|
36
|
-
"""
|
|
37
|
-
|
|
38
|
-
provider: str | None = Field(default=None)
|
|
39
|
-
enabled: bool = Field(default=False)
|
|
40
|
-
options: dict[str, Any] = Field(default_factory=dict)
|
|
41
|
-
|
|
42
|
-
def _resolve_value(self, value: Any) -> Any:
|
|
43
|
-
if isinstance(value, dict):
|
|
44
|
-
return {k: self._resolve_value(v) for k, v in value.items()}
|
|
45
|
-
if isinstance(value, list):
|
|
46
|
-
return [self._resolve_value(v) for v in value]
|
|
47
|
-
return _resolve_env(value)
|
|
48
|
-
|
|
49
|
-
def resolved(self) -> ObservabilityConfig:
|
|
50
|
-
"""Return a copy with env placeholders resolved in options."""
|
|
51
|
-
resolved_options = self._resolve_value(self.options)
|
|
52
|
-
return ObservabilityConfig(
|
|
53
|
-
provider=self.provider,
|
|
54
|
-
enabled=self.enabled,
|
|
55
|
-
options=resolved_options,
|
|
56
|
-
)
|
|
1
|
+
"""Provider-agnostic observability configuration model (shared)."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import os
|
|
6
|
+
from typing import Any
|
|
7
|
+
|
|
8
|
+
from pydantic import BaseModel, Field
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
def _resolve_env(value: Any) -> Any:
|
|
12
|
+
"""Resolve environment placeholders in strings.
|
|
13
|
+
|
|
14
|
+
Supports patterns ${VAR} and $VAR. Non-strings are returned unchanged.
|
|
15
|
+
"""
|
|
16
|
+
if isinstance(value, str):
|
|
17
|
+
if value.startswith("${") and value.endswith("}"):
|
|
18
|
+
return os.getenv(value[2:-1])
|
|
19
|
+
if value.startswith("$"):
|
|
20
|
+
return os.getenv(value[1:])
|
|
21
|
+
return value
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
class ObservabilityConfig(BaseModel):
|
|
25
|
+
"""Provider-agnostic observability configuration based on Pydantic.
|
|
26
|
+
|
|
27
|
+
Example YAML:
|
|
28
|
+
observability:
|
|
29
|
+
provider: "langfuse" # or "phoenix"
|
|
30
|
+
enabled: true
|
|
31
|
+
options:
|
|
32
|
+
host: ${LANGFUSE_HOST}
|
|
33
|
+
public_key: ${LANGFUSE_PUBLIC_KEY}
|
|
34
|
+
secret_key: ${LANGFUSE_SECRET_KEY}
|
|
35
|
+
run_name: "my-run"
|
|
36
|
+
"""
|
|
37
|
+
|
|
38
|
+
provider: str | None = Field(default=None)
|
|
39
|
+
enabled: bool = Field(default=False)
|
|
40
|
+
options: dict[str, Any] = Field(default_factory=dict)
|
|
41
|
+
|
|
42
|
+
def _resolve_value(self, value: Any) -> Any:
|
|
43
|
+
if isinstance(value, dict):
|
|
44
|
+
return {k: self._resolve_value(v) for k, v in value.items()}
|
|
45
|
+
if isinstance(value, list):
|
|
46
|
+
return [self._resolve_value(v) for v in value]
|
|
47
|
+
return _resolve_env(value)
|
|
48
|
+
|
|
49
|
+
def resolved(self) -> ObservabilityConfig:
|
|
50
|
+
"""Return a copy with env placeholders resolved in options."""
|
|
51
|
+
resolved_options = self._resolve_value(self.options)
|
|
52
|
+
return ObservabilityConfig(
|
|
53
|
+
provider=self.provider,
|
|
54
|
+
enabled=self.enabled,
|
|
55
|
+
options=resolved_options,
|
|
56
|
+
)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: idun-agent-schema
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.5
|
|
4
4
|
Summary: Centralized Pydantic schema library for Idun Agent Engine and Manager
|
|
5
5
|
Project-URL: Homepage, https://github.com/geoffreyharrazi/idun-agent-platform
|
|
6
6
|
Project-URL: Repository, https://github.com/geoffreyharrazi/idun-agent-platform
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
idun_agent_schema/__init__.py,sha256=kuP3YMZR1t9o6dc-EzTt1Gu-u-w1eD3xEnMLYMoZU6A,355
|
|
2
|
+
idun_agent_schema/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
|
+
idun_agent_schema/engine/__init__.py,sha256=plofpa3TTjiA-HiTuxW0lxJRpGYWRdSzrKdOYj13PAo,389
|
|
4
|
+
idun_agent_schema/engine/agent.py,sha256=gGJ8IK5ubgSG_wVau9xdCI9zU6thvlPgL_I2EWcjWNw,585
|
|
5
|
+
idun_agent_schema/engine/api.py,sha256=e9JWOc5thEYLJ47Ok4xdyIF8whvsSqNf0L_0tVIiE1k,655
|
|
6
|
+
idun_agent_schema/engine/config.py,sha256=wRcttAF-LWC5ml6YlYCcaPxmP-xkJW8CGG6ICN9Bcf0,775
|
|
7
|
+
idun_agent_schema/engine/haystack.py,sha256=8b_aK09z7rNpyrhbo1fxSrAn9vPZvQ0hcm_azaHNDl8,375
|
|
8
|
+
idun_agent_schema/engine/langgraph.py,sha256=AcSXiMpFrmrTeDxdy_wD-zT1LitYfauzofWW-L9yiPs,1323
|
|
9
|
+
idun_agent_schema/engine/server.py,sha256=n_6bwI-LWa6UcS-h9Krfmc2MpvgyckVKdRhLzBWmFjI,353
|
|
10
|
+
idun_agent_schema/manager/__init__.py,sha256=Xb00mfzv4bPS9-p9-cGj7BN_L3Tk8roEC5o2BUPdOj4,1133
|
|
11
|
+
idun_agent_schema/manager/api.py,sha256=Zvd1-DCXuk0zFAzsMMAA2UT6jdpHqCtAFyIum7MxE9c,4037
|
|
12
|
+
idun_agent_schema/manager/deployments.py,sha256=xRGSDPihudmnG2YWk-axVKFW9cFXsGr7MR0rILAgRaM,225
|
|
13
|
+
idun_agent_schema/manager/deps.py,sha256=exs2t2rPl_dBt_Ny_1FMonXyaBRwWu4lR_HncKWTUbo,329
|
|
14
|
+
idun_agent_schema/manager/domain.py,sha256=isSFo5u3B0p39j3XLKUskpK50hGkpyE9lGM6jQhnRZ0,9116
|
|
15
|
+
idun_agent_schema/manager/dto.py,sha256=kKl-5un5LTuOG9I1JIF5xTbDiJGV-oAFUpPmIGcw9bc,3661
|
|
16
|
+
idun_agent_schema/manager/errors.py,sha256=F23h4SLPHm_uESFXukkg3kwkA5q0M_uQbxAbXCINveM,614
|
|
17
|
+
idun_agent_schema/manager/settings.py,sha256=OQFYJTEjjqKiGK27gsS_HCYBRlR1CgET8qlUB41PcKE,5952
|
|
18
|
+
idun_agent_schema/shared/__init__.py,sha256=W311ImbwfZkQ-cZzhu1813DXo8N75a6ti5PJAlLntTo,156
|
|
19
|
+
idun_agent_schema/shared/observability.py,sha256=fls-zS1r2fbPcXdVRduTkedzfuh-ZsLzYV7hRkQ5eJ0,1797
|
|
20
|
+
idun_agent_schema-0.1.5.dist-info/METADATA,sha256=gI4fjtkwDl9doUSwwIy6LI657dtjhU2QfA4-PcLbuN0,1331
|
|
21
|
+
idun_agent_schema-0.1.5.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
22
|
+
idun_agent_schema-0.1.5.dist-info/RECORD,,
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
idun_agent_schema/__init__.py,sha256=eRy0qwee7_nRSubm2X6jUnZyf55Dn9qztWtDocgIIJg,345
|
|
2
|
-
idun_agent_schema/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
|
-
idun_agent_schema/engine/__init__.py,sha256=bQ3Vjuop1R1-4GbsBxtSem-wGKJnJoo8QSDgArShmqM,378
|
|
4
|
-
idun_agent_schema/engine/agent.py,sha256=KNzNMJcqjlczQL23Uqdkpcf2-b37p8vHkI5EZIdTHmE,569
|
|
5
|
-
idun_agent_schema/engine/api.py,sha256=sN1QGQAuUb4znhR8QJ434sKblEJbDoXQfC4K7L9yyPQ,626
|
|
6
|
-
idun_agent_schema/engine/config.py,sha256=bhROHb4rms97F2Ge8rRNaC7R-75LklSo2PIj787Y-Nc,790
|
|
7
|
-
idun_agent_schema/engine/haystack.py,sha256=knpJTW4Er2JxRfuqGgDEjcxfHzaQrNXgLfLvsXeXo_s,332
|
|
8
|
-
idun_agent_schema/engine/langgraph.py,sha256=m6_xvMaCgkO1O3pf2M6NaBz3ASkjn8XGFeEcXvIr4sQ,1276
|
|
9
|
-
idun_agent_schema/engine/server.py,sha256=uEuTi2ow2WOzCW4okqZmgwqEBtekgeA928Yq_gc48jU,338
|
|
10
|
-
idun_agent_schema/manager/__init__.py,sha256=cGm8vg2CjGYsAyG4mM73JfWfg16u61YSGvcQVnp-XMA,1083
|
|
11
|
-
idun_agent_schema/manager/api.py,sha256=wSGhkm_jkLwTiiPTMCambiBrKqR0AqlRVRkbfcmCnP8,3879
|
|
12
|
-
idun_agent_schema/manager/deployments.py,sha256=qpS0cTm6H8eWAfFFJ3w3jXBFVVal8dfVB79yBnLq9ow,213
|
|
13
|
-
idun_agent_schema/manager/deps.py,sha256=Z3Kgq0CkCSmeInjROVebOrok3LsMzcs0LO8KyxiCsrM,315
|
|
14
|
-
idun_agent_schema/manager/domain.py,sha256=MDXsFEN_jiCAMr1J3vAoZD_I1tIq6WZjJwvHcin0yvs,8840
|
|
15
|
-
idun_agent_schema/manager/dto.py,sha256=sp-mxheUDkiY4ky4m4pvkj5Lmqh1YTW1dLwnK4y7Gpk,3530
|
|
16
|
-
idun_agent_schema/manager/errors.py,sha256=wPb6DHMd7mU9MnGBZw6U51JxJfKxuVKEHSbS1KJtlXU,592
|
|
17
|
-
idun_agent_schema/manager/settings.py,sha256=Z3j18AayZxjhVy2JwbqKOgVA-GGBiGUsUj6Q0e9jCN0,5791
|
|
18
|
-
idun_agent_schema/shared/__init__.py,sha256=C0g2hEWT5EwYdLya7oHmXdMTFOGHVINIxeFV2j2MpXw,151
|
|
19
|
-
idun_agent_schema/shared/observability.py,sha256=EL0h0qSJ7gByMCASYkQRlPv5szffJ6aYY6699TZ6uRM,1741
|
|
20
|
-
idun_agent_schema-0.1.3.dist-info/METADATA,sha256=4xVe9RpmYiqHzZG_0goQXGG_f_cSvKjpMruo9WftC_0,1331
|
|
21
|
-
idun_agent_schema-0.1.3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
22
|
-
idun_agent_schema-0.1.3.dist-info/RECORD,,
|
|
File without changes
|