Help us shape the future of Go! Take the 2026 Go Developer Survey

utils

package
v0.34.0 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MessageConverter

type MessageConverter interface {
	// ConvertToSDK converts A2A messages to SDK format with type safety
	ConvertToSDK(messages []types.Message) ([]sdk.Message, error)

	// ConvertFromSDK converts SDK response back to A2A format
	ConvertFromSDK(response sdk.Message) (*types.Message, error)

	// ValidateMessagePart validates message part structure and type
	ValidateMessagePart(part types.Part) error
}

MessageConverter defines the interface for converting between A2A and SDK formats

func NewMessageConverter added in v0.14.0

func NewMessageConverter(logger *zap.Logger) MessageConverter

NewMessageConverter creates a new message converter

Jump to

Keyboard shortcuts

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