package
0.0.0-20240529215346-c86c8fe603c9
Repository: https://github.com/dgurns/clix.git
Documentation: pkg.go.dev

# Functions

NewOpenAi initializes a new OpenAI LLM client.

# Constants

FunctionNameRunTerminalCommand is a function name for running a terminal command.
RoleAssistant is the assistant role.
RoleSystem is used to set the system prompt.
RoleTool is used to send back tool responses to the LLM.
RoleUser is the user role.
ToolTypeFunction is a function tool.

# Variables

GPT4o is an alias to the latest GPT-4o model ID.
SystemPrompt is passed as context to the LLM.

# Structs

FunctionCall is a function that the assistant decides to call.
Message is a message sent to and from the LLM.
OpenAiLLM is an LLM that uses the OpenAI API.
ToolCall is a tool the assistant decides to call, which might be a function.

# Interfaces

LLM is an interface layer on top of LLMs like GPT3.5, Claude, etc.

# Type aliases

FunctionName is the name of the function, ie.
Role is the role of the message.
ToolType is the type of tool being used.