Documentation
¶
Index ¶
- type Client
- func (c *Client) DeleteNode(ctx context.Context, id string) error
- func (c *Client) GetNode(ctx context.Context, id string) (*Node, error)
- func (c *Client) GetTree(ctx context.Context, id string) ([]Node, error)
- func (c *Client) Health(ctx context.Context) error
- func (c *Client) ListConversations(ctx context.Context) ([]Node, error)
- func (c *Client) Prompt(ctx context.Context, req PromptRequest) (*PromptResponse, error)
- func (c *Client) PromptFrom(ctx context.Context, nodeID string, req PromptRequest) (*PromptResponse, error)
- type Node
- type PromptRequest
- type PromptResponse
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 (*Client) ListConversations ¶
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 PromptResponse ¶
Click to show internal directories.
Click to hide internal directories.