Skip to content

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

699 B
Raw Blame
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;
}