pub struct Project {Show 13 fields
pub project_id: String,
pub tenant_id: String,
pub name: String,
pub description: Option<String>,
pub instructions: Option<String>,
pub knowledge_base_ids: Option<Vec<String>>,
pub file_ids: Option<Vec<String>>,
pub created_by: Option<String>,
pub visibility: Option<ProjectVisibility>,
pub shared_with: Option<Vec<ProjectGrant>>,
pub archived_at: Option<String>,
pub created_at: String,
pub updated_at: String,
}Expand description
A named body of work that chats belong to: standing instructions, the knowledge bases its chats may search, and the files they can read. An agent is who answers; a project is what about.
Fields§
§project_id: String§tenant_id: String§name: String§description: Option<String>§instructions: Option<String>Injected into the system prompt below the agent’s own prompt and above personal preferences.
knowledge_base_ids: Option<Vec<String>>§file_ids: Option<Vec<String>>Ids that no longer resolve to a file in this tenant are dropped on write — an attachment that lies is worse than a rejected one.
created_by: Option<String>Owns a private project outright.
visibility: Option<ProjectVisibility>tenant (the default, and what every pre-existing project is) or private.
Ignored while visibility is tenant.
archived_at: Option<String>Absent or null when the project is live. Archiving hides it from the default list and loses nothing.
created_at: String§updated_at: StringTrait Implementations§
Source§impl<'de> Deserialize<'de> for Project
impl<'de> Deserialize<'de> for Project
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Project
Auto Trait Implementations§
impl Freeze for Project
impl RefUnwindSafe for Project
impl Send for Project
impl Sync for Project
impl Unpin for Project
impl UnsafeUnpin for Project
impl UnwindSafe for Project
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more