Skip to content

Commit 5122a78

Browse files
authored
feat: Agent rework (#282)
* Add `SessionManager` trait, implement `atrium_api::agent::Agent` * WIP: Add docs * Add docs * Fix examples
1 parent 7830d8e commit 5122a78

File tree

22 files changed

+1909
-1074
lines changed

22 files changed

+1909
-1074
lines changed

Cargo.lock

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ hickory-resolver = "0.24.1"
6565
http = "1.1.0"
6666
lru = "0.12.4"
6767
moka = "0.12.8"
68-
tokio = { version = "1.39", default-features = false }
68+
tokio = { version = "1.43", default-features = false }
6969

7070
# HTTP client integrations
7171
isahc = "1.7.2"

atrium-api/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ license.workspace = true
1212
keywords.workspace = true
1313

1414
[dependencies]
15+
atrium-common.workspace = true
1516
atrium-xrpc.workspace = true
1617
chrono = { workspace = true, features = ["serde"] }
1718
http.workspace = true

atrium-api/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
4444
While `AtpServiceClient` can be used for simple XRPC calls, it is better to use `AtpAgent`, which has practical features such as session management.
4545

4646
```rust,no_run
47-
use atrium_api::agent::{store::MemorySessionStore, AtpAgent};
47+
use atrium_api::agent::atp_agent::{store::MemorySessionStore, AtpAgent};
4848
use atrium_xrpc_client::reqwest::ReqwestClient;
4949
5050
#[tokio::main]

0 commit comments

Comments
 (0)