mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-02 12:51:57 +00:00
Merged via squash.
Prepared head SHA: f243379094
Co-authored-by: huntharo <5617868+huntharo@users.noreply.github.com>
Co-authored-by: huntharo <5617868+huntharo@users.noreply.github.com>
Reviewed-by: @huntharo
17 lines
630 B
TypeScript
17 lines
630 B
TypeScript
export function createBaseToolHandlerState() {
|
|
return {
|
|
toolMetas: [] as Array<{ toolName?: string; meta?: string }>,
|
|
toolSummaryById: new Set<string>(),
|
|
lastToolError: undefined,
|
|
pendingMessagingTexts: new Map<string, string>(),
|
|
pendingMessagingTargets: new Map<string, unknown>(),
|
|
pendingMessagingMediaUrls: new Map<string, string[]>(),
|
|
messagingToolSentTexts: [] as string[],
|
|
messagingToolSentTextsNormalized: [] as string[],
|
|
messagingToolSentMediaUrls: [] as string[],
|
|
messagingToolSentTargets: [] as unknown[],
|
|
deterministicApprovalPromptSent: false,
|
|
blockBuffer: "",
|
|
};
|
|
}
|