adachsoft/internet-search-tool

AI tool abstraction for internet search implementing adachsoft/ai-tool-call SPI.

Installs: 1

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Forks: 0

pkg:composer/adachsoft/internet-search-tool

v0.1.0 2026-02-14 06:30 UTC

This package is not auto-updated.

Last update: 2026-02-15 03:51:32 UTC


README

A library providing an AI tool abstraction for internet search, implementing the adachsoft/ai-tool-call SPI. It delegates search queries to an external client implementing adachsoft/internet-search-contract.

Features

  • Implements ToolInterface and ToolFactoryInterface from adachsoft/ai-tool-call.
  • Provides internet_search tool for AI agents.
  • Delegates execution to any InternetSearchClientInterface implementation.
  • Framework-agnostic.

Installation

composer require adachsoft/internet-search-tool

Usage

Register the tool factory in your AiToolCallFacade:

use AdachSoft\AiToolCall\PublicApi\Builder\AiToolCallFacadeBuilder;
use AdachSoft\InternetSearchTool\InternetSearchToolFactory;
use AdachSoft\InternetSearchContract\InternetSearchClientInterface;

/** @var InternetSearchClientInterface $client */
$client = ...; // Your implementation of the client

$facade = AiToolCallFacadeBuilder::new()
    ->withSpiFactories([
        new InternetSearchToolFactory($client),
    ])
    ->build();

// The tool 'internet_search' is now available.

License

MIT