mirror of
https://github.com/zed-industries/zed.git
synced 2025-02-06 02:37:21 +00:00
f38956943b
This PR makes it so we propagate the `stop_reason` from Anthropic up to the Assistant so that we can take action based on it. The `extract_content_from_events` function was moved from `anthropic` to the `anthropic` module in `language_model` since it is more useful if it is able to name the `LanguageModelCompletionEvent` type, as otherwise we'd need an additional layer of plumbing. Release Notes: - N/A
32 lines
578 B
TOML
32 lines
578 B
TOML
[package]
|
|
name = "anthropic"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
publish = false
|
|
license = "AGPL-3.0-or-later"
|
|
|
|
[features]
|
|
default = []
|
|
schemars = ["dep:schemars"]
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[lib]
|
|
path = "src/anthropic.rs"
|
|
|
|
[dependencies]
|
|
anyhow.workspace = true
|
|
chrono.workspace = true
|
|
futures.workspace = true
|
|
http_client.workspace = true
|
|
isahc.workspace = true
|
|
schemars = { workspace = true, optional = true }
|
|
serde.workspace = true
|
|
serde_json.workspace = true
|
|
strum.workspace = true
|
|
thiserror.workspace = true
|
|
util.workspace = true
|
|
|
|
[dev-dependencies]
|
|
tokio.workspace = true
|