Platform extensions sketch (#4868)

Co-authored-by: Douwe Osinga <douwe@squareup.com>
Co-authored-by: Michael Neale <michael.neale@gmail.com>
This commit is contained in:
Douwe Osinga
2025-10-03 13:45:37 -04:00
committed by GitHub
parent 5b8efb5b9a
commit 96ded37e15
36 changed files with 742 additions and 847 deletions
+1 -1
View File
@@ -630,7 +630,7 @@ mod final_output_tool_tests {
};
let (_, result) = agent
.dispatch_tool_call(tool_call, "request_id".to_string(), None, &None)
.dispatch_tool_call(tool_call, "request_id".to_string(), None)
.await;
assert!(result.is_ok(), "Tool call should succeed");
@@ -176,7 +176,8 @@ mod tests {
"extensions": [
{
"type": "builtin",
"name": "developer"
"name": "developer",
"description": "developer"
}
]
});
@@ -421,6 +422,7 @@ mod tests {
{
"type": "stdio",
"name": "custom",
"description": "Custom stdio",
"cmd": "echo",
"args": ["test"]
}
+1 -1
View File
@@ -188,7 +188,7 @@ async fn test_replayed_session(
let envs = Envs::new(env);
let extension_config = ExtensionConfig::Stdio {
name: "test".to_string(),
description: Some("Test".to_string()),
description: "Test".to_string(),
cmd,
args,
envs,
+1 -1
View File
@@ -817,7 +817,7 @@ async fn test_schedule_tool_dispatch() {
};
let (request_id, result) = agent
.dispatch_tool_call(tool_call, "test_dispatch".to_string(), None, &None)
.dispatch_tool_call(tool_call, "test_dispatch".to_string(), None)
.await;
assert_eq!(request_id, "test_dispatch");
assert!(result.is_ok());