meta

package
v0.37.1 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package meta implements the Meta Model API (Muse Spark) transport.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Meta

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

Meta is the Meta Model API provider. Both credential kinds talk to api.meta.ai with a bearer key: a subscription login differs only in that its key is minted from an OAuth token and can be re-minted when rejected.

func New

func New(apiKey string) *Meta

New creates a Meta provider for META_API_KEY credentials.

func NewOAuth

func NewOAuth(mintedKey string, remint func(rejectedKey string) (string, error)) *Meta

NewOAuth creates a Meta provider for a Muse subscription. The key is the one minted at login; remint exchanges a rejected key for a fresh one.

func (*Meta) Stream

func (m *Meta) Stream(ctx context.Context, req core.Request) (<-chan core.AssistantEvent, error)

Stream sends a stateless request to Meta's Responses endpoint.

func (*Meta) SupportsDocuments

func (*Meta) SupportsDocuments() bool

SupportsDocuments is true: input_file parts carrying a base64 data URL were verified against /v1/responses, and the model read the attached file.

Jump to

Keyboard shortcuts

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