adapter

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 4, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package adapter defines the protocol-agnostic Adapter interface and the registry used to select the correct adapter at runtime.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adapter

type Adapter interface {
	// Parse accepts the raw bytes of a tool-list response (e.g. MCP
	// tools/list JSON) and returns the normalised tool representations.
	Parse(ctx context.Context, data []byte) ([]model.UnifiedTool, error)

	// Protocol returns the ProtocolType this adapter handles.
	Protocol() model.ProtocolType
}

Adapter converts a protocol-specific tool list payload into a slice of UnifiedTool values that the analyzer can process.

Directories

Path Synopsis
Package mcp provides an Adapter that parses MCP tools/list responses.
Package mcp provides an Adapter that parses MCP tools/list responses.
Package openai provides an Adapter for the OpenAI Function Calling format.
Package openai provides an Adapter for the OpenAI Function Calling format.
Package skills provides an Adapter for Markdown-based AI Skills format.
Package skills provides an Adapter for Markdown-based AI Skills format.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL