@xenosystem/agent-sdk 0.10.24 → 0.10.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1453,6 +1453,7 @@ interface AgentLoopConfig {
1453
1453
  maxTokens: number;
1454
1454
  maxIterations: number;
1455
1455
  reserveFinalSynthesisTurn?: boolean;
1456
+ turnTokenBudget?: number;
1456
1457
  systemPrompt: string;
1457
1458
  requesterLabel?: string;
1458
1459
  ownerSessionId?: string;
@@ -1536,7 +1537,7 @@ interface CompletionGuardToolPolicy {
1536
1537
  message?: string;
1537
1538
  }
1538
1539
  type AgentRunTerminationStatus = "completed" | "incomplete" | "suspended" | "interrupted" | "error";
1539
- type AgentRunTerminationReason = "end_turn" | "empty_response" | "max_tokens" | "completion_guard_stop" | "max_iterations" | "awaiting_operation" | "continuation_exhausted" | "interrupted" | "watchdog_idle" | "watchdog_lease" | "watchdog_hard" | "error";
1540
+ type AgentRunTerminationReason = "end_turn" | "empty_response" | "max_tokens" | "completion_guard_stop" | "max_iterations" | "token_budget" | "awaiting_operation" | "continuation_exhausted" | "interrupted" | "watchdog_idle" | "watchdog_lease" | "watchdog_hard" | "error";
1540
1541
  interface AgentRunTermination {
1541
1542
  status: AgentRunTerminationStatus;
1542
1543
  reason: AgentRunTerminationReason;
@@ -1453,6 +1453,7 @@ interface AgentLoopConfig {
1453
1453
  maxTokens: number;
1454
1454
  maxIterations: number;
1455
1455
  reserveFinalSynthesisTurn?: boolean;
1456
+ turnTokenBudget?: number;
1456
1457
  systemPrompt: string;
1457
1458
  requesterLabel?: string;
1458
1459
  ownerSessionId?: string;
@@ -1536,7 +1537,7 @@ interface CompletionGuardToolPolicy {
1536
1537
  message?: string;
1537
1538
  }
1538
1539
  type AgentRunTerminationStatus = "completed" | "incomplete" | "suspended" | "interrupted" | "error";
1539
- type AgentRunTerminationReason = "end_turn" | "empty_response" | "max_tokens" | "completion_guard_stop" | "max_iterations" | "awaiting_operation" | "continuation_exhausted" | "interrupted" | "watchdog_idle" | "watchdog_lease" | "watchdog_hard" | "error";
1540
+ type AgentRunTerminationReason = "end_turn" | "empty_response" | "max_tokens" | "completion_guard_stop" | "max_iterations" | "token_budget" | "awaiting_operation" | "continuation_exhausted" | "interrupted" | "watchdog_idle" | "watchdog_lease" | "watchdog_hard" | "error";
1540
1541
  interface AgentRunTermination {
1541
1542
  status: AgentRunTerminationStatus;
1542
1543
  reason: AgentRunTerminationReason;