Skip to content

Deduplicate agent payload and ReActStep mapping in AgentService #5990

Description

@Ma77Ball

Task Summary

In agent.service.ts, the ApiAgentInfo -> AgentInfo object mapping (including the delegate sub-mapping) was inlined identically in createAgent, getAgent, and getAllAgents, and the steps.map(s => convertApiReActStep(s)) array conversion was inlined in three more places. This extracts two private helpers, mapApiAgentInfo and convertApiReActSteps, and routes the six call sites through them. Behavior is unchanged.

Task Type

  • Refactor

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No fields configured for Task.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions