mirror of
https://github.com/openai/codex.git
synced 2026-05-05 22:01:37 +03:00
Expose strongly-typed result for exec_command (#14183)
Summary - document output types for the various tool handlers and registry so the API exposes richer descriptions - update unified execution helpers and client tests to align with the new output metadata - clean up unused helpers across tool dispatch paths Testing - Not run (not requested)
This commit is contained in:
committed by
Michael Bolin
parent
f9cba5cb16
commit
00ea8aa7ee
@@ -160,6 +160,7 @@ pub(crate) mod tools {
|
||||
use codex_protocol::config_types::WebSearchUserLocationType;
|
||||
use serde::Deserialize;
|
||||
use serde::Serialize;
|
||||
use serde_json::Value;
|
||||
|
||||
/// When serialized as JSON, this produces a valid "Tool" in the OpenAI
|
||||
/// Responses API.
|
||||
@@ -268,6 +269,8 @@ pub(crate) mod tools {
|
||||
/// `properties` must be present in `required`.
|
||||
pub(crate) strict: bool,
|
||||
pub(crate) parameters: JsonSchema,
|
||||
#[serde(skip)]
|
||||
pub(crate) output_schema: Option<Value>,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user