Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
85 changes: 78 additions & 7 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 9 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,15 @@ tinyflows-adaptive = { path = "vendor/tinyflows/crates/adaptive", version = "0.1
# switched on so an example can build a real harness around a loop. Default
# features off keeps the bundled SQLite checkpointer and the builtin tool family
# out of the graph until an example asks for them.
tinyagents = { path = "vendor/tinyagents", version = "2.1.1", default-features = false }
#
# The path names a *crate* inside the vendored workspace rather than the
# workspace root. `vendor/tinyagents` was a single package up to 2.1.1 and is a
# virtual manifest from 2.1.2, so the old path stopped resolving the moment the
Comment thread
senamakel marked this conversation as resolved.
# gitlink moved — with `found a virtual manifest ... instead of a package
# manifest`, which is cargo failing to load the source rather than anything
# about the code. `tinyagents-graph` re-exports everything the example used from
# the umbrella crate.
tinyagents-graph = { path = "vendor/tinyagents/crates/tinyagents-graph", version = "2.1.2", default-features = false }
# Hashes the emitted loop graph into the signature a checkpoint records, so a
# resume against a graph whose topology has since changed is refused rather than
# restored into slots that no longer mean what they meant. Not
Expand Down
4 changes: 2 additions & 2 deletions crates/tinyloops/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ thiserror = { workspace = true }
# Optional, and only ever reached from an example. The `tinyagents` feature
# below turns it on; the module library itself never calls into it, so a host
# that loads the `cdylib` resolves neither the harness nor its HTTP client.
tinyagents = { workspace = true, optional = true }
tinyagents-graph = { workspace = true, optional = true }

[dev-dependencies]
tokio = { workspace = true }
Expand All @@ -65,7 +65,7 @@ default = []
# Pulls in the TinyAgents durable agent + graph harness so the examples that
# drive a loop from a harness can compile. Nothing in `src/` is gated on it —
# it exists to give an example a real harness instead of a hand-rolled stand-in.
tinyagents = ["dep:tinyagents"]
tinyagents = ["dep:tinyagents-graph"]

# Every other example is discovered from `examples/` and builds on a bare
# `cargo test`. This one additionally needs the optional crate above, and
Expand Down
4 changes: 2 additions & 2 deletions crates/tinyloops/examples/tinyagents_harness.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ use std::error::Error;
use std::sync::Arc;

use serde_json::{Value, json};
use tinyagents::{END, GraphBuilder, NodeContext, NodeResult, TinyAgentsError};
use tinyagents_graph::{END, GraphBuilder, NodeContext, NodeResult, TinyAgentsError};
use tinyflows::caps::Capabilities;
use tinyflows::caps::mock::mock_capabilities;
use tinyflows::compiler::CompiledWorkflow;
Expand Down Expand Up @@ -84,7 +84,7 @@ async fn refine(
mut state: LoopState,
workflow: Arc<CompiledWorkflow>,
capabilities: Arc<Capabilities>,
) -> tinyagents::Result<NodeResult<LoopState>> {
) -> tinyagents_graph::Result<NodeResult<LoopState>> {
let outcome = run(&workflow, state.payload.clone(), &capabilities)
.await
.map_err(|error| TinyAgentsError::Tool(format!("workflow run failed: {error}")))?;
Expand Down
2 changes: 1 addition & 1 deletion vendor/tinyagents
Submodule tinyagents updated 551 files