Documentation ¶
Index ¶
- type Client
- type Result
- type Runner
- func (r *Runner) AssertResponded(t *testing.T)
- func (r *Runner) AssertStep(t *testing.T, resp runner.ChatResponse, err error)
- func (r *Runner) Load(script string) (types.Program, error)
- func (r *Runner) RespondWith(result ...Result)
- func (r *Runner) Run(script, input string) (string, error)
- func (r *Runner) RunDefault() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) Call ¶
func (c *Client) Call(_ context.Context, messageRequest types.CompletionRequest, _ chan<- types.CompletionStatus) (resp *types.CompletionMessage, respErr error)
type Result ¶
type Result struct { Text string Func types.CompletionFunctionCall Content []types.ContentPart Err error }
type Runner ¶
func (*Runner) AssertResponded ¶ added in v0.6.0
func (*Runner) AssertStep ¶ added in v0.9.5
func (*Runner) RespondWith ¶
func (*Runner) RunDefault ¶
Click to show internal directories.
Click to hide internal directories.