pub enum TestProvider {
Claude,
Gemini,
Codex,
}Expand description
Supported test providers.
Each variant represents a different AI agent provider that agtrace supports.
Variants§
Implementations§
Source§impl TestProvider
impl TestProvider
Sourcepub fn name(&self) -> &'static str
pub fn name(&self) -> &'static str
Get the provider name as used in config.toml and CLI.
§Example
assert_eq!(TestProvider::Claude.name(), "claude_code");
assert_eq!(TestProvider::Gemini.name(), "gemini");Sourcepub fn adapter(&self) -> ProviderAdapter
pub fn adapter(&self) -> ProviderAdapter
Create a provider adapter for this test provider.
This allows access to provider-specific logic like directory encoding.
Sourcepub fn default_log_dir_name(&self) -> &'static str
pub fn default_log_dir_name(&self) -> &'static str
Get the default log directory name for this provider.
This is the directory name relative to the temp root where
the provider’s logs are stored (e.g., .claude, .gemini).
Sourcepub fn sample_filename(&self) -> &'static str
pub fn sample_filename(&self) -> &'static str
Get the sample filename for this provider.
Returns the filename in the samples directory that contains example data for this provider.
Sourcepub fn all() -> &'static [TestProvider]
pub fn all() -> &'static [TestProvider]
Get all supported providers.
Trait Implementations§
Source§impl Clone for TestProvider
impl Clone for TestProvider
Source§fn clone(&self) -> TestProvider
fn clone(&self) -> TestProvider
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TestProvider
impl Debug for TestProvider
Source§impl Display for TestProvider
impl Display for TestProvider
Source§impl PartialEq for TestProvider
impl PartialEq for TestProvider
impl Copy for TestProvider
impl Eq for TestProvider
impl StructuralPartialEq for TestProvider
Auto Trait Implementations§
impl Freeze for TestProvider
impl RefUnwindSafe for TestProvider
impl Send for TestProvider
impl Sync for TestProvider
impl Unpin for TestProvider
impl UnwindSafe for TestProvider
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