From 36adcebe6ca8f5d8511be617c49d384a5d3205fb Mon Sep 17 00:00:00 2001 From: azhengbot <63502660+azhengbot@users.noreply.github.com> Date: Mon, 13 Apr 2026 19:56:41 +0800 Subject: [PATCH] Rename API call function to _interruptible_api_call --- website/docs/developer-guide/agent-loop.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/docs/developer-guide/agent-loop.md b/website/docs/developer-guide/agent-loop.md index 1ec647010..8cf6adeae 100644 --- a/website/docs/developer-guide/agent-loop.md +++ b/website/docs/developer-guide/agent-loop.md @@ -72,7 +72,7 @@ run_conversation() - anthropic_messages: convert via anthropic_adapter.py 6. Inject ephemeral prompt layers (budget warnings, context pressure) 7. Apply prompt caching markers if on Anthropic - 8. Make interruptible API call (_api_call_with_interrupt) + 8. Make interruptible API call (_interruptible_api_call) 9. Parse response: - If tool_calls: execute them, append results, loop back to step 5 - If text response: persist session, flush memory if needed, return @@ -105,7 +105,7 @@ Providers validate these sequences and will reject malformed histories. ## Interruptible API Calls -API requests are wrapped in `_api_call_with_interrupt()` which runs the actual HTTP call in a background thread while monitoring an interrupt event: +API requests are wrapped in `_interruptible_api_call()` which runs the actual HTTP call in a background thread while monitoring an interrupt event: ```text ┌────────────────────────────────────────────────────┐