eyrie

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: May 16, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(baseURL string, apiKey string) *Client

func (*Client) DeleteNode

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

func (*Client) GetNode

func (c *Client) GetNode(ctx context.Context, id string) (*Node, error)

func (*Client) GetTree

func (c *Client) GetTree(ctx context.Context, id string) ([]Node, error)

func (*Client) Health

func (c *Client) Health(ctx context.Context) error

func (*Client) ListConversations

func (c *Client) ListConversations(ctx context.Context) ([]Node, error)

func (*Client) Prompt

func (c *Client) Prompt(ctx context.Context, req PromptRequest) (*PromptResponse, error)

func (*Client) PromptFrom

func (c *Client) PromptFrom(ctx context.Context, nodeID string, req PromptRequest) (*PromptResponse, error)

type Node

type Node struct {
	ID        string `json:"id"`
	ParentID  string `json:"parent_id,omitempty"`
	RootID    string `json:"root_id,omitempty"`
	Sequence  int    `json:"sequence"`
	NodeType  string `json:"node_type"`
	Content   string `json:"content"`
	Model     string `json:"model,omitempty"`
	Title     string `json:"title,omitempty"`
	CreatedAt string `json:"created_at"`
}

type PromptRequest

type PromptRequest struct {
	Message      string `json:"message"`
	Model        string `json:"model,omitempty"`
	SystemPrompt string `json:"system_prompt,omitempty"`
	MaxTokens    int    `json:"max_tokens,omitempty"`
}

type PromptResponse

type PromptResponse struct {
	Content string `json:"content"`
	NodeID  string `json:"node_id"`
}

Jump to

Keyboard shortcuts

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