MCPcopy
hub / github.com/ModelEngine-Group/nexent / createAgentStep

Function createAgentStep

frontend/lib/chatMessageExtractor.ts:27–41  ·  view source on GitHub ↗
(
  id: string,
  title: string,
  expanded = false
)

Source from the content-addressed store, hash-verified

25};
26
27const createAgentStep = (
28 id: string,
29 title: string,
30 expanded = false
31): AgentStep => ({
32 id,
33 title,
34 content: "",
35 expanded,
36 contents: [],
37 metrics: null,
38 thinking: { content: "", expanded },
39 code: { content: "", expanded },
40 output: { content: "", expanded },
41});
42
43const getOrCreateCurrentStep = (
44 steps: AgentStep[],

Callers 2

getOrCreateCurrentStepFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected