Merged via squash. Prepared head SHA: f2433790941841ade0efe6292ff4909b2edd6f18 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: "",
|
|
};
|
|
}
|