Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
TypeScript agentic-aiagentsaiai-agentsaiagentsdeveloper-toolsfunction-callinggpt-4javascriptjsllmllmopsmcppythonremote-mcp-serverssetypescript
import type {
SessionExecuteParams,
SessionSearchParams,
} from '@composio/client/resources/tool-router/session/session.mjs';
import type { InlineCustomToolsWirePayload } from '../types/customTool.types';
type InlineCustomToolsExperimental =
| SessionExecuteParams.Experimental
| SessionSearchParams.Experimental;
export function inlineCustomToolsExperimental<TExperimental extends InlineCustomToolsExperimental>(
payload?: InlineCustomToolsWirePayload
): TExperimental | undefined {
// Stainless generates endpoint-specific experimental types with the same custom
// definition shape, so this helper centralizes the structural cast.
return payload as TExperimental | undefined;
}