mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 20:20:42 +00:00
refactor: trim tool runtime type exports
This commit is contained in:
@@ -6,14 +6,14 @@ import { isPlainObject } from "../utils.js";
|
||||
|
||||
const log = createSubsystemLogger("agents/loop-detection");
|
||||
|
||||
export type LoopDetectorKind =
|
||||
type LoopDetectorKind =
|
||||
| "generic_repeat"
|
||||
| "unknown_tool_repeat"
|
||||
| "known_poll_no_progress"
|
||||
| "global_circuit_breaker"
|
||||
| "ping_pong";
|
||||
|
||||
export type LoopDetectionResult =
|
||||
type LoopDetectionResult =
|
||||
| { stuck: false }
|
||||
| {
|
||||
stuck: true;
|
||||
@@ -58,7 +58,7 @@ type ResolvedLoopDetectionConfig = {
|
||||
};
|
||||
};
|
||||
|
||||
export type ToolLoopDetectionScope = {
|
||||
type ToolLoopDetectionScope = {
|
||||
runId?: string;
|
||||
};
|
||||
|
||||
|
||||
@@ -52,12 +52,12 @@ const MESSAGE_MUTATING_ACTIONS = new Set([
|
||||
"unpin",
|
||||
]);
|
||||
|
||||
export type ToolMutationState = {
|
||||
type ToolMutationState = {
|
||||
mutatingAction: boolean;
|
||||
actionFingerprint?: string;
|
||||
};
|
||||
|
||||
export type ToolActionRef = {
|
||||
type ToolActionRef = {
|
||||
toolName: string;
|
||||
meta?: string;
|
||||
actionFingerprint?: string;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { createAssistantMessageEventStream } from "@mariozechner/pi-ai";
|
||||
|
||||
export type TransportUsage = {
|
||||
type TransportUsage = {
|
||||
input: number;
|
||||
output: number;
|
||||
cacheRead: number;
|
||||
|
||||
Reference in New Issue
Block a user