ai

package
v1.18.0 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AI

type AI struct {
	mock.Mock
}

AI is an autogenerated mock type for the AI type

func NewAI

func NewAI(t interface {
	mock.TestingT
	Cleanup(func())
}) *AI

NewAI creates a new instance of AI. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*AI) Agent

func (_m *AI) Agent(agent ai.Agent, options ...ai.Option) (ai.Conversation, error)

Agent provides a mock function with given fields: agent, options

func (*AI) Audio

func (_m *AI) Audio(prompt string) ai.AudioRequest

Audio provides a mock function with given fields: prompt

func (*AI) EXPECT

func (_m *AI) EXPECT() *AI_Expecter

func (*AI) Image

func (_m *AI) Image(prompt string) ai.ImageRequest

Image provides a mock function with given fields: prompt

func (*AI) Transcription

func (_m *AI) Transcription(file ai.StorableFile) ai.TranscriptionRequest

Transcription provides a mock function with given fields: file

func (*AI) WithContext

func (_m *AI) WithContext(ctx context.Context) ai.AI

WithContext provides a mock function with given fields: ctx

type AI_Agent_Call

type AI_Agent_Call struct {
	*mock.Call
}

AI_Agent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Agent'

func (*AI_Agent_Call) Return

func (_c *AI_Agent_Call) Return(_a0 ai.Conversation, _a1 error) *AI_Agent_Call

func (*AI_Agent_Call) Run

func (_c *AI_Agent_Call) Run(run func(agent ai.Agent, options ...ai.Option)) *AI_Agent_Call

func (*AI_Agent_Call) RunAndReturn

func (_c *AI_Agent_Call) RunAndReturn(run func(ai.Agent, ...ai.Option) (ai.Conversation, error)) *AI_Agent_Call

type AI_Audio_Call

type AI_Audio_Call struct {
	*mock.Call
}

AI_Audio_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Audio'

func (*AI_Audio_Call) Return

func (_c *AI_Audio_Call) Return(_a0 ai.AudioRequest) *AI_Audio_Call

func (*AI_Audio_Call) Run

func (_c *AI_Audio_Call) Run(run func(prompt string)) *AI_Audio_Call

func (*AI_Audio_Call) RunAndReturn

func (_c *AI_Audio_Call) RunAndReturn(run func(string) ai.AudioRequest) *AI_Audio_Call

type AI_Expecter

type AI_Expecter struct {
	// contains filtered or unexported fields
}

func (*AI_Expecter) Agent

func (_e *AI_Expecter) Agent(agent interface{}, options ...interface{}) *AI_Agent_Call

Agent is a helper method to define mock.On call

  • agent ai.Agent
  • options ...ai.Option

func (*AI_Expecter) Audio

func (_e *AI_Expecter) Audio(prompt interface{}) *AI_Audio_Call

Audio is a helper method to define mock.On call

  • prompt string

func (*AI_Expecter) Image

func (_e *AI_Expecter) Image(prompt interface{}) *AI_Image_Call

Image is a helper method to define mock.On call

  • prompt string

func (*AI_Expecter) Transcription

func (_e *AI_Expecter) Transcription(file interface{}) *AI_Transcription_Call

Transcription is a helper method to define mock.On call

  • file ai.StorableFile

func (*AI_Expecter) WithContext

func (_e *AI_Expecter) WithContext(ctx interface{}) *AI_WithContext_Call

WithContext is a helper method to define mock.On call

  • ctx context.Context

type AI_Image_Call

type AI_Image_Call struct {
	*mock.Call
}

AI_Image_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Image'

func (*AI_Image_Call) Return

func (_c *AI_Image_Call) Return(_a0 ai.ImageRequest) *AI_Image_Call

func (*AI_Image_Call) Run

func (_c *AI_Image_Call) Run(run func(prompt string)) *AI_Image_Call

func (*AI_Image_Call) RunAndReturn

func (_c *AI_Image_Call) RunAndReturn(run func(string) ai.ImageRequest) *AI_Image_Call

type AI_Transcription_Call

type AI_Transcription_Call struct {
	*mock.Call
}

AI_Transcription_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Transcription'

func (*AI_Transcription_Call) Return

func (*AI_Transcription_Call) Run

func (*AI_Transcription_Call) RunAndReturn

type AI_WithContext_Call

type AI_WithContext_Call struct {
	*mock.Call
}

AI_WithContext_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithContext'

func (*AI_WithContext_Call) Return

func (_c *AI_WithContext_Call) Return(_a0 ai.AI) *AI_WithContext_Call

func (*AI_WithContext_Call) Run

func (_c *AI_WithContext_Call) Run(run func(ctx context.Context)) *AI_WithContext_Call

func (*AI_WithContext_Call) RunAndReturn

func (_c *AI_WithContext_Call) RunAndReturn(run func(context.Context) ai.AI) *AI_WithContext_Call

type Agent

type Agent struct {
	mock.Mock
}

Agent is an autogenerated mock type for the Agent type

func NewAgent

func NewAgent(t interface {
	mock.TestingT
	Cleanup(func())
}) *Agent

NewAgent creates a new instance of Agent. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Agent) EXPECT

func (_m *Agent) EXPECT() *Agent_Expecter

func (*Agent) Instructions

func (_m *Agent) Instructions() string

Instructions provides a mock function with no fields

func (*Agent) Messages

func (_m *Agent) Messages() []ai.Message

Messages provides a mock function with no fields

func (*Agent) Middleware

func (_m *Agent) Middleware() []ai.Middleware

Middleware provides a mock function with no fields

func (*Agent) Tools

func (_m *Agent) Tools() []ai.Tool

Tools provides a mock function with no fields

type AgentResponse

type AgentResponse struct {
	mock.Mock
}

AgentResponse is an autogenerated mock type for the AgentResponse type

func NewAgentResponse

func NewAgentResponse(t interface {
	mock.TestingT
	Cleanup(func())
}) *AgentResponse

NewAgentResponse creates a new instance of AgentResponse. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*AgentResponse) EXPECT

func (_m *AgentResponse) EXPECT() *AgentResponse_Expecter

func (*AgentResponse) Text

func (_m *AgentResponse) Text() string

Text provides a mock function with no fields

func (*AgentResponse) Then

func (_m *AgentResponse) Then(callback func(ai.AgentResponse)) ai.AgentResponse

Then provides a mock function with given fields: callback

func (*AgentResponse) ToolCalls

func (_m *AgentResponse) ToolCalls() []ai.ToolCall

ToolCalls provides a mock function with no fields

func (*AgentResponse) Usage

func (_m *AgentResponse) Usage() ai.Usage

Usage provides a mock function with no fields

type AgentResponse_Expecter

type AgentResponse_Expecter struct {
	// contains filtered or unexported fields
}

func (*AgentResponse_Expecter) Text

Text is a helper method to define mock.On call

func (*AgentResponse_Expecter) Then

func (_e *AgentResponse_Expecter) Then(callback interface{}) *AgentResponse_Then_Call

Then is a helper method to define mock.On call

  • callback func(ai.AgentResponse)

func (*AgentResponse_Expecter) ToolCalls

ToolCalls is a helper method to define mock.On call

func (*AgentResponse_Expecter) Usage

Usage is a helper method to define mock.On call

type AgentResponse_Text_Call

type AgentResponse_Text_Call struct {
	*mock.Call
}

AgentResponse_Text_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Text'

func (*AgentResponse_Text_Call) Return

func (*AgentResponse_Text_Call) Run

func (_c *AgentResponse_Text_Call) Run(run func()) *AgentResponse_Text_Call

func (*AgentResponse_Text_Call) RunAndReturn

func (_c *AgentResponse_Text_Call) RunAndReturn(run func() string) *AgentResponse_Text_Call

type AgentResponse_Then_Call

type AgentResponse_Then_Call struct {
	*mock.Call
}

AgentResponse_Then_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Then'

func (*AgentResponse_Then_Call) Return

func (*AgentResponse_Then_Call) Run

func (_c *AgentResponse_Then_Call) Run(run func(callback func(ai.AgentResponse))) *AgentResponse_Then_Call

func (*AgentResponse_Then_Call) RunAndReturn

type AgentResponse_ToolCalls_Call

type AgentResponse_ToolCalls_Call struct {
	*mock.Call
}

AgentResponse_ToolCalls_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ToolCalls'

func (*AgentResponse_ToolCalls_Call) Return

func (*AgentResponse_ToolCalls_Call) Run

func (*AgentResponse_ToolCalls_Call) RunAndReturn

func (_c *AgentResponse_ToolCalls_Call) RunAndReturn(run func() []ai.ToolCall) *AgentResponse_ToolCalls_Call

type AgentResponse_Usage_Call

type AgentResponse_Usage_Call struct {
	*mock.Call
}

AgentResponse_Usage_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Usage'

func (*AgentResponse_Usage_Call) Return

func (*AgentResponse_Usage_Call) Run

func (*AgentResponse_Usage_Call) RunAndReturn

func (_c *AgentResponse_Usage_Call) RunAndReturn(run func() ai.Usage) *AgentResponse_Usage_Call

type Agent_Expecter

type Agent_Expecter struct {
	// contains filtered or unexported fields
}

func (*Agent_Expecter) Instructions

func (_e *Agent_Expecter) Instructions() *Agent_Instructions_Call

Instructions is a helper method to define mock.On call

func (*Agent_Expecter) Messages

func (_e *Agent_Expecter) Messages() *Agent_Messages_Call

Messages is a helper method to define mock.On call

func (*Agent_Expecter) Middleware

func (_e *Agent_Expecter) Middleware() *Agent_Middleware_Call

Middleware is a helper method to define mock.On call

func (*Agent_Expecter) Tools

func (_e *Agent_Expecter) Tools() *Agent_Tools_Call

Tools is a helper method to define mock.On call

type Agent_Instructions_Call

type Agent_Instructions_Call struct {
	*mock.Call
}

Agent_Instructions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Instructions'

func (*Agent_Instructions_Call) Return

func (*Agent_Instructions_Call) Run

func (_c *Agent_Instructions_Call) Run(run func()) *Agent_Instructions_Call

func (*Agent_Instructions_Call) RunAndReturn

func (_c *Agent_Instructions_Call) RunAndReturn(run func() string) *Agent_Instructions_Call

type Agent_Messages_Call

type Agent_Messages_Call struct {
	*mock.Call
}

Agent_Messages_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Messages'

func (*Agent_Messages_Call) Return

func (*Agent_Messages_Call) Run

func (_c *Agent_Messages_Call) Run(run func()) *Agent_Messages_Call

func (*Agent_Messages_Call) RunAndReturn

func (_c *Agent_Messages_Call) RunAndReturn(run func() []ai.Message) *Agent_Messages_Call

type Agent_Middleware_Call

type Agent_Middleware_Call struct {
	*mock.Call
}

Agent_Middleware_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Middleware'

func (*Agent_Middleware_Call) Return

func (*Agent_Middleware_Call) Run

func (_c *Agent_Middleware_Call) Run(run func()) *Agent_Middleware_Call

func (*Agent_Middleware_Call) RunAndReturn

func (_c *Agent_Middleware_Call) RunAndReturn(run func() []ai.Middleware) *Agent_Middleware_Call

type Agent_Tools_Call

type Agent_Tools_Call struct {
	*mock.Call
}

Agent_Tools_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Tools'

func (*Agent_Tools_Call) Return

func (_c *Agent_Tools_Call) Return(_a0 []ai.Tool) *Agent_Tools_Call

func (*Agent_Tools_Call) Run

func (_c *Agent_Tools_Call) Run(run func()) *Agent_Tools_Call

func (*Agent_Tools_Call) RunAndReturn

func (_c *Agent_Tools_Call) RunAndReturn(run func() []ai.Tool) *Agent_Tools_Call

type Attachment

type Attachment struct {
	mock.Mock
}

Attachment is an autogenerated mock type for the Attachment type

func NewAttachment

func NewAttachment(t interface {
	mock.TestingT
	Cleanup(func())
}) *Attachment

NewAttachment creates a new instance of Attachment. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Attachment) Content

func (_m *Attachment) Content(ctx context.Context) ([]byte, error)

Content provides a mock function with given fields: ctx

func (*Attachment) EXPECT

func (_m *Attachment) EXPECT() *Attachment_Expecter

func (*Attachment) FileName

func (_m *Attachment) FileName() string

FileName provides a mock function with no fields

func (*Attachment) Kind

func (_m *Attachment) Kind() ai.AttachmentKind

Kind provides a mock function with no fields

func (*Attachment) MimeType

func (_m *Attachment) MimeType() string

MimeType provides a mock function with no fields

func (*Attachment) Put

func (_m *Attachment) Put(ctx context.Context, options ...ai.Option) (ai.FileResponse, error)

Put provides a mock function with given fields: ctx, options

type AttachmentOption

type AttachmentOption struct {
	mock.Mock
}

AttachmentOption is an autogenerated mock type for the AttachmentOption type

func NewAttachmentOption

func NewAttachmentOption(t interface {
	mock.TestingT
	Cleanup(func())
}) *AttachmentOption

NewAttachmentOption creates a new instance of AttachmentOption. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*AttachmentOption) EXPECT

func (*AttachmentOption) Execute

func (_m *AttachmentOption) Execute(options *ai.AttachmentOptions)

Execute provides a mock function with given fields: options

type AttachmentOption_Execute_Call

type AttachmentOption_Execute_Call struct {
	*mock.Call
}

AttachmentOption_Execute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Execute'

func (*AttachmentOption_Execute_Call) Return

func (*AttachmentOption_Execute_Call) Run

func (*AttachmentOption_Execute_Call) RunAndReturn

type AttachmentOption_Expecter

type AttachmentOption_Expecter struct {
	// contains filtered or unexported fields
}

func (*AttachmentOption_Expecter) Execute

func (_e *AttachmentOption_Expecter) Execute(options interface{}) *AttachmentOption_Execute_Call

Execute is a helper method to define mock.On call

  • options *ai.AttachmentOptions

type Attachment_Content_Call

type Attachment_Content_Call struct {
	*mock.Call
}

Attachment_Content_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Content'

func (*Attachment_Content_Call) Return

func (*Attachment_Content_Call) Run

func (*Attachment_Content_Call) RunAndReturn

func (_c *Attachment_Content_Call) RunAndReturn(run func(context.Context) ([]byte, error)) *Attachment_Content_Call

type Attachment_Expecter

type Attachment_Expecter struct {
	// contains filtered or unexported fields
}

func (*Attachment_Expecter) Content

func (_e *Attachment_Expecter) Content(ctx interface{}) *Attachment_Content_Call

Content is a helper method to define mock.On call

  • ctx context.Context

func (*Attachment_Expecter) FileName

FileName is a helper method to define mock.On call

func (*Attachment_Expecter) Kind

Kind is a helper method to define mock.On call

func (*Attachment_Expecter) MimeType

MimeType is a helper method to define mock.On call

func (*Attachment_Expecter) Put

func (_e *Attachment_Expecter) Put(ctx interface{}, options ...interface{}) *Attachment_Put_Call

Put is a helper method to define mock.On call

  • ctx context.Context
  • options ...ai.Option

type Attachment_FileName_Call

type Attachment_FileName_Call struct {
	*mock.Call
}

Attachment_FileName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FileName'

func (*Attachment_FileName_Call) Return

func (*Attachment_FileName_Call) Run

func (*Attachment_FileName_Call) RunAndReturn

func (_c *Attachment_FileName_Call) RunAndReturn(run func() string) *Attachment_FileName_Call

type Attachment_Kind_Call

type Attachment_Kind_Call struct {
	*mock.Call
}

Attachment_Kind_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Kind'

func (*Attachment_Kind_Call) Return

func (*Attachment_Kind_Call) Run

func (_c *Attachment_Kind_Call) Run(run func()) *Attachment_Kind_Call

func (*Attachment_Kind_Call) RunAndReturn

func (_c *Attachment_Kind_Call) RunAndReturn(run func() ai.AttachmentKind) *Attachment_Kind_Call

type Attachment_MimeType_Call

type Attachment_MimeType_Call struct {
	*mock.Call
}

Attachment_MimeType_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MimeType'

func (*Attachment_MimeType_Call) Return

func (*Attachment_MimeType_Call) Run

func (*Attachment_MimeType_Call) RunAndReturn

func (_c *Attachment_MimeType_Call) RunAndReturn(run func() string) *Attachment_MimeType_Call

type Attachment_Put_Call

type Attachment_Put_Call struct {
	*mock.Call
}

Attachment_Put_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Put'

func (*Attachment_Put_Call) Return

func (*Attachment_Put_Call) Run

func (_c *Attachment_Put_Call) Run(run func(ctx context.Context, options ...ai.Option)) *Attachment_Put_Call

func (*Attachment_Put_Call) RunAndReturn

func (_c *Attachment_Put_Call) RunAndReturn(run func(context.Context, ...ai.Option) (ai.FileResponse, error)) *Attachment_Put_Call

type AudioProvider

type AudioProvider struct {
	mock.Mock
}

AudioProvider is an autogenerated mock type for the AudioProvider type

func NewAudioProvider

func NewAudioProvider(t interface {
	mock.TestingT
	Cleanup(func())
}) *AudioProvider

NewAudioProvider creates a new instance of AudioProvider. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*AudioProvider) Audio

func (_m *AudioProvider) Audio(ctx context.Context, prompt ai.AudioPrompt) (ai.AudioResponse, error)

Audio provides a mock function with given fields: ctx, prompt

func (*AudioProvider) EXPECT

func (_m *AudioProvider) EXPECT() *AudioProvider_Expecter

type AudioProvider_Audio_Call

type AudioProvider_Audio_Call struct {
	*mock.Call
}

AudioProvider_Audio_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Audio'

func (*AudioProvider_Audio_Call) Return

func (*AudioProvider_Audio_Call) Run

func (*AudioProvider_Audio_Call) RunAndReturn

type AudioProvider_Expecter

type AudioProvider_Expecter struct {
	// contains filtered or unexported fields
}

func (*AudioProvider_Expecter) Audio

func (_e *AudioProvider_Expecter) Audio(ctx interface{}, prompt interface{}) *AudioProvider_Audio_Call

Audio is a helper method to define mock.On call

  • ctx context.Context
  • prompt ai.AudioPrompt

type AudioRequest

type AudioRequest struct {
	mock.Mock
}

AudioRequest is an autogenerated mock type for the AudioRequest type

func NewAudioRequest

func NewAudioRequest(t interface {
	mock.TestingT
	Cleanup(func())
}) *AudioRequest

NewAudioRequest creates a new instance of AudioRequest. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*AudioRequest) EXPECT

func (_m *AudioRequest) EXPECT() *AudioRequest_Expecter

func (*AudioRequest) Female

func (_m *AudioRequest) Female() ai.AudioRequest

Female provides a mock function with no fields

func (*AudioRequest) Generate

func (_m *AudioRequest) Generate() (ai.AudioResponse, error)

Generate provides a mock function with no fields

func (*AudioRequest) Instructions

func (_m *AudioRequest) Instructions(instructions string) ai.AudioRequest

Instructions provides a mock function with given fields: instructions

func (*AudioRequest) Male

func (_m *AudioRequest) Male() ai.AudioRequest

Male provides a mock function with no fields

func (*AudioRequest) Model

func (_m *AudioRequest) Model(model string) ai.AudioRequest

Model provides a mock function with given fields: model

func (*AudioRequest) Provider

func (_m *AudioRequest) Provider(provider string, failovers ...string) ai.AudioRequest

Provider provides a mock function with given fields: provider, failovers

func (*AudioRequest) Store

func (_m *AudioRequest) Store(disk ...string) (string, error)

Store provides a mock function with given fields: disk

func (*AudioRequest) StoreAs

func (_m *AudioRequest) StoreAs(path string, disk ...string) (string, error)

StoreAs provides a mock function with given fields: path, disk

func (*AudioRequest) Timeout

func (_m *AudioRequest) Timeout(timeout time.Duration) ai.AudioRequest

Timeout provides a mock function with given fields: timeout

func (*AudioRequest) Voice

func (_m *AudioRequest) Voice(voice string) ai.AudioRequest

Voice provides a mock function with given fields: voice

type AudioRequest_Expecter

type AudioRequest_Expecter struct {
	// contains filtered or unexported fields
}

func (*AudioRequest_Expecter) Female

Female is a helper method to define mock.On call

func (*AudioRequest_Expecter) Generate

Generate is a helper method to define mock.On call

func (*AudioRequest_Expecter) Instructions

func (_e *AudioRequest_Expecter) Instructions(instructions interface{}) *AudioRequest_Instructions_Call

Instructions is a helper method to define mock.On call

  • instructions string

func (*AudioRequest_Expecter) Male

Male is a helper method to define mock.On call

func (*AudioRequest_Expecter) Model

func (_e *AudioRequest_Expecter) Model(model interface{}) *AudioRequest_Model_Call

Model is a helper method to define mock.On call

  • model string

func (*AudioRequest_Expecter) Provider

func (_e *AudioRequest_Expecter) Provider(provider interface{}, failovers ...interface{}) *AudioRequest_Provider_Call

Provider is a helper method to define mock.On call

  • provider string
  • failovers ...string

func (*AudioRequest_Expecter) Store

func (_e *AudioRequest_Expecter) Store(disk ...interface{}) *AudioRequest_Store_Call

Store is a helper method to define mock.On call

  • disk ...string

func (*AudioRequest_Expecter) StoreAs

func (_e *AudioRequest_Expecter) StoreAs(path interface{}, disk ...interface{}) *AudioRequest_StoreAs_Call

StoreAs is a helper method to define mock.On call

  • path string
  • disk ...string

func (*AudioRequest_Expecter) Timeout

func (_e *AudioRequest_Expecter) Timeout(timeout interface{}) *AudioRequest_Timeout_Call

Timeout is a helper method to define mock.On call

  • timeout time.Duration

func (*AudioRequest_Expecter) Voice

func (_e *AudioRequest_Expecter) Voice(voice interface{}) *AudioRequest_Voice_Call

Voice is a helper method to define mock.On call

  • voice string

type AudioRequest_Female_Call

type AudioRequest_Female_Call struct {
	*mock.Call
}

AudioRequest_Female_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Female'

func (*AudioRequest_Female_Call) Return

func (*AudioRequest_Female_Call) Run

func (*AudioRequest_Female_Call) RunAndReturn

func (_c *AudioRequest_Female_Call) RunAndReturn(run func() ai.AudioRequest) *AudioRequest_Female_Call

type AudioRequest_Generate_Call

type AudioRequest_Generate_Call struct {
	*mock.Call
}

AudioRequest_Generate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Generate'

func (*AudioRequest_Generate_Call) Return

func (*AudioRequest_Generate_Call) Run

func (*AudioRequest_Generate_Call) RunAndReturn

type AudioRequest_Instructions_Call

type AudioRequest_Instructions_Call struct {
	*mock.Call
}

AudioRequest_Instructions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Instructions'

func (*AudioRequest_Instructions_Call) Return

func (*AudioRequest_Instructions_Call) Run

func (_c *AudioRequest_Instructions_Call) Run(run func(instructions string)) *AudioRequest_Instructions_Call

func (*AudioRequest_Instructions_Call) RunAndReturn

type AudioRequest_Male_Call

type AudioRequest_Male_Call struct {
	*mock.Call
}

AudioRequest_Male_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Male'

func (*AudioRequest_Male_Call) Return

func (*AudioRequest_Male_Call) Run

func (_c *AudioRequest_Male_Call) Run(run func()) *AudioRequest_Male_Call

func (*AudioRequest_Male_Call) RunAndReturn

func (_c *AudioRequest_Male_Call) RunAndReturn(run func() ai.AudioRequest) *AudioRequest_Male_Call

type AudioRequest_Model_Call

type AudioRequest_Model_Call struct {
	*mock.Call
}

AudioRequest_Model_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Model'

func (*AudioRequest_Model_Call) Return

func (*AudioRequest_Model_Call) Run

func (_c *AudioRequest_Model_Call) Run(run func(model string)) *AudioRequest_Model_Call

func (*AudioRequest_Model_Call) RunAndReturn

type AudioRequest_Provider_Call

type AudioRequest_Provider_Call struct {
	*mock.Call
}

AudioRequest_Provider_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Provider'

func (*AudioRequest_Provider_Call) Return

func (*AudioRequest_Provider_Call) Run

func (_c *AudioRequest_Provider_Call) Run(run func(provider string, failovers ...string)) *AudioRequest_Provider_Call

func (*AudioRequest_Provider_Call) RunAndReturn

type AudioRequest_StoreAs_Call

type AudioRequest_StoreAs_Call struct {
	*mock.Call
}

AudioRequest_StoreAs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StoreAs'

func (*AudioRequest_StoreAs_Call) Return

func (*AudioRequest_StoreAs_Call) Run

func (_c *AudioRequest_StoreAs_Call) Run(run func(path string, disk ...string)) *AudioRequest_StoreAs_Call

func (*AudioRequest_StoreAs_Call) RunAndReturn

func (_c *AudioRequest_StoreAs_Call) RunAndReturn(run func(string, ...string) (string, error)) *AudioRequest_StoreAs_Call

type AudioRequest_Store_Call

type AudioRequest_Store_Call struct {
	*mock.Call
}

AudioRequest_Store_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Store'

func (*AudioRequest_Store_Call) Return

func (*AudioRequest_Store_Call) Run

func (_c *AudioRequest_Store_Call) Run(run func(disk ...string)) *AudioRequest_Store_Call

func (*AudioRequest_Store_Call) RunAndReturn

func (_c *AudioRequest_Store_Call) RunAndReturn(run func(...string) (string, error)) *AudioRequest_Store_Call

type AudioRequest_Timeout_Call

type AudioRequest_Timeout_Call struct {
	*mock.Call
}

AudioRequest_Timeout_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Timeout'

func (*AudioRequest_Timeout_Call) Return

func (*AudioRequest_Timeout_Call) Run

func (*AudioRequest_Timeout_Call) RunAndReturn

type AudioRequest_Voice_Call

type AudioRequest_Voice_Call struct {
	*mock.Call
}

AudioRequest_Voice_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Voice'

func (*AudioRequest_Voice_Call) Return

func (*AudioRequest_Voice_Call) Run

func (_c *AudioRequest_Voice_Call) Run(run func(voice string)) *AudioRequest_Voice_Call

func (*AudioRequest_Voice_Call) RunAndReturn

type AudioResponse

type AudioResponse struct {
	mock.Mock
}

AudioResponse is an autogenerated mock type for the AudioResponse type

func NewAudioResponse

func NewAudioResponse(t interface {
	mock.TestingT
	Cleanup(func())
}) *AudioResponse

NewAudioResponse creates a new instance of AudioResponse. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*AudioResponse) Content

func (_m *AudioResponse) Content() ([]byte, error)

Content provides a mock function with no fields

func (*AudioResponse) EXPECT

func (_m *AudioResponse) EXPECT() *AudioResponse_Expecter

func (*AudioResponse) MimeType

func (_m *AudioResponse) MimeType() string

MimeType provides a mock function with no fields

func (*AudioResponse) Store

func (_m *AudioResponse) Store(disk ...string) (string, error)

Store provides a mock function with given fields: disk

func (*AudioResponse) StoreAs

func (_m *AudioResponse) StoreAs(path string, disk ...string) (string, error)

StoreAs provides a mock function with given fields: path, disk

func (*AudioResponse) Then

func (_m *AudioResponse) Then(callback func(ai.AudioResponse)) ai.AudioResponse

Then provides a mock function with given fields: callback

func (*AudioResponse) Usage

func (_m *AudioResponse) Usage() ai.Usage

Usage provides a mock function with no fields

type AudioResponse_Content_Call

type AudioResponse_Content_Call struct {
	*mock.Call
}

AudioResponse_Content_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Content'

func (*AudioResponse_Content_Call) Return

func (*AudioResponse_Content_Call) Run

func (*AudioResponse_Content_Call) RunAndReturn

func (_c *AudioResponse_Content_Call) RunAndReturn(run func() ([]byte, error)) *AudioResponse_Content_Call

type AudioResponse_Expecter

type AudioResponse_Expecter struct {
	// contains filtered or unexported fields
}

func (*AudioResponse_Expecter) Content

Content is a helper method to define mock.On call

func (*AudioResponse_Expecter) MimeType

MimeType is a helper method to define mock.On call

func (*AudioResponse_Expecter) Store

func (_e *AudioResponse_Expecter) Store(disk ...interface{}) *AudioResponse_Store_Call

Store is a helper method to define mock.On call

  • disk ...string

func (*AudioResponse_Expecter) StoreAs

func (_e *AudioResponse_Expecter) StoreAs(path interface{}, disk ...interface{}) *AudioResponse_StoreAs_Call

StoreAs is a helper method to define mock.On call

  • path string
  • disk ...string

func (*AudioResponse_Expecter) Then

func (_e *AudioResponse_Expecter) Then(callback interface{}) *AudioResponse_Then_Call

Then is a helper method to define mock.On call

  • callback func(ai.AudioResponse)

func (*AudioResponse_Expecter) Usage

Usage is a helper method to define mock.On call

type AudioResponse_MimeType_Call

type AudioResponse_MimeType_Call struct {
	*mock.Call
}

AudioResponse_MimeType_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MimeType'

func (*AudioResponse_MimeType_Call) Return

func (*AudioResponse_MimeType_Call) Run

func (*AudioResponse_MimeType_Call) RunAndReturn

func (_c *AudioResponse_MimeType_Call) RunAndReturn(run func() string) *AudioResponse_MimeType_Call

type AudioResponse_StoreAs_Call

type AudioResponse_StoreAs_Call struct {
	*mock.Call
}

AudioResponse_StoreAs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StoreAs'

func (*AudioResponse_StoreAs_Call) Return

func (*AudioResponse_StoreAs_Call) Run

func (_c *AudioResponse_StoreAs_Call) Run(run func(path string, disk ...string)) *AudioResponse_StoreAs_Call

func (*AudioResponse_StoreAs_Call) RunAndReturn

func (_c *AudioResponse_StoreAs_Call) RunAndReturn(run func(string, ...string) (string, error)) *AudioResponse_StoreAs_Call

type AudioResponse_Store_Call

type AudioResponse_Store_Call struct {
	*mock.Call
}

AudioResponse_Store_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Store'

func (*AudioResponse_Store_Call) Return

func (*AudioResponse_Store_Call) Run

func (_c *AudioResponse_Store_Call) Run(run func(disk ...string)) *AudioResponse_Store_Call

func (*AudioResponse_Store_Call) RunAndReturn

func (_c *AudioResponse_Store_Call) RunAndReturn(run func(...string) (string, error)) *AudioResponse_Store_Call

type AudioResponse_Then_Call

type AudioResponse_Then_Call struct {
	*mock.Call
}

AudioResponse_Then_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Then'

func (*AudioResponse_Then_Call) Return

func (*AudioResponse_Then_Call) Run

func (_c *AudioResponse_Then_Call) Run(run func(callback func(ai.AudioResponse))) *AudioResponse_Then_Call

func (*AudioResponse_Then_Call) RunAndReturn

type AudioResponse_Usage_Call

type AudioResponse_Usage_Call struct {
	*mock.Call
}

AudioResponse_Usage_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Usage'

func (*AudioResponse_Usage_Call) Return

func (*AudioResponse_Usage_Call) Run

func (*AudioResponse_Usage_Call) RunAndReturn

func (_c *AudioResponse_Usage_Call) RunAndReturn(run func() ai.Usage) *AudioResponse_Usage_Call

type Conversation

type Conversation struct {
	mock.Mock
}

Conversation is an autogenerated mock type for the Conversation type

func NewConversation

func NewConversation(t interface {
	mock.TestingT
	Cleanup(func())
}) *Conversation

NewConversation creates a new instance of Conversation. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Conversation) EXPECT

func (_m *Conversation) EXPECT() *Conversation_Expecter

func (*Conversation) Messages

func (_m *Conversation) Messages() []ai.Message

Messages provides a mock function with no fields

func (*Conversation) Prompt

func (_m *Conversation) Prompt(input string, options ...ai.ConversationOption) (ai.AgentResponse, error)

Prompt provides a mock function with given fields: input, options

func (*Conversation) Reset

func (_m *Conversation) Reset()

Reset provides a mock function with no fields

func (*Conversation) Stream

func (_m *Conversation) Stream(input string, options ...ai.ConversationOption) (ai.StreamableAgentResponse, error)

Stream provides a mock function with given fields: input, options

type ConversationOption

type ConversationOption struct {
	mock.Mock
}

ConversationOption is an autogenerated mock type for the ConversationOption type

func NewConversationOption

func NewConversationOption(t interface {
	mock.TestingT
	Cleanup(func())
}) *ConversationOption

NewConversationOption creates a new instance of ConversationOption. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ConversationOption) EXPECT

func (*ConversationOption) Execute

func (_m *ConversationOption) Execute(options *ai.ConversationOptions)

Execute provides a mock function with given fields: options

type ConversationOption_Execute_Call

type ConversationOption_Execute_Call struct {
	*mock.Call
}

ConversationOption_Execute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Execute'

func (*ConversationOption_Execute_Call) Return

func (*ConversationOption_Execute_Call) Run

func (*ConversationOption_Execute_Call) RunAndReturn

type ConversationOption_Expecter

type ConversationOption_Expecter struct {
	// contains filtered or unexported fields
}

func (*ConversationOption_Expecter) Execute

func (_e *ConversationOption_Expecter) Execute(options interface{}) *ConversationOption_Execute_Call

Execute is a helper method to define mock.On call

  • options *ai.ConversationOptions

type Conversation_Expecter

type Conversation_Expecter struct {
	// contains filtered or unexported fields
}

func (*Conversation_Expecter) Messages

Messages is a helper method to define mock.On call

func (*Conversation_Expecter) Prompt

func (_e *Conversation_Expecter) Prompt(input interface{}, options ...interface{}) *Conversation_Prompt_Call

Prompt is a helper method to define mock.On call

  • input string
  • options ...ai.ConversationOption

func (*Conversation_Expecter) Reset

Reset is a helper method to define mock.On call

func (*Conversation_Expecter) Stream

func (_e *Conversation_Expecter) Stream(input interface{}, options ...interface{}) *Conversation_Stream_Call

Stream is a helper method to define mock.On call

  • input string
  • options ...ai.ConversationOption

type Conversation_Messages_Call

type Conversation_Messages_Call struct {
	*mock.Call
}

Conversation_Messages_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Messages'

func (*Conversation_Messages_Call) Return

func (*Conversation_Messages_Call) Run

func (*Conversation_Messages_Call) RunAndReturn

func (_c *Conversation_Messages_Call) RunAndReturn(run func() []ai.Message) *Conversation_Messages_Call

type Conversation_Prompt_Call

type Conversation_Prompt_Call struct {
	*mock.Call
}

Conversation_Prompt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Prompt'

func (*Conversation_Prompt_Call) Return

func (*Conversation_Prompt_Call) Run

func (_c *Conversation_Prompt_Call) Run(run func(input string, options ...ai.ConversationOption)) *Conversation_Prompt_Call

func (*Conversation_Prompt_Call) RunAndReturn

type Conversation_Reset_Call

type Conversation_Reset_Call struct {
	*mock.Call
}

Conversation_Reset_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Reset'

func (*Conversation_Reset_Call) Return

func (*Conversation_Reset_Call) Run

func (_c *Conversation_Reset_Call) Run(run func()) *Conversation_Reset_Call

func (*Conversation_Reset_Call) RunAndReturn

func (_c *Conversation_Reset_Call) RunAndReturn(run func()) *Conversation_Reset_Call

type Conversation_Stream_Call

type Conversation_Stream_Call struct {
	*mock.Call
}

Conversation_Stream_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Stream'

func (*Conversation_Stream_Call) Return

func (*Conversation_Stream_Call) Run

func (_c *Conversation_Stream_Call) Run(run func(input string, options ...ai.ConversationOption)) *Conversation_Stream_Call

func (*Conversation_Stream_Call) RunAndReturn

type FailoverError

type FailoverError struct {
	mock.Mock
}

FailoverError is an autogenerated mock type for the FailoverError type

func NewFailoverError

func NewFailoverError(t interface {
	mock.TestingT
	Cleanup(func())
}) *FailoverError

NewFailoverError creates a new instance of FailoverError. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*FailoverError) EXPECT

func (_m *FailoverError) EXPECT() *FailoverError_Expecter

func (*FailoverError) Error

func (_m *FailoverError) Error() string

Error provides a mock function with no fields

func (*FailoverError) Provider

func (_m *FailoverError) Provider() string

Provider provides a mock function with no fields

func (*FailoverError) Reason

func (_m *FailoverError) Reason() ai.FailoverReason

Reason provides a mock function with no fields

func (*FailoverError) Unwrap

func (_m *FailoverError) Unwrap() error

Unwrap provides a mock function with no fields

type FailoverError_Error_Call

type FailoverError_Error_Call struct {
	*mock.Call
}

FailoverError_Error_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Error'

func (*FailoverError_Error_Call) Return

func (*FailoverError_Error_Call) Run

func (*FailoverError_Error_Call) RunAndReturn

func (_c *FailoverError_Error_Call) RunAndReturn(run func() string) *FailoverError_Error_Call

type FailoverError_Expecter

type FailoverError_Expecter struct {
	// contains filtered or unexported fields
}

func (*FailoverError_Expecter) Error

Error is a helper method to define mock.On call

func (*FailoverError_Expecter) Provider

Provider is a helper method to define mock.On call

func (*FailoverError_Expecter) Reason

Reason is a helper method to define mock.On call

func (*FailoverError_Expecter) Unwrap

Unwrap is a helper method to define mock.On call

type FailoverError_Provider_Call

type FailoverError_Provider_Call struct {
	*mock.Call
}

FailoverError_Provider_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Provider'

func (*FailoverError_Provider_Call) Return

func (*FailoverError_Provider_Call) Run

func (*FailoverError_Provider_Call) RunAndReturn

func (_c *FailoverError_Provider_Call) RunAndReturn(run func() string) *FailoverError_Provider_Call

type FailoverError_Reason_Call

type FailoverError_Reason_Call struct {
	*mock.Call
}

FailoverError_Reason_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Reason'

func (*FailoverError_Reason_Call) Return

func (*FailoverError_Reason_Call) Run

func (*FailoverError_Reason_Call) RunAndReturn

type FailoverError_Unwrap_Call

type FailoverError_Unwrap_Call struct {
	*mock.Call
}

FailoverError_Unwrap_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Unwrap'

func (*FailoverError_Unwrap_Call) Return

func (*FailoverError_Unwrap_Call) Run

func (*FailoverError_Unwrap_Call) RunAndReturn

func (_c *FailoverError_Unwrap_Call) RunAndReturn(run func() error) *FailoverError_Unwrap_Call

type FileProvider

type FileProvider struct {
	mock.Mock
}

FileProvider is an autogenerated mock type for the FileProvider type

func NewFileProvider

func NewFileProvider(t interface {
	mock.TestingT
	Cleanup(func())
}) *FileProvider

NewFileProvider creates a new instance of FileProvider. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*FileProvider) DeleteFile

func (_m *FileProvider) DeleteFile(ctx context.Context, id string) error

DeleteFile provides a mock function with given fields: ctx, id

func (*FileProvider) EXPECT

func (_m *FileProvider) EXPECT() *FileProvider_Expecter

func (*FileProvider) GetFile

func (_m *FileProvider) GetFile(ctx context.Context, id string) (ai.FileResponse, error)

GetFile provides a mock function with given fields: ctx, id

func (*FileProvider) PutFile

func (_m *FileProvider) PutFile(ctx context.Context, file ai.StorableFile) (ai.FileResponse, error)

PutFile provides a mock function with given fields: ctx, file

type FileProvider_DeleteFile_Call

type FileProvider_DeleteFile_Call struct {
	*mock.Call
}

FileProvider_DeleteFile_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteFile'

func (*FileProvider_DeleteFile_Call) Return

func (*FileProvider_DeleteFile_Call) Run

func (*FileProvider_DeleteFile_Call) RunAndReturn

type FileProvider_Expecter

type FileProvider_Expecter struct {
	// contains filtered or unexported fields
}

func (*FileProvider_Expecter) DeleteFile

func (_e *FileProvider_Expecter) DeleteFile(ctx interface{}, id interface{}) *FileProvider_DeleteFile_Call

DeleteFile is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*FileProvider_Expecter) GetFile

func (_e *FileProvider_Expecter) GetFile(ctx interface{}, id interface{}) *FileProvider_GetFile_Call

GetFile is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*FileProvider_Expecter) PutFile

func (_e *FileProvider_Expecter) PutFile(ctx interface{}, file interface{}) *FileProvider_PutFile_Call

PutFile is a helper method to define mock.On call

  • ctx context.Context
  • file ai.StorableFile

type FileProvider_GetFile_Call

type FileProvider_GetFile_Call struct {
	*mock.Call
}

FileProvider_GetFile_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetFile'

func (*FileProvider_GetFile_Call) Return

func (*FileProvider_GetFile_Call) Run

func (*FileProvider_GetFile_Call) RunAndReturn

type FileProvider_PutFile_Call

type FileProvider_PutFile_Call struct {
	*mock.Call
}

FileProvider_PutFile_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PutFile'

func (*FileProvider_PutFile_Call) Return

func (*FileProvider_PutFile_Call) Run

func (*FileProvider_PutFile_Call) RunAndReturn

type FileResponse

type FileResponse struct {
	mock.Mock
}

FileResponse is an autogenerated mock type for the FileResponse type

func NewFileResponse

func NewFileResponse(t interface {
	mock.TestingT
	Cleanup(func())
}) *FileResponse

NewFileResponse creates a new instance of FileResponse. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*FileResponse) Content

func (_m *FileResponse) Content(ctx context.Context) ([]byte, error)

Content provides a mock function with given fields: ctx

func (*FileResponse) EXPECT

func (_m *FileResponse) EXPECT() *FileResponse_Expecter

func (*FileResponse) ID

func (_m *FileResponse) ID() string

ID provides a mock function with no fields

func (*FileResponse) MimeType

func (_m *FileResponse) MimeType() string

MimeType provides a mock function with no fields

type FileResponse_Content_Call

type FileResponse_Content_Call struct {
	*mock.Call
}

FileResponse_Content_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Content'

func (*FileResponse_Content_Call) Return

func (*FileResponse_Content_Call) Run

func (*FileResponse_Content_Call) RunAndReturn

type FileResponse_Expecter

type FileResponse_Expecter struct {
	// contains filtered or unexported fields
}

func (*FileResponse_Expecter) Content

func (_e *FileResponse_Expecter) Content(ctx interface{}) *FileResponse_Content_Call

Content is a helper method to define mock.On call

  • ctx context.Context

func (*FileResponse_Expecter) ID

ID is a helper method to define mock.On call

func (*FileResponse_Expecter) MimeType

MimeType is a helper method to define mock.On call

type FileResponse_ID_Call

type FileResponse_ID_Call struct {
	*mock.Call
}

FileResponse_ID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ID'

func (*FileResponse_ID_Call) Return

func (*FileResponse_ID_Call) Run

func (_c *FileResponse_ID_Call) Run(run func()) *FileResponse_ID_Call

func (*FileResponse_ID_Call) RunAndReturn

func (_c *FileResponse_ID_Call) RunAndReturn(run func() string) *FileResponse_ID_Call

type FileResponse_MimeType_Call

type FileResponse_MimeType_Call struct {
	*mock.Call
}

FileResponse_MimeType_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MimeType'

func (*FileResponse_MimeType_Call) Return

func (*FileResponse_MimeType_Call) Run

func (*FileResponse_MimeType_Call) RunAndReturn

func (_c *FileResponse_MimeType_Call) RunAndReturn(run func() string) *FileResponse_MimeType_Call

type ImageProvider

type ImageProvider struct {
	mock.Mock
}

ImageProvider is an autogenerated mock type for the ImageProvider type

func NewImageProvider

func NewImageProvider(t interface {
	mock.TestingT
	Cleanup(func())
}) *ImageProvider

NewImageProvider creates a new instance of ImageProvider. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ImageProvider) EXPECT

func (_m *ImageProvider) EXPECT() *ImageProvider_Expecter

func (*ImageProvider) Image

func (_m *ImageProvider) Image(ctx context.Context, prompt ai.ImagePrompt) (ai.ImageResponse, error)

Image provides a mock function with given fields: ctx, prompt

type ImageProvider_Expecter

type ImageProvider_Expecter struct {
	// contains filtered or unexported fields
}

func (*ImageProvider_Expecter) Image

func (_e *ImageProvider_Expecter) Image(ctx interface{}, prompt interface{}) *ImageProvider_Image_Call

Image is a helper method to define mock.On call

  • ctx context.Context
  • prompt ai.ImagePrompt

type ImageProvider_Image_Call

type ImageProvider_Image_Call struct {
	*mock.Call
}

ImageProvider_Image_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Image'

func (*ImageProvider_Image_Call) Return

func (*ImageProvider_Image_Call) Run

func (*ImageProvider_Image_Call) RunAndReturn

type ImageRequest

type ImageRequest struct {
	mock.Mock
}

ImageRequest is an autogenerated mock type for the ImageRequest type

func NewImageRequest

func NewImageRequest(t interface {
	mock.TestingT
	Cleanup(func())
}) *ImageRequest

NewImageRequest creates a new instance of ImageRequest. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ImageRequest) Attachments

func (_m *ImageRequest) Attachments(attachments ...ai.Attachment) ai.ImageRequest

Attachments provides a mock function with given fields: attachments

func (*ImageRequest) EXPECT

func (_m *ImageRequest) EXPECT() *ImageRequest_Expecter

func (*ImageRequest) Generate

func (_m *ImageRequest) Generate() (ai.ImageResponse, error)

Generate provides a mock function with no fields

func (*ImageRequest) Landscape

func (_m *ImageRequest) Landscape() ai.ImageRequest

Landscape provides a mock function with no fields

func (*ImageRequest) Model

func (_m *ImageRequest) Model(model string) ai.ImageRequest

Model provides a mock function with given fields: model

func (*ImageRequest) Portrait

func (_m *ImageRequest) Portrait() ai.ImageRequest

Portrait provides a mock function with no fields

func (*ImageRequest) Provider

func (_m *ImageRequest) Provider(provider string, failovers ...string) ai.ImageRequest

Provider provides a mock function with given fields: provider, failovers

func (*ImageRequest) Quality

func (_m *ImageRequest) Quality(quality ai.ImageQuality) ai.ImageRequest

Quality provides a mock function with given fields: quality

func (*ImageRequest) Square

func (_m *ImageRequest) Square() ai.ImageRequest

Square provides a mock function with no fields

func (*ImageRequest) Store

func (_m *ImageRequest) Store(disk ...string) (string, error)

Store provides a mock function with given fields: disk

func (*ImageRequest) StoreAs

func (_m *ImageRequest) StoreAs(path string, disk ...string) (string, error)

StoreAs provides a mock function with given fields: path, disk

func (*ImageRequest) Timeout

func (_m *ImageRequest) Timeout(timeout time.Duration) ai.ImageRequest

Timeout provides a mock function with given fields: timeout

type ImageRequest_Attachments_Call

type ImageRequest_Attachments_Call struct {
	*mock.Call
}

ImageRequest_Attachments_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Attachments'

func (*ImageRequest_Attachments_Call) Return

func (*ImageRequest_Attachments_Call) Run

func (_c *ImageRequest_Attachments_Call) Run(run func(attachments ...ai.Attachment)) *ImageRequest_Attachments_Call

func (*ImageRequest_Attachments_Call) RunAndReturn

type ImageRequest_Expecter

type ImageRequest_Expecter struct {
	// contains filtered or unexported fields
}

func (*ImageRequest_Expecter) Attachments

func (_e *ImageRequest_Expecter) Attachments(attachments ...interface{}) *ImageRequest_Attachments_Call

Attachments is a helper method to define mock.On call

  • attachments ...ai.Attachment

func (*ImageRequest_Expecter) Generate

Generate is a helper method to define mock.On call

func (*ImageRequest_Expecter) Landscape

Landscape is a helper method to define mock.On call

func (*ImageRequest_Expecter) Model

func (_e *ImageRequest_Expecter) Model(model interface{}) *ImageRequest_Model_Call

Model is a helper method to define mock.On call

  • model string

func (*ImageRequest_Expecter) Portrait

Portrait is a helper method to define mock.On call

func (*ImageRequest_Expecter) Provider

func (_e *ImageRequest_Expecter) Provider(provider interface{}, failovers ...interface{}) *ImageRequest_Provider_Call

Provider is a helper method to define mock.On call

  • provider string
  • failovers ...string

func (*ImageRequest_Expecter) Quality

func (_e *ImageRequest_Expecter) Quality(quality interface{}) *ImageRequest_Quality_Call

Quality is a helper method to define mock.On call

  • quality ai.ImageQuality

func (*ImageRequest_Expecter) Square

Square is a helper method to define mock.On call

func (*ImageRequest_Expecter) Store

func (_e *ImageRequest_Expecter) Store(disk ...interface{}) *ImageRequest_Store_Call

Store is a helper method to define mock.On call

  • disk ...string

func (*ImageRequest_Expecter) StoreAs

func (_e *ImageRequest_Expecter) StoreAs(path interface{}, disk ...interface{}) *ImageRequest_StoreAs_Call

StoreAs is a helper method to define mock.On call

  • path string
  • disk ...string

func (*ImageRequest_Expecter) Timeout

func (_e *ImageRequest_Expecter) Timeout(timeout interface{}) *ImageRequest_Timeout_Call

Timeout is a helper method to define mock.On call

  • timeout time.Duration

type ImageRequest_Generate_Call

type ImageRequest_Generate_Call struct {
	*mock.Call
}

ImageRequest_Generate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Generate'

func (*ImageRequest_Generate_Call) Return

func (*ImageRequest_Generate_Call) Run

func (*ImageRequest_Generate_Call) RunAndReturn

type ImageRequest_Landscape_Call

type ImageRequest_Landscape_Call struct {
	*mock.Call
}

ImageRequest_Landscape_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Landscape'

func (*ImageRequest_Landscape_Call) Return

func (*ImageRequest_Landscape_Call) Run

func (*ImageRequest_Landscape_Call) RunAndReturn

type ImageRequest_Model_Call

type ImageRequest_Model_Call struct {
	*mock.Call
}

ImageRequest_Model_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Model'

func (*ImageRequest_Model_Call) Return

func (*ImageRequest_Model_Call) Run

func (_c *ImageRequest_Model_Call) Run(run func(model string)) *ImageRequest_Model_Call

func (*ImageRequest_Model_Call) RunAndReturn

type ImageRequest_Portrait_Call

type ImageRequest_Portrait_Call struct {
	*mock.Call
}

ImageRequest_Portrait_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Portrait'

func (*ImageRequest_Portrait_Call) Return

func (*ImageRequest_Portrait_Call) Run

func (*ImageRequest_Portrait_Call) RunAndReturn

type ImageRequest_Provider_Call

type ImageRequest_Provider_Call struct {
	*mock.Call
}

ImageRequest_Provider_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Provider'

func (*ImageRequest_Provider_Call) Return

func (*ImageRequest_Provider_Call) Run

func (_c *ImageRequest_Provider_Call) Run(run func(provider string, failovers ...string)) *ImageRequest_Provider_Call

func (*ImageRequest_Provider_Call) RunAndReturn

type ImageRequest_Quality_Call

type ImageRequest_Quality_Call struct {
	*mock.Call
}

ImageRequest_Quality_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Quality'

func (*ImageRequest_Quality_Call) Return

func (*ImageRequest_Quality_Call) Run

func (*ImageRequest_Quality_Call) RunAndReturn

type ImageRequest_Square_Call

type ImageRequest_Square_Call struct {
	*mock.Call
}

ImageRequest_Square_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Square'

func (*ImageRequest_Square_Call) Return

func (*ImageRequest_Square_Call) Run

func (*ImageRequest_Square_Call) RunAndReturn

func (_c *ImageRequest_Square_Call) RunAndReturn(run func() ai.ImageRequest) *ImageRequest_Square_Call

type ImageRequest_StoreAs_Call

type ImageRequest_StoreAs_Call struct {
	*mock.Call
}

ImageRequest_StoreAs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StoreAs'

func (*ImageRequest_StoreAs_Call) Return

func (*ImageRequest_StoreAs_Call) Run

func (_c *ImageRequest_StoreAs_Call) Run(run func(path string, disk ...string)) *ImageRequest_StoreAs_Call

func (*ImageRequest_StoreAs_Call) RunAndReturn

func (_c *ImageRequest_StoreAs_Call) RunAndReturn(run func(string, ...string) (string, error)) *ImageRequest_StoreAs_Call

type ImageRequest_Store_Call

type ImageRequest_Store_Call struct {
	*mock.Call
}

ImageRequest_Store_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Store'

func (*ImageRequest_Store_Call) Return

func (*ImageRequest_Store_Call) Run

func (_c *ImageRequest_Store_Call) Run(run func(disk ...string)) *ImageRequest_Store_Call

func (*ImageRequest_Store_Call) RunAndReturn

func (_c *ImageRequest_Store_Call) RunAndReturn(run func(...string) (string, error)) *ImageRequest_Store_Call

type ImageRequest_Timeout_Call

type ImageRequest_Timeout_Call struct {
	*mock.Call
}

ImageRequest_Timeout_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Timeout'

func (*ImageRequest_Timeout_Call) Return

func (*ImageRequest_Timeout_Call) Run

func (*ImageRequest_Timeout_Call) RunAndReturn

type ImageResponse

type ImageResponse struct {
	mock.Mock
}

ImageResponse is an autogenerated mock type for the ImageResponse type

func NewImageResponse

func NewImageResponse(t interface {
	mock.TestingT
	Cleanup(func())
}) *ImageResponse

NewImageResponse creates a new instance of ImageResponse. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ImageResponse) Content

func (_m *ImageResponse) Content() ([]byte, error)

Content provides a mock function with no fields

func (*ImageResponse) EXPECT

func (_m *ImageResponse) EXPECT() *ImageResponse_Expecter

func (*ImageResponse) MimeType

func (_m *ImageResponse) MimeType() string

MimeType provides a mock function with no fields

func (*ImageResponse) Store

func (_m *ImageResponse) Store(disk ...string) (string, error)

Store provides a mock function with given fields: disk

func (*ImageResponse) StoreAs

func (_m *ImageResponse) StoreAs(path string, disk ...string) (string, error)

StoreAs provides a mock function with given fields: path, disk

func (*ImageResponse) Then

func (_m *ImageResponse) Then(callback func(ai.ImageResponse)) ai.ImageResponse

Then provides a mock function with given fields: callback

func (*ImageResponse) Usage

func (_m *ImageResponse) Usage() ai.Usage

Usage provides a mock function with no fields

type ImageResponse_Content_Call

type ImageResponse_Content_Call struct {
	*mock.Call
}

ImageResponse_Content_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Content'

func (*ImageResponse_Content_Call) Return

func (*ImageResponse_Content_Call) Run

func (*ImageResponse_Content_Call) RunAndReturn

func (_c *ImageResponse_Content_Call) RunAndReturn(run func() ([]byte, error)) *ImageResponse_Content_Call

type ImageResponse_Expecter

type ImageResponse_Expecter struct {
	// contains filtered or unexported fields
}

func (*ImageResponse_Expecter) Content

Content is a helper method to define mock.On call

func (*ImageResponse_Expecter) MimeType

MimeType is a helper method to define mock.On call

func (*ImageResponse_Expecter) Store

func (_e *ImageResponse_Expecter) Store(disk ...interface{}) *ImageResponse_Store_Call

Store is a helper method to define mock.On call

  • disk ...string

func (*ImageResponse_Expecter) StoreAs

func (_e *ImageResponse_Expecter) StoreAs(path interface{}, disk ...interface{}) *ImageResponse_StoreAs_Call

StoreAs is a helper method to define mock.On call

  • path string
  • disk ...string

func (*ImageResponse_Expecter) Then

func (_e *ImageResponse_Expecter) Then(callback interface{}) *ImageResponse_Then_Call

Then is a helper method to define mock.On call

  • callback func(ai.ImageResponse)

func (*ImageResponse_Expecter) Usage

Usage is a helper method to define mock.On call

type ImageResponse_MimeType_Call

type ImageResponse_MimeType_Call struct {
	*mock.Call
}

ImageResponse_MimeType_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MimeType'

func (*ImageResponse_MimeType_Call) Return

func (*ImageResponse_MimeType_Call) Run

func (*ImageResponse_MimeType_Call) RunAndReturn

func (_c *ImageResponse_MimeType_Call) RunAndReturn(run func() string) *ImageResponse_MimeType_Call

type ImageResponse_StoreAs_Call

type ImageResponse_StoreAs_Call struct {
	*mock.Call
}

ImageResponse_StoreAs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StoreAs'

func (*ImageResponse_StoreAs_Call) Return

func (*ImageResponse_StoreAs_Call) Run

func (_c *ImageResponse_StoreAs_Call) Run(run func(path string, disk ...string)) *ImageResponse_StoreAs_Call

func (*ImageResponse_StoreAs_Call) RunAndReturn

func (_c *ImageResponse_StoreAs_Call) RunAndReturn(run func(string, ...string) (string, error)) *ImageResponse_StoreAs_Call

type ImageResponse_Store_Call

type ImageResponse_Store_Call struct {
	*mock.Call
}

ImageResponse_Store_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Store'

func (*ImageResponse_Store_Call) Return

func (*ImageResponse_Store_Call) Run

func (_c *ImageResponse_Store_Call) Run(run func(disk ...string)) *ImageResponse_Store_Call

func (*ImageResponse_Store_Call) RunAndReturn

func (_c *ImageResponse_Store_Call) RunAndReturn(run func(...string) (string, error)) *ImageResponse_Store_Call

type ImageResponse_Then_Call

type ImageResponse_Then_Call struct {
	*mock.Call
}

ImageResponse_Then_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Then'

func (*ImageResponse_Then_Call) Return

func (*ImageResponse_Then_Call) Run

func (_c *ImageResponse_Then_Call) Run(run func(callback func(ai.ImageResponse))) *ImageResponse_Then_Call

func (*ImageResponse_Then_Call) RunAndReturn

type ImageResponse_Usage_Call

type ImageResponse_Usage_Call struct {
	*mock.Call
}

ImageResponse_Usage_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Usage'

func (*ImageResponse_Usage_Call) Return

func (*ImageResponse_Usage_Call) Run

func (*ImageResponse_Usage_Call) RunAndReturn

func (_c *ImageResponse_Usage_Call) RunAndReturn(run func() ai.Usage) *ImageResponse_Usage_Call

type ImageStorer

type ImageStorer struct {
	mock.Mock
}

ImageStorer is an autogenerated mock type for the ImageStorer type

func NewImageStorer

func NewImageStorer(t interface {
	mock.TestingT
	Cleanup(func())
}) *ImageStorer

NewImageStorer creates a new instance of ImageStorer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ImageStorer) EXPECT

func (_m *ImageStorer) EXPECT() *ImageStorer_Expecter

func (*ImageStorer) Store

func (_m *ImageStorer) Store(content []byte, name string, disk string) (string, error)

Store provides a mock function with given fields: content, name, disk

func (*ImageStorer) StoreAs

func (_m *ImageStorer) StoreAs(content []byte, path string, disk string) (string, error)

StoreAs provides a mock function with given fields: content, path, disk

type ImageStorer_Expecter

type ImageStorer_Expecter struct {
	// contains filtered or unexported fields
}

func (*ImageStorer_Expecter) Store

func (_e *ImageStorer_Expecter) Store(content interface{}, name interface{}, disk interface{}) *ImageStorer_Store_Call

Store is a helper method to define mock.On call

  • content []byte
  • name string
  • disk string

func (*ImageStorer_Expecter) StoreAs

func (_e *ImageStorer_Expecter) StoreAs(content interface{}, path interface{}, disk interface{}) *ImageStorer_StoreAs_Call

StoreAs is a helper method to define mock.On call

  • content []byte
  • path string
  • disk string

type ImageStorer_StoreAs_Call

type ImageStorer_StoreAs_Call struct {
	*mock.Call
}

ImageStorer_StoreAs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StoreAs'

func (*ImageStorer_StoreAs_Call) Return

func (*ImageStorer_StoreAs_Call) Run

func (_c *ImageStorer_StoreAs_Call) Run(run func(content []byte, path string, disk string)) *ImageStorer_StoreAs_Call

func (*ImageStorer_StoreAs_Call) RunAndReturn

func (_c *ImageStorer_StoreAs_Call) RunAndReturn(run func([]byte, string, string) (string, error)) *ImageStorer_StoreAs_Call

type ImageStorer_Store_Call

type ImageStorer_Store_Call struct {
	*mock.Call
}

ImageStorer_Store_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Store'

func (*ImageStorer_Store_Call) Return

func (*ImageStorer_Store_Call) Run

func (_c *ImageStorer_Store_Call) Run(run func(content []byte, name string, disk string)) *ImageStorer_Store_Call

func (*ImageStorer_Store_Call) RunAndReturn

func (_c *ImageStorer_Store_Call) RunAndReturn(run func([]byte, string, string) (string, error)) *ImageStorer_Store_Call

type Middleware

type Middleware struct {
	mock.Mock
}

Middleware is an autogenerated mock type for the Middleware type

func NewMiddleware

func NewMiddleware(t interface {
	mock.TestingT
	Cleanup(func())
}) *Middleware

NewMiddleware creates a new instance of Middleware. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Middleware) EXPECT

func (_m *Middleware) EXPECT() *Middleware_Expecter

func (*Middleware) Handle

func (_m *Middleware) Handle(ctx context.Context, prompt ai.AgentPrompt, next ai.Next) (ai.AgentResponse, error)

Handle provides a mock function with given fields: ctx, prompt, next

type Middleware_Expecter

type Middleware_Expecter struct {
	// contains filtered or unexported fields
}

func (*Middleware_Expecter) Handle

func (_e *Middleware_Expecter) Handle(ctx interface{}, prompt interface{}, next interface{}) *Middleware_Handle_Call

Handle is a helper method to define mock.On call

  • ctx context.Context
  • prompt ai.AgentPrompt
  • next ai.Next

type Middleware_Handle_Call

type Middleware_Handle_Call struct {
	*mock.Call
}

Middleware_Handle_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Handle'

func (*Middleware_Handle_Call) Return

func (*Middleware_Handle_Call) Run

func (_c *Middleware_Handle_Call) Run(run func(ctx context.Context, prompt ai.AgentPrompt, next ai.Next)) *Middleware_Handle_Call

func (*Middleware_Handle_Call) RunAndReturn

type Next

type Next struct {
	mock.Mock
}

Next is an autogenerated mock type for the Next type

func NewNext

func NewNext(t interface {
	mock.TestingT
	Cleanup(func())
}) *Next

NewNext creates a new instance of Next. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Next) EXPECT

func (_m *Next) EXPECT() *Next_Expecter

func (*Next) Execute

func (_m *Next) Execute(ctx context.Context, prompt ai.AgentPrompt) (ai.AgentResponse, error)

Execute provides a mock function with given fields: ctx, prompt

type Next_Execute_Call

type Next_Execute_Call struct {
	*mock.Call
}

Next_Execute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Execute'

func (*Next_Execute_Call) Return

func (*Next_Execute_Call) Run

func (_c *Next_Execute_Call) Run(run func(ctx context.Context, prompt ai.AgentPrompt)) *Next_Execute_Call

func (*Next_Execute_Call) RunAndReturn

type Next_Expecter

type Next_Expecter struct {
	// contains filtered or unexported fields
}

func (*Next_Expecter) Execute

func (_e *Next_Expecter) Execute(ctx interface{}, prompt interface{}) *Next_Execute_Call

Execute is a helper method to define mock.On call

  • ctx context.Context
  • prompt ai.AgentPrompt

type Option

type Option struct {
	mock.Mock
}

Option is an autogenerated mock type for the Option type

func NewOption

func NewOption(t interface {
	mock.TestingT
	Cleanup(func())
}) *Option

NewOption creates a new instance of Option. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Option) EXPECT

func (_m *Option) EXPECT() *Option_Expecter

func (*Option) Execute

func (_m *Option) Execute(options *ai.Options)

Execute provides a mock function with given fields: options

type Option_Execute_Call

type Option_Execute_Call struct {
	*mock.Call
}

Option_Execute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Execute'

func (*Option_Execute_Call) Return

func (*Option_Execute_Call) Run

func (_c *Option_Execute_Call) Run(run func(options *ai.Options)) *Option_Execute_Call

func (*Option_Execute_Call) RunAndReturn

func (_c *Option_Execute_Call) RunAndReturn(run func(*ai.Options)) *Option_Execute_Call

type Option_Expecter

type Option_Expecter struct {
	// contains filtered or unexported fields
}

func (*Option_Expecter) Execute

func (_e *Option_Expecter) Execute(options interface{}) *Option_Execute_Call

Execute is a helper method to define mock.On call

  • options *ai.Options

type Provider

type Provider struct {
	mock.Mock
}

Provider is an autogenerated mock type for the Provider type

func NewProvider

func NewProvider(t interface {
	mock.TestingT
	Cleanup(func())
}) *Provider

NewProvider creates a new instance of Provider. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Provider) EXPECT

func (_m *Provider) EXPECT() *Provider_Expecter

func (*Provider) Prompt

func (_m *Provider) Prompt(ctx context.Context, prompt ai.AgentPrompt) (ai.AgentResponse, error)

Prompt provides a mock function with given fields: ctx, prompt

func (*Provider) Stream

Stream provides a mock function with given fields: ctx, prompt

type ProviderFile

type ProviderFile struct {
	mock.Mock
}

ProviderFile is an autogenerated mock type for the ProviderFile type

func NewProviderFile

func NewProviderFile(t interface {
	mock.TestingT
	Cleanup(func())
}) *ProviderFile

NewProviderFile creates a new instance of ProviderFile. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ProviderFile) Content

func (_m *ProviderFile) Content(ctx context.Context) ([]byte, error)

Content provides a mock function with given fields: ctx

func (*ProviderFile) Delete

func (_m *ProviderFile) Delete(ctx context.Context, options ...ai.Option) error

Delete provides a mock function with given fields: ctx, options

func (*ProviderFile) EXPECT

func (_m *ProviderFile) EXPECT() *ProviderFile_Expecter

func (*ProviderFile) FileName

func (_m *ProviderFile) FileName() string

FileName provides a mock function with no fields

func (*ProviderFile) Get

func (_m *ProviderFile) Get(ctx context.Context, options ...ai.Option) (ai.FileResponse, error)

Get provides a mock function with given fields: ctx, options

func (*ProviderFile) ID

func (_m *ProviderFile) ID() string

ID provides a mock function with no fields

func (*ProviderFile) Kind

func (_m *ProviderFile) Kind() ai.AttachmentKind

Kind provides a mock function with no fields

func (*ProviderFile) MimeType

func (_m *ProviderFile) MimeType() string

MimeType provides a mock function with no fields

func (*ProviderFile) Put

func (_m *ProviderFile) Put(ctx context.Context, options ...ai.Option) (ai.FileResponse, error)

Put provides a mock function with given fields: ctx, options

type ProviderFile_Content_Call

type ProviderFile_Content_Call struct {
	*mock.Call
}

ProviderFile_Content_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Content'

func (*ProviderFile_Content_Call) Return

func (*ProviderFile_Content_Call) Run

func (*ProviderFile_Content_Call) RunAndReturn

type ProviderFile_Delete_Call

type ProviderFile_Delete_Call struct {
	*mock.Call
}

ProviderFile_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'

func (*ProviderFile_Delete_Call) Return

func (*ProviderFile_Delete_Call) Run

func (_c *ProviderFile_Delete_Call) Run(run func(ctx context.Context, options ...ai.Option)) *ProviderFile_Delete_Call

func (*ProviderFile_Delete_Call) RunAndReturn

type ProviderFile_Expecter

type ProviderFile_Expecter struct {
	// contains filtered or unexported fields
}

func (*ProviderFile_Expecter) Content

func (_e *ProviderFile_Expecter) Content(ctx interface{}) *ProviderFile_Content_Call

Content is a helper method to define mock.On call

  • ctx context.Context

func (*ProviderFile_Expecter) Delete

func (_e *ProviderFile_Expecter) Delete(ctx interface{}, options ...interface{}) *ProviderFile_Delete_Call

Delete is a helper method to define mock.On call

  • ctx context.Context
  • options ...ai.Option

func (*ProviderFile_Expecter) FileName

FileName is a helper method to define mock.On call

func (*ProviderFile_Expecter) Get

func (_e *ProviderFile_Expecter) Get(ctx interface{}, options ...interface{}) *ProviderFile_Get_Call

Get is a helper method to define mock.On call

  • ctx context.Context
  • options ...ai.Option

func (*ProviderFile_Expecter) ID

ID is a helper method to define mock.On call

func (*ProviderFile_Expecter) Kind

Kind is a helper method to define mock.On call

func (*ProviderFile_Expecter) MimeType

MimeType is a helper method to define mock.On call

func (*ProviderFile_Expecter) Put

func (_e *ProviderFile_Expecter) Put(ctx interface{}, options ...interface{}) *ProviderFile_Put_Call

Put is a helper method to define mock.On call

  • ctx context.Context
  • options ...ai.Option

type ProviderFile_FileName_Call

type ProviderFile_FileName_Call struct {
	*mock.Call
}

ProviderFile_FileName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FileName'

func (*ProviderFile_FileName_Call) Return

func (*ProviderFile_FileName_Call) Run

func (*ProviderFile_FileName_Call) RunAndReturn

func (_c *ProviderFile_FileName_Call) RunAndReturn(run func() string) *ProviderFile_FileName_Call

type ProviderFile_Get_Call

type ProviderFile_Get_Call struct {
	*mock.Call
}

ProviderFile_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'

func (*ProviderFile_Get_Call) Return

func (*ProviderFile_Get_Call) Run

func (_c *ProviderFile_Get_Call) Run(run func(ctx context.Context, options ...ai.Option)) *ProviderFile_Get_Call

func (*ProviderFile_Get_Call) RunAndReturn

type ProviderFile_ID_Call

type ProviderFile_ID_Call struct {
	*mock.Call
}

ProviderFile_ID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ID'

func (*ProviderFile_ID_Call) Return

func (*ProviderFile_ID_Call) Run

func (_c *ProviderFile_ID_Call) Run(run func()) *ProviderFile_ID_Call

func (*ProviderFile_ID_Call) RunAndReturn

func (_c *ProviderFile_ID_Call) RunAndReturn(run func() string) *ProviderFile_ID_Call

type ProviderFile_Kind_Call

type ProviderFile_Kind_Call struct {
	*mock.Call
}

ProviderFile_Kind_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Kind'

func (*ProviderFile_Kind_Call) Return

func (*ProviderFile_Kind_Call) Run

func (_c *ProviderFile_Kind_Call) Run(run func()) *ProviderFile_Kind_Call

func (*ProviderFile_Kind_Call) RunAndReturn

func (_c *ProviderFile_Kind_Call) RunAndReturn(run func() ai.AttachmentKind) *ProviderFile_Kind_Call

type ProviderFile_MimeType_Call

type ProviderFile_MimeType_Call struct {
	*mock.Call
}

ProviderFile_MimeType_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MimeType'

func (*ProviderFile_MimeType_Call) Return

func (*ProviderFile_MimeType_Call) Run

func (*ProviderFile_MimeType_Call) RunAndReturn

func (_c *ProviderFile_MimeType_Call) RunAndReturn(run func() string) *ProviderFile_MimeType_Call

type ProviderFile_Put_Call

type ProviderFile_Put_Call struct {
	*mock.Call
}

ProviderFile_Put_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Put'

func (*ProviderFile_Put_Call) Return

func (*ProviderFile_Put_Call) Run

func (_c *ProviderFile_Put_Call) Run(run func(ctx context.Context, options ...ai.Option)) *ProviderFile_Put_Call

func (*ProviderFile_Put_Call) RunAndReturn

type ProviderState

type ProviderState struct {
	mock.Mock
}

ProviderState is an autogenerated mock type for the ProviderState type

func NewProviderState

func NewProviderState(t interface {
	mock.TestingT
	Cleanup(func())
}) *ProviderState

NewProviderState creates a new instance of ProviderState. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ProviderState) EXPECT

func (_m *ProviderState) EXPECT() *ProviderState_Expecter

func (*ProviderState) Get

func (_m *ProviderState) Get(key string) interface{}

Get provides a mock function with given fields: key

func (*ProviderState) Set

func (_m *ProviderState) Set(key string, value interface{})

Set provides a mock function with given fields: key, value

type ProviderState_Expecter

type ProviderState_Expecter struct {
	// contains filtered or unexported fields
}

func (*ProviderState_Expecter) Get

func (_e *ProviderState_Expecter) Get(key interface{}) *ProviderState_Get_Call

Get is a helper method to define mock.On call

  • key string

func (*ProviderState_Expecter) Set

func (_e *ProviderState_Expecter) Set(key interface{}, value interface{}) *ProviderState_Set_Call

Set is a helper method to define mock.On call

  • key string
  • value interface{}

type ProviderState_Get_Call

type ProviderState_Get_Call struct {
	*mock.Call
}

ProviderState_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'

func (*ProviderState_Get_Call) Return

func (_c *ProviderState_Get_Call) Return(_a0 interface{}) *ProviderState_Get_Call

func (*ProviderState_Get_Call) Run

func (_c *ProviderState_Get_Call) Run(run func(key string)) *ProviderState_Get_Call

func (*ProviderState_Get_Call) RunAndReturn

func (_c *ProviderState_Get_Call) RunAndReturn(run func(string) interface{}) *ProviderState_Get_Call

type ProviderState_Set_Call

type ProviderState_Set_Call struct {
	*mock.Call
}

ProviderState_Set_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Set'

func (*ProviderState_Set_Call) Return

func (*ProviderState_Set_Call) Run

func (_c *ProviderState_Set_Call) Run(run func(key string, value interface{})) *ProviderState_Set_Call

func (*ProviderState_Set_Call) RunAndReturn

func (_c *ProviderState_Set_Call) RunAndReturn(run func(string, interface{})) *ProviderState_Set_Call

type Provider_Expecter

type Provider_Expecter struct {
	// contains filtered or unexported fields
}

func (*Provider_Expecter) Prompt

func (_e *Provider_Expecter) Prompt(ctx interface{}, prompt interface{}) *Provider_Prompt_Call

Prompt is a helper method to define mock.On call

  • ctx context.Context
  • prompt ai.AgentPrompt

func (*Provider_Expecter) Stream

func (_e *Provider_Expecter) Stream(ctx interface{}, prompt interface{}) *Provider_Stream_Call

Stream is a helper method to define mock.On call

  • ctx context.Context
  • prompt ai.AgentPrompt

type Provider_Prompt_Call

type Provider_Prompt_Call struct {
	*mock.Call
}

Provider_Prompt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Prompt'

func (*Provider_Prompt_Call) Return

func (*Provider_Prompt_Call) Run

func (_c *Provider_Prompt_Call) Run(run func(ctx context.Context, prompt ai.AgentPrompt)) *Provider_Prompt_Call

func (*Provider_Prompt_Call) RunAndReturn

type Provider_Stream_Call

type Provider_Stream_Call struct {
	*mock.Call
}

Provider_Stream_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Stream'

func (*Provider_Stream_Call) Return

func (*Provider_Stream_Call) Run

func (_c *Provider_Stream_Call) Run(run func(ctx context.Context, prompt ai.AgentPrompt)) *Provider_Stream_Call

func (*Provider_Stream_Call) RunAndReturn

type RenderFunc

type RenderFunc struct {
	mock.Mock
}

RenderFunc is an autogenerated mock type for the RenderFunc type

func NewRenderFunc

func NewRenderFunc(t interface {
	mock.TestingT
	Cleanup(func())
}) *RenderFunc

NewRenderFunc creates a new instance of RenderFunc. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*RenderFunc) EXPECT

func (_m *RenderFunc) EXPECT() *RenderFunc_Expecter

func (*RenderFunc) Execute

func (_m *RenderFunc) Execute(w http.StreamWriter, event ai.StreamEvent) error

Execute provides a mock function with given fields: w, event

type RenderFunc_Execute_Call

type RenderFunc_Execute_Call struct {
	*mock.Call
}

RenderFunc_Execute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Execute'

func (*RenderFunc_Execute_Call) Return

func (*RenderFunc_Execute_Call) Run

func (*RenderFunc_Execute_Call) RunAndReturn

type RenderFunc_Expecter

type RenderFunc_Expecter struct {
	// contains filtered or unexported fields
}

func (*RenderFunc_Expecter) Execute

func (_e *RenderFunc_Expecter) Execute(w interface{}, event interface{}) *RenderFunc_Execute_Call

Execute is a helper method to define mock.On call

  • w http.StreamWriter
  • event ai.StreamEvent

type StorableFile

type StorableFile struct {
	mock.Mock
}

StorableFile is an autogenerated mock type for the StorableFile type

func NewStorableFile

func NewStorableFile(t interface {
	mock.TestingT
	Cleanup(func())
}) *StorableFile

NewStorableFile creates a new instance of StorableFile. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*StorableFile) Content

func (_m *StorableFile) Content(ctx context.Context) ([]byte, error)

Content provides a mock function with given fields: ctx

func (*StorableFile) EXPECT

func (_m *StorableFile) EXPECT() *StorableFile_Expecter

func (*StorableFile) FileName

func (_m *StorableFile) FileName() string

FileName provides a mock function with no fields

func (*StorableFile) MimeType

func (_m *StorableFile) MimeType() string

MimeType provides a mock function with no fields

type StorableFile_Content_Call

type StorableFile_Content_Call struct {
	*mock.Call
}

StorableFile_Content_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Content'

func (*StorableFile_Content_Call) Return

func (*StorableFile_Content_Call) Run

func (*StorableFile_Content_Call) RunAndReturn

type StorableFile_Expecter

type StorableFile_Expecter struct {
	// contains filtered or unexported fields
}

func (*StorableFile_Expecter) Content

func (_e *StorableFile_Expecter) Content(ctx interface{}) *StorableFile_Content_Call

Content is a helper method to define mock.On call

  • ctx context.Context

func (*StorableFile_Expecter) FileName

FileName is a helper method to define mock.On call

func (*StorableFile_Expecter) MimeType

MimeType is a helper method to define mock.On call

type StorableFile_FileName_Call

type StorableFile_FileName_Call struct {
	*mock.Call
}

StorableFile_FileName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FileName'

func (*StorableFile_FileName_Call) Return

func (*StorableFile_FileName_Call) Run

func (*StorableFile_FileName_Call) RunAndReturn

func (_c *StorableFile_FileName_Call) RunAndReturn(run func() string) *StorableFile_FileName_Call

type StorableFile_MimeType_Call

type StorableFile_MimeType_Call struct {
	*mock.Call
}

StorableFile_MimeType_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MimeType'

func (*StorableFile_MimeType_Call) Return

func (*StorableFile_MimeType_Call) Run

func (*StorableFile_MimeType_Call) RunAndReturn

func (_c *StorableFile_MimeType_Call) RunAndReturn(run func() string) *StorableFile_MimeType_Call

type StreamOption

type StreamOption struct {
	mock.Mock
}

StreamOption is an autogenerated mock type for the StreamOption type

func NewStreamOption

func NewStreamOption(t interface {
	mock.TestingT
	Cleanup(func())
}) *StreamOption

NewStreamOption creates a new instance of StreamOption. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*StreamOption) EXPECT

func (_m *StreamOption) EXPECT() *StreamOption_Expecter

func (*StreamOption) Execute

func (_m *StreamOption) Execute(options *ai.StreamOptions)

Execute provides a mock function with given fields: options

type StreamOption_Execute_Call

type StreamOption_Execute_Call struct {
	*mock.Call
}

StreamOption_Execute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Execute'

func (*StreamOption_Execute_Call) Return

func (*StreamOption_Execute_Call) Run

func (*StreamOption_Execute_Call) RunAndReturn

type StreamOption_Expecter

type StreamOption_Expecter struct {
	// contains filtered or unexported fields
}

func (*StreamOption_Expecter) Execute

func (_e *StreamOption_Expecter) Execute(options interface{}) *StreamOption_Execute_Call

Execute is a helper method to define mock.On call

  • options *ai.StreamOptions

type StreamableAgentResponse

type StreamableAgentResponse struct {
	mock.Mock
}

StreamableAgentResponse is an autogenerated mock type for the StreamableAgentResponse type

func NewStreamableAgentResponse

func NewStreamableAgentResponse(t interface {
	mock.TestingT
	Cleanup(func())
}) *StreamableAgentResponse

NewStreamableAgentResponse creates a new instance of StreamableAgentResponse. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*StreamableAgentResponse) EXPECT

func (*StreamableAgentResponse) Each

func (_m *StreamableAgentResponse) Each(callback func(ai.StreamEvent) error) error

Each provides a mock function with given fields: callback

func (*StreamableAgentResponse) HTTPResponse

func (_m *StreamableAgentResponse) HTTPResponse(ctx http.Context, options ...ai.StreamOption) http.Response

HTTPResponse provides a mock function with given fields: ctx, options

func (*StreamableAgentResponse) Then

Then provides a mock function with given fields: callback

type StreamableAgentResponse_Each_Call

type StreamableAgentResponse_Each_Call struct {
	*mock.Call
}

StreamableAgentResponse_Each_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Each'

func (*StreamableAgentResponse_Each_Call) Return

func (*StreamableAgentResponse_Each_Call) Run

func (*StreamableAgentResponse_Each_Call) RunAndReturn

type StreamableAgentResponse_Expecter

type StreamableAgentResponse_Expecter struct {
	// contains filtered or unexported fields
}

func (*StreamableAgentResponse_Expecter) Each

Each is a helper method to define mock.On call

  • callback func(ai.StreamEvent) error

func (*StreamableAgentResponse_Expecter) HTTPResponse

func (_e *StreamableAgentResponse_Expecter) HTTPResponse(ctx interface{}, options ...interface{}) *StreamableAgentResponse_HTTPResponse_Call

HTTPResponse is a helper method to define mock.On call

  • ctx http.Context
  • options ...ai.StreamOption

func (*StreamableAgentResponse_Expecter) Then

Then is a helper method to define mock.On call

  • callback func(ai.AgentResponse)

type StreamableAgentResponse_HTTPResponse_Call

type StreamableAgentResponse_HTTPResponse_Call struct {
	*mock.Call
}

StreamableAgentResponse_HTTPResponse_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HTTPResponse'

func (*StreamableAgentResponse_HTTPResponse_Call) Return

func (*StreamableAgentResponse_HTTPResponse_Call) Run

func (*StreamableAgentResponse_HTTPResponse_Call) RunAndReturn

type StreamableAgentResponse_Then_Call

type StreamableAgentResponse_Then_Call struct {
	*mock.Call
}

StreamableAgentResponse_Then_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Then'

func (*StreamableAgentResponse_Then_Call) Return

func (*StreamableAgentResponse_Then_Call) Run

func (*StreamableAgentResponse_Then_Call) RunAndReturn

type Tool

type Tool struct {
	mock.Mock
}

Tool is an autogenerated mock type for the Tool type

func NewTool

func NewTool(t interface {
	mock.TestingT
	Cleanup(func())
}) *Tool

NewTool creates a new instance of Tool. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Tool) Description

func (_m *Tool) Description() string

Description provides a mock function with no fields

func (*Tool) EXPECT

func (_m *Tool) EXPECT() *Tool_Expecter

func (*Tool) Execute

func (_m *Tool) Execute(ctx context.Context, args map[string]interface{}) (string, error)

Execute provides a mock function with given fields: ctx, args

func (*Tool) Name

func (_m *Tool) Name() string

Name provides a mock function with no fields

func (*Tool) Parameters

func (_m *Tool) Parameters() map[string]interface{}

Parameters provides a mock function with no fields

type Tool_Description_Call

type Tool_Description_Call struct {
	*mock.Call
}

Tool_Description_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Description'

func (*Tool_Description_Call) Return

func (*Tool_Description_Call) Run

func (_c *Tool_Description_Call) Run(run func()) *Tool_Description_Call

func (*Tool_Description_Call) RunAndReturn

func (_c *Tool_Description_Call) RunAndReturn(run func() string) *Tool_Description_Call

type Tool_Execute_Call

type Tool_Execute_Call struct {
	*mock.Call
}

Tool_Execute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Execute'

func (*Tool_Execute_Call) Return

func (_c *Tool_Execute_Call) Return(_a0 string, _a1 error) *Tool_Execute_Call

func (*Tool_Execute_Call) Run

func (_c *Tool_Execute_Call) Run(run func(ctx context.Context, args map[string]interface{})) *Tool_Execute_Call

func (*Tool_Execute_Call) RunAndReturn

func (_c *Tool_Execute_Call) RunAndReturn(run func(context.Context, map[string]interface{}) (string, error)) *Tool_Execute_Call

type Tool_Expecter

type Tool_Expecter struct {
	// contains filtered or unexported fields
}

func (*Tool_Expecter) Description

func (_e *Tool_Expecter) Description() *Tool_Description_Call

Description is a helper method to define mock.On call

func (*Tool_Expecter) Execute

func (_e *Tool_Expecter) Execute(ctx interface{}, args interface{}) *Tool_Execute_Call

Execute is a helper method to define mock.On call

  • ctx context.Context
  • args map[string]interface{}

func (*Tool_Expecter) Name

func (_e *Tool_Expecter) Name() *Tool_Name_Call

Name is a helper method to define mock.On call

func (*Tool_Expecter) Parameters

func (_e *Tool_Expecter) Parameters() *Tool_Parameters_Call

Parameters is a helper method to define mock.On call

type Tool_Name_Call

type Tool_Name_Call struct {
	*mock.Call
}

Tool_Name_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Name'

func (*Tool_Name_Call) Return

func (_c *Tool_Name_Call) Return(_a0 string) *Tool_Name_Call

func (*Tool_Name_Call) Run

func (_c *Tool_Name_Call) Run(run func()) *Tool_Name_Call

func (*Tool_Name_Call) RunAndReturn

func (_c *Tool_Name_Call) RunAndReturn(run func() string) *Tool_Name_Call

type Tool_Parameters_Call

type Tool_Parameters_Call struct {
	*mock.Call
}

Tool_Parameters_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Parameters'

func (*Tool_Parameters_Call) Return

func (_c *Tool_Parameters_Call) Return(_a0 map[string]interface{}) *Tool_Parameters_Call

func (*Tool_Parameters_Call) Run

func (_c *Tool_Parameters_Call) Run(run func()) *Tool_Parameters_Call

func (*Tool_Parameters_Call) RunAndReturn

func (_c *Tool_Parameters_Call) RunAndReturn(run func() map[string]interface{}) *Tool_Parameters_Call

type TranscriptionProvider

type TranscriptionProvider struct {
	mock.Mock
}

TranscriptionProvider is an autogenerated mock type for the TranscriptionProvider type

func NewTranscriptionProvider

func NewTranscriptionProvider(t interface {
	mock.TestingT
	Cleanup(func())
}) *TranscriptionProvider

NewTranscriptionProvider creates a new instance of TranscriptionProvider. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*TranscriptionProvider) EXPECT

func (*TranscriptionProvider) Transcription

Transcription provides a mock function with given fields: ctx, prompt

type TranscriptionProvider_Expecter

type TranscriptionProvider_Expecter struct {
	// contains filtered or unexported fields
}

func (*TranscriptionProvider_Expecter) Transcription

func (_e *TranscriptionProvider_Expecter) Transcription(ctx interface{}, prompt interface{}) *TranscriptionProvider_Transcription_Call

Transcription is a helper method to define mock.On call

  • ctx context.Context
  • prompt ai.TranscriptionPrompt

type TranscriptionProvider_Transcription_Call

type TranscriptionProvider_Transcription_Call struct {
	*mock.Call
}

TranscriptionProvider_Transcription_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Transcription'

func (*TranscriptionProvider_Transcription_Call) Return

func (*TranscriptionProvider_Transcription_Call) Run

type TranscriptionRequest

type TranscriptionRequest struct {
	mock.Mock
}

TranscriptionRequest is an autogenerated mock type for the TranscriptionRequest type

func NewTranscriptionRequest

func NewTranscriptionRequest(t interface {
	mock.TestingT
	Cleanup(func())
}) *TranscriptionRequest

NewTranscriptionRequest creates a new instance of TranscriptionRequest. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*TranscriptionRequest) Diarize

Diarize provides a mock function with no fields

func (*TranscriptionRequest) EXPECT

func (*TranscriptionRequest) Generate

Generate provides a mock function with no fields

func (*TranscriptionRequest) Language

func (_m *TranscriptionRequest) Language(language string) ai.TranscriptionRequest

Language provides a mock function with given fields: language

func (*TranscriptionRequest) Model

Model provides a mock function with given fields: model

func (*TranscriptionRequest) Provider

func (_m *TranscriptionRequest) Provider(provider string, failovers ...string) ai.TranscriptionRequest

Provider provides a mock function with given fields: provider, failovers

func (*TranscriptionRequest) Timeout

Timeout provides a mock function with given fields: timeout

type TranscriptionRequest_Diarize_Call

type TranscriptionRequest_Diarize_Call struct {
	*mock.Call
}

TranscriptionRequest_Diarize_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Diarize'

func (*TranscriptionRequest_Diarize_Call) Return

func (*TranscriptionRequest_Diarize_Call) Run

func (*TranscriptionRequest_Diarize_Call) RunAndReturn

type TranscriptionRequest_Expecter

type TranscriptionRequest_Expecter struct {
	// contains filtered or unexported fields
}

func (*TranscriptionRequest_Expecter) Diarize

Diarize is a helper method to define mock.On call

func (*TranscriptionRequest_Expecter) Generate

Generate is a helper method to define mock.On call

func (*TranscriptionRequest_Expecter) Language

func (_e *TranscriptionRequest_Expecter) Language(language interface{}) *TranscriptionRequest_Language_Call

Language is a helper method to define mock.On call

  • language string

func (*TranscriptionRequest_Expecter) Model

func (_e *TranscriptionRequest_Expecter) Model(model interface{}) *TranscriptionRequest_Model_Call

Model is a helper method to define mock.On call

  • model string

func (*TranscriptionRequest_Expecter) Provider

func (_e *TranscriptionRequest_Expecter) Provider(provider interface{}, failovers ...interface{}) *TranscriptionRequest_Provider_Call

Provider is a helper method to define mock.On call

  • provider string
  • failovers ...string

func (*TranscriptionRequest_Expecter) Timeout

func (_e *TranscriptionRequest_Expecter) Timeout(timeout interface{}) *TranscriptionRequest_Timeout_Call

Timeout is a helper method to define mock.On call

  • timeout time.Duration

type TranscriptionRequest_Generate_Call

type TranscriptionRequest_Generate_Call struct {
	*mock.Call
}

TranscriptionRequest_Generate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Generate'

func (*TranscriptionRequest_Generate_Call) Return

func (*TranscriptionRequest_Generate_Call) Run

func (*TranscriptionRequest_Generate_Call) RunAndReturn

type TranscriptionRequest_Language_Call

type TranscriptionRequest_Language_Call struct {
	*mock.Call
}

TranscriptionRequest_Language_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Language'

func (*TranscriptionRequest_Language_Call) Return

func (*TranscriptionRequest_Language_Call) Run

func (*TranscriptionRequest_Language_Call) RunAndReturn

type TranscriptionRequest_Model_Call

type TranscriptionRequest_Model_Call struct {
	*mock.Call
}

TranscriptionRequest_Model_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Model'

func (*TranscriptionRequest_Model_Call) Return

func (*TranscriptionRequest_Model_Call) Run

func (*TranscriptionRequest_Model_Call) RunAndReturn

type TranscriptionRequest_Provider_Call

type TranscriptionRequest_Provider_Call struct {
	*mock.Call
}

TranscriptionRequest_Provider_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Provider'

func (*TranscriptionRequest_Provider_Call) Return

func (*TranscriptionRequest_Provider_Call) Run

func (_c *TranscriptionRequest_Provider_Call) Run(run func(provider string, failovers ...string)) *TranscriptionRequest_Provider_Call

func (*TranscriptionRequest_Provider_Call) RunAndReturn

type TranscriptionRequest_Timeout_Call

type TranscriptionRequest_Timeout_Call struct {
	*mock.Call
}

TranscriptionRequest_Timeout_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Timeout'

func (*TranscriptionRequest_Timeout_Call) Return

func (*TranscriptionRequest_Timeout_Call) Run

func (*TranscriptionRequest_Timeout_Call) RunAndReturn

type TranscriptionResponse

type TranscriptionResponse struct {
	mock.Mock
}

TranscriptionResponse is an autogenerated mock type for the TranscriptionResponse type

func NewTranscriptionResponse

func NewTranscriptionResponse(t interface {
	mock.TestingT
	Cleanup(func())
}) *TranscriptionResponse

NewTranscriptionResponse creates a new instance of TranscriptionResponse. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*TranscriptionResponse) EXPECT

func (*TranscriptionResponse) Segments

Segments provides a mock function with no fields

func (*TranscriptionResponse) Text

func (_m *TranscriptionResponse) Text() string

Text provides a mock function with no fields

func (*TranscriptionResponse) Then

Then provides a mock function with given fields: callback

func (*TranscriptionResponse) Usage

func (_m *TranscriptionResponse) Usage() ai.Usage

Usage provides a mock function with no fields

type TranscriptionResponse_Expecter

type TranscriptionResponse_Expecter struct {
	// contains filtered or unexported fields
}

func (*TranscriptionResponse_Expecter) Segments

Segments is a helper method to define mock.On call

func (*TranscriptionResponse_Expecter) Text

Text is a helper method to define mock.On call

func (*TranscriptionResponse_Expecter) Then

func (_e *TranscriptionResponse_Expecter) Then(callback interface{}) *TranscriptionResponse_Then_Call

Then is a helper method to define mock.On call

  • callback func(ai.TranscriptionResponse)

func (*TranscriptionResponse_Expecter) Usage

Usage is a helper method to define mock.On call

type TranscriptionResponse_Segments_Call

type TranscriptionResponse_Segments_Call struct {
	*mock.Call
}

TranscriptionResponse_Segments_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Segments'

func (*TranscriptionResponse_Segments_Call) Return

func (*TranscriptionResponse_Segments_Call) Run

func (*TranscriptionResponse_Segments_Call) RunAndReturn

type TranscriptionResponse_Text_Call

type TranscriptionResponse_Text_Call struct {
	*mock.Call
}

TranscriptionResponse_Text_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Text'

func (*TranscriptionResponse_Text_Call) Return

func (*TranscriptionResponse_Text_Call) Run

func (*TranscriptionResponse_Text_Call) RunAndReturn

type TranscriptionResponse_Then_Call

type TranscriptionResponse_Then_Call struct {
	*mock.Call
}

TranscriptionResponse_Then_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Then'

func (*TranscriptionResponse_Then_Call) Return

func (*TranscriptionResponse_Then_Call) Run

func (*TranscriptionResponse_Then_Call) RunAndReturn

type TranscriptionResponse_Usage_Call

type TranscriptionResponse_Usage_Call struct {
	*mock.Call
}

TranscriptionResponse_Usage_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Usage'

func (*TranscriptionResponse_Usage_Call) Return

func (*TranscriptionResponse_Usage_Call) Run

func (*TranscriptionResponse_Usage_Call) RunAndReturn

type Usage

type Usage struct {
	mock.Mock
}

Usage is an autogenerated mock type for the Usage type

func NewUsage

func NewUsage(t interface {
	mock.TestingT
	Cleanup(func())
}) *Usage

NewUsage creates a new instance of Usage. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Usage) EXPECT

func (_m *Usage) EXPECT() *Usage_Expecter

func (*Usage) Input

func (_m *Usage) Input() int

Input provides a mock function with no fields

func (*Usage) Output

func (_m *Usage) Output() int

Output provides a mock function with no fields

func (*Usage) Total

func (_m *Usage) Total() int

Total provides a mock function with no fields

type Usage_Expecter

type Usage_Expecter struct {
	// contains filtered or unexported fields
}

func (*Usage_Expecter) Input

func (_e *Usage_Expecter) Input() *Usage_Input_Call

Input is a helper method to define mock.On call

func (*Usage_Expecter) Output

func (_e *Usage_Expecter) Output() *Usage_Output_Call

Output is a helper method to define mock.On call

func (*Usage_Expecter) Total

func (_e *Usage_Expecter) Total() *Usage_Total_Call

Total is a helper method to define mock.On call

type Usage_Input_Call

type Usage_Input_Call struct {
	*mock.Call
}

Usage_Input_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Input'

func (*Usage_Input_Call) Return

func (_c *Usage_Input_Call) Return(_a0 int) *Usage_Input_Call

func (*Usage_Input_Call) Run

func (_c *Usage_Input_Call) Run(run func()) *Usage_Input_Call

func (*Usage_Input_Call) RunAndReturn

func (_c *Usage_Input_Call) RunAndReturn(run func() int) *Usage_Input_Call

type Usage_Output_Call

type Usage_Output_Call struct {
	*mock.Call
}

Usage_Output_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Output'

func (*Usage_Output_Call) Return

func (_c *Usage_Output_Call) Return(_a0 int) *Usage_Output_Call

func (*Usage_Output_Call) Run

func (_c *Usage_Output_Call) Run(run func()) *Usage_Output_Call

func (*Usage_Output_Call) RunAndReturn

func (_c *Usage_Output_Call) RunAndReturn(run func() int) *Usage_Output_Call

type Usage_Total_Call

type Usage_Total_Call struct {
	*mock.Call
}

Usage_Total_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Total'

func (*Usage_Total_Call) Return

func (_c *Usage_Total_Call) Return(_a0 int) *Usage_Total_Call

func (*Usage_Total_Call) Run

func (_c *Usage_Total_Call) Run(run func()) *Usage_Total_Call

func (*Usage_Total_Call) RunAndReturn

func (_c *Usage_Total_Call) RunAndReturn(run func() int) *Usage_Total_Call

Jump to

Keyboard shortcuts

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