Skip to content

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

303 B
Raw Blame
import type { Meta } from "..";

export function hasCustomRequestContext(
  options: Pick<Meta["options"], "headers" | "actions" | "profile">,
): boolean {
  return (
    Object.keys(options.headers ?? {}).length > 0 ||
    (options.actions?.length ?? 0) > 0 ||
    options.profile !== undefined
  );
}