Documentation
¶
Overview ¶
Package forwardutil provides setup and session helpers for the forward examples.
Index ¶
- type Example
- func (s *Example) Environment(ctx context.Context, r *live.Run) (string, error)
- func (s *Example) FinishSession(ctx context.Context, id string) error
- func (s *Example) Identity(ctx context.Context, r *live.Run) (string, error)
- func (s *Example) NewSession(ctx context.Context, r *live.Run, params forward.SessionNewParams) (string, error)
- func (s *Example) SelectModel(ctx context.Context, r *live.Run) error
- func (s *Example) Send(ctx context.Context, id, prompt string) (string, error)
- func (s *Example) Template(ctx context.Context, r *live.Run, params forward.TemplateNewParams) (string, error)
- func (s *Example) Turn(ctx context.Context, r *live.Run, id, prompt string, expected []string, ...) error
- func (s *Example) WaitReply(ctx context.Context, r *live.Run, id, after string, streaming bool) (live.TurnResult, error)
- func (s *Example) WaitTurn(ctx context.Context, r *live.Run, id, after string, expected []string, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.