llm

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecuteToolCall

func ExecuteToolCall(tc ToolCall, workingDirectory string, sessionID string) (tools.ToolResponse, error)

Types

type Chat

type Chat struct {
	Role       string
	Content    string
	ToolCallID string
}

type Response

type Response struct {
	Text             string
	ToolCalls        []ToolCall
	CompleteResponse *openai.ChatCompletion
}

func ApiCall

func ApiCall(ctx context.Context, input string, chats []Chat, mode string) Response

type ToolCall

type ToolCall struct {
	ID        string
	Name      string
	Arguments string
}

Jump to

Keyboard shortcuts

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