Documentation
¶
Index ¶
- type AI
- func (_m *AI) Agent(agent ai.Agent, options ...ai.Option) (ai.Conversation, error)
- func (_m *AI) Audio(prompt string) ai.AudioRequest
- func (_m *AI) EXPECT() *AI_Expecter
- func (_m *AI) Image(prompt string) ai.ImageRequest
- func (_m *AI) Transcription(file ai.StorableFile) ai.TranscriptionRequest
- func (_m *AI) WithContext(ctx context.Context) ai.AI
- type AI_Agent_Call
- type AI_Audio_Call
- type AI_Expecter
- func (_e *AI_Expecter) Agent(agent interface{}, options ...interface{}) *AI_Agent_Call
- func (_e *AI_Expecter) Audio(prompt interface{}) *AI_Audio_Call
- func (_e *AI_Expecter) Image(prompt interface{}) *AI_Image_Call
- func (_e *AI_Expecter) Transcription(file interface{}) *AI_Transcription_Call
- func (_e *AI_Expecter) WithContext(ctx interface{}) *AI_WithContext_Call
- type AI_Image_Call
- type AI_Transcription_Call
- func (_c *AI_Transcription_Call) Return(_a0 ai.TranscriptionRequest) *AI_Transcription_Call
- func (_c *AI_Transcription_Call) Run(run func(file ai.StorableFile)) *AI_Transcription_Call
- func (_c *AI_Transcription_Call) RunAndReturn(run func(ai.StorableFile) ai.TranscriptionRequest) *AI_Transcription_Call
- type AI_WithContext_Call
- type Agent
- type AgentResponse
- type AgentResponse_Expecter
- type AgentResponse_Text_Call
- type AgentResponse_Then_Call
- func (_c *AgentResponse_Then_Call) Return(_a0 ai.AgentResponse) *AgentResponse_Then_Call
- func (_c *AgentResponse_Then_Call) Run(run func(callback func(ai.AgentResponse))) *AgentResponse_Then_Call
- func (_c *AgentResponse_Then_Call) RunAndReturn(run func(func(ai.AgentResponse)) ai.AgentResponse) *AgentResponse_Then_Call
- type AgentResponse_ToolCalls_Call
- type AgentResponse_Usage_Call
- type Agent_Expecter
- type Agent_Instructions_Call
- type Agent_Messages_Call
- type Agent_Middleware_Call
- type Agent_Tools_Call
- type Attachment
- func (_m *Attachment) Content(ctx context.Context) ([]byte, error)
- func (_m *Attachment) EXPECT() *Attachment_Expecter
- func (_m *Attachment) FileName() string
- func (_m *Attachment) Kind() ai.AttachmentKind
- func (_m *Attachment) MimeType() string
- func (_m *Attachment) Put(ctx context.Context, options ...ai.Option) (ai.FileResponse, error)
- type AttachmentOption
- type AttachmentOption_Execute_Call
- func (_c *AttachmentOption_Execute_Call) Return() *AttachmentOption_Execute_Call
- func (_c *AttachmentOption_Execute_Call) Run(run func(options *ai.AttachmentOptions)) *AttachmentOption_Execute_Call
- func (_c *AttachmentOption_Execute_Call) RunAndReturn(run func(*ai.AttachmentOptions)) *AttachmentOption_Execute_Call
- type AttachmentOption_Expecter
- type Attachment_Content_Call
- func (_c *Attachment_Content_Call) Return(_a0 []byte, _a1 error) *Attachment_Content_Call
- func (_c *Attachment_Content_Call) Run(run func(ctx context.Context)) *Attachment_Content_Call
- func (_c *Attachment_Content_Call) RunAndReturn(run func(context.Context) ([]byte, error)) *Attachment_Content_Call
- type Attachment_Expecter
- func (_e *Attachment_Expecter) Content(ctx interface{}) *Attachment_Content_Call
- func (_e *Attachment_Expecter) FileName() *Attachment_FileName_Call
- func (_e *Attachment_Expecter) Kind() *Attachment_Kind_Call
- func (_e *Attachment_Expecter) MimeType() *Attachment_MimeType_Call
- func (_e *Attachment_Expecter) Put(ctx interface{}, options ...interface{}) *Attachment_Put_Call
- type Attachment_FileName_Call
- type Attachment_Kind_Call
- type Attachment_MimeType_Call
- type Attachment_Put_Call
- func (_c *Attachment_Put_Call) Return(_a0 ai.FileResponse, _a1 error) *Attachment_Put_Call
- func (_c *Attachment_Put_Call) Run(run func(ctx context.Context, options ...ai.Option)) *Attachment_Put_Call
- func (_c *Attachment_Put_Call) RunAndReturn(run func(context.Context, ...ai.Option) (ai.FileResponse, error)) *Attachment_Put_Call
- type AudioProvider
- type AudioProvider_Audio_Call
- func (_c *AudioProvider_Audio_Call) Return(_a0 ai.AudioResponse, _a1 error) *AudioProvider_Audio_Call
- func (_c *AudioProvider_Audio_Call) Run(run func(ctx context.Context, prompt ai.AudioPrompt)) *AudioProvider_Audio_Call
- func (_c *AudioProvider_Audio_Call) RunAndReturn(run func(context.Context, ai.AudioPrompt) (ai.AudioResponse, error)) *AudioProvider_Audio_Call
- type AudioProvider_Expecter
- type AudioRequest
- func (_m *AudioRequest) EXPECT() *AudioRequest_Expecter
- func (_m *AudioRequest) Female() ai.AudioRequest
- func (_m *AudioRequest) Generate() (ai.AudioResponse, error)
- func (_m *AudioRequest) Instructions(instructions string) ai.AudioRequest
- func (_m *AudioRequest) Male() ai.AudioRequest
- func (_m *AudioRequest) Model(model string) ai.AudioRequest
- func (_m *AudioRequest) Provider(provider string, failovers ...string) ai.AudioRequest
- func (_m *AudioRequest) Store(disk ...string) (string, error)
- func (_m *AudioRequest) StoreAs(path string, disk ...string) (string, error)
- func (_m *AudioRequest) Timeout(timeout time.Duration) ai.AudioRequest
- func (_m *AudioRequest) Voice(voice string) ai.AudioRequest
- type AudioRequest_Expecter
- func (_e *AudioRequest_Expecter) Female() *AudioRequest_Female_Call
- func (_e *AudioRequest_Expecter) Generate() *AudioRequest_Generate_Call
- func (_e *AudioRequest_Expecter) Instructions(instructions interface{}) *AudioRequest_Instructions_Call
- func (_e *AudioRequest_Expecter) Male() *AudioRequest_Male_Call
- func (_e *AudioRequest_Expecter) Model(model interface{}) *AudioRequest_Model_Call
- func (_e *AudioRequest_Expecter) Provider(provider interface{}, failovers ...interface{}) *AudioRequest_Provider_Call
- func (_e *AudioRequest_Expecter) Store(disk ...interface{}) *AudioRequest_Store_Call
- func (_e *AudioRequest_Expecter) StoreAs(path interface{}, disk ...interface{}) *AudioRequest_StoreAs_Call
- func (_e *AudioRequest_Expecter) Timeout(timeout interface{}) *AudioRequest_Timeout_Call
- func (_e *AudioRequest_Expecter) Voice(voice interface{}) *AudioRequest_Voice_Call
- type AudioRequest_Female_Call
- type AudioRequest_Generate_Call
- func (_c *AudioRequest_Generate_Call) Return(_a0 ai.AudioResponse, _a1 error) *AudioRequest_Generate_Call
- func (_c *AudioRequest_Generate_Call) Run(run func()) *AudioRequest_Generate_Call
- func (_c *AudioRequest_Generate_Call) RunAndReturn(run func() (ai.AudioResponse, error)) *AudioRequest_Generate_Call
- type AudioRequest_Instructions_Call
- func (_c *AudioRequest_Instructions_Call) Return(_a0 ai.AudioRequest) *AudioRequest_Instructions_Call
- func (_c *AudioRequest_Instructions_Call) Run(run func(instructions string)) *AudioRequest_Instructions_Call
- func (_c *AudioRequest_Instructions_Call) RunAndReturn(run func(string) ai.AudioRequest) *AudioRequest_Instructions_Call
- type AudioRequest_Male_Call
- type AudioRequest_Model_Call
- type AudioRequest_Provider_Call
- func (_c *AudioRequest_Provider_Call) Return(_a0 ai.AudioRequest) *AudioRequest_Provider_Call
- func (_c *AudioRequest_Provider_Call) Run(run func(provider string, failovers ...string)) *AudioRequest_Provider_Call
- func (_c *AudioRequest_Provider_Call) RunAndReturn(run func(string, ...string) ai.AudioRequest) *AudioRequest_Provider_Call
- type AudioRequest_StoreAs_Call
- func (_c *AudioRequest_StoreAs_Call) Return(_a0 string, _a1 error) *AudioRequest_StoreAs_Call
- func (_c *AudioRequest_StoreAs_Call) Run(run func(path string, disk ...string)) *AudioRequest_StoreAs_Call
- func (_c *AudioRequest_StoreAs_Call) RunAndReturn(run func(string, ...string) (string, error)) *AudioRequest_StoreAs_Call
- type AudioRequest_Store_Call
- type AudioRequest_Timeout_Call
- func (_c *AudioRequest_Timeout_Call) Return(_a0 ai.AudioRequest) *AudioRequest_Timeout_Call
- func (_c *AudioRequest_Timeout_Call) Run(run func(timeout time.Duration)) *AudioRequest_Timeout_Call
- func (_c *AudioRequest_Timeout_Call) RunAndReturn(run func(time.Duration) ai.AudioRequest) *AudioRequest_Timeout_Call
- type AudioRequest_Voice_Call
- type AudioResponse
- func (_m *AudioResponse) Content() ([]byte, error)
- func (_m *AudioResponse) EXPECT() *AudioResponse_Expecter
- func (_m *AudioResponse) MimeType() string
- func (_m *AudioResponse) Store(disk ...string) (string, error)
- func (_m *AudioResponse) StoreAs(path string, disk ...string) (string, error)
- func (_m *AudioResponse) Then(callback func(ai.AudioResponse)) ai.AudioResponse
- func (_m *AudioResponse) Usage() ai.Usage
- type AudioResponse_Content_Call
- type AudioResponse_Expecter
- func (_e *AudioResponse_Expecter) Content() *AudioResponse_Content_Call
- func (_e *AudioResponse_Expecter) MimeType() *AudioResponse_MimeType_Call
- func (_e *AudioResponse_Expecter) Store(disk ...interface{}) *AudioResponse_Store_Call
- func (_e *AudioResponse_Expecter) StoreAs(path interface{}, disk ...interface{}) *AudioResponse_StoreAs_Call
- func (_e *AudioResponse_Expecter) Then(callback interface{}) *AudioResponse_Then_Call
- func (_e *AudioResponse_Expecter) Usage() *AudioResponse_Usage_Call
- type AudioResponse_MimeType_Call
- type AudioResponse_StoreAs_Call
- func (_c *AudioResponse_StoreAs_Call) Return(_a0 string, _a1 error) *AudioResponse_StoreAs_Call
- func (_c *AudioResponse_StoreAs_Call) Run(run func(path string, disk ...string)) *AudioResponse_StoreAs_Call
- func (_c *AudioResponse_StoreAs_Call) RunAndReturn(run func(string, ...string) (string, error)) *AudioResponse_StoreAs_Call
- type AudioResponse_Store_Call
- type AudioResponse_Then_Call
- func (_c *AudioResponse_Then_Call) Return(_a0 ai.AudioResponse) *AudioResponse_Then_Call
- func (_c *AudioResponse_Then_Call) Run(run func(callback func(ai.AudioResponse))) *AudioResponse_Then_Call
- func (_c *AudioResponse_Then_Call) RunAndReturn(run func(func(ai.AudioResponse)) ai.AudioResponse) *AudioResponse_Then_Call
- type AudioResponse_Usage_Call
- type Conversation
- func (_m *Conversation) EXPECT() *Conversation_Expecter
- func (_m *Conversation) Messages() []ai.Message
- func (_m *Conversation) Prompt(input string, options ...ai.ConversationOption) (ai.AgentResponse, error)
- func (_m *Conversation) Reset()
- func (_m *Conversation) Stream(input string, options ...ai.ConversationOption) (ai.StreamableAgentResponse, error)
- type ConversationOption
- type ConversationOption_Execute_Call
- func (_c *ConversationOption_Execute_Call) Return() *ConversationOption_Execute_Call
- func (_c *ConversationOption_Execute_Call) Run(run func(options *ai.ConversationOptions)) *ConversationOption_Execute_Call
- func (_c *ConversationOption_Execute_Call) RunAndReturn(run func(*ai.ConversationOptions)) *ConversationOption_Execute_Call
- type ConversationOption_Expecter
- type Conversation_Expecter
- func (_e *Conversation_Expecter) Messages() *Conversation_Messages_Call
- func (_e *Conversation_Expecter) Prompt(input interface{}, options ...interface{}) *Conversation_Prompt_Call
- func (_e *Conversation_Expecter) Reset() *Conversation_Reset_Call
- func (_e *Conversation_Expecter) Stream(input interface{}, options ...interface{}) *Conversation_Stream_Call
- type Conversation_Messages_Call
- type Conversation_Prompt_Call
- func (_c *Conversation_Prompt_Call) Return(_a0 ai.AgentResponse, _a1 error) *Conversation_Prompt_Call
- func (_c *Conversation_Prompt_Call) Run(run func(input string, options ...ai.ConversationOption)) *Conversation_Prompt_Call
- func (_c *Conversation_Prompt_Call) RunAndReturn(run func(string, ...ai.ConversationOption) (ai.AgentResponse, error)) *Conversation_Prompt_Call
- type Conversation_Reset_Call
- type Conversation_Stream_Call
- func (_c *Conversation_Stream_Call) Return(_a0 ai.StreamableAgentResponse, _a1 error) *Conversation_Stream_Call
- func (_c *Conversation_Stream_Call) Run(run func(input string, options ...ai.ConversationOption)) *Conversation_Stream_Call
- func (_c *Conversation_Stream_Call) RunAndReturn(run func(string, ...ai.ConversationOption) (ai.StreamableAgentResponse, error)) *Conversation_Stream_Call
- type FailoverError
- type FailoverError_Error_Call
- type FailoverError_Expecter
- type FailoverError_Provider_Call
- type FailoverError_Reason_Call
- type FailoverError_Unwrap_Call
- type FileProvider
- func (_m *FileProvider) DeleteFile(ctx context.Context, id string) error
- func (_m *FileProvider) EXPECT() *FileProvider_Expecter
- func (_m *FileProvider) GetFile(ctx context.Context, id string) (ai.FileResponse, error)
- func (_m *FileProvider) PutFile(ctx context.Context, file ai.StorableFile) (ai.FileResponse, error)
- type FileProvider_DeleteFile_Call
- func (_c *FileProvider_DeleteFile_Call) Return(_a0 error) *FileProvider_DeleteFile_Call
- func (_c *FileProvider_DeleteFile_Call) Run(run func(ctx context.Context, id string)) *FileProvider_DeleteFile_Call
- func (_c *FileProvider_DeleteFile_Call) RunAndReturn(run func(context.Context, string) error) *FileProvider_DeleteFile_Call
- type FileProvider_Expecter
- func (_e *FileProvider_Expecter) DeleteFile(ctx interface{}, id interface{}) *FileProvider_DeleteFile_Call
- func (_e *FileProvider_Expecter) GetFile(ctx interface{}, id interface{}) *FileProvider_GetFile_Call
- func (_e *FileProvider_Expecter) PutFile(ctx interface{}, file interface{}) *FileProvider_PutFile_Call
- type FileProvider_GetFile_Call
- func (_c *FileProvider_GetFile_Call) Return(_a0 ai.FileResponse, _a1 error) *FileProvider_GetFile_Call
- func (_c *FileProvider_GetFile_Call) Run(run func(ctx context.Context, id string)) *FileProvider_GetFile_Call
- func (_c *FileProvider_GetFile_Call) RunAndReturn(run func(context.Context, string) (ai.FileResponse, error)) *FileProvider_GetFile_Call
- type FileProvider_PutFile_Call
- func (_c *FileProvider_PutFile_Call) Return(_a0 ai.FileResponse, _a1 error) *FileProvider_PutFile_Call
- func (_c *FileProvider_PutFile_Call) Run(run func(ctx context.Context, file ai.StorableFile)) *FileProvider_PutFile_Call
- func (_c *FileProvider_PutFile_Call) RunAndReturn(run func(context.Context, ai.StorableFile) (ai.FileResponse, error)) *FileProvider_PutFile_Call
- type FileResponse
- type FileResponse_Content_Call
- func (_c *FileResponse_Content_Call) Return(_a0 []byte, _a1 error) *FileResponse_Content_Call
- func (_c *FileResponse_Content_Call) Run(run func(ctx context.Context)) *FileResponse_Content_Call
- func (_c *FileResponse_Content_Call) RunAndReturn(run func(context.Context) ([]byte, error)) *FileResponse_Content_Call
- type FileResponse_Expecter
- type FileResponse_ID_Call
- type FileResponse_MimeType_Call
- type ImageProvider
- type ImageProvider_Expecter
- type ImageProvider_Image_Call
- func (_c *ImageProvider_Image_Call) Return(_a0 ai.ImageResponse, _a1 error) *ImageProvider_Image_Call
- func (_c *ImageProvider_Image_Call) Run(run func(ctx context.Context, prompt ai.ImagePrompt)) *ImageProvider_Image_Call
- func (_c *ImageProvider_Image_Call) RunAndReturn(run func(context.Context, ai.ImagePrompt) (ai.ImageResponse, error)) *ImageProvider_Image_Call
- type ImageRequest
- func (_m *ImageRequest) Attachments(attachments ...ai.Attachment) ai.ImageRequest
- func (_m *ImageRequest) EXPECT() *ImageRequest_Expecter
- func (_m *ImageRequest) Generate() (ai.ImageResponse, error)
- func (_m *ImageRequest) Landscape() ai.ImageRequest
- func (_m *ImageRequest) Model(model string) ai.ImageRequest
- func (_m *ImageRequest) Portrait() ai.ImageRequest
- func (_m *ImageRequest) Provider(provider string, failovers ...string) ai.ImageRequest
- func (_m *ImageRequest) Quality(quality ai.ImageQuality) ai.ImageRequest
- func (_m *ImageRequest) Square() ai.ImageRequest
- func (_m *ImageRequest) Store(disk ...string) (string, error)
- func (_m *ImageRequest) StoreAs(path string, disk ...string) (string, error)
- func (_m *ImageRequest) Timeout(timeout time.Duration) ai.ImageRequest
- type ImageRequest_Attachments_Call
- func (_c *ImageRequest_Attachments_Call) Return(_a0 ai.ImageRequest) *ImageRequest_Attachments_Call
- func (_c *ImageRequest_Attachments_Call) Run(run func(attachments ...ai.Attachment)) *ImageRequest_Attachments_Call
- func (_c *ImageRequest_Attachments_Call) RunAndReturn(run func(...ai.Attachment) ai.ImageRequest) *ImageRequest_Attachments_Call
- type ImageRequest_Expecter
- func (_e *ImageRequest_Expecter) Attachments(attachments ...interface{}) *ImageRequest_Attachments_Call
- func (_e *ImageRequest_Expecter) Generate() *ImageRequest_Generate_Call
- func (_e *ImageRequest_Expecter) Landscape() *ImageRequest_Landscape_Call
- func (_e *ImageRequest_Expecter) Model(model interface{}) *ImageRequest_Model_Call
- func (_e *ImageRequest_Expecter) Portrait() *ImageRequest_Portrait_Call
- func (_e *ImageRequest_Expecter) Provider(provider interface{}, failovers ...interface{}) *ImageRequest_Provider_Call
- func (_e *ImageRequest_Expecter) Quality(quality interface{}) *ImageRequest_Quality_Call
- func (_e *ImageRequest_Expecter) Square() *ImageRequest_Square_Call
- func (_e *ImageRequest_Expecter) Store(disk ...interface{}) *ImageRequest_Store_Call
- func (_e *ImageRequest_Expecter) StoreAs(path interface{}, disk ...interface{}) *ImageRequest_StoreAs_Call
- func (_e *ImageRequest_Expecter) Timeout(timeout interface{}) *ImageRequest_Timeout_Call
- type ImageRequest_Generate_Call
- func (_c *ImageRequest_Generate_Call) Return(_a0 ai.ImageResponse, _a1 error) *ImageRequest_Generate_Call
- func (_c *ImageRequest_Generate_Call) Run(run func()) *ImageRequest_Generate_Call
- func (_c *ImageRequest_Generate_Call) RunAndReturn(run func() (ai.ImageResponse, error)) *ImageRequest_Generate_Call
- type ImageRequest_Landscape_Call
- type ImageRequest_Model_Call
- type ImageRequest_Portrait_Call
- type ImageRequest_Provider_Call
- func (_c *ImageRequest_Provider_Call) Return(_a0 ai.ImageRequest) *ImageRequest_Provider_Call
- func (_c *ImageRequest_Provider_Call) Run(run func(provider string, failovers ...string)) *ImageRequest_Provider_Call
- func (_c *ImageRequest_Provider_Call) RunAndReturn(run func(string, ...string) ai.ImageRequest) *ImageRequest_Provider_Call
- type ImageRequest_Quality_Call
- func (_c *ImageRequest_Quality_Call) Return(_a0 ai.ImageRequest) *ImageRequest_Quality_Call
- func (_c *ImageRequest_Quality_Call) Run(run func(quality ai.ImageQuality)) *ImageRequest_Quality_Call
- func (_c *ImageRequest_Quality_Call) RunAndReturn(run func(ai.ImageQuality) ai.ImageRequest) *ImageRequest_Quality_Call
- type ImageRequest_Square_Call
- type ImageRequest_StoreAs_Call
- func (_c *ImageRequest_StoreAs_Call) Return(_a0 string, _a1 error) *ImageRequest_StoreAs_Call
- func (_c *ImageRequest_StoreAs_Call) Run(run func(path string, disk ...string)) *ImageRequest_StoreAs_Call
- func (_c *ImageRequest_StoreAs_Call) RunAndReturn(run func(string, ...string) (string, error)) *ImageRequest_StoreAs_Call
- type ImageRequest_Store_Call
- type ImageRequest_Timeout_Call
- func (_c *ImageRequest_Timeout_Call) Return(_a0 ai.ImageRequest) *ImageRequest_Timeout_Call
- func (_c *ImageRequest_Timeout_Call) Run(run func(timeout time.Duration)) *ImageRequest_Timeout_Call
- func (_c *ImageRequest_Timeout_Call) RunAndReturn(run func(time.Duration) ai.ImageRequest) *ImageRequest_Timeout_Call
- type ImageResponse
- func (_m *ImageResponse) Content() ([]byte, error)
- func (_m *ImageResponse) EXPECT() *ImageResponse_Expecter
- func (_m *ImageResponse) MimeType() string
- func (_m *ImageResponse) Store(disk ...string) (string, error)
- func (_m *ImageResponse) StoreAs(path string, disk ...string) (string, error)
- func (_m *ImageResponse) Then(callback func(ai.ImageResponse)) ai.ImageResponse
- func (_m *ImageResponse) Usage() ai.Usage
- type ImageResponse_Content_Call
- type ImageResponse_Expecter
- func (_e *ImageResponse_Expecter) Content() *ImageResponse_Content_Call
- func (_e *ImageResponse_Expecter) MimeType() *ImageResponse_MimeType_Call
- func (_e *ImageResponse_Expecter) Store(disk ...interface{}) *ImageResponse_Store_Call
- func (_e *ImageResponse_Expecter) StoreAs(path interface{}, disk ...interface{}) *ImageResponse_StoreAs_Call
- func (_e *ImageResponse_Expecter) Then(callback interface{}) *ImageResponse_Then_Call
- func (_e *ImageResponse_Expecter) Usage() *ImageResponse_Usage_Call
- type ImageResponse_MimeType_Call
- type ImageResponse_StoreAs_Call
- func (_c *ImageResponse_StoreAs_Call) Return(_a0 string, _a1 error) *ImageResponse_StoreAs_Call
- func (_c *ImageResponse_StoreAs_Call) Run(run func(path string, disk ...string)) *ImageResponse_StoreAs_Call
- func (_c *ImageResponse_StoreAs_Call) RunAndReturn(run func(string, ...string) (string, error)) *ImageResponse_StoreAs_Call
- type ImageResponse_Store_Call
- type ImageResponse_Then_Call
- func (_c *ImageResponse_Then_Call) Return(_a0 ai.ImageResponse) *ImageResponse_Then_Call
- func (_c *ImageResponse_Then_Call) Run(run func(callback func(ai.ImageResponse))) *ImageResponse_Then_Call
- func (_c *ImageResponse_Then_Call) RunAndReturn(run func(func(ai.ImageResponse)) ai.ImageResponse) *ImageResponse_Then_Call
- type ImageResponse_Usage_Call
- type ImageStorer
- type ImageStorer_Expecter
- type ImageStorer_StoreAs_Call
- func (_c *ImageStorer_StoreAs_Call) Return(_a0 string, _a1 error) *ImageStorer_StoreAs_Call
- func (_c *ImageStorer_StoreAs_Call) Run(run func(content []byte, path string, disk string)) *ImageStorer_StoreAs_Call
- func (_c *ImageStorer_StoreAs_Call) RunAndReturn(run func([]byte, string, string) (string, error)) *ImageStorer_StoreAs_Call
- type ImageStorer_Store_Call
- func (_c *ImageStorer_Store_Call) Return(_a0 string, _a1 error) *ImageStorer_Store_Call
- func (_c *ImageStorer_Store_Call) Run(run func(content []byte, name string, disk string)) *ImageStorer_Store_Call
- func (_c *ImageStorer_Store_Call) RunAndReturn(run func([]byte, string, string) (string, error)) *ImageStorer_Store_Call
- type Middleware
- type Middleware_Expecter
- type Middleware_Handle_Call
- func (_c *Middleware_Handle_Call) Return(_a0 ai.AgentResponse, _a1 error) *Middleware_Handle_Call
- func (_c *Middleware_Handle_Call) Run(run func(ctx context.Context, prompt ai.AgentPrompt, next ai.Next)) *Middleware_Handle_Call
- func (_c *Middleware_Handle_Call) RunAndReturn(run func(context.Context, ai.AgentPrompt, ai.Next) (ai.AgentResponse, error)) *Middleware_Handle_Call
- type Next
- type Next_Execute_Call
- func (_c *Next_Execute_Call) Return(_a0 ai.AgentResponse, _a1 error) *Next_Execute_Call
- func (_c *Next_Execute_Call) Run(run func(ctx context.Context, prompt ai.AgentPrompt)) *Next_Execute_Call
- func (_c *Next_Execute_Call) RunAndReturn(run func(context.Context, ai.AgentPrompt) (ai.AgentResponse, error)) *Next_Execute_Call
- type Next_Expecter
- type Option
- type Option_Execute_Call
- type Option_Expecter
- type Provider
- type ProviderFile
- func (_m *ProviderFile) Content(ctx context.Context) ([]byte, error)
- func (_m *ProviderFile) Delete(ctx context.Context, options ...ai.Option) error
- func (_m *ProviderFile) EXPECT() *ProviderFile_Expecter
- func (_m *ProviderFile) FileName() string
- func (_m *ProviderFile) Get(ctx context.Context, options ...ai.Option) (ai.FileResponse, error)
- func (_m *ProviderFile) ID() string
- func (_m *ProviderFile) Kind() ai.AttachmentKind
- func (_m *ProviderFile) MimeType() string
- func (_m *ProviderFile) Put(ctx context.Context, options ...ai.Option) (ai.FileResponse, error)
- type ProviderFile_Content_Call
- func (_c *ProviderFile_Content_Call) Return(_a0 []byte, _a1 error) *ProviderFile_Content_Call
- func (_c *ProviderFile_Content_Call) Run(run func(ctx context.Context)) *ProviderFile_Content_Call
- func (_c *ProviderFile_Content_Call) RunAndReturn(run func(context.Context) ([]byte, error)) *ProviderFile_Content_Call
- type ProviderFile_Delete_Call
- func (_c *ProviderFile_Delete_Call) Return(_a0 error) *ProviderFile_Delete_Call
- func (_c *ProviderFile_Delete_Call) Run(run func(ctx context.Context, options ...ai.Option)) *ProviderFile_Delete_Call
- func (_c *ProviderFile_Delete_Call) RunAndReturn(run func(context.Context, ...ai.Option) error) *ProviderFile_Delete_Call
- type ProviderFile_Expecter
- func (_e *ProviderFile_Expecter) Content(ctx interface{}) *ProviderFile_Content_Call
- func (_e *ProviderFile_Expecter) Delete(ctx interface{}, options ...interface{}) *ProviderFile_Delete_Call
- func (_e *ProviderFile_Expecter) FileName() *ProviderFile_FileName_Call
- func (_e *ProviderFile_Expecter) Get(ctx interface{}, options ...interface{}) *ProviderFile_Get_Call
- func (_e *ProviderFile_Expecter) ID() *ProviderFile_ID_Call
- func (_e *ProviderFile_Expecter) Kind() *ProviderFile_Kind_Call
- func (_e *ProviderFile_Expecter) MimeType() *ProviderFile_MimeType_Call
- func (_e *ProviderFile_Expecter) Put(ctx interface{}, options ...interface{}) *ProviderFile_Put_Call
- type ProviderFile_FileName_Call
- type ProviderFile_Get_Call
- func (_c *ProviderFile_Get_Call) Return(_a0 ai.FileResponse, _a1 error) *ProviderFile_Get_Call
- func (_c *ProviderFile_Get_Call) Run(run func(ctx context.Context, options ...ai.Option)) *ProviderFile_Get_Call
- func (_c *ProviderFile_Get_Call) RunAndReturn(run func(context.Context, ...ai.Option) (ai.FileResponse, error)) *ProviderFile_Get_Call
- type ProviderFile_ID_Call
- type ProviderFile_Kind_Call
- type ProviderFile_MimeType_Call
- type ProviderFile_Put_Call
- func (_c *ProviderFile_Put_Call) Return(_a0 ai.FileResponse, _a1 error) *ProviderFile_Put_Call
- func (_c *ProviderFile_Put_Call) Run(run func(ctx context.Context, options ...ai.Option)) *ProviderFile_Put_Call
- func (_c *ProviderFile_Put_Call) RunAndReturn(run func(context.Context, ...ai.Option) (ai.FileResponse, error)) *ProviderFile_Put_Call
- type ProviderState
- type ProviderState_Expecter
- type ProviderState_Get_Call
- type ProviderState_Set_Call
- type Provider_Expecter
- type Provider_Prompt_Call
- func (_c *Provider_Prompt_Call) Return(_a0 ai.AgentResponse, _a1 error) *Provider_Prompt_Call
- func (_c *Provider_Prompt_Call) Run(run func(ctx context.Context, prompt ai.AgentPrompt)) *Provider_Prompt_Call
- func (_c *Provider_Prompt_Call) RunAndReturn(run func(context.Context, ai.AgentPrompt) (ai.AgentResponse, error)) *Provider_Prompt_Call
- type Provider_Stream_Call
- func (_c *Provider_Stream_Call) Return(_a0 ai.StreamableAgentResponse, _a1 error) *Provider_Stream_Call
- func (_c *Provider_Stream_Call) Run(run func(ctx context.Context, prompt ai.AgentPrompt)) *Provider_Stream_Call
- func (_c *Provider_Stream_Call) RunAndReturn(run func(context.Context, ai.AgentPrompt) (ai.StreamableAgentResponse, error)) *Provider_Stream_Call
- type RenderFunc
- type RenderFunc_Execute_Call
- func (_c *RenderFunc_Execute_Call) Return(_a0 error) *RenderFunc_Execute_Call
- func (_c *RenderFunc_Execute_Call) Run(run func(w http.StreamWriter, event ai.StreamEvent)) *RenderFunc_Execute_Call
- func (_c *RenderFunc_Execute_Call) RunAndReturn(run func(http.StreamWriter, ai.StreamEvent) error) *RenderFunc_Execute_Call
- type RenderFunc_Expecter
- type StorableFile
- type StorableFile_Content_Call
- func (_c *StorableFile_Content_Call) Return(_a0 []byte, _a1 error) *StorableFile_Content_Call
- func (_c *StorableFile_Content_Call) Run(run func(ctx context.Context)) *StorableFile_Content_Call
- func (_c *StorableFile_Content_Call) RunAndReturn(run func(context.Context) ([]byte, error)) *StorableFile_Content_Call
- type StorableFile_Expecter
- type StorableFile_FileName_Call
- type StorableFile_MimeType_Call
- type StreamOption
- type StreamOption_Execute_Call
- type StreamOption_Expecter
- type StreamableAgentResponse
- func (_m *StreamableAgentResponse) EXPECT() *StreamableAgentResponse_Expecter
- func (_m *StreamableAgentResponse) Each(callback func(ai.StreamEvent) error) error
- func (_m *StreamableAgentResponse) HTTPResponse(ctx http.Context, options ...ai.StreamOption) http.Response
- func (_m *StreamableAgentResponse) Then(callback func(ai.AgentResponse)) ai.StreamableAgentResponse
- type StreamableAgentResponse_Each_Call
- func (_c *StreamableAgentResponse_Each_Call) Return(_a0 error) *StreamableAgentResponse_Each_Call
- func (_c *StreamableAgentResponse_Each_Call) Run(run func(callback func(ai.StreamEvent) error)) *StreamableAgentResponse_Each_Call
- func (_c *StreamableAgentResponse_Each_Call) RunAndReturn(run func(func(ai.StreamEvent) error) error) *StreamableAgentResponse_Each_Call
- type StreamableAgentResponse_Expecter
- func (_e *StreamableAgentResponse_Expecter) Each(callback interface{}) *StreamableAgentResponse_Each_Call
- func (_e *StreamableAgentResponse_Expecter) HTTPResponse(ctx interface{}, options ...interface{}) *StreamableAgentResponse_HTTPResponse_Call
- func (_e *StreamableAgentResponse_Expecter) Then(callback interface{}) *StreamableAgentResponse_Then_Call
- type StreamableAgentResponse_HTTPResponse_Call
- func (_c *StreamableAgentResponse_HTTPResponse_Call) Return(_a0 http.Response) *StreamableAgentResponse_HTTPResponse_Call
- func (_c *StreamableAgentResponse_HTTPResponse_Call) Run(run func(ctx http.Context, options ...ai.StreamOption)) *StreamableAgentResponse_HTTPResponse_Call
- func (_c *StreamableAgentResponse_HTTPResponse_Call) RunAndReturn(run func(http.Context, ...ai.StreamOption) http.Response) *StreamableAgentResponse_HTTPResponse_Call
- type StreamableAgentResponse_Then_Call
- func (_c *StreamableAgentResponse_Then_Call) Return(_a0 ai.StreamableAgentResponse) *StreamableAgentResponse_Then_Call
- func (_c *StreamableAgentResponse_Then_Call) Run(run func(callback func(ai.AgentResponse))) *StreamableAgentResponse_Then_Call
- func (_c *StreamableAgentResponse_Then_Call) RunAndReturn(run func(func(ai.AgentResponse)) ai.StreamableAgentResponse) *StreamableAgentResponse_Then_Call
- type Tool
- type Tool_Description_Call
- type Tool_Execute_Call
- func (_c *Tool_Execute_Call) Return(_a0 string, _a1 error) *Tool_Execute_Call
- func (_c *Tool_Execute_Call) Run(run func(ctx context.Context, args map[string]interface{})) *Tool_Execute_Call
- func (_c *Tool_Execute_Call) RunAndReturn(run func(context.Context, map[string]interface{}) (string, error)) *Tool_Execute_Call
- type Tool_Expecter
- type Tool_Name_Call
- type Tool_Parameters_Call
- type TranscriptionProvider
- type TranscriptionProvider_Expecter
- type TranscriptionProvider_Transcription_Call
- func (_c *TranscriptionProvider_Transcription_Call) Return(_a0 ai.TranscriptionResponse, _a1 error) *TranscriptionProvider_Transcription_Call
- func (_c *TranscriptionProvider_Transcription_Call) Run(run func(ctx context.Context, prompt ai.TranscriptionPrompt)) *TranscriptionProvider_Transcription_Call
- func (_c *TranscriptionProvider_Transcription_Call) RunAndReturn(...) *TranscriptionProvider_Transcription_Call
- type TranscriptionRequest
- func (_m *TranscriptionRequest) Diarize() ai.TranscriptionRequest
- func (_m *TranscriptionRequest) EXPECT() *TranscriptionRequest_Expecter
- func (_m *TranscriptionRequest) Generate() (ai.TranscriptionResponse, error)
- func (_m *TranscriptionRequest) Language(language string) ai.TranscriptionRequest
- func (_m *TranscriptionRequest) Model(model string) ai.TranscriptionRequest
- func (_m *TranscriptionRequest) Provider(provider string, failovers ...string) ai.TranscriptionRequest
- func (_m *TranscriptionRequest) Timeout(timeout time.Duration) ai.TranscriptionRequest
- type TranscriptionRequest_Diarize_Call
- func (_c *TranscriptionRequest_Diarize_Call) Return(_a0 ai.TranscriptionRequest) *TranscriptionRequest_Diarize_Call
- func (_c *TranscriptionRequest_Diarize_Call) Run(run func()) *TranscriptionRequest_Diarize_Call
- func (_c *TranscriptionRequest_Diarize_Call) RunAndReturn(run func() ai.TranscriptionRequest) *TranscriptionRequest_Diarize_Call
- type TranscriptionRequest_Expecter
- func (_e *TranscriptionRequest_Expecter) Diarize() *TranscriptionRequest_Diarize_Call
- func (_e *TranscriptionRequest_Expecter) Generate() *TranscriptionRequest_Generate_Call
- func (_e *TranscriptionRequest_Expecter) Language(language interface{}) *TranscriptionRequest_Language_Call
- func (_e *TranscriptionRequest_Expecter) Model(model interface{}) *TranscriptionRequest_Model_Call
- func (_e *TranscriptionRequest_Expecter) Provider(provider interface{}, failovers ...interface{}) *TranscriptionRequest_Provider_Call
- func (_e *TranscriptionRequest_Expecter) Timeout(timeout interface{}) *TranscriptionRequest_Timeout_Call
- type TranscriptionRequest_Generate_Call
- func (_c *TranscriptionRequest_Generate_Call) Return(_a0 ai.TranscriptionResponse, _a1 error) *TranscriptionRequest_Generate_Call
- func (_c *TranscriptionRequest_Generate_Call) Run(run func()) *TranscriptionRequest_Generate_Call
- func (_c *TranscriptionRequest_Generate_Call) RunAndReturn(run func() (ai.TranscriptionResponse, error)) *TranscriptionRequest_Generate_Call
- type TranscriptionRequest_Language_Call
- func (_c *TranscriptionRequest_Language_Call) Return(_a0 ai.TranscriptionRequest) *TranscriptionRequest_Language_Call
- func (_c *TranscriptionRequest_Language_Call) Run(run func(language string)) *TranscriptionRequest_Language_Call
- func (_c *TranscriptionRequest_Language_Call) RunAndReturn(run func(string) ai.TranscriptionRequest) *TranscriptionRequest_Language_Call
- type TranscriptionRequest_Model_Call
- func (_c *TranscriptionRequest_Model_Call) Return(_a0 ai.TranscriptionRequest) *TranscriptionRequest_Model_Call
- func (_c *TranscriptionRequest_Model_Call) Run(run func(model string)) *TranscriptionRequest_Model_Call
- func (_c *TranscriptionRequest_Model_Call) RunAndReturn(run func(string) ai.TranscriptionRequest) *TranscriptionRequest_Model_Call
- type TranscriptionRequest_Provider_Call
- func (_c *TranscriptionRequest_Provider_Call) Return(_a0 ai.TranscriptionRequest) *TranscriptionRequest_Provider_Call
- func (_c *TranscriptionRequest_Provider_Call) Run(run func(provider string, failovers ...string)) *TranscriptionRequest_Provider_Call
- func (_c *TranscriptionRequest_Provider_Call) RunAndReturn(run func(string, ...string) ai.TranscriptionRequest) *TranscriptionRequest_Provider_Call
- type TranscriptionRequest_Timeout_Call
- func (_c *TranscriptionRequest_Timeout_Call) Return(_a0 ai.TranscriptionRequest) *TranscriptionRequest_Timeout_Call
- func (_c *TranscriptionRequest_Timeout_Call) Run(run func(timeout time.Duration)) *TranscriptionRequest_Timeout_Call
- func (_c *TranscriptionRequest_Timeout_Call) RunAndReturn(run func(time.Duration) ai.TranscriptionRequest) *TranscriptionRequest_Timeout_Call
- type TranscriptionResponse
- func (_m *TranscriptionResponse) EXPECT() *TranscriptionResponse_Expecter
- func (_m *TranscriptionResponse) Segments() []ai.TranscriptionSegment
- func (_m *TranscriptionResponse) Text() string
- func (_m *TranscriptionResponse) Then(callback func(ai.TranscriptionResponse)) ai.TranscriptionResponse
- func (_m *TranscriptionResponse) Usage() ai.Usage
- type TranscriptionResponse_Expecter
- func (_e *TranscriptionResponse_Expecter) Segments() *TranscriptionResponse_Segments_Call
- func (_e *TranscriptionResponse_Expecter) Text() *TranscriptionResponse_Text_Call
- func (_e *TranscriptionResponse_Expecter) Then(callback interface{}) *TranscriptionResponse_Then_Call
- func (_e *TranscriptionResponse_Expecter) Usage() *TranscriptionResponse_Usage_Call
- type TranscriptionResponse_Segments_Call
- func (_c *TranscriptionResponse_Segments_Call) Return(_a0 []ai.TranscriptionSegment) *TranscriptionResponse_Segments_Call
- func (_c *TranscriptionResponse_Segments_Call) Run(run func()) *TranscriptionResponse_Segments_Call
- func (_c *TranscriptionResponse_Segments_Call) RunAndReturn(run func() []ai.TranscriptionSegment) *TranscriptionResponse_Segments_Call
- type TranscriptionResponse_Text_Call
- type TranscriptionResponse_Then_Call
- func (_c *TranscriptionResponse_Then_Call) Return(_a0 ai.TranscriptionResponse) *TranscriptionResponse_Then_Call
- func (_c *TranscriptionResponse_Then_Call) Run(run func(callback func(ai.TranscriptionResponse))) *TranscriptionResponse_Then_Call
- func (_c *TranscriptionResponse_Then_Call) RunAndReturn(run func(func(ai.TranscriptionResponse)) ai.TranscriptionResponse) *TranscriptionResponse_Then_Call
- type TranscriptionResponse_Usage_Call
- func (_c *TranscriptionResponse_Usage_Call) Return(_a0 ai.Usage) *TranscriptionResponse_Usage_Call
- func (_c *TranscriptionResponse_Usage_Call) Run(run func()) *TranscriptionResponse_Usage_Call
- func (_c *TranscriptionResponse_Usage_Call) RunAndReturn(run func() ai.Usage) *TranscriptionResponse_Usage_Call
- type Usage
- type Usage_Expecter
- type Usage_Input_Call
- type Usage_Output_Call
- type Usage_Total_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AI ¶
AI is an autogenerated mock type for the AI type
func NewAI ¶
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) 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
type AI_Agent_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 ¶
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 ¶
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 ¶
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 (_c *AI_Transcription_Call) Return(_a0 ai.TranscriptionRequest) *AI_Transcription_Call
func (*AI_Transcription_Call) Run ¶
func (_c *AI_Transcription_Call) Run(run func(file ai.StorableFile)) *AI_Transcription_Call
func (*AI_Transcription_Call) RunAndReturn ¶
func (_c *AI_Transcription_Call) RunAndReturn(run func(ai.StorableFile) ai.TranscriptionRequest) *AI_Transcription_Call
type AI_WithContext_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 ¶
Agent is an autogenerated mock type for the Agent type
func NewAgent ¶
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 ¶
Instructions provides a mock function with no fields
func (*Agent) Middleware ¶
func (_m *Agent) Middleware() []ai.Middleware
Middleware provides a mock function with no fields
type AgentResponse ¶
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 ¶
func (_e *AgentResponse_Expecter) Text() *AgentResponse_Text_Call
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 ¶
func (_e *AgentResponse_Expecter) ToolCalls() *AgentResponse_ToolCalls_Call
ToolCalls is a helper method to define mock.On call
func (*AgentResponse_Expecter) Usage ¶
func (_e *AgentResponse_Expecter) Usage() *AgentResponse_Usage_Call
Usage is a helper method to define mock.On call
type AgentResponse_Text_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 (_c *AgentResponse_Text_Call) Return(_a0 string) *AgentResponse_Text_Call
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 ¶
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 (_c *AgentResponse_Then_Call) Return(_a0 ai.AgentResponse) *AgentResponse_Then_Call
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 ¶
func (_c *AgentResponse_Then_Call) RunAndReturn(run func(func(ai.AgentResponse)) ai.AgentResponse) *AgentResponse_Then_Call
type AgentResponse_ToolCalls_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 (_c *AgentResponse_ToolCalls_Call) Return(_a0 []ai.ToolCall) *AgentResponse_ToolCalls_Call
func (*AgentResponse_ToolCalls_Call) Run ¶
func (_c *AgentResponse_ToolCalls_Call) Run(run func()) *AgentResponse_ToolCalls_Call
func (*AgentResponse_ToolCalls_Call) RunAndReturn ¶
func (_c *AgentResponse_ToolCalls_Call) RunAndReturn(run func() []ai.ToolCall) *AgentResponse_ToolCalls_Call
type AgentResponse_Usage_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 (_c *AgentResponse_Usage_Call) Return(_a0 ai.Usage) *AgentResponse_Usage_Call
func (*AgentResponse_Usage_Call) Run ¶
func (_c *AgentResponse_Usage_Call) Run(run func()) *AgentResponse_Usage_Call
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 ¶
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 (_c *Agent_Instructions_Call) Return(_a0 string) *Agent_Instructions_Call
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 ¶
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 (_c *Agent_Messages_Call) Return(_a0 []ai.Message) *Agent_Messages_Call
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 ¶
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 (_c *Agent_Middleware_Call) Return(_a0 []ai.Middleware) *Agent_Middleware_Call
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 ¶
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 ¶
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 ¶
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 (_m *AttachmentOption) EXPECT() *AttachmentOption_Expecter
func (*AttachmentOption) Execute ¶
func (_m *AttachmentOption) Execute(options *ai.AttachmentOptions)
Execute provides a mock function with given fields: options
type AttachmentOption_Execute_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 (_c *AttachmentOption_Execute_Call) Return() *AttachmentOption_Execute_Call
func (*AttachmentOption_Execute_Call) Run ¶
func (_c *AttachmentOption_Execute_Call) Run(run func(options *ai.AttachmentOptions)) *AttachmentOption_Execute_Call
func (*AttachmentOption_Execute_Call) RunAndReturn ¶
func (_c *AttachmentOption_Execute_Call) RunAndReturn(run func(*ai.AttachmentOptions)) *AttachmentOption_Execute_Call
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 ¶
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 (_c *Attachment_Content_Call) Return(_a0 []byte, _a1 error) *Attachment_Content_Call
func (*Attachment_Content_Call) Run ¶
func (_c *Attachment_Content_Call) Run(run func(ctx context.Context)) *Attachment_Content_Call
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 ¶
func (_e *Attachment_Expecter) FileName() *Attachment_FileName_Call
FileName is a helper method to define mock.On call
func (*Attachment_Expecter) Kind ¶
func (_e *Attachment_Expecter) Kind() *Attachment_Kind_Call
Kind is a helper method to define mock.On call
func (*Attachment_Expecter) MimeType ¶
func (_e *Attachment_Expecter) MimeType() *Attachment_MimeType_Call
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 ¶
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 (_c *Attachment_FileName_Call) Return(_a0 string) *Attachment_FileName_Call
func (*Attachment_FileName_Call) Run ¶
func (_c *Attachment_FileName_Call) Run(run func()) *Attachment_FileName_Call
func (*Attachment_FileName_Call) RunAndReturn ¶
func (_c *Attachment_FileName_Call) RunAndReturn(run func() string) *Attachment_FileName_Call
type Attachment_Kind_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 (_c *Attachment_Kind_Call) Return(_a0 ai.AttachmentKind) *Attachment_Kind_Call
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 ¶
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 (_c *Attachment_MimeType_Call) Return(_a0 string) *Attachment_MimeType_Call
func (*Attachment_MimeType_Call) Run ¶
func (_c *Attachment_MimeType_Call) Run(run func()) *Attachment_MimeType_Call
func (*Attachment_MimeType_Call) RunAndReturn ¶
func (_c *Attachment_MimeType_Call) RunAndReturn(run func() string) *Attachment_MimeType_Call
type Attachment_Put_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 (_c *Attachment_Put_Call) Return(_a0 ai.FileResponse, _a1 error) *Attachment_Put_Call
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 ¶
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 ¶
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 (_c *AudioProvider_Audio_Call) Return(_a0 ai.AudioResponse, _a1 error) *AudioProvider_Audio_Call
func (*AudioProvider_Audio_Call) Run ¶
func (_c *AudioProvider_Audio_Call) Run(run func(ctx context.Context, prompt ai.AudioPrompt)) *AudioProvider_Audio_Call
func (*AudioProvider_Audio_Call) RunAndReturn ¶
func (_c *AudioProvider_Audio_Call) RunAndReturn(run func(context.Context, ai.AudioPrompt) (ai.AudioResponse, error)) *AudioProvider_Audio_Call
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 ¶
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 ¶
func (_e *AudioRequest_Expecter) Female() *AudioRequest_Female_Call
Female is a helper method to define mock.On call
func (*AudioRequest_Expecter) Generate ¶
func (_e *AudioRequest_Expecter) Generate() *AudioRequest_Generate_Call
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 ¶
func (_e *AudioRequest_Expecter) Male() *AudioRequest_Male_Call
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 ¶
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 (_c *AudioRequest_Female_Call) Return(_a0 ai.AudioRequest) *AudioRequest_Female_Call
func (*AudioRequest_Female_Call) Run ¶
func (_c *AudioRequest_Female_Call) Run(run func()) *AudioRequest_Female_Call
func (*AudioRequest_Female_Call) RunAndReturn ¶
func (_c *AudioRequest_Female_Call) RunAndReturn(run func() ai.AudioRequest) *AudioRequest_Female_Call
type AudioRequest_Generate_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 (_c *AudioRequest_Generate_Call) Return(_a0 ai.AudioResponse, _a1 error) *AudioRequest_Generate_Call
func (*AudioRequest_Generate_Call) Run ¶
func (_c *AudioRequest_Generate_Call) Run(run func()) *AudioRequest_Generate_Call
func (*AudioRequest_Generate_Call) RunAndReturn ¶
func (_c *AudioRequest_Generate_Call) RunAndReturn(run func() (ai.AudioResponse, error)) *AudioRequest_Generate_Call
type AudioRequest_Instructions_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 (_c *AudioRequest_Instructions_Call) Return(_a0 ai.AudioRequest) *AudioRequest_Instructions_Call
func (*AudioRequest_Instructions_Call) Run ¶
func (_c *AudioRequest_Instructions_Call) Run(run func(instructions string)) *AudioRequest_Instructions_Call
func (*AudioRequest_Instructions_Call) RunAndReturn ¶
func (_c *AudioRequest_Instructions_Call) RunAndReturn(run func(string) ai.AudioRequest) *AudioRequest_Instructions_Call
type AudioRequest_Male_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 (_c *AudioRequest_Male_Call) Return(_a0 ai.AudioRequest) *AudioRequest_Male_Call
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 ¶
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 (_c *AudioRequest_Model_Call) Return(_a0 ai.AudioRequest) *AudioRequest_Model_Call
func (*AudioRequest_Model_Call) Run ¶
func (_c *AudioRequest_Model_Call) Run(run func(model string)) *AudioRequest_Model_Call
func (*AudioRequest_Model_Call) RunAndReturn ¶
func (_c *AudioRequest_Model_Call) RunAndReturn(run func(string) ai.AudioRequest) *AudioRequest_Model_Call
type AudioRequest_Provider_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 (_c *AudioRequest_Provider_Call) Return(_a0 ai.AudioRequest) *AudioRequest_Provider_Call
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 ¶
func (_c *AudioRequest_Provider_Call) RunAndReturn(run func(string, ...string) ai.AudioRequest) *AudioRequest_Provider_Call
type AudioRequest_StoreAs_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 (_c *AudioRequest_StoreAs_Call) Return(_a0 string, _a1 error) *AudioRequest_StoreAs_Call
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 ¶
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 (_c *AudioRequest_Store_Call) Return(_a0 string, _a1 error) *AudioRequest_Store_Call
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 ¶
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 (_c *AudioRequest_Timeout_Call) Return(_a0 ai.AudioRequest) *AudioRequest_Timeout_Call
func (*AudioRequest_Timeout_Call) Run ¶
func (_c *AudioRequest_Timeout_Call) Run(run func(timeout time.Duration)) *AudioRequest_Timeout_Call
func (*AudioRequest_Timeout_Call) RunAndReturn ¶
func (_c *AudioRequest_Timeout_Call) RunAndReturn(run func(time.Duration) ai.AudioRequest) *AudioRequest_Timeout_Call
type AudioRequest_Voice_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 (_c *AudioRequest_Voice_Call) Return(_a0 ai.AudioRequest) *AudioRequest_Voice_Call
func (*AudioRequest_Voice_Call) Run ¶
func (_c *AudioRequest_Voice_Call) Run(run func(voice string)) *AudioRequest_Voice_Call
func (*AudioRequest_Voice_Call) RunAndReturn ¶
func (_c *AudioRequest_Voice_Call) RunAndReturn(run func(string) ai.AudioRequest) *AudioRequest_Voice_Call
type AudioResponse ¶
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 ¶
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 (_c *AudioResponse_Content_Call) Return(_a0 []byte, _a1 error) *AudioResponse_Content_Call
func (*AudioResponse_Content_Call) Run ¶
func (_c *AudioResponse_Content_Call) Run(run func()) *AudioResponse_Content_Call
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 ¶
func (_e *AudioResponse_Expecter) Content() *AudioResponse_Content_Call
Content is a helper method to define mock.On call
func (*AudioResponse_Expecter) MimeType ¶
func (_e *AudioResponse_Expecter) MimeType() *AudioResponse_MimeType_Call
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 ¶
func (_e *AudioResponse_Expecter) Usage() *AudioResponse_Usage_Call
Usage is a helper method to define mock.On call
type AudioResponse_MimeType_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 (_c *AudioResponse_MimeType_Call) Return(_a0 string) *AudioResponse_MimeType_Call
func (*AudioResponse_MimeType_Call) Run ¶
func (_c *AudioResponse_MimeType_Call) Run(run func()) *AudioResponse_MimeType_Call
func (*AudioResponse_MimeType_Call) RunAndReturn ¶
func (_c *AudioResponse_MimeType_Call) RunAndReturn(run func() string) *AudioResponse_MimeType_Call
type AudioResponse_StoreAs_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 (_c *AudioResponse_StoreAs_Call) Return(_a0 string, _a1 error) *AudioResponse_StoreAs_Call
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 ¶
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 (_c *AudioResponse_Store_Call) Return(_a0 string, _a1 error) *AudioResponse_Store_Call
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 ¶
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 (_c *AudioResponse_Then_Call) Return(_a0 ai.AudioResponse) *AudioResponse_Then_Call
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 ¶
func (_c *AudioResponse_Then_Call) RunAndReturn(run func(func(ai.AudioResponse)) ai.AudioResponse) *AudioResponse_Then_Call
type AudioResponse_Usage_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 (_c *AudioResponse_Usage_Call) Return(_a0 ai.Usage) *AudioResponse_Usage_Call
func (*AudioResponse_Usage_Call) Run ¶
func (_c *AudioResponse_Usage_Call) Run(run func()) *AudioResponse_Usage_Call
func (*AudioResponse_Usage_Call) RunAndReturn ¶
func (_c *AudioResponse_Usage_Call) RunAndReturn(run func() ai.Usage) *AudioResponse_Usage_Call
type Conversation ¶
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 ¶
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 (_m *ConversationOption) EXPECT() *ConversationOption_Expecter
func (*ConversationOption) Execute ¶
func (_m *ConversationOption) Execute(options *ai.ConversationOptions)
Execute provides a mock function with given fields: options
type ConversationOption_Execute_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 (_c *ConversationOption_Execute_Call) Return() *ConversationOption_Execute_Call
func (*ConversationOption_Execute_Call) Run ¶
func (_c *ConversationOption_Execute_Call) Run(run func(options *ai.ConversationOptions)) *ConversationOption_Execute_Call
func (*ConversationOption_Execute_Call) RunAndReturn ¶
func (_c *ConversationOption_Execute_Call) RunAndReturn(run func(*ai.ConversationOptions)) *ConversationOption_Execute_Call
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 ¶
func (_e *Conversation_Expecter) Messages() *Conversation_Messages_Call
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 ¶
func (_e *Conversation_Expecter) Reset() *Conversation_Reset_Call
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 ¶
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 (_c *Conversation_Messages_Call) Return(_a0 []ai.Message) *Conversation_Messages_Call
func (*Conversation_Messages_Call) Run ¶
func (_c *Conversation_Messages_Call) Run(run func()) *Conversation_Messages_Call
func (*Conversation_Messages_Call) RunAndReturn ¶
func (_c *Conversation_Messages_Call) RunAndReturn(run func() []ai.Message) *Conversation_Messages_Call
type Conversation_Prompt_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 (_c *Conversation_Prompt_Call) Return(_a0 ai.AgentResponse, _a1 error) *Conversation_Prompt_Call
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 ¶
func (_c *Conversation_Prompt_Call) RunAndReturn(run func(string, ...ai.ConversationOption) (ai.AgentResponse, error)) *Conversation_Prompt_Call
type Conversation_Reset_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 (_c *Conversation_Reset_Call) Return() *Conversation_Reset_Call
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 ¶
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 (_c *Conversation_Stream_Call) Return(_a0 ai.StreamableAgentResponse, _a1 error) *Conversation_Stream_Call
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 ¶
func (_c *Conversation_Stream_Call) RunAndReturn(run func(string, ...ai.ConversationOption) (ai.StreamableAgentResponse, error)) *Conversation_Stream_Call
type FailoverError ¶
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 ¶
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 (_c *FailoverError_Error_Call) Return(_a0 string) *FailoverError_Error_Call
func (*FailoverError_Error_Call) Run ¶
func (_c *FailoverError_Error_Call) Run(run func()) *FailoverError_Error_Call
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 ¶
func (_e *FailoverError_Expecter) Error() *FailoverError_Error_Call
Error is a helper method to define mock.On call
func (*FailoverError_Expecter) Provider ¶
func (_e *FailoverError_Expecter) Provider() *FailoverError_Provider_Call
Provider is a helper method to define mock.On call
func (*FailoverError_Expecter) Reason ¶
func (_e *FailoverError_Expecter) Reason() *FailoverError_Reason_Call
Reason is a helper method to define mock.On call
func (*FailoverError_Expecter) Unwrap ¶
func (_e *FailoverError_Expecter) Unwrap() *FailoverError_Unwrap_Call
Unwrap is a helper method to define mock.On call
type FailoverError_Provider_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 (_c *FailoverError_Provider_Call) Return(_a0 string) *FailoverError_Provider_Call
func (*FailoverError_Provider_Call) Run ¶
func (_c *FailoverError_Provider_Call) Run(run func()) *FailoverError_Provider_Call
func (*FailoverError_Provider_Call) RunAndReturn ¶
func (_c *FailoverError_Provider_Call) RunAndReturn(run func() string) *FailoverError_Provider_Call
type FailoverError_Reason_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 (_c *FailoverError_Reason_Call) Return(_a0 ai.FailoverReason) *FailoverError_Reason_Call
func (*FailoverError_Reason_Call) Run ¶
func (_c *FailoverError_Reason_Call) Run(run func()) *FailoverError_Reason_Call
func (*FailoverError_Reason_Call) RunAndReturn ¶
func (_c *FailoverError_Reason_Call) RunAndReturn(run func() ai.FailoverReason) *FailoverError_Reason_Call
type FailoverError_Unwrap_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 (_c *FailoverError_Unwrap_Call) Return(_a0 error) *FailoverError_Unwrap_Call
func (*FailoverError_Unwrap_Call) Run ¶
func (_c *FailoverError_Unwrap_Call) Run(run func()) *FailoverError_Unwrap_Call
func (*FailoverError_Unwrap_Call) RunAndReturn ¶
func (_c *FailoverError_Unwrap_Call) RunAndReturn(run func() error) *FailoverError_Unwrap_Call
type FileProvider ¶
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 ¶
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 (_c *FileProvider_DeleteFile_Call) Return(_a0 error) *FileProvider_DeleteFile_Call
func (*FileProvider_DeleteFile_Call) Run ¶
func (_c *FileProvider_DeleteFile_Call) Run(run func(ctx context.Context, id string)) *FileProvider_DeleteFile_Call
func (*FileProvider_DeleteFile_Call) RunAndReturn ¶
func (_c *FileProvider_DeleteFile_Call) RunAndReturn(run func(context.Context, string) error) *FileProvider_DeleteFile_Call
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 ¶
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 (_c *FileProvider_GetFile_Call) Return(_a0 ai.FileResponse, _a1 error) *FileProvider_GetFile_Call
func (*FileProvider_GetFile_Call) Run ¶
func (_c *FileProvider_GetFile_Call) Run(run func(ctx context.Context, id string)) *FileProvider_GetFile_Call
func (*FileProvider_GetFile_Call) RunAndReturn ¶
func (_c *FileProvider_GetFile_Call) RunAndReturn(run func(context.Context, string) (ai.FileResponse, error)) *FileProvider_GetFile_Call
type FileProvider_PutFile_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 (_c *FileProvider_PutFile_Call) Return(_a0 ai.FileResponse, _a1 error) *FileProvider_PutFile_Call
func (*FileProvider_PutFile_Call) Run ¶
func (_c *FileProvider_PutFile_Call) Run(run func(ctx context.Context, file ai.StorableFile)) *FileProvider_PutFile_Call
func (*FileProvider_PutFile_Call) RunAndReturn ¶
func (_c *FileProvider_PutFile_Call) RunAndReturn(run func(context.Context, ai.StorableFile) (ai.FileResponse, error)) *FileProvider_PutFile_Call
type FileResponse ¶
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 ¶
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 (_c *FileResponse_Content_Call) Return(_a0 []byte, _a1 error) *FileResponse_Content_Call
func (*FileResponse_Content_Call) Run ¶
func (_c *FileResponse_Content_Call) Run(run func(ctx context.Context)) *FileResponse_Content_Call
func (*FileResponse_Content_Call) RunAndReturn ¶
func (_c *FileResponse_Content_Call) RunAndReturn(run func(context.Context) ([]byte, error)) *FileResponse_Content_Call
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 ¶
func (_e *FileResponse_Expecter) ID() *FileResponse_ID_Call
ID is a helper method to define mock.On call
func (*FileResponse_Expecter) MimeType ¶
func (_e *FileResponse_Expecter) MimeType() *FileResponse_MimeType_Call
MimeType is a helper method to define mock.On call
type FileResponse_ID_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 (_c *FileResponse_ID_Call) Return(_a0 string) *FileResponse_ID_Call
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 ¶
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 (_c *FileResponse_MimeType_Call) Return(_a0 string) *FileResponse_MimeType_Call
func (*FileResponse_MimeType_Call) Run ¶
func (_c *FileResponse_MimeType_Call) Run(run func()) *FileResponse_MimeType_Call
func (*FileResponse_MimeType_Call) RunAndReturn ¶
func (_c *FileResponse_MimeType_Call) RunAndReturn(run func() string) *FileResponse_MimeType_Call
type ImageProvider ¶
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 ¶
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 (_c *ImageProvider_Image_Call) Return(_a0 ai.ImageResponse, _a1 error) *ImageProvider_Image_Call
func (*ImageProvider_Image_Call) Run ¶
func (_c *ImageProvider_Image_Call) Run(run func(ctx context.Context, prompt ai.ImagePrompt)) *ImageProvider_Image_Call
func (*ImageProvider_Image_Call) RunAndReturn ¶
func (_c *ImageProvider_Image_Call) RunAndReturn(run func(context.Context, ai.ImagePrompt) (ai.ImageResponse, error)) *ImageProvider_Image_Call
type ImageRequest ¶
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 ¶
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 (_c *ImageRequest_Attachments_Call) Return(_a0 ai.ImageRequest) *ImageRequest_Attachments_Call
func (*ImageRequest_Attachments_Call) Run ¶
func (_c *ImageRequest_Attachments_Call) Run(run func(attachments ...ai.Attachment)) *ImageRequest_Attachments_Call
func (*ImageRequest_Attachments_Call) RunAndReturn ¶
func (_c *ImageRequest_Attachments_Call) RunAndReturn(run func(...ai.Attachment) ai.ImageRequest) *ImageRequest_Attachments_Call
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 ¶
func (_e *ImageRequest_Expecter) Generate() *ImageRequest_Generate_Call
Generate is a helper method to define mock.On call
func (*ImageRequest_Expecter) Landscape ¶
func (_e *ImageRequest_Expecter) Landscape() *ImageRequest_Landscape_Call
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 ¶
func (_e *ImageRequest_Expecter) Portrait() *ImageRequest_Portrait_Call
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 ¶
func (_e *ImageRequest_Expecter) Square() *ImageRequest_Square_Call
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 ¶
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 (_c *ImageRequest_Generate_Call) Return(_a0 ai.ImageResponse, _a1 error) *ImageRequest_Generate_Call
func (*ImageRequest_Generate_Call) Run ¶
func (_c *ImageRequest_Generate_Call) Run(run func()) *ImageRequest_Generate_Call
func (*ImageRequest_Generate_Call) RunAndReturn ¶
func (_c *ImageRequest_Generate_Call) RunAndReturn(run func() (ai.ImageResponse, error)) *ImageRequest_Generate_Call
type ImageRequest_Landscape_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 (_c *ImageRequest_Landscape_Call) Return(_a0 ai.ImageRequest) *ImageRequest_Landscape_Call
func (*ImageRequest_Landscape_Call) Run ¶
func (_c *ImageRequest_Landscape_Call) Run(run func()) *ImageRequest_Landscape_Call
func (*ImageRequest_Landscape_Call) RunAndReturn ¶
func (_c *ImageRequest_Landscape_Call) RunAndReturn(run func() ai.ImageRequest) *ImageRequest_Landscape_Call
type ImageRequest_Model_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 (_c *ImageRequest_Model_Call) Return(_a0 ai.ImageRequest) *ImageRequest_Model_Call
func (*ImageRequest_Model_Call) Run ¶
func (_c *ImageRequest_Model_Call) Run(run func(model string)) *ImageRequest_Model_Call
func (*ImageRequest_Model_Call) RunAndReturn ¶
func (_c *ImageRequest_Model_Call) RunAndReturn(run func(string) ai.ImageRequest) *ImageRequest_Model_Call
type ImageRequest_Portrait_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 (_c *ImageRequest_Portrait_Call) Return(_a0 ai.ImageRequest) *ImageRequest_Portrait_Call
func (*ImageRequest_Portrait_Call) Run ¶
func (_c *ImageRequest_Portrait_Call) Run(run func()) *ImageRequest_Portrait_Call
func (*ImageRequest_Portrait_Call) RunAndReturn ¶
func (_c *ImageRequest_Portrait_Call) RunAndReturn(run func() ai.ImageRequest) *ImageRequest_Portrait_Call
type ImageRequest_Provider_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 (_c *ImageRequest_Provider_Call) Return(_a0 ai.ImageRequest) *ImageRequest_Provider_Call
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 ¶
func (_c *ImageRequest_Provider_Call) RunAndReturn(run func(string, ...string) ai.ImageRequest) *ImageRequest_Provider_Call
type ImageRequest_Quality_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 (_c *ImageRequest_Quality_Call) Return(_a0 ai.ImageRequest) *ImageRequest_Quality_Call
func (*ImageRequest_Quality_Call) Run ¶
func (_c *ImageRequest_Quality_Call) Run(run func(quality ai.ImageQuality)) *ImageRequest_Quality_Call
func (*ImageRequest_Quality_Call) RunAndReturn ¶
func (_c *ImageRequest_Quality_Call) RunAndReturn(run func(ai.ImageQuality) ai.ImageRequest) *ImageRequest_Quality_Call
type ImageRequest_Square_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 (_c *ImageRequest_Square_Call) Return(_a0 ai.ImageRequest) *ImageRequest_Square_Call
func (*ImageRequest_Square_Call) Run ¶
func (_c *ImageRequest_Square_Call) Run(run func()) *ImageRequest_Square_Call
func (*ImageRequest_Square_Call) RunAndReturn ¶
func (_c *ImageRequest_Square_Call) RunAndReturn(run func() ai.ImageRequest) *ImageRequest_Square_Call
type ImageRequest_StoreAs_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 (_c *ImageRequest_StoreAs_Call) Return(_a0 string, _a1 error) *ImageRequest_StoreAs_Call
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 ¶
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 (_c *ImageRequest_Store_Call) Return(_a0 string, _a1 error) *ImageRequest_Store_Call
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 ¶
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 (_c *ImageRequest_Timeout_Call) Return(_a0 ai.ImageRequest) *ImageRequest_Timeout_Call
func (*ImageRequest_Timeout_Call) Run ¶
func (_c *ImageRequest_Timeout_Call) Run(run func(timeout time.Duration)) *ImageRequest_Timeout_Call
func (*ImageRequest_Timeout_Call) RunAndReturn ¶
func (_c *ImageRequest_Timeout_Call) RunAndReturn(run func(time.Duration) ai.ImageRequest) *ImageRequest_Timeout_Call
type ImageResponse ¶
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 ¶
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 (_c *ImageResponse_Content_Call) Return(_a0 []byte, _a1 error) *ImageResponse_Content_Call
func (*ImageResponse_Content_Call) Run ¶
func (_c *ImageResponse_Content_Call) Run(run func()) *ImageResponse_Content_Call
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 ¶
func (_e *ImageResponse_Expecter) Content() *ImageResponse_Content_Call
Content is a helper method to define mock.On call
func (*ImageResponse_Expecter) MimeType ¶
func (_e *ImageResponse_Expecter) MimeType() *ImageResponse_MimeType_Call
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 ¶
func (_e *ImageResponse_Expecter) Usage() *ImageResponse_Usage_Call
Usage is a helper method to define mock.On call
type ImageResponse_MimeType_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 (_c *ImageResponse_MimeType_Call) Return(_a0 string) *ImageResponse_MimeType_Call
func (*ImageResponse_MimeType_Call) Run ¶
func (_c *ImageResponse_MimeType_Call) Run(run func()) *ImageResponse_MimeType_Call
func (*ImageResponse_MimeType_Call) RunAndReturn ¶
func (_c *ImageResponse_MimeType_Call) RunAndReturn(run func() string) *ImageResponse_MimeType_Call
type ImageResponse_StoreAs_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 (_c *ImageResponse_StoreAs_Call) Return(_a0 string, _a1 error) *ImageResponse_StoreAs_Call
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 ¶
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 (_c *ImageResponse_Store_Call) Return(_a0 string, _a1 error) *ImageResponse_Store_Call
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 ¶
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 (_c *ImageResponse_Then_Call) Return(_a0 ai.ImageResponse) *ImageResponse_Then_Call
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 ¶
func (_c *ImageResponse_Then_Call) RunAndReturn(run func(func(ai.ImageResponse)) ai.ImageResponse) *ImageResponse_Then_Call
type ImageResponse_Usage_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 (_c *ImageResponse_Usage_Call) Return(_a0 ai.Usage) *ImageResponse_Usage_Call
func (*ImageResponse_Usage_Call) Run ¶
func (_c *ImageResponse_Usage_Call) Run(run func()) *ImageResponse_Usage_Call
func (*ImageResponse_Usage_Call) RunAndReturn ¶
func (_c *ImageResponse_Usage_Call) RunAndReturn(run func() ai.Usage) *ImageResponse_Usage_Call
type ImageStorer ¶
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
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 ¶
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 (_c *ImageStorer_StoreAs_Call) Return(_a0 string, _a1 error) *ImageStorer_StoreAs_Call
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 ¶
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 (_c *ImageStorer_Store_Call) Return(_a0 string, _a1 error) *ImageStorer_Store_Call
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 ¶
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 ¶
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 (_c *Middleware_Handle_Call) Return(_a0 ai.AgentResponse, _a1 error) *Middleware_Handle_Call
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 ¶
func (_c *Middleware_Handle_Call) RunAndReturn(run func(context.Context, ai.AgentPrompt, ai.Next) (ai.AgentResponse, error)) *Middleware_Handle_Call
type Next ¶
Next is an autogenerated mock type for the Next type
func NewNext ¶
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 ¶
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 (_c *Next_Execute_Call) Return(_a0 ai.AgentResponse, _a1 error) *Next_Execute_Call
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 ¶
func (_c *Next_Execute_Call) RunAndReturn(run func(context.Context, ai.AgentPrompt) (ai.AgentResponse, error)) *Next_Execute_Call
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 ¶
Option is an autogenerated mock type for the Option type
func NewOption ¶
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
type Option_Execute_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 (_c *Option_Execute_Call) Return() *Option_Execute_Call
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 ¶
Provider is an autogenerated mock type for the Provider type
func NewProvider ¶
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 ¶
func (_m *Provider) Stream(ctx context.Context, prompt ai.AgentPrompt) (ai.StreamableAgentResponse, error)
Stream provides a mock function with given fields: ctx, prompt
type ProviderFile ¶
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) 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 ¶
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 (_c *ProviderFile_Content_Call) Return(_a0 []byte, _a1 error) *ProviderFile_Content_Call
func (*ProviderFile_Content_Call) Run ¶
func (_c *ProviderFile_Content_Call) Run(run func(ctx context.Context)) *ProviderFile_Content_Call
func (*ProviderFile_Content_Call) RunAndReturn ¶
func (_c *ProviderFile_Content_Call) RunAndReturn(run func(context.Context) ([]byte, error)) *ProviderFile_Content_Call
type ProviderFile_Delete_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 (_c *ProviderFile_Delete_Call) Return(_a0 error) *ProviderFile_Delete_Call
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 ¶
func (_c *ProviderFile_Delete_Call) RunAndReturn(run func(context.Context, ...ai.Option) error) *ProviderFile_Delete_Call
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 ¶
func (_e *ProviderFile_Expecter) FileName() *ProviderFile_FileName_Call
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 ¶
func (_e *ProviderFile_Expecter) ID() *ProviderFile_ID_Call
ID is a helper method to define mock.On call
func (*ProviderFile_Expecter) Kind ¶
func (_e *ProviderFile_Expecter) Kind() *ProviderFile_Kind_Call
Kind is a helper method to define mock.On call
func (*ProviderFile_Expecter) MimeType ¶
func (_e *ProviderFile_Expecter) MimeType() *ProviderFile_MimeType_Call
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 ¶
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 (_c *ProviderFile_FileName_Call) Return(_a0 string) *ProviderFile_FileName_Call
func (*ProviderFile_FileName_Call) Run ¶
func (_c *ProviderFile_FileName_Call) Run(run func()) *ProviderFile_FileName_Call
func (*ProviderFile_FileName_Call) RunAndReturn ¶
func (_c *ProviderFile_FileName_Call) RunAndReturn(run func() string) *ProviderFile_FileName_Call
type ProviderFile_Get_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 (_c *ProviderFile_Get_Call) Return(_a0 ai.FileResponse, _a1 error) *ProviderFile_Get_Call
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 ¶
func (_c *ProviderFile_Get_Call) RunAndReturn(run func(context.Context, ...ai.Option) (ai.FileResponse, error)) *ProviderFile_Get_Call
type ProviderFile_ID_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 (_c *ProviderFile_ID_Call) Return(_a0 string) *ProviderFile_ID_Call
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 ¶
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 (_c *ProviderFile_Kind_Call) Return(_a0 ai.AttachmentKind) *ProviderFile_Kind_Call
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 ¶
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 (_c *ProviderFile_MimeType_Call) Return(_a0 string) *ProviderFile_MimeType_Call
func (*ProviderFile_MimeType_Call) Run ¶
func (_c *ProviderFile_MimeType_Call) Run(run func()) *ProviderFile_MimeType_Call
func (*ProviderFile_MimeType_Call) RunAndReturn ¶
func (_c *ProviderFile_MimeType_Call) RunAndReturn(run func() string) *ProviderFile_MimeType_Call
type ProviderFile_Put_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 (_c *ProviderFile_Put_Call) Return(_a0 ai.FileResponse, _a1 error) *ProviderFile_Put_Call
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 ¶
func (_c *ProviderFile_Put_Call) RunAndReturn(run func(context.Context, ...ai.Option) (ai.FileResponse, error)) *ProviderFile_Put_Call
type ProviderState ¶
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 ¶
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 ¶
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 (_c *ProviderState_Set_Call) Return() *ProviderState_Set_Call
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 ¶
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 (_c *Provider_Prompt_Call) Return(_a0 ai.AgentResponse, _a1 error) *Provider_Prompt_Call
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 ¶
func (_c *Provider_Prompt_Call) RunAndReturn(run func(context.Context, ai.AgentPrompt) (ai.AgentResponse, error)) *Provider_Prompt_Call
type Provider_Stream_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 (_c *Provider_Stream_Call) Return(_a0 ai.StreamableAgentResponse, _a1 error) *Provider_Stream_Call
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 ¶
func (_c *Provider_Stream_Call) RunAndReturn(run func(context.Context, ai.AgentPrompt) (ai.StreamableAgentResponse, error)) *Provider_Stream_Call
type RenderFunc ¶
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 ¶
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 (_c *RenderFunc_Execute_Call) Return(_a0 error) *RenderFunc_Execute_Call
func (*RenderFunc_Execute_Call) Run ¶
func (_c *RenderFunc_Execute_Call) Run(run func(w http.StreamWriter, event ai.StreamEvent)) *RenderFunc_Execute_Call
func (*RenderFunc_Execute_Call) RunAndReturn ¶
func (_c *RenderFunc_Execute_Call) RunAndReturn(run func(http.StreamWriter, ai.StreamEvent) error) *RenderFunc_Execute_Call
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 ¶
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 ¶
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 (_c *StorableFile_Content_Call) Return(_a0 []byte, _a1 error) *StorableFile_Content_Call
func (*StorableFile_Content_Call) Run ¶
func (_c *StorableFile_Content_Call) Run(run func(ctx context.Context)) *StorableFile_Content_Call
func (*StorableFile_Content_Call) RunAndReturn ¶
func (_c *StorableFile_Content_Call) RunAndReturn(run func(context.Context) ([]byte, error)) *StorableFile_Content_Call
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 ¶
func (_e *StorableFile_Expecter) FileName() *StorableFile_FileName_Call
FileName is a helper method to define mock.On call
func (*StorableFile_Expecter) MimeType ¶
func (_e *StorableFile_Expecter) MimeType() *StorableFile_MimeType_Call
MimeType is a helper method to define mock.On call
type StorableFile_FileName_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 (_c *StorableFile_FileName_Call) Return(_a0 string) *StorableFile_FileName_Call
func (*StorableFile_FileName_Call) Run ¶
func (_c *StorableFile_FileName_Call) Run(run func()) *StorableFile_FileName_Call
func (*StorableFile_FileName_Call) RunAndReturn ¶
func (_c *StorableFile_FileName_Call) RunAndReturn(run func() string) *StorableFile_FileName_Call
type StorableFile_MimeType_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 (_c *StorableFile_MimeType_Call) Return(_a0 string) *StorableFile_MimeType_Call
func (*StorableFile_MimeType_Call) Run ¶
func (_c *StorableFile_MimeType_Call) Run(run func()) *StorableFile_MimeType_Call
func (*StorableFile_MimeType_Call) RunAndReturn ¶
func (_c *StorableFile_MimeType_Call) RunAndReturn(run func() string) *StorableFile_MimeType_Call
type StreamOption ¶
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 ¶
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 (_c *StreamOption_Execute_Call) Return() *StreamOption_Execute_Call
func (*StreamOption_Execute_Call) Run ¶
func (_c *StreamOption_Execute_Call) Run(run func(options *ai.StreamOptions)) *StreamOption_Execute_Call
func (*StreamOption_Execute_Call) RunAndReturn ¶
func (_c *StreamOption_Execute_Call) RunAndReturn(run func(*ai.StreamOptions)) *StreamOption_Execute_Call
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 ¶
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 (_m *StreamableAgentResponse) EXPECT() *StreamableAgentResponse_Expecter
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 ¶
func (_m *StreamableAgentResponse) Then(callback func(ai.AgentResponse)) ai.StreamableAgentResponse
Then provides a mock function with given fields: callback
type StreamableAgentResponse_Each_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 (_c *StreamableAgentResponse_Each_Call) Return(_a0 error) *StreamableAgentResponse_Each_Call
func (*StreamableAgentResponse_Each_Call) Run ¶
func (_c *StreamableAgentResponse_Each_Call) Run(run func(callback func(ai.StreamEvent) error)) *StreamableAgentResponse_Each_Call
func (*StreamableAgentResponse_Each_Call) RunAndReturn ¶
func (_c *StreamableAgentResponse_Each_Call) RunAndReturn(run func(func(ai.StreamEvent) error) error) *StreamableAgentResponse_Each_Call
type StreamableAgentResponse_Expecter ¶
type StreamableAgentResponse_Expecter struct {
// contains filtered or unexported fields
}
func (*StreamableAgentResponse_Expecter) Each ¶
func (_e *StreamableAgentResponse_Expecter) Each(callback interface{}) *StreamableAgentResponse_Each_Call
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 ¶
func (_e *StreamableAgentResponse_Expecter) Then(callback interface{}) *StreamableAgentResponse_Then_Call
Then is a helper method to define mock.On call
- callback func(ai.AgentResponse)
type StreamableAgentResponse_HTTPResponse_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 (_c *StreamableAgentResponse_HTTPResponse_Call) Return(_a0 http.Response) *StreamableAgentResponse_HTTPResponse_Call
func (*StreamableAgentResponse_HTTPResponse_Call) Run ¶
func (_c *StreamableAgentResponse_HTTPResponse_Call) Run(run func(ctx http.Context, options ...ai.StreamOption)) *StreamableAgentResponse_HTTPResponse_Call
func (*StreamableAgentResponse_HTTPResponse_Call) RunAndReturn ¶
func (_c *StreamableAgentResponse_HTTPResponse_Call) RunAndReturn(run func(http.Context, ...ai.StreamOption) http.Response) *StreamableAgentResponse_HTTPResponse_Call
type StreamableAgentResponse_Then_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 (_c *StreamableAgentResponse_Then_Call) Return(_a0 ai.StreamableAgentResponse) *StreamableAgentResponse_Then_Call
func (*StreamableAgentResponse_Then_Call) Run ¶
func (_c *StreamableAgentResponse_Then_Call) Run(run func(callback func(ai.AgentResponse))) *StreamableAgentResponse_Then_Call
func (*StreamableAgentResponse_Then_Call) RunAndReturn ¶
func (_c *StreamableAgentResponse_Then_Call) RunAndReturn(run func(func(ai.AgentResponse)) ai.StreamableAgentResponse) *StreamableAgentResponse_Then_Call
type Tool ¶
Tool is an autogenerated mock type for the Tool type
func NewTool ¶
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 ¶
Description provides a mock function with no fields
func (*Tool) EXPECT ¶
func (_m *Tool) EXPECT() *Tool_Expecter
func (*Tool) Parameters ¶
Parameters provides a mock function with no fields
type Tool_Description_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 (_c *Tool_Description_Call) Return(_a0 string) *Tool_Description_Call
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 ¶
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 ¶
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 ¶
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 ¶
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 (_m *TranscriptionProvider) EXPECT() *TranscriptionProvider_Expecter
func (*TranscriptionProvider) Transcription ¶
func (_m *TranscriptionProvider) Transcription(ctx context.Context, prompt ai.TranscriptionPrompt) (ai.TranscriptionResponse, error)
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 ¶
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 (_c *TranscriptionProvider_Transcription_Call) Return(_a0 ai.TranscriptionResponse, _a1 error) *TranscriptionProvider_Transcription_Call
func (*TranscriptionProvider_Transcription_Call) Run ¶
func (_c *TranscriptionProvider_Transcription_Call) Run(run func(ctx context.Context, prompt ai.TranscriptionPrompt)) *TranscriptionProvider_Transcription_Call
func (*TranscriptionProvider_Transcription_Call) RunAndReturn ¶
func (_c *TranscriptionProvider_Transcription_Call) RunAndReturn(run func(context.Context, ai.TranscriptionPrompt) (ai.TranscriptionResponse, error)) *TranscriptionProvider_Transcription_Call
type TranscriptionRequest ¶
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 ¶
func (_m *TranscriptionRequest) Diarize() ai.TranscriptionRequest
Diarize provides a mock function with no fields
func (*TranscriptionRequest) EXPECT ¶
func (_m *TranscriptionRequest) EXPECT() *TranscriptionRequest_Expecter
func (*TranscriptionRequest) Generate ¶
func (_m *TranscriptionRequest) Generate() (ai.TranscriptionResponse, error)
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 ¶
func (_m *TranscriptionRequest) Model(model string) ai.TranscriptionRequest
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 ¶
func (_m *TranscriptionRequest) Timeout(timeout time.Duration) ai.TranscriptionRequest
Timeout provides a mock function with given fields: timeout
type TranscriptionRequest_Diarize_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 (_c *TranscriptionRequest_Diarize_Call) Return(_a0 ai.TranscriptionRequest) *TranscriptionRequest_Diarize_Call
func (*TranscriptionRequest_Diarize_Call) Run ¶
func (_c *TranscriptionRequest_Diarize_Call) Run(run func()) *TranscriptionRequest_Diarize_Call
func (*TranscriptionRequest_Diarize_Call) RunAndReturn ¶
func (_c *TranscriptionRequest_Diarize_Call) RunAndReturn(run func() ai.TranscriptionRequest) *TranscriptionRequest_Diarize_Call
type TranscriptionRequest_Expecter ¶
type TranscriptionRequest_Expecter struct {
// contains filtered or unexported fields
}
func (*TranscriptionRequest_Expecter) Diarize ¶
func (_e *TranscriptionRequest_Expecter) Diarize() *TranscriptionRequest_Diarize_Call
Diarize is a helper method to define mock.On call
func (*TranscriptionRequest_Expecter) Generate ¶
func (_e *TranscriptionRequest_Expecter) Generate() *TranscriptionRequest_Generate_Call
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 ¶
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 (_c *TranscriptionRequest_Generate_Call) Return(_a0 ai.TranscriptionResponse, _a1 error) *TranscriptionRequest_Generate_Call
func (*TranscriptionRequest_Generate_Call) Run ¶
func (_c *TranscriptionRequest_Generate_Call) Run(run func()) *TranscriptionRequest_Generate_Call
func (*TranscriptionRequest_Generate_Call) RunAndReturn ¶
func (_c *TranscriptionRequest_Generate_Call) RunAndReturn(run func() (ai.TranscriptionResponse, error)) *TranscriptionRequest_Generate_Call
type TranscriptionRequest_Language_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 (_c *TranscriptionRequest_Language_Call) Return(_a0 ai.TranscriptionRequest) *TranscriptionRequest_Language_Call
func (*TranscriptionRequest_Language_Call) Run ¶
func (_c *TranscriptionRequest_Language_Call) Run(run func(language string)) *TranscriptionRequest_Language_Call
func (*TranscriptionRequest_Language_Call) RunAndReturn ¶
func (_c *TranscriptionRequest_Language_Call) RunAndReturn(run func(string) ai.TranscriptionRequest) *TranscriptionRequest_Language_Call
type TranscriptionRequest_Model_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 (_c *TranscriptionRequest_Model_Call) Return(_a0 ai.TranscriptionRequest) *TranscriptionRequest_Model_Call
func (*TranscriptionRequest_Model_Call) Run ¶
func (_c *TranscriptionRequest_Model_Call) Run(run func(model string)) *TranscriptionRequest_Model_Call
func (*TranscriptionRequest_Model_Call) RunAndReturn ¶
func (_c *TranscriptionRequest_Model_Call) RunAndReturn(run func(string) ai.TranscriptionRequest) *TranscriptionRequest_Model_Call
type TranscriptionRequest_Provider_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 (_c *TranscriptionRequest_Provider_Call) Return(_a0 ai.TranscriptionRequest) *TranscriptionRequest_Provider_Call
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 ¶
func (_c *TranscriptionRequest_Provider_Call) RunAndReturn(run func(string, ...string) ai.TranscriptionRequest) *TranscriptionRequest_Provider_Call
type TranscriptionRequest_Timeout_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 (_c *TranscriptionRequest_Timeout_Call) Return(_a0 ai.TranscriptionRequest) *TranscriptionRequest_Timeout_Call
func (*TranscriptionRequest_Timeout_Call) Run ¶
func (_c *TranscriptionRequest_Timeout_Call) Run(run func(timeout time.Duration)) *TranscriptionRequest_Timeout_Call
func (*TranscriptionRequest_Timeout_Call) RunAndReturn ¶
func (_c *TranscriptionRequest_Timeout_Call) RunAndReturn(run func(time.Duration) ai.TranscriptionRequest) *TranscriptionRequest_Timeout_Call
type TranscriptionResponse ¶
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 (_m *TranscriptionResponse) EXPECT() *TranscriptionResponse_Expecter
func (*TranscriptionResponse) Segments ¶
func (_m *TranscriptionResponse) Segments() []ai.TranscriptionSegment
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 ¶
func (_m *TranscriptionResponse) Then(callback func(ai.TranscriptionResponse)) ai.TranscriptionResponse
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 ¶
func (_e *TranscriptionResponse_Expecter) Segments() *TranscriptionResponse_Segments_Call
Segments is a helper method to define mock.On call
func (*TranscriptionResponse_Expecter) Text ¶
func (_e *TranscriptionResponse_Expecter) Text() *TranscriptionResponse_Text_Call
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 ¶
func (_e *TranscriptionResponse_Expecter) Usage() *TranscriptionResponse_Usage_Call
Usage is a helper method to define mock.On call
type TranscriptionResponse_Segments_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 (_c *TranscriptionResponse_Segments_Call) Return(_a0 []ai.TranscriptionSegment) *TranscriptionResponse_Segments_Call
func (*TranscriptionResponse_Segments_Call) Run ¶
func (_c *TranscriptionResponse_Segments_Call) Run(run func()) *TranscriptionResponse_Segments_Call
func (*TranscriptionResponse_Segments_Call) RunAndReturn ¶
func (_c *TranscriptionResponse_Segments_Call) RunAndReturn(run func() []ai.TranscriptionSegment) *TranscriptionResponse_Segments_Call
type TranscriptionResponse_Text_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 (_c *TranscriptionResponse_Text_Call) Return(_a0 string) *TranscriptionResponse_Text_Call
func (*TranscriptionResponse_Text_Call) Run ¶
func (_c *TranscriptionResponse_Text_Call) Run(run func()) *TranscriptionResponse_Text_Call
func (*TranscriptionResponse_Text_Call) RunAndReturn ¶
func (_c *TranscriptionResponse_Text_Call) RunAndReturn(run func() string) *TranscriptionResponse_Text_Call
type TranscriptionResponse_Then_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 (_c *TranscriptionResponse_Then_Call) Return(_a0 ai.TranscriptionResponse) *TranscriptionResponse_Then_Call
func (*TranscriptionResponse_Then_Call) Run ¶
func (_c *TranscriptionResponse_Then_Call) Run(run func(callback func(ai.TranscriptionResponse))) *TranscriptionResponse_Then_Call
func (*TranscriptionResponse_Then_Call) RunAndReturn ¶
func (_c *TranscriptionResponse_Then_Call) RunAndReturn(run func(func(ai.TranscriptionResponse)) ai.TranscriptionResponse) *TranscriptionResponse_Then_Call
type TranscriptionResponse_Usage_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 (_c *TranscriptionResponse_Usage_Call) Return(_a0 ai.Usage) *TranscriptionResponse_Usage_Call
func (*TranscriptionResponse_Usage_Call) Run ¶
func (_c *TranscriptionResponse_Usage_Call) Run(run func()) *TranscriptionResponse_Usage_Call
func (*TranscriptionResponse_Usage_Call) RunAndReturn ¶
func (_c *TranscriptionResponse_Usage_Call) RunAndReturn(run func() ai.Usage) *TranscriptionResponse_Usage_Call
type Usage ¶
Usage is an autogenerated mock type for the Usage type
func NewUsage ¶
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
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 ¶
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 ¶
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 ¶
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
Source Files
¶
- AI.go
- Agent.go
- AgentResponse.go
- Attachment.go
- AttachmentOption.go
- AudioProvider.go
- AudioRequest.go
- AudioResponse.go
- Conversation.go
- ConversationOption.go
- FailoverError.go
- FileProvider.go
- FileResponse.go
- ImageProvider.go
- ImageRequest.go
- ImageResponse.go
- ImageStorer.go
- Middleware.go
- Next.go
- Option.go
- Provider.go
- ProviderFile.go
- ProviderState.go
- RenderFunc.go
- StorableFile.go
- StreamOption.go
- StreamableAgentResponse.go
- Tool.go
- TranscriptionProvider.go
- TranscriptionRequest.go
- TranscriptionResponse.go
- Usage.go