pub enum Misbehavior {
Show 17 variants
CallInContent,
CallInReasoning,
ArgsInvalidJson,
NoCall,
ParallelSerialised,
ParallelInContent,
SchemaFlattened,
LoopsOnTool,
IgnoresResult,
SchemaDroppedSilent,
SchemaRejected,
EnumIgnored,
PatternIgnored,
StreamTruncated,
EmbedNondeterministic,
StreamArgsSplitInvalid,
RuntimeParseError,
}Variants§
CallInContent
The tool call is written as JSON text in content, tool_calls stays empty.
CallInReasoning
The tool call appears in reasoning_content (or a <think> block), not tool_calls.
ArgsInvalidJson
arguments is not valid JSON.
NoCall
Answers in prose instead of calling a tool.
ParallelSerialised
Several requested tools: only the first is called.
ParallelInContent
Several requested tools: all calls written into content.
SchemaFlattened
Nested object/array arguments flattened to strings.
LoopsOnTool
After a tool result, calls the same tool again instead of answering.
IgnoresResult
After a tool result, answers without using it.
SchemaDroppedSilent
response_format ignored: HTTP 200 with prose.
SchemaRejected
response_format with a schema answered with HTTP 400.
EnumIgnored
enum constraints ignored.
PatternIgnored
pattern constraints ignored.
StreamTruncated
Stream ends mid tool call: no finish_reason, no [DONE].
EmbedNondeterministic
/v1/embeddings returns a different vector for the same text each time.
StreamArgsSplitInvalid
Streamed argument fragments do not concatenate to valid JSON.
RuntimeParseError
The runtime’s tool-call parser rejects the model’s output, as llama-server does
with “does not match the expected peg-native format”: HTTP 500, or an error
event in the middle of a stream.
Implementations§
Trait Implementations§
Source§impl Clone for Misbehavior
impl Clone for Misbehavior
impl Copy for Misbehavior
Source§impl Debug for Misbehavior
impl Debug for Misbehavior
impl Eq for Misbehavior
Source§impl Hash for Misbehavior
impl Hash for Misbehavior
Source§impl PartialEq for Misbehavior
impl PartialEq for Misbehavior
impl StructuralPartialEq for Misbehavior
Auto Trait Implementations§
impl Forget for Misbehavior
impl Freeze for Misbehavior
impl RefUnwindSafe for Misbehavior
impl Send for Misbehavior
impl Sync for Misbehavior
impl Unpin for Misbehavior
impl UnsafeUnpin for Misbehavior
impl UnwindSafe for Misbehavior
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.