forwardutil

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2026 License: MIT Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package forwardutil provides setup and session helpers for the forward examples.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Example

type Example struct {
	Client forward.Client
	Config live.Config
	Model  string
}

func (*Example) Environment

func (s *Example) Environment(ctx context.Context, r *live.Run) (string, error)

func (*Example) FinishSession

func (s *Example) FinishSession(ctx context.Context, id string) error

func (*Example) Identity

func (s *Example) Identity(ctx context.Context, r *live.Run) (string, error)

func (*Example) NewSession

func (s *Example) NewSession(ctx context.Context, r *live.Run, params forward.SessionNewParams) (string, error)

func (*Example) SelectModel

func (s *Example) SelectModel(ctx context.Context, r *live.Run) error

func (*Example) Send

func (s *Example) Send(ctx context.Context, id, prompt string) (string, error)

func (*Example) Template

func (s *Example) Template(ctx context.Context, r *live.Run, params forward.TemplateNewParams) (string, error)

func (*Example) Turn

func (s *Example) Turn(ctx context.Context, r *live.Run, id, prompt string, expected []string, tool, stream bool) error

func (*Example) WaitReply

func (s *Example) WaitReply(ctx context.Context, r *live.Run, id, after string, streaming bool) (live.TurnResult, error)

func (*Example) WaitTurn

func (s *Example) WaitTurn(ctx context.Context, r *live.Run, id, after string, expected []string, tool, streaming bool) error

Jump to

Keyboard shortcuts

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