soma_codemode/runner_drive/openapi.rs
1use serde_json::Value;
2
3use crate::ToolError;
4
5pub async fn dispatch_openapi_call_outside_local_lock(
6 registry: &soma_openapi::OpenApiRegistry,
7 client: &reqwest::Client,
8 method: &str,
9 params: Value,
10) -> Result<Value, ToolError> {
11 crate::openapi_feature::dispatch_openapi_provider(registry, client, method, params).await
12}
13
14#[must_use]
15pub fn is_openapi_provider_call(id: &str) -> bool {
16 id.starts_with("openapi::")
17}