Reminix TypeScript SDK - v0.7.1
    Preparing search index...

    Function fromToolLoopAgent

    • Create a Reminix Agent from a Vercel AI SDK ToolLoopAgent.

      Parameters

      • toolLoopAgent: ToolLoopAgent

        A Vercel AI SDK ToolLoopAgent instance

      • options: FromToolLoopAgentOptions

        Configuration options

      Returns Agent

      A Reminix Agent that wraps the ToolLoopAgent

      import { ToolLoopAgent } from 'ai';
      import { fromToolLoopAgent } from '@reminix/adapters/vercel-ai';
      import { serve } from '@reminix/runtime';

      const toolLoopAgent = new ToolLoopAgent({
      model: 'anthropic/claude-sonnet-4.5',
      instructions: 'You are a helpful assistant.',
      tools: { weather: weatherTool },
      });

      const agent = fromToolLoopAgent(toolLoopAgent, { name: 'assistant' });
      serve(agent);