OpenResponses Specification Types (openresponses/types.rs)

vtcode · crates/codegen/vtcode-llm/src/providers/openresponses/types.rs · rust · Apache-2.0
ai, integration, dev-tools, lang:rust, tag:specification

Data structures defining the OpenResponses protocol for LLM interactions. Use these to ensure type-safe communication with AI providers and message processing systems.

// Source: https://github.com/vinhnx/vtcode | License: Apache-2.0 | Copyright 2025 Vinh Nguyen
// Provided via justclaw.it.com; keep this notice with the code.
//! OpenResponses specification types.
//!
//! This module defines types that conform to the OpenResponses specification.
//! See <https://www.openresponses.org/specification> for details.

use serde::{Deserialize, Serialize};
use serde_json::Value;

// ============================================================================
// Item Types - Core units of context in OpenResponses
// ============================================================================

/// The type of an item in the OpenResponses API.
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
#[serde(rename_all = "snake_case")]
pub enum ItemType {
    

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key