responses

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package responses implements the OpenAI Responses API wire dialect.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Codec

type Codec struct {
	// contains filtered or unexported fields
}

func New

func New() Codec

func (Codec) AdmissionError

func (Codec) AdmissionError(status int, code, message string) []byte

func (Codec) Decode

func (Codec) Decode(payload []byte) (canonical.Request, error)

func (Codec) Dialect

func (Codec) Dialect() canonical.Dialect

func (Codec) NewAggregate

func (codec Codec) NewAggregate(responseID, model string, seeds ...dialect.StreamSeed) dialect.Aggregate

func (Codec) NewStream

func (codec Codec) NewStream(responseID, model string, seeds ...dialect.StreamSeed) dialect.Stream

func (Codec) OverloadedStatus

func (Codec) OverloadedStatus() int

Jump to

Keyboard shortcuts

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