mirror of
https://github.com/openai/codex.git
synced 2026-12-06 01:10:58 +00:00
## Why Code Mode embeds TypeScript declarations in tool descriptions, so scripts that want to inspect a tool's argument and return types have to extract the declaration from the description. ## What changed Enable `features.code_mode_all_tools_schema` to expose callable names, descriptions, and TypeScript signatures as separate fields in `ALL_TOOLS`. Update the `exec` guidance to match the selected format, including when resuming a session. The flag is off by default. Carry signatures over gRPC and stdio. Reject execution requests with signatures when the host does not advertise support for them. ## Testing Add coverage for both catalog formats, `exec` guidance on resume, and signature preservation over gRPC and stdio. GitOrigin-RevId: dedaeec4a2563c23d432c324187ef20f6a0e5ea3
9 lines
207 B
Rust
9 lines
207 B
Rust
//! Selects how Code Mode presents tool metadata in ALL_TOOLS and its prompt.
|
|
|
|
#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)]
|
|
pub enum ToolCatalogFormat {
|
|
#[default]
|
|
Legacy,
|
|
Structured,
|
|
}
|