diff --git a/src/agents/agent-runtime-metadata.ts b/src/agents/agent-runtime-metadata.ts index 9af8c2d1dde..082ab0f84ea 100644 --- a/src/agents/agent-runtime-metadata.ts +++ b/src/agents/agent-runtime-metadata.ts @@ -11,7 +11,7 @@ import { type EmbeddedAgentRuntime, } from "./pi-embedded-runner/runtime.js"; -export type AgentRuntimeMetadata = { +type AgentRuntimeMetadata = { id: string; fallback?: "pi" | "none"; source: "env" | "agent" | "defaults" | "implicit"; diff --git a/src/agents/announce-idempotency.ts b/src/agents/announce-idempotency.ts index e792b262704..7aac7fbba71 100644 --- a/src/agents/announce-idempotency.ts +++ b/src/agents/announce-idempotency.ts @@ -1,4 +1,4 @@ -export type AnnounceIdFromChildRunParams = { +type AnnounceIdFromChildRunParams = { childSessionKey: string; childRunId: string; }; diff --git a/src/agents/context-window-guard.ts b/src/agents/context-window-guard.ts index 1cde80ade70..b6c925eb3ec 100644 --- a/src/agents/context-window-guard.ts +++ b/src/agents/context-window-guard.ts @@ -7,7 +7,7 @@ export const CONTEXT_WINDOW_WARN_BELOW_TOKENS = 8_000; const CONTEXT_WINDOW_HARD_MIN_RATIO = 0.1; const CONTEXT_WINDOW_WARN_BELOW_RATIO = 0.2; -export type ContextWindowSource = "model" | "modelsConfig" | "agentContextTokens" | "default"; +type ContextWindowSource = "model" | "modelsConfig" | "agentContextTokens" | "default"; export type ContextWindowInfo = { tokens: number; @@ -62,19 +62,19 @@ export function resolveContextWindowInfo(params: { return baseInfo; } -export type ContextWindowGuardResult = ContextWindowInfo & { +type ContextWindowGuardResult = ContextWindowInfo & { hardMinTokens: number; warnBelowTokens: number; shouldWarn: boolean; shouldBlock: boolean; }; -export type ContextWindowGuardThresholds = { +type ContextWindowGuardThresholds = { hardMinTokens: number; warnBelowTokens: number; }; -export type ContextWindowGuardHint = { +type ContextWindowGuardHint = { endpointClass: ReturnType["endpointClass"]; likelySelfHosted: boolean; }; diff --git a/src/agents/live-model-filter.ts b/src/agents/live-model-filter.ts index efce653db2b..2cd3e3e5181 100644 --- a/src/agents/live-model-filter.ts +++ b/src/agents/live-model-filter.ts @@ -4,7 +4,7 @@ import { normalizeLowercaseStringOrEmpty } from "../shared/string-coerce.js"; import { liveProvidersShareOwningPlugin } from "./live-provider-owner.js"; import { normalizeProviderId } from "./provider-id.js"; -export type ModelRef = { +type ModelRef = { provider?: string | null; id?: string | null; };