pub trait ProfileExt {
// Required methods
fn id(&self) -> &str;
fn get_assertion_by_id(&self, id: &str) -> Option<&AssertionTask>;
fn get_llm_judge_by_id(&self, id: &str) -> Option<&LLMJudgeTask>;
fn get_trace_assertion_by_id(&self, id: &str) -> Option<&TraceAssertionTask>;
fn get_agent_assertion_by_id(&self, id: &str) -> Option<&AgentAssertionTask>;
fn get_task_by_id(&self, id: &str) -> Option<&dyn TaskAccessor>;
fn has_llm_tasks(&self) -> bool;
fn has_trace_assertions(&self) -> bool;
fn has_agent_assertions(&self) -> bool;
}Expand description
Extension trait for evaluation profiles Provides unified access to assertions and LLM judge tasks
Required Methods§
fn id(&self) -> &str
fn get_assertion_by_id(&self, id: &str) -> Option<&AssertionTask>
fn get_llm_judge_by_id(&self, id: &str) -> Option<&LLMJudgeTask>
fn get_trace_assertion_by_id(&self, id: &str) -> Option<&TraceAssertionTask>
fn get_agent_assertion_by_id(&self, id: &str) -> Option<&AgentAssertionTask>
fn get_task_by_id(&self, id: &str) -> Option<&dyn TaskAccessor>
fn has_llm_tasks(&self) -> bool
fn has_trace_assertions(&self) -> bool
fn has_agent_assertions(&self) -> bool
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".