client

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2025 License: MPL-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrChunkMessage

type ErrChunkMessage struct {
	Message string
}

func (ErrChunkMessage) Error

func (e ErrChunkMessage) Error() string

type ErrServerResponse

type ErrServerResponse struct {
	Err        error
	StatusCode int
}

func (ErrServerResponse) Error

func (e ErrServerResponse) Error() string

type ErrUnknownEvent

type ErrUnknownEvent struct {
	Event string
}

func (ErrUnknownEvent) Error

func (e ErrUnknownEvent) Error() string

type RemoteAgent

type RemoteAgent struct {
	BaseURL    string
	HttpClient *http.Client
}

func Default

func Default(baseUrl string) *RemoteAgent

func (*RemoteAgent) Description

func (c *RemoteAgent) Description() (string, error)

func (*RemoteAgent) Name

func (c *RemoteAgent) Name() (string, error)

func (*RemoteAgent) Run

func (c *RemoteAgent) Run(ctx context.Context, run *types.Run) error

func (*RemoteAgent) RunStreaming

func (c *RemoteAgent) RunStreaming(ctx context.Context, run *types.Run, bufferSize int) (streaming.ResponseChannel, error)

func (*RemoteAgent) RunStreamingWithParams

func (c *RemoteAgent) RunStreamingWithParams(ctx context.Context, bufferSize int, params ...types.Parameter) (*types.Run, streaming.ResponseChannel, error)

func (*RemoteAgent) RunWithParams

func (c *RemoteAgent) RunWithParams(ctx context.Context, params ...types.Parameter) (types.Run, error)

func (*RemoteAgent) Tools added in v0.0.2

func (c *RemoteAgent) Tools() (tools []tools.Tool, err error)

Jump to

Keyboard shortcuts

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