Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetFixturesDir ¶
func SetFixturesDir(dir string)
SetFixturesDir overrides the directory from which fixtures are loaded.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) CreateSession ¶
func (*Client) DeleteSession ¶
func (*Client) GenerateMessages ¶
func (c *Client) GenerateMessages(ctx context.Context, sessionID string, params GenerateParams) ([]CommitMessage, error)
type CommitMessage ¶
type CommitMessage = generation.Message
type GenerateParams ¶
type GenerateParams = generation.Request
type Generator ¶ added in v0.1.0
type Generator struct {
// contains filtered or unexported fields
}
func NewGenerator ¶ added in v0.1.0
func NewGenerator(config GeneratorConfig) *Generator
func (*Generator) Generate ¶ added in v0.1.0
func (g *Generator) Generate(ctx context.Context, request generation.Request, report generation.Reporter) (result generation.Result, err error)
type GeneratorConfig ¶ added in v0.1.0
type OCError ¶
type OCError struct {
Kind OCErrorKind
RequestType string
SessionID string
Agent string
Code string
Message string
Status int
RawJSON string
}
func (*OCError) RenderDetails ¶
type OCErrorKind ¶
type OCErrorKind string
const ( OCErrAPI OCErrorKind = "api_error" OCErrHTTP OCErrorKind = "http_error" OCErrNoStructuredOutput OCErrorKind = "no_structured_output" OCErrNoSubjects OCErrorKind = "no_subjects" )
Click to show internal directories.
Click to hide internal directories.