openai

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package openai provides an Adapter for the OpenAI Function Calling format. This is a stub implementation — full parsing will be added in a future iteration.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adapter

type Adapter struct{}

Adapter converts OpenAI function-calling tool definitions into []model.UnifiedTool.

func NewAdapter

func NewAdapter() *Adapter

NewAdapter returns a new OpenAI Adapter.

func (*Adapter) Parse

func (a *Adapter) Parse(_ context.Context, _ []byte) ([]model.UnifiedTool, error)

Parse implements adapter.Adapter. TODO: implement OpenAI function-calling format parsing.

func (*Adapter) Protocol

func (a *Adapter) Protocol() model.ProtocolType

Protocol implements adapter.Adapter.

Jump to

Keyboard shortcuts

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