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
Task Summary
In
agent.service.ts, theApiAgentInfo -> AgentInfoobject mapping (including thedelegatesub-mapping) was inlined identically increateAgent,getAgent, andgetAllAgents, and thesteps.map(s => convertApiReActStep(s))array conversion was inlined in three more places. This extracts two private helpers,mapApiAgentInfoandconvertApiReActSteps, and routes the six call sites through them. Behavior is unchanged.Task Type