Skip to content

Commit 87f24dd

Browse files
feat: add input schema to state (#31)
1 parent 3fe52c2 commit 87f24dd

4 files changed

Lines changed: 38 additions & 13 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ readme = { file = "README.md", content-type = "text/markdown" }
66
requires-python = ">=3.11"
77
dependencies = [
88
"uipath>=2.2.8",
9-
"uipath-langchain>=0.1.6",
9+
"uipath-langchain>=0.1.13",
1010
"langgraph>=1.0.0",
1111
"azure-monitor-opentelemetry>=1.7.0",
1212
"opentelemetry-instrumentation-aiohttp-client>=0.49.0",

src/uipath_agents/_services/flags_service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
from pydantic import BaseModel, ConfigDict, Field
66
from uipath._config import Config
77
from uipath._execution_context import ExecutionContext
8-
from uipath._services._base_service import BaseService
98
from uipath._utils import Endpoint, RequestSpec
9+
from uipath.platform.common._base_service import BaseService
1010

1111

1212
class FeatureFlagsRequest(BaseModel):

src/uipath_agents/agent_graph_builder/graph.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from uipath_langchain.agent.react import (
77
AgentGraphConfig,
88
create_agent,
9+
resolve_input_model,
910
resolve_output_model,
1011
)
1112
from uipath_langchain.agent.tools import create_tools_from_resources
@@ -42,6 +43,7 @@ async def build_agent_graph(
4243
agent_messages = build_agent_messages(
4344
agent_definition.messages, input_data, agent_definition.name or ""
4445
)
46+
input_model = resolve_input_model(agent_definition.input_schema)
4547
output_model = resolve_output_model(agent_definition.output_schema)
4648

4749
# Create agent config with feature flags
@@ -53,7 +55,7 @@ async def build_agent_graph(
5355
model=llm,
5456
tools=tools,
5557
messages=agent_messages,
56-
input_schema=None,
58+
input_schema=input_model,
5759
output_schema=output_model,
5860
config=agent_config,
5961
)

uv.lock

Lines changed: 33 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)