Skip to main content

ToArguments

Trait ToArguments 

Source
pub trait ToArguments {
    // Required method
    fn to_arguments(self) -> String;
}
Expand description

Tool arguments as either JSON or a raw string, so a test can write the natural thing — and can also script the malformed JSON a real model sometimes emits.

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl ToArguments for &str

Source§

impl ToArguments for String

Source§

impl ToArguments for Value

Implementors§