BlueGit

ict rusty-teams

Files

rusty-teams / crates / agents / src / lib.rs

lib.rs

lib.rs 1.5 KiB Download Raw
1mod action;
2mod catalog;
3mod chat;
4mod context;
5mod desktop_sessions;
6mod inbox;
7mod invocation;
8mod parse;
9mod profile;
10mod runner;
11mod sessions;
12mod settings;
13mod template;
14
15pub use action::AgentAction;
16pub use catalog::{CliHit, already_installed, resolve_program, scan_clis};
17pub use chat::{
18 ChatMessage, ChatReply, ToolCall, ToolSpec, complete_text, list_models, next_turn,
19 probe_backend,
20};
21pub use context::{MessageContext, ThreadMessage, build_prompt, build_session_prompt};
22pub use desktop_sessions::{DesktopSession, desktop_sessions};
23pub use inbox::{DeliveryError, deliver, inbox_frame};
24pub use invocation::{
25 Invocation, InvocationError, McpEndpoint, RunPlan, build_invocation, kill_process_invocation,
26 linux_path, open_session_invocation, resume_invocation, supports_resume,
27 version_check_invocation, wsl_path, wsl_stop_invocation, wsl_unc_distro,
28};
29pub use parse::{OutputParser, RunEvent, parse_line};
30pub use profile::{AgentBackend, AgentProfile, Environment, OutputFormat};
31pub use runner::{
32 RunOutcome, RunStatus, RunUpdate, probe, run, run_stop_invocation, run_stop_invocation_within,
33};
34pub use sessions::{
35 ExternalSession, RunningSession, encode_project_dir, live_session_names, resolve_project_dir,
36 running_sessions, scan_external_sessions,
37};
38pub use settings::{AgentSettings, RECENT_WORKING_DIR_LIMIT, SETTINGS_KEY, SettingsProblem};
39pub use template::{UnknownPlaceholder, Values, placeholders_in, render, split_command};
40
41pub fn new_session_id() -> String {
42 uuid::Uuid::new_v4().to_string()
43}