mirror of
https://github.com/openai/codex.git
synced 2026-11-14 21:40:39 +00:00
Mark tool search RPC as debug-only
This commit is contained in:
@@ -969,8 +969,8 @@ client_request_definitions! {
|
||||
response: v2::ListMcpServerStatusResponse,
|
||||
},
|
||||
|
||||
#[experimental("toolSearch/search")]
|
||||
ToolSearchSearch => "toolSearch/search" {
|
||||
#[experimental("toolSearch/debug/search")]
|
||||
ToolSearchSearch => "toolSearch/debug/search" {
|
||||
params: v2::ToolSearchSearchParams,
|
||||
serialization: thread_id(params.thread_id),
|
||||
response: v2::ToolSearchSearchResponse,
|
||||
@@ -3012,6 +3012,31 @@ mod tests {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn serialize_tool_search_debug_search() -> Result<()> {
|
||||
let request = ClientRequest::ToolSearchSearch {
|
||||
request_id: RequestId::Integer(9),
|
||||
params: v2::ToolSearchSearchParams {
|
||||
thread_id: "thread-123".to_string(),
|
||||
query: "openai_topics.list_topics".to_string(),
|
||||
limit: Some(8),
|
||||
},
|
||||
};
|
||||
assert_eq!(
|
||||
json!({
|
||||
"method": "toolSearch/debug/search",
|
||||
"id": 9,
|
||||
"params": {
|
||||
"threadId": "thread-123",
|
||||
"query": "openai_topics.list_topics",
|
||||
"limit": 8
|
||||
}
|
||||
}),
|
||||
serde_json::to_value(&request)?,
|
||||
);
|
||||
Ok(())
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn serialize_environment_add() -> Result<()> {
|
||||
let request = ClientRequest::EnvironmentAdd {
|
||||
|
||||
Reference in New Issue
Block a user