[package]
edition = "2024"
rust-version = "1.85"
name = "graphrt-llm"
version = "0.2.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Model providers (OpenAI-compatible, Anthropic, Gemini, AWS Bedrock, TypeSafe Jev) and LLM, classifier, extractor and agent nodes for the graphrt workflow runtime."
homepage = "https://github.com/BimaPangestu28/graphrt"
documentation = "https://docs.rs/graphrt-llm"
readme = "README.md"
keywords = [
"llm",
"openai",
"anthropic",
"agent",
"gemini",
]
categories = [
"api-bindings",
"asynchronous",
]
license = "Apache-2.0"
repository = "https://github.com/BimaPangestu28/graphrt"
[features]
anthropic = ["http"]
bedrock = [
"http",
"dep:sha2",
]
default = [
"openai",
"anthropic",
"typesafe",
"mock",
]
gemini = ["http"]
http = [
"dep:reqwest",
"dep:rustls",
"dep:tokio",
]
mock = []
openai = ["http"]
typesafe = ["http"]
[lib]
name = "graphrt_llm"
path = "src/lib.rs"
[[test]]
name = "bedrock_e2e"
path = "tests/bedrock_e2e.rs"
[[test]]
name = "credentials_http"
path = "tests/credentials_http.rs"
[[test]]
name = "e2e_llm"
path = "tests/e2e_llm.rs"
[[test]]
name = "gemini_e2e"
path = "tests/gemini_e2e.rs"
[[test]]
name = "live_ollama"
path = "tests/live_ollama.rs"
[[test]]
name = "typesafe_api"
path = "tests/typesafe_api.rs"
[dependencies.futures]
version = "0.3"
features = [
"std",
"async-await",
]
default-features = false
[dependencies.graphrt-core]
version = "0.2.0"
default-features = false
[dependencies.indexmap]
version = "2"
features = ["serde"]
[dependencies.reqwest]
version = "0.13"
features = [
"rustls-no-provider",
"json",
"stream",
]
optional = true
default-features = false
[dependencies.rustls]
version = "0.23"
features = [
"ring",
"std",
"tls12",
]
optional = true
default-features = false
[dependencies.serde]
version = "1"
features = [
"derive",
"rc",
]
[dependencies.serde_json]
version = "1"
features = [
"preserve_order",
"raw_value",
]
[dependencies.sha2]
version = "0.10"
optional = true
default-features = false
[dependencies.thiserror]
version = "2"
[dependencies.tokio]
version = "1"
features = [
"time",
"rt",
]
optional = true
default-features = false
[dev-dependencies.graphrt-core]
version = "0.2.0"
features = [
"tokio",
"jinja",
"yaml",
]
default-features = false
[dev-dependencies.tokio]
version = "1"
features = [
"rt",
"rt-multi-thread",
"macros",
"time",
"net",
"io-util",
"sync",
]
default-features = false
[lints.clippy]
dbg_macro = "deny"
expect_used = "deny"
indexing_slicing = "warn"
panic = "deny"
print_stdout = "warn"
todo = "deny"
unimplemented = "deny"
unwrap_used = "deny"
[lints.rust]
missing_debug_implementations = "warn"
unsafe_code = "forbid"
[lints.rust.rust_2018_idioms]
level = "warn"
priority = -1