foundry

package
v0.68.21 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package foundry adapts the OpenAI Realtime provider to Microsoft Foundry. Foundry serves the identical OpenAI Realtime WebSocket protocol from the Azure-hosted v1 surface (wss://<account-host>/openai/v1/realtime?model= <deployment>), so this package wraps live/openai and only changes identity, endpoint enforcement, and the default deployment name. Auth is the shared Foundry API key sent as a Bearer token, which the v1 surface accepts.

Index

Constants

View Source
const DefaultRealtimeModel = openai.DefaultRealtimeModel

DefaultRealtimeModel is the default Foundry realtime deployment name. Foundry's model parameter addresses a deployment, so users who named their deployment differently override this via config.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider struct {
	*openai.Provider
}

Provider implements live.LiveProvider against a Microsoft Foundry realtime deployment by delegating the full OpenAI Realtime protocol to live/openai.

func New

func New() *Provider

New returns a fresh Foundry realtime provider.

func (*Provider) Connect

func (p *Provider) Connect(ctx context.Context, cfg live.LiveConfig) error

Connect requires the Foundry realtime endpoint (wss://<account-host>/openai/v1/realtime) in cfg.Endpoint and then dials via the embedded OpenAI Realtime implementation.

func (*Provider) Name

func (p *Provider) Name() string

Name identifies the provider in Voice Agent logs.

func (*Provider) SessionCapabilities

func (p *Provider) SessionCapabilities() live.SessionCapabilities

Jump to

Keyboard shortcuts

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