openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
18 lines (17 loc) • 558 B
JavaScript
import { o as optionalPositiveIntegerSchema } from "./typebox-X-jU33BZ.mjs";
import { Type } from "typebox";
//#region src/agents/tools/gateway-schema.ts
/**
* Shared Gateway tool schema fragments.
*
* Keeps gateway URL/token/timeout parameters aligned across tools that call Gateway methods.
*/
function gatewayCallOptionSchemaProperties() {
return {
gatewayUrl: Type.Optional(Type.String()),
gatewayToken: Type.Optional(Type.String()),
timeoutMs: optionalPositiveIntegerSchema()
};
}
//#endregion
export { gatewayCallOptionSchemaProperties as t };