mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-04-25 00:51:20 +00:00
Rename API call function to _interruptible_api_call
This commit is contained in:
parent
43de1ca8c2
commit
36adcebe6c
1 changed files with 2 additions and 2 deletions
|
|
@ -72,7 +72,7 @@ run_conversation()
|
||||||
- anthropic_messages: convert via anthropic_adapter.py
|
- anthropic_messages: convert via anthropic_adapter.py
|
||||||
6. Inject ephemeral prompt layers (budget warnings, context pressure)
|
6. Inject ephemeral prompt layers (budget warnings, context pressure)
|
||||||
7. Apply prompt caching markers if on Anthropic
|
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:
|
9. Parse response:
|
||||||
- If tool_calls: execute them, append results, loop back to step 5
|
- If tool_calls: execute them, append results, loop back to step 5
|
||||||
- If text response: persist session, flush memory if needed, return
|
- 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
|
## 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
|
```text
|
||||||
┌────────────────────────────────────────────────────┐
|
┌────────────────────────────────────────────────────┐
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue