Trait CreateDefaultChatConstraintsForType

Source
pub trait CreateDefaultChatConstraintsForType<T>: StructuredChatModel<Self::DefaultConstraints> {
    type DefaultConstraints: ModelConstraints<Output = T>;

    // Required method
    fn create_default_constraints() -> Self::DefaultConstraints;
}
Expand description

A trait that defines the default constraints for a type with this chat model.

Required Associated Types§

Source

type DefaultConstraints: ModelConstraints<Output = T>

The default constraints for this type that work with this chat model.

Required Methods§

Source

fn create_default_constraints() -> Self::DefaultConstraints

Create Self::DefaultConstraints which parse the type T for this chat model.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§