pub struct HistorySearchOptions {
pub query: String,
pub role: Option<String>,
pub tool: Option<String>,
pub limit: usize,
pub since_ms: Option<i64>,
pub until_ms: Option<i64>,
pub max_sessions: Option<usize>,
pub include_inferred: bool,
}Expand description
Query parameters for [SessionIndex::search_sessions].
Fields§
§query: StringCase-insensitive substring. Matched against message content, tool names, and tool argument summaries.
role: Option<String>Restrict to "user" or "assistant" messages.
tool: Option<String>Only match tool calls whose name equals this (case-insensitive).
Its own parameter rather than folding into query because “find where
I called SendMessage” is a different question from “find where I
wrote the word SendMessage”, and only the structural answer settles an
audit.
limit: usizeMax hits to return before reporting truncated.
since_ms: Option<i64>Only messages at or after this instant (Unix ms).
until_ms: Option<i64>Only messages at or before this instant (Unix ms).
max_sessions: Option<usize>Open at most this many of the candidates, in the order given. The rest
are counted in sessions_skipped, never silently dropped.
include_inferred: boolAlso search sessions found only by working directory or account, not
in the agent’s own record (see HistoryService::search_for_agent).
Trait Implementations§
Source§impl Clone for HistorySearchOptions
impl Clone for HistorySearchOptions
Source§fn clone(&self) -> HistorySearchOptions
fn clone(&self) -> HistorySearchOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for HistorySearchOptions
impl Debug for HistorySearchOptions
Source§impl Default for HistorySearchOptions
impl Default for HistorySearchOptions
Source§fn default() -> HistorySearchOptions
fn default() -> HistorySearchOptions
Auto Trait Implementations§
impl Freeze for HistorySearchOptions
impl RefUnwindSafe for HistorySearchOptions
impl Send for HistorySearchOptions
impl Sync for HistorySearchOptions
impl Unpin for HistorySearchOptions
impl UnsafeUnpin for HistorySearchOptions
impl UnwindSafe for HistorySearchOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more