prediction: rewrite the prompting stack to create the ship computer as a second character, and let characters/agents operate autonomously with their own tasks and event queues
This commit is contained in:
@@ -7,8 +7,8 @@ use crate::artifacts::Artifact;
|
||||
pub trait DataSource: ToolDescription {
|
||||
type Args: JsonSchema + DeserializeOwned;
|
||||
type Error;
|
||||
fn synchronize(&mut self, artifact: &mut Artifact) -> impl Future<Output = Result<Vec<Artifact>, Self::Error>>;
|
||||
fn query(&mut self, args: &Self::Args) -> impl Future<Output = Result<Vec<Artifact>, Self::Error>>;
|
||||
fn synchronize(&self, artifact: &mut Artifact) -> impl Future<Output = Result<Vec<Artifact>, Self::Error>>;
|
||||
fn query(&self, args: &Self::Args) -> impl Future<Output = Result<Vec<Artifact>, Self::Error>>;
|
||||
}
|
||||
|
||||
pub trait ToolDescription {
|
||||
|
||||
Reference in New Issue
Block a user