mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:31:09 +00:00
Expose invocation sources to extension tools (#40382)
## What changed - Add `ToolCallSource` to extension `ToolCall`s and propagate direct or Code Mode invocation metadata, including the runtime cell and nested tool-call IDs. - Add `ToolCall::response_byte_budget` so extension tools can bound direct-call responses by the host truncation policy while allowing Code Mode responses up to the tool's own limit. - Share the skills extension's response-size limit between its `list` and `read` tools. ## Testing - Verify that Code Mode source metadata is preserved when core constructs an extension tool call. GitOrigin-RevId: b10aef01be30d35b67bee3af24a1a4175c9ee112
This commit is contained in:
1 parent
6771ae7ac3
commit
e3609f2d02
14 files changed
+70
-24
No files matched your search
@@ -94,7 +94,7 @@ async fn notify_tool_finish_parts(
|
||||
}
|
||||
}
|
||||
|
||||
fn extension_tool_call_source(source: ToolCallSource) -> ExtensionToolCallSource {
|
||||
pub(crate) fn extension_tool_call_source(source: ToolCallSource) -> ExtensionToolCallSource {
|
||||
match source {
|
||||
ToolCallSource::Direct | ToolCallSource::DirectPlaintextMessage => {
|
||||
ExtensionToolCallSource::Direct
|
||||
|
||||
Reference in new issue
Block a user