Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

chore(tests): update module paths from tinyagents to tinyagents_session

Steven Enamakelc75e0ed42aa9
diff --git a/tests/json_rpc_e2e.rs b/tests/json_rpc_e2e.rs
index 433a6847a4..a64018c28f 100644
--- a/tests/json_rpc_e2e.rs
+++ b/tests/json_rpc_e2e.rs
@@ -3381,15 +3381,15 @@ async fn json_rpc_run_ledger_lifecycle() {
.await
.expect("load config");
- tinyagents::session::run_ledger::upsert_agent_run(
+ tinyagents_session::run_ledger::upsert_agent_run(
&config.workspace_dir,
- tinyagents::session::run_ledger::AgentRunUpsert {
+ tinyagents_session::run_ledger::AgentRunUpsert {
id: "sub-run-1".to_string(),
- kind: tinyagents::session::run_ledger::AgentRunKind::WorkerThread,
+ kind: tinyagents_session::run_ledger::AgentRunKind::WorkerThread,
parent_run_id: Some("req-run-1".to_string()),
parent_thread_id: Some("thread-run-1".to_string()),
agent_id: Some("researcher".to_string()),
- status: tinyagents::session::run_ledger::AgentRunStatus::AwaitingUser,
+ status: tinyagents_session::run_ledger::AgentRunStatus::AwaitingUser,
prompt_ref: Some("thread:worker-1:message:seed".to_string()),
worker_thread_id: Some("worker-1".to_string()),
task_board_id: Some("thread-run-1".to_string()),
@@ -3408,9 +3408,9 @@ async fn json_rpc_run_ledger_lifecycle() {
)
.expect("seed run");
- tinyagents::session::run_ledger::append_run_event(
+ tinyagents_session::run_ledger::append_run_event(
&config.workspace_dir,
- tinyagents::session::run_ledger::RunEventAppend {
+ tinyagents_session::run_ledger::RunEventAppend {
run_id: "sub-run-1".to_string(),
event_type: "subagent_awaiting_user".to_string(),
payload: json!({ "question": "Which repo should I inspect?" }),
@@ -3500,7 +3500,7 @@ async fn json_rpc_agent_work_list_groups_runs_by_bucket() {
.await
.expect("load config");
- use tinyagents::session::run_ledger::{
+ use tinyagents_session::run_ledger::{
upsert_agent_run, AgentRunKind, AgentRunStatus, AgentRunUpsert,
};
let seed = |id: &str, status: AgentRunStatus| AgentRunUpsert {
@@ -3631,16 +3631,16 @@ async fn json_rpc_workflow_run_definitions_and_runs_roundtrip() {
);
// Seed a durable workflow run, then list + get it.
- tinyagents::session::run_ledger::upsert_workflow_run(
+ tinyagents_session::run_ledger::upsert_workflow_run(
&config.workspace_dir,
- tinyagents::session::run_ledger::WorkflowRunUpsert {
+ tinyagents_session::run_ledger::WorkflowRunUpsert {
id: "wf-run-1".to_string(),
definition_id: "parallel_research_cross_check".to_string(),
parent_thread_id: Some("thread-wf-1".to_string()),
input: json!({ "question": "test" }),
phase_states: json!({ "decompose": "completed" }),
child_run_ids: vec!["child-1".to_string()],
- status: tinyagents::session::run_ledger::WorkflowRunStatus::Running,
+ status: tinyagents_session::run_ledger::WorkflowRunStatus::Running,
summary: None,
started_at: None,
completed_at: None,
@@ -3830,17 +3830,17 @@ async fn json_rpc_agent_team_coordination_roundtrip() {
// Mark A done directly via the run ledger, then B claims fine.
let task_a =
- tinyagents::session::run_ledger::get_agent_team_task(&config.workspace_dir, &task_a_id)
+ tinyagents_session::run_ledger::get_agent_team_task(&config.workspace_dir, &task_a_id)
.expect("get task A")
.expect("task A present");
- tinyagents::session::run_ledger::upsert_agent_team_task(
+ tinyagents_session::run_ledger::upsert_agent_team_task(
&config.workspace_dir,
- tinyagents::session::run_ledger::AgentTeamTaskUpsert {
+ tinyagents_session::run_ledger::AgentTeamTaskUpsert {
id: task_a.id.clone(),
team_id: task_a.team_id.clone(),
title: task_a.title.clone(),
objective: task_a.objective.clone(),
- status: tinyagents::session::run_ledger::AgentTeamTaskStatus::Done,
+ status: tinyagents_session::run_ledger::AgentTeamTaskStatus::Done,
owner_member_id: task_a.owner_member_id.clone(),
depends_on: task_a.depends_on.clone(),
gate_status: Some(task_a.gate_status.clone()),