pub enum KnownIdPrefix {
Show 17 variants
ClientToolItem,
Call,
FunctionCallItem,
FunctionCallOutputItem,
CustomToolCallOutputItem,
ToolSearchCallItem,
ToolSearchOutputItem,
AdditionalToolsItem,
CompactionItem,
ImageGenerationItem,
LocalShellItem,
WebSearchItem,
CallToolCall,
Reasoning,
Message,
Response,
Tool,
}Expand description
Prefix conventions used when generating ids, not universal input validators.
Sources: samples/codex/codex-rs/protocol/src/models.rs id_prefix();
upstream_docs OpenAI Responses examples and Claude tool_use examples.
Existing legal ids are not rejected just for lacking these prefixes.
Exact prefixes used by known wire ids. Matching is boundary-aware:
call_foo is recognized while callback is not.
Variants§
ClientToolItem
Gateway-generated item ID for a bound client action, not an upstream convention.
Call
FunctionCallItem
FunctionCallOutputItem
CustomToolCallOutputItem
ToolSearchCallItem
ToolSearchOutputItem
AdditionalToolsItem
CompactionItem
ImageGenerationItem
LocalShellItem
WebSearchItem
CallToolCall
Reasoning
Message
Response
Tool
Implementations§
Trait Implementations§
Source§impl Clone for KnownIdPrefix
impl Clone for KnownIdPrefix
impl Copy for KnownIdPrefix
Source§impl Debug for KnownIdPrefix
impl Debug for KnownIdPrefix
Source§impl<'de> Deserialize<'de> for KnownIdPrefix
impl<'de> Deserialize<'de> for KnownIdPrefix
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for KnownIdPrefix
Source§impl Hash for KnownIdPrefix
impl Hash for KnownIdPrefix
Source§impl PartialEq for KnownIdPrefix
impl PartialEq for KnownIdPrefix
Source§impl Serialize for KnownIdPrefix
impl Serialize for KnownIdPrefix
impl StructuralPartialEq for KnownIdPrefix
Auto Trait Implementations§
impl Freeze for KnownIdPrefix
impl RefUnwindSafe for KnownIdPrefix
impl Send for KnownIdPrefix
impl Sync for KnownIdPrefix
impl Unpin for KnownIdPrefix
impl UnsafeUnpin for KnownIdPrefix
impl UnwindSafe for KnownIdPrefix
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