| Crates.io | ad4m-client |
| lib.rs | ad4m-client |
| version | 0.10.1-release-candidate-3 |
| created_at | 2022-11-22 16:08:16.00677+00 |
| updated_at | 2025-04-14 21:31:26.175434+00 |
| description | Client library wrapping AD4M's GraphQL interface |
| homepage | https://ad4m.dev |
| repository | https://github.com/perspect3vism/ad4m |
| max_upload_size | |
| id | 720931 |
| size | 131,371 |
This is a library for interacting with the AD4M executor / agent, analogous to https://www.npmjs.com/package/@coasys/ad4m.
use ad4m_client::Ad4mClient;
let executor_url = "http://localhost:4000".to_string();
let cap_token = read_capability_token_from_file();
let ad4m_client = Ad4mClient::new(executor_url, cap_token);
println!("{:?}", ad4m_client.agent.me()?);
Until documentation will be added, have a look at the AD4M cli code for a full usage example: https://github.com/perspect3vism/ad4m/tree/main/cli.