TypesafeProvider (src/index.ts)

composio · ts/packages/providers/typesafe/src/index.ts · typescript · MIT
ai, tag:knn-classified

TypeSafe provider for Composio, compiling tools into questions and executing decisions.

// Source: https://github.com/ComposioHQ/composio | License: MIT | Copyright 2025 Sampark Inc
// Provided via justclaw.it.com; keep this notice with the code.
/**
 * TypeSafe (Jev) Provider
 *
 * Jev is not an LLM and has no tool calling. It takes a state plus typed questions and
 * returns calibrated probabilities. This provider compiles Composio tools into questions,
 * asks Jev, and turns the answers into a tool call, a partial call, or an abstention.
 *
 * @packageDocumentation
 * @module providers/typesafe
 */
import {
  BaseNonAgenticProvider,
  type ExecuteToolFnOptions,
  type ExecuteToolModifiers,
  type Tool,
  type ToolCallExecutionTarget,
  type ToolCallSession,
  type ToolExecuteResponse,
  type beforeExecuteModifier,
} from '@composio/core';
import { z } from 'zod/v3';
import

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key