[package]
edition = "2021"
rust-version = "1.75"
name = "phi-core"
version = "0.10.0"
authors = ["LazyBouy <LazyBouy@yolog.dev>"]
build = false
exclude = [
"docs/images/*",
"docs/theme/*",
".github/*",
"scripts/*",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Simple, effective agent loop with tool execution and event streaming"
homepage = "https://LazyBouy.github.io/phi-core/"
documentation = "https://LazyBouy.github.io/phi-core/"
readme = "README.md"
keywords = [
"agent",
"llm",
"ai",
"tools",
"streaming",
]
categories = [
"api-bindings",
"asynchronous",
]
license = "MIT"
repository = "https://github.com/LazyBouy/phi-core"
[features]
openapi = ["dep:openapiv3"]
[lib]
name = "phi_core"
path = "src/lib.rs"
[[example]]
name = "basic"
path = "examples/basic.rs"
[[example]]
name = "callbacks"
path = "examples/callbacks.rs"
[[example]]
name = "cli"
path = "examples/cli.rs"
[[example]]
name = "persistence"
path = "examples/persistence.rs"
[[example]]
name = "sessions"
path = "examples/sessions.rs"
[[example]]
name = "sub_agent"
path = "examples/sub_agent.rs"
[[test]]
name = "agent_build_config_test"
path = "tests/agent_build_config_test.rs"
[[test]]
name = "agent_loop_test"
path = "tests/agent_loop_test.rs"
[[test]]
name = "agent_test"
path = "tests/agent_test.rs"
[[test]]
name = "async_compaction_strategy_test"
path = "tests/async_compaction_strategy_test.rs"
[[test]]
name = "compaction_test"
path = "tests/compaction_test.rs"
[[test]]
name = "config_test"
path = "tests/config_test.rs"
[[test]]
name = "context_translation_test"
path = "tests/context_translation_test.rs"
[[test]]
name = "credential_refresh_test"
path = "tests/credential_refresh_test.rs"
[[test]]
name = "integration_anthropic"
path = "tests/integration_anthropic.rs"
[[test]]
name = "openapi_test"
path = "tests/openapi_test.rs"
[[test]]
name = "prun_test"
path = "tests/prun_test.rs"
[[test]]
name = "release_0_10_test"
path = "tests/release_0_10_test.rs"
[[test]]
name = "revert_test"
path = "tests/revert_test.rs"
[[test]]
name = "script_callback_test"
path = "tests/script_callback_test.rs"
[[test]]
name = "serialization_test"
path = "tests/serialization_test.rs"
[[test]]
name = "session_store_test"
path = "tests/session_store_test.rs"
[[test]]
name = "session_test"
path = "tests/session_test.rs"
[[test]]
name = "structured_output_test"
path = "tests/structured_output_test.rs"
[[test]]
name = "sub_agent_test"
path = "tests/sub_agent_test.rs"
[[test]]
name = "system_prompt_test"
path = "tests/system_prompt_test.rs"
[[test]]
name = "tool_timeout_test"
path = "tests/tool_timeout_test.rs"
[[test]]
name = "tools_test"
path = "tests/tools_test.rs"
[[test]]
name = "turn_request_capture_test"
path = "tests/turn_request_capture_test.rs"
[dependencies.async-trait]
version = "0.1"
[dependencies.base64]
version = "0.22"
[dependencies.chrono]
version = "0.4"
features = ["serde"]
[dependencies.fs2]
version = "0.4"
[dependencies.futures]
version = "0.3"
[dependencies.openapiv3]
version = "2"
optional = true
[dependencies.rand]
version = "0.10.0"
[dependencies.reqwest]
version = "0.12"
features = [
"json",
"stream",
]
[dependencies.reqwest-eventsource]
version = "0.6"
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.serde_yaml]
version = "0.9"
[dependencies.thiserror]
version = "2"
[dependencies.tokio]
version = "1"
features = ["full"]
[dependencies.tokio-stream]
version = "0.1"
[dependencies.tokio-util]
version = "0.7"
[dependencies.toml]
version = "0.8"
[dependencies.tracing]
version = "0.1"
[dependencies.uuid]
version = "1"
features = ["v4"]
[dev-dependencies.tempfile]
version = "3"
[dev-dependencies.tokio]
version = "1"
features = [
"full",
"test-util",
]
[dev-dependencies.wiremock]
version = "0.6"