pub struct Dialect {
pub name: &'static str,
pub parse: ParseFn,
pub denial: DenialFn,
pub filter: FilterFn,
}Expand description
The codec functions for one framework dialect.
Fields§
§name: &'static strCanonical dialect name (openai, anthropic, langchain,
pydantic-ai, mcp).
parse: ParseFnParse the framework’s tool-call payload into normalized requests.
denial: DenialFnRender a denied call in the framework’s feedback shape.
filter: FilterFnFilter a tool-definition list by name predicate.
Auto Trait Implementations§
impl Freeze for Dialect
impl RefUnwindSafe for Dialect
impl Send for Dialect
impl Sync for Dialect
impl Unpin for Dialect
impl UnsafeUnpin for Dialect
impl UnwindSafe for Dialect
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