hyperforge-conditional 1.0.0.post61__tar.gz → 1.0.0.post68__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.
- {hyperforge_conditional-1.0.0.post61 → hyperforge_conditional-1.0.0.post68}/PKG-INFO +1 -1
- {hyperforge_conditional-1.0.0.post61 → hyperforge_conditional-1.0.0.post68}/pyproject.toml +1 -1
- {hyperforge_conditional-1.0.0.post61 → hyperforge_conditional-1.0.0.post68}/src/hyperforge_conditional/conditional.py +3 -3
- {hyperforge_conditional-1.0.0.post61 → hyperforge_conditional-1.0.0.post68}/src/hyperforge_conditional.egg-info/PKG-INFO +1 -1
- {hyperforge_conditional-1.0.0.post61 → hyperforge_conditional-1.0.0.post68}/README.md +0 -0
- {hyperforge_conditional-1.0.0.post61 → hyperforge_conditional-1.0.0.post68}/setup.cfg +0 -0
- {hyperforge_conditional-1.0.0.post61 → hyperforge_conditional-1.0.0.post68}/src/hyperforge_conditional/__init__.py +0 -0
- {hyperforge_conditional-1.0.0.post61 → hyperforge_conditional-1.0.0.post68}/src/hyperforge_conditional/context_agent.py +0 -0
- {hyperforge_conditional-1.0.0.post61 → hyperforge_conditional-1.0.0.post68}/src/hyperforge_conditional/generation_agent.py +0 -0
- {hyperforge_conditional-1.0.0.post61 → hyperforge_conditional-1.0.0.post68}/src/hyperforge_conditional/postprocess_agent.py +0 -0
- {hyperforge_conditional-1.0.0.post61 → hyperforge_conditional-1.0.0.post68}/src/hyperforge_conditional/preprocess_agent.py +0 -0
- {hyperforge_conditional-1.0.0.post61 → hyperforge_conditional-1.0.0.post68}/src/hyperforge_conditional/py.typed +0 -0
- {hyperforge_conditional-1.0.0.post61 → hyperforge_conditional-1.0.0.post68}/src/hyperforge_conditional.egg-info/SOURCES.txt +0 -0
- {hyperforge_conditional-1.0.0.post61 → hyperforge_conditional-1.0.0.post68}/src/hyperforge_conditional.egg-info/dependency_links.txt +0 -0
- {hyperforge_conditional-1.0.0.post61 → hyperforge_conditional-1.0.0.post68}/src/hyperforge_conditional.egg-info/requires.txt +0 -0
- {hyperforge_conditional-1.0.0.post61 → hyperforge_conditional-1.0.0.post68}/src/hyperforge_conditional.egg-info/top_level.txt +0 -0
- {hyperforge_conditional-1.0.0.post61 → hyperforge_conditional-1.0.0.post68}/tests/test_conditional.py +0 -0
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "hyperforge_conditional"
|
|
7
|
-
version = "1.0.0.
|
|
7
|
+
version = "1.0.0.post68"
|
|
8
8
|
license = "Apache-2.0"
|
|
9
9
|
description = "Conditional Hyperforge agent"
|
|
10
10
|
authors = [{ name = "Nuclia", email = "nucliadb@nuclia.com" }]
|
|
@@ -5,6 +5,7 @@ from typing import Any, Dict, List, Literal, Optional, cast
|
|
|
5
5
|
from hyperforge import PROMPT_ENVIRONMENT
|
|
6
6
|
from hyperforge.agent import Agent, AgentConfig
|
|
7
7
|
from hyperforge.configure import get_agent_config_klass, get_agent_klass
|
|
8
|
+
from hyperforge.llm_config import LLMConfig, LLMField, llm_defaults
|
|
8
9
|
from hyperforge.manager import Manager
|
|
9
10
|
from hyperforge.memory.memory import QuestionMemory
|
|
10
11
|
from hyperforge.trace import trace_agent
|
|
@@ -92,11 +93,10 @@ class ConditionalAgentConfig(AgentConfig):
|
|
|
92
93
|
title="Evaluate condition on",
|
|
93
94
|
description="Source to evaluate the condition on. ",
|
|
94
95
|
)
|
|
95
|
-
model:
|
|
96
|
-
default=
|
|
96
|
+
model: LLMField = Field(
|
|
97
|
+
default=LLMConfig(model_id=llm_defaults.reasoning),
|
|
97
98
|
title="Generative model",
|
|
98
99
|
description="Model used to assess the condition",
|
|
99
|
-
json_schema_extra={"widget": WidgetType.MODEL_SELECT},
|
|
100
100
|
)
|
|
101
101
|
|
|
102
102
|
@field_serializer("then", "else_")
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|