pub struct OpencodeConvo { /* private fields */ }Expand description
Provider for opencode sessions.
Implementations§
Source§impl OpencodeConvo
impl OpencodeConvo
pub fn new() -> Self
pub fn with_resolver(resolver: PathResolver) -> Self
pub fn io(&self) -> &ConvoIO
pub fn resolver(&self) -> &PathResolver
pub fn read_session(&self, session_id: &str) -> Result<Session>
pub fn list_sessions(&self) -> Result<Vec<SessionMetadata>>
pub fn most_recent_session(&self) -> Result<Option<Session>>
Sourcepub fn read_all_sessions(&self) -> Result<Vec<Session>>
pub fn read_all_sessions(&self) -> Result<Vec<Session>>
Read every session. Expensive on large histories.
Trait Implementations§
Source§impl ConversationProvider for OpencodeConvo
impl ConversationProvider for OpencodeConvo
Source§fn list_conversations(&self, _project: &str) -> Result<Vec<String>>
fn list_conversations(&self, _project: &str) -> Result<Vec<String>>
List conversation IDs for a project/workspace.
Source§fn load_conversation(
&self,
_project: &str,
conversation_id: &str,
) -> Result<ConversationView>
fn load_conversation( &self, _project: &str, conversation_id: &str, ) -> Result<ConversationView>
Load a full conversation as a
ConversationView.Source§fn load_metadata(
&self,
_project: &str,
conversation_id: &str,
) -> Result<ConversationMeta>
fn load_metadata( &self, _project: &str, conversation_id: &str, ) -> Result<ConversationMeta>
Load metadata only (no turns).
Source§fn list_metadata(&self, _project: &str) -> Result<Vec<ConversationMeta>>
fn list_metadata(&self, _project: &str) -> Result<Vec<ConversationMeta>>
List metadata for all conversations in a project.
Source§impl Default for OpencodeConvo
impl Default for OpencodeConvo
Source§fn default() -> OpencodeConvo
fn default() -> OpencodeConvo
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for OpencodeConvo
impl RefUnwindSafe for OpencodeConvo
impl Send for OpencodeConvo
impl Sync for OpencodeConvo
impl Unpin for OpencodeConvo
impl UnsafeUnpin for OpencodeConvo
impl UnwindSafe for OpencodeConvo
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