Skip to content

feat: entrypoint discovery runtime#1459

Open
cotovanu-cristian wants to merge 2 commits intomainfrom
feat/entrypoint-discovery-runtime
Open

feat: entrypoint discovery runtime#1459
cotovanu-cristian wants to merge 2 commits intomainfrom
feat/entrypoint-discovery-runtime

Conversation

@cotovanu-cristian
Copy link
Collaborator

@cotovanu-cristian cotovanu-cristian commented Mar 18, 2026

Summary

  • UiPathRuntimeFactoryRegistry.get() previously always searched cwd (.) for config files like agent.json or langgraph.json, so entrypoints in subdirectories (e.g. agents/agent1/agent.json) were not auto-detected
  • Added get_factory_search_path() helper that extracts the parent directory from the entrypoint path and passes it as search_path to the registry
  • Applied to run, debug, and eval commands — dev, init, and server don't need it (dev/init have no entrypoint arg; server delegates to run/debug/eval)

How it works

uipath run agents/agent1/agent.json

  1. get_factory_search_path("agents/agent1/agent.json") returns "agents/agent1"
  2. Registry checks Path("agents/agent1") / "agent.json" — exists — selects AgentsRuntimeFactory
  3. The full entrypoint "agents/agent1/agent.json" is still passed unchanged to factory.new_runtime()

For root-level entrypoints (agent.json, main.py:main), the search path resolves to "." — no behavior change.

cotovanu-cristian and others added 2 commits March 18, 2026 15:43
When an entrypoint lives in a subdirectory (e.g. agents/agent1/agent.json),
the factory registry now searches that directory for config files instead of
only looking in cwd. Applied to run, debug, and eval commands.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@github-actions github-actions bot added test:uipath-langchain Triggers tests in the uipath-langchain-python repository test:uipath-llamaindex Triggers tests in the uipath-llamaindex-python repository labels Mar 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test:uipath-langchain Triggers tests in the uipath-langchain-python repository test:uipath-llamaindex Triggers tests in the uipath-llamaindex-python repository

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant