protocol

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2026 License: MIT Imports: 0 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Protocol

type Protocol string

Protocol identifies an AI agent communication protocol.

const (
	ProtocolA2A    Protocol = "a2a"    // Google Agent-to-Agent
	ProtocolACP    Protocol = "acp"    // IBM Agent Communication Protocol
	ProtocolMCP    Protocol = "mcp"    // Anthropic Model Context Protocol
	ProtocolCustom Protocol = "custom" // User-defined protocol
)

func AllProtocols

func AllProtocols() []Protocol

AllProtocols returns all built-in protocols.

func (Protocol) String

func (p Protocol) String() string

func (Protocol) Valid

func (p Protocol) Valid() bool

Valid returns true if the protocol is a known type.

type Transport

type Transport string

Transport identifies a network transport.

const (
	TransportHTTP  Transport = "http"
	TransportGRPC  Transport = "grpc"
	TransportWS    Transport = "ws"
	TransportStdio Transport = "stdio"
)

func (Transport) String

func (t Transport) String() string

Jump to

Keyboard shortcuts

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