chat

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const WRAPPER_END = `"items": [`

Variables

This section is empty.

Functions

func Handler

func Handler[T any, RESP any](i instructor.ChatInstructor[T, RESP], ctx context.Context, request *T, responseType any, response *RESP) error

func JSONStreamHandler

func JSONStreamHandler[T any, RESP any](i instructor.JSONStreamInstructor[T, RESP], ctx context.Context, request *T, responseType any, resp *RESP) (<-chan interface{}, error)

Types

type StreamWrapper

type StreamWrapper[T any] struct {
	Items []T `json:"items"`
}

Jump to

Keyboard shortcuts

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