feat: a2ui interface to enablee the LLM to give structured information
This commit is contained in:
11
src/main.rs
11
src/main.rs
@@ -1,3 +1,5 @@
|
||||
mod a2ui;
|
||||
mod a2ui_validation;
|
||||
mod agent;
|
||||
mod app;
|
||||
mod compaction;
|
||||
@@ -9,6 +11,8 @@ mod model;
|
||||
#[cfg(target_os = "macos")]
|
||||
mod native_edit;
|
||||
#[cfg(target_os = "macos")]
|
||||
mod native_media;
|
||||
#[cfg(target_os = "macos")]
|
||||
mod native_menu;
|
||||
#[cfg(target_os = "macos")]
|
||||
mod runtime;
|
||||
@@ -21,6 +25,13 @@ use app::{App, Message, app_icon, app_theme};
|
||||
use iced::{Size, window};
|
||||
|
||||
fn main() -> iced::Result {
|
||||
if std::env::args().nth(1).as_deref() == Some("validate-a2ui") {
|
||||
if let Err(error) = a2ui_validation::run(std::env::args().skip(2)) {
|
||||
eprintln!("A2UI validation failed: {error}");
|
||||
std::process::exit(1);
|
||||
}
|
||||
return Ok(());
|
||||
}
|
||||
#[cfg(target_os = "macos")]
|
||||
if let Err(error) = engine::configure_metal_sources() {
|
||||
eprintln!("DS4Server: {error}");
|
||||
|
||||
Reference in New Issue
Block a user