provider

package
v0.15.3 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package provider re-exports the provider types from omnillm-core for API compatibility.

This allows code using "github.com/plexusone/omnillm/provider" to work unchanged when switching between omnillm (thick) and omnillm-core (thin).

Index

Constants

View Source
const (
	RoleSystem    = core.RoleSystem
	RoleUser      = core.RoleUser
	RoleAssistant = core.RoleAssistant
	RoleTool      = core.RoleTool
)

Re-export role constants.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChatCompletionChoice

type ChatCompletionChoice = core.ChatCompletionChoice

ChatCompletionChoice represents a single choice in the response.

type ChatCompletionChunk

type ChatCompletionChunk = core.ChatCompletionChunk

ChatCompletionChunk represents a chunk in streaming response.

type ChatCompletionRequest

type ChatCompletionRequest = core.ChatCompletionRequest

ChatCompletionRequest represents a request for chat completion.

type ChatCompletionResponse

type ChatCompletionResponse = core.ChatCompletionResponse

ChatCompletionResponse represents a response from chat completion.

type ChatCompletionStream

type ChatCompletionStream = core.ChatCompletionStream

ChatCompletionStream is the interface for streaming responses.

type Message

type Message = core.Message

Message represents a chat message.

type Provider

type Provider = core.Provider

Provider is the interface for LLM providers.

type ResponseFormat

type ResponseFormat = core.ResponseFormat

ResponseFormat specifies the format of the response.

type Role

type Role = core.Role

Role represents the role of a message sender.

type Tool

type Tool = core.Tool

Tool represents a tool that can be called.

type ToolCall

type ToolCall = core.ToolCall

ToolCall represents a tool function call.

type ToolFunction

type ToolFunction = core.ToolFunction

ToolFunction represents the function being called.

type ToolSpec

type ToolSpec = core.ToolSpec

ToolSpec defines a tool specification.

type Usage

type Usage = core.Usage

Usage represents token usage information.

Jump to

Keyboard shortcuts

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