ZIm/crates/agent/src
Michael Sloan d497f52e17
agent: Improve error handling and retry for zed-provided models (#33565)
* Updates to `zed_llm_client-0.8.5` which adds support for `retry_after`
when anthropic provides it.

* Distinguishes upstream provider errors and rate limits from errors
that originate from zed's servers

* Moves `LanguageModelCompletionError::BadInputJson` to
`LanguageModelCompletionEvent::ToolUseJsonParseError`. While arguably
this is an error case, the logic in thread is cleaner with this move.
There is also precedent for inclusion of errors in the event type -
`CompletionRequestStatus::Failed` is how cloud errors arrive.

* Updates `PROVIDER_ID` / `PROVIDER_NAME` constants to use proper types
instead of `&str`, since they can be constructed in a const fashion.

* Removes use of `CLIENT_SUPPORTS_EXA_WEB_SEARCH_PROVIDER_HEADER_NAME`
as the server no longer reads this header and just defaults to that
behavior.

Release notes for this is covered by #33275

Release Notes:

- N/A

---------

Co-authored-by: Richard Feldman <oss@rtfeldman.com>
Co-authored-by: Richard <richard@zed.dev>
2025-06-30 21:01:32 -06:00
..
prompts agent: Do not send stale files notifications (#32974) 2025-06-20 16:56:49 +03:00
agent.rs Extract an agent_ui crate from agent (#33284) 2025-06-23 18:00:28 -07:00
agent_profile.rs Allow disabling tools when 'enable_all_context_servers = true' (#33536) 2025-06-30 10:56:25 -04:00
context.rs Move UI code from assistant_context_editor -> agent_ui (#33289) 2025-06-23 22:22:01 -07:00
context_server_tool.rs Extract an agent_ui crate from agent (#33284) 2025-06-23 18:00:28 -07:00
context_store.rs Move UI code from assistant_context_editor -> agent_ui (#33289) 2025-06-23 22:22:01 -07:00
history_store.rs Move UI code from assistant_context_editor -> agent_ui (#33289) 2025-06-23 22:22:01 -07:00
thread.rs agent: Improve error handling and retry for zed-provided models (#33565) 2025-06-30 21:01:32 -06:00
thread_store.rs agent: Add GEMINI.md as a supported rules file name (#33381) 2025-06-25 14:14:49 -03:00
tool_use.rs Extract an agent_ui crate from agent (#33284) 2025-06-23 18:00:28 -07:00