mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 05:30:42 +00:00
refactor: trim agent helper type exports
This commit is contained in:
@@ -58,12 +58,12 @@ export type ApplyPatchSummary = {
|
||||
deleted: string[];
|
||||
};
|
||||
|
||||
export type ApplyPatchResult = {
|
||||
type ApplyPatchResult = {
|
||||
summary: ApplyPatchSummary;
|
||||
text: string;
|
||||
};
|
||||
|
||||
export type ApplyPatchToolDetails = {
|
||||
type ApplyPatchToolDetails = {
|
||||
summary: ApplyPatchSummary;
|
||||
};
|
||||
|
||||
|
||||
@@ -245,20 +245,20 @@ function normalizeToolResultName(
|
||||
|
||||
export { makeMissingToolResult };
|
||||
|
||||
export type ToolCallInputRepairReport = {
|
||||
type ToolCallInputRepairReport = {
|
||||
messages: AgentMessage[];
|
||||
droppedToolCalls: number;
|
||||
droppedAssistantMessages: number;
|
||||
};
|
||||
|
||||
export type ToolCallInputRepairOptions = {
|
||||
type ToolCallInputRepairOptions = {
|
||||
allowedToolNames?: Iterable<string>;
|
||||
allowProviderOwnedThinkingReplay?: boolean;
|
||||
};
|
||||
|
||||
export type ErroredAssistantResultPolicy = "preserve" | "drop";
|
||||
type ErroredAssistantResultPolicy = "preserve" | "drop";
|
||||
|
||||
export type ToolUseResultPairingOptions = {
|
||||
type ToolUseResultPairingOptions = {
|
||||
erroredAssistantResultPolicy?: ErroredAssistantResultPolicy;
|
||||
missingToolResultText?: string;
|
||||
};
|
||||
@@ -430,7 +430,7 @@ export function sanitizeToolUseResultPairing(
|
||||
return repairToolUseResultPairing(messages, options).messages;
|
||||
}
|
||||
|
||||
export type ToolUseRepairReport = {
|
||||
type ToolUseRepairReport = {
|
||||
messages: AgentMessage[];
|
||||
added: Array<Extract<AgentMessage, { role: "toolResult" }>>;
|
||||
droppedDuplicateCount: number;
|
||||
|
||||
@@ -19,7 +19,7 @@ export type SpawnedToolContext = {
|
||||
workspaceDir?: string;
|
||||
};
|
||||
|
||||
export type NormalizedSpawnedRunMetadata = {
|
||||
type NormalizedSpawnedRunMetadata = {
|
||||
spawnedBy?: string;
|
||||
groupId?: string;
|
||||
groupChannel?: string;
|
||||
|
||||
Reference in New Issue
Block a user