oarust 0.11.0

GPU-first semantic computing engine written in Rust
// @generated by tool/gen/fn/generate.py; DO NOT EDIT.
// schema=net_types.json schema_version=1 generator_version=64
// schema_sha256=493e1b6ece355249c700568dae8b1f1abf037f96905575a7cde1b6acd86620f8
use super::mcp::McpCacheScope;
#[derive(Clone, Debug)]
pub struct McpServerConfig {
	/// Server name reported during initialization and discovery.
	pub name: String,
	/// Server version string.
	pub version: String,
	/// Optional human-readable instructions for the model.
	pub instructions: String,
	/// Maximum accepted and emitted message size in bytes (minimum 1024).
	pub max_message_bytes: usize,
	/// Maximum JSON nesting depth accepted during parsing (1–256).
	pub max_nesting_depth: u32,
	/// Maximum JSON node count accepted during parsing (minimum 1).
	pub max_json_nodes: u32,
	/// Cache TTL in milliseconds for discovery/list responses.
	pub cache_ttl_ms: u32,
	/// Cache scope for discovery/list responses.
	pub cache_scope: McpCacheScope,
}

#[derive(Clone, Debug, Default)]
pub struct McpToolResult {
	/// Human-readable or machine-readable text content.
	pub text: String,
	/// Optional structured JSON content (must be one valid JSON value when set).
	pub structured_content_json: String,
	/// Whether this represents an error condition.
	pub is_error: bool,
}