refactor: rename "agent" to "server" throughout workflow/ (#170)#218
Merged
DhavalRepo18 merged 3 commits intomainfrom Mar 19, 2026
Merged
refactor: rename "agent" to "server" throughout workflow/ (#170)#218DhavalRepo18 merged 3 commits intomainfrom
DhavalRepo18 merged 3 commits intomainfrom
Conversation
Replace all uses of "agent" terminology with "server" in models, planner, executor, runner, CLI, and tests to match MCP architecture where servers expose tools and the plan-execute runner is the actual agent. Signed-off-by: Shuxin Lin <linshuhsin@gmail.com>
IoTAgent → iot, FMSRAgent → fmsr, TSFMAgent → tsfm, WorkOrderAgent → wo, Utilities → utilities. Updates FastMCP() names in all server main.py files, DEFAULT_SERVER_PATHS keys in executor.py, all test fixtures and plan strings, and INSTRUCTIONS.md. Signed-off-by: Shuxin Lin <linshuhsin@gmail.com>
When execute_step encounters a tool=none step that has prior-step
dependencies, it was returning the static expected_output description
instead of deriving the actual value from the dependency context.
Downstream steps depending on that result would receive the description
string (e.g. "The name and id of a chiller asset...") and fail to
resolve their {step_N} placeholders correctly.
Fix: for tool=none steps with dependencies present in context, call the
LLM with a short extraction prompt to derive the concrete value. Steps
with no dependencies retain the previous behaviour (return expected_output).
Signed-off-by: Shuxin Lin <linshuhsin@gmail.com>
DhavalRepo18
approved these changes
Mar 19, 2026
Collaborator
DhavalRepo18
left a comment
There was a problem hiding this comment.
This is a cosmetic change to adjust the teminomogy.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
$(cat <<'EOF'
Summary
Closes #170.
Renames all
agentterminology toserverinsrc/workflow/to align with MCP architecture — servers expose tools, the plan-execute runner is the agent.PlanStep.agent→PlanStep.server,StepResult.agent→StepResult.server(models.py)_AGENT_RE→_SERVER_RE,agent_descriptions→server_descriptions, prompt strings#Agent<N>:→#Server<N>:, "assign an agent" → "assign a server", "Agent and tool names" → "Server and tool names" (planner.py)get_agent_descriptions()→get_server_descriptions(), error messages updated (executor.py)agent_descriptions→server_descriptions, log strings updated (runner.py)step.agent/r.agentfield accesses updated (cli.py)tests/)Out of scope: FastMCP server display names (
IoTAgent,FMSRAgent,TSFMAgent) — those are public-facing MCP client identifiers tracked separately.Test plan
uv run pytest src/workflow/tests/ -v)EOF
)