clankercloud

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AskResult

type AskResult struct {
	BaseURL      string            `json:"baseUrl"`
	Status       int               `json:"status"`
	ContentType  string            `json:"contentType,omitempty"`
	Headers      map[string]string `json:"headers,omitempty"`
	FinalMessage string            `json:"finalMessage,omitempty"`
	RawBody      string            `json:"rawBody,omitempty"`
	Events       []SSEEvent        `json:"events,omitempty"`
}

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient() *Client

func (*Client) AskAgent

func (c *Client) AskAgent(ctx context.Context, question string, profile string) (*AskResult, error)

func (*Client) ResolveBaseURL

func (c *Client) ResolveBaseURL(ctx context.Context) (string, error)

type SSEEvent

type SSEEvent struct {
	Message string `json:"message,omitempty"`
	Done    bool   `json:"done,omitempty"`
	Raw     string `json:"raw,omitempty"`
}

Jump to

Keyboard shortcuts

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