MCPcopy Create free account
hub / github.com/astercloud/aster / addStep

Function addStep

ui/src/stores/thinking.ts:67–75  ·  view source on GitHub ↗
(messageId: string, step: ThinkingStep)

Source from the content-addressed store, hash-verified

65 * 添加思维步骤
66 */
67 const addStep = (messageId: string, step: ThinkingStep) => {
68 const steps = stepsByMessage.value.get(messageId) || [];
69 steps.push({
70 ...step,
71 id: step.id || `step-${Date.now()}-${Math.random().toString(36).substr(2, 9)}`,
72 messageId,
73 });
74 stepsByMessage.value.set(messageId, steps);
75 };
76
77 /**
78 * 添加工具调用步骤

Callers 6

endThinkingFunction · 0.85
addToolCallStepFunction · 0.85
addToolResultStepFunction · 0.85
addDecisionStepFunction · 0.85
addApprovalStepFunction · 0.85
addSessionSummarizedStepFunction · 0.85

Calls 3

toStringMethod · 0.80
getMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected