Documentation ¶
Overview ¶
Code generated by counterfeiter. DO NOT EDIT.
Index ¶
- type MockClient
- func (fake *MockClient) GetModelName() string
- func (fake *MockClient) GetModelNameCallCount() int
- func (fake *MockClient) GetModelNameCalls(stub func() string)
- func (fake *MockClient) GetModelNameReturns(result1 string)
- func (fake *MockClient) GetModelNameReturnsOnCall(i int, result1 string)
- func (fake *MockClient) Invocations() map[string][][]interface{}
- func (fake *MockClient) SplitContentBasedByTokenLimitations(arg1 string, arg2 int) []string
- func (fake *MockClient) SplitContentBasedByTokenLimitationsArgsForCall(i int) (string, int)
- func (fake *MockClient) SplitContentBasedByTokenLimitationsCallCount() int
- func (fake *MockClient) SplitContentBasedByTokenLimitationsCalls(stub func(string, int) []string)
- func (fake *MockClient) SplitContentBasedByTokenLimitationsReturns(result1 []string)
- func (fake *MockClient) SplitContentBasedByTokenLimitationsReturnsOnCall(i int, result1 []string)
- func (fake *MockClient) SummarizeAny(arg1 context.Context, arg2 string) (*openaia.ChatCompletionResponse, error)
- func (fake *MockClient) SummarizeAnyArgsForCall(i int) (context.Context, string)
- func (fake *MockClient) SummarizeAnyCallCount() int
- func (fake *MockClient) SummarizeAnyCalls(stub func(context.Context, string) (*openaia.ChatCompletionResponse, error))
- func (fake *MockClient) SummarizeAnyReturns(result1 *openaia.ChatCompletionResponse, result2 error)
- func (fake *MockClient) SummarizeAnyReturnsOnCall(i int, result1 *openaia.ChatCompletionResponse, result2 error)
- func (fake *MockClient) SummarizeChatHistories(arg1 context.Context, arg2 string) (*openaia.ChatCompletionResponse, error)
- func (fake *MockClient) SummarizeChatHistoriesArgsForCall(i int) (context.Context, string)
- func (fake *MockClient) SummarizeChatHistoriesCallCount() int
- func (fake *MockClient) SummarizeChatHistoriesCalls(stub func(context.Context, string) (*openaia.ChatCompletionResponse, error))
- func (fake *MockClient) SummarizeChatHistoriesReturns(result1 *openaia.ChatCompletionResponse, result2 error)
- func (fake *MockClient) SummarizeChatHistoriesReturnsOnCall(i int, result1 *openaia.ChatCompletionResponse, result2 error)
- func (fake *MockClient) SummarizeOneChatHistory(arg1 context.Context, arg2 string) (*openaia.ChatCompletionResponse, error)
- func (fake *MockClient) SummarizeOneChatHistoryArgsForCall(i int) (context.Context, string)
- func (fake *MockClient) SummarizeOneChatHistoryCallCount() int
- func (fake *MockClient) SummarizeOneChatHistoryCalls(stub func(context.Context, string) (*openaia.ChatCompletionResponse, error))
- func (fake *MockClient) SummarizeOneChatHistoryReturns(result1 *openaia.ChatCompletionResponse, result2 error)
- func (fake *MockClient) SummarizeOneChatHistoryReturnsOnCall(i int, result1 *openaia.ChatCompletionResponse, result2 error)
- func (fake *MockClient) SummarizeWithQuestionsAsSimplifiedChinese(arg1 context.Context, arg2 string, arg3 string, arg4 string) (*openaia.ChatCompletionResponse, error)
- func (fake *MockClient) SummarizeWithQuestionsAsSimplifiedChineseArgsForCall(i int) (context.Context, string, string, string)
- func (fake *MockClient) SummarizeWithQuestionsAsSimplifiedChineseCallCount() int
- func (fake *MockClient) SummarizeWithQuestionsAsSimplifiedChineseCalls(...)
- func (fake *MockClient) SummarizeWithQuestionsAsSimplifiedChineseReturns(result1 *openaia.ChatCompletionResponse, result2 error)
- func (fake *MockClient) SummarizeWithQuestionsAsSimplifiedChineseReturnsOnCall(i int, result1 *openaia.ChatCompletionResponse, result2 error)
- func (fake *MockClient) TruncateContentBasedOnTokens(arg1 string, arg2 int) string
- func (fake *MockClient) TruncateContentBasedOnTokensArgsForCall(i int) (string, int)
- func (fake *MockClient) TruncateContentBasedOnTokensCallCount() int
- func (fake *MockClient) TruncateContentBasedOnTokensCalls(stub func(string, int) string)
- func (fake *MockClient) TruncateContentBasedOnTokensReturns(result1 string)
- func (fake *MockClient) TruncateContentBasedOnTokensReturnsOnCall(i int, result1 string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockClient ¶
type MockClient struct { GetModelNameStub func() string SplitContentBasedByTokenLimitationsStub func(string, int) []string SummarizeAnyStub func(context.Context, string) (*openaia.ChatCompletionResponse, error) SummarizeChatHistoriesStub func(context.Context, string) (*openaia.ChatCompletionResponse, error) SummarizeOneChatHistoryStub func(context.Context, string) (*openaia.ChatCompletionResponse, error) SummarizeWithQuestionsAsSimplifiedChineseStub func(context.Context, string, string, string) (*openaia.ChatCompletionResponse, error) TruncateContentBasedOnTokensStub func(string, int) string // contains filtered or unexported fields }
func (*MockClient) GetModelName ¶ added in v0.18.0
func (fake *MockClient) GetModelName() string
func (*MockClient) GetModelNameCallCount ¶ added in v0.18.0
func (fake *MockClient) GetModelNameCallCount() int
func (*MockClient) GetModelNameCalls ¶ added in v0.18.0
func (fake *MockClient) GetModelNameCalls(stub func() string)
func (*MockClient) GetModelNameReturns ¶ added in v0.18.0
func (fake *MockClient) GetModelNameReturns(result1 string)
func (*MockClient) GetModelNameReturnsOnCall ¶ added in v0.18.0
func (fake *MockClient) GetModelNameReturnsOnCall(i int, result1 string)
func (*MockClient) Invocations ¶
func (fake *MockClient) Invocations() map[string][][]interface{}
func (*MockClient) SplitContentBasedByTokenLimitations ¶
func (fake *MockClient) SplitContentBasedByTokenLimitations(arg1 string, arg2 int) []string
func (*MockClient) SplitContentBasedByTokenLimitationsArgsForCall ¶
func (fake *MockClient) SplitContentBasedByTokenLimitationsArgsForCall(i int) (string, int)
func (*MockClient) SplitContentBasedByTokenLimitationsCallCount ¶
func (fake *MockClient) SplitContentBasedByTokenLimitationsCallCount() int
func (*MockClient) SplitContentBasedByTokenLimitationsCalls ¶
func (fake *MockClient) SplitContentBasedByTokenLimitationsCalls(stub func(string, int) []string)
func (*MockClient) SplitContentBasedByTokenLimitationsReturns ¶
func (fake *MockClient) SplitContentBasedByTokenLimitationsReturns(result1 []string)
func (*MockClient) SplitContentBasedByTokenLimitationsReturnsOnCall ¶
func (fake *MockClient) SplitContentBasedByTokenLimitationsReturnsOnCall(i int, result1 []string)
func (*MockClient) SummarizeAny ¶
func (fake *MockClient) SummarizeAny(arg1 context.Context, arg2 string) (*openaia.ChatCompletionResponse, error)
func (*MockClient) SummarizeAnyArgsForCall ¶
func (fake *MockClient) SummarizeAnyArgsForCall(i int) (context.Context, string)
func (*MockClient) SummarizeAnyCallCount ¶
func (fake *MockClient) SummarizeAnyCallCount() int
func (*MockClient) SummarizeAnyCalls ¶
func (fake *MockClient) SummarizeAnyCalls(stub func(context.Context, string) (*openaia.ChatCompletionResponse, error))
func (*MockClient) SummarizeAnyReturns ¶
func (fake *MockClient) SummarizeAnyReturns(result1 *openaia.ChatCompletionResponse, result2 error)
func (*MockClient) SummarizeAnyReturnsOnCall ¶
func (fake *MockClient) SummarizeAnyReturnsOnCall(i int, result1 *openaia.ChatCompletionResponse, result2 error)
func (*MockClient) SummarizeChatHistories ¶
func (fake *MockClient) SummarizeChatHistories(arg1 context.Context, arg2 string) (*openaia.ChatCompletionResponse, error)
func (*MockClient) SummarizeChatHistoriesArgsForCall ¶
func (fake *MockClient) SummarizeChatHistoriesArgsForCall(i int) (context.Context, string)
func (*MockClient) SummarizeChatHistoriesCallCount ¶
func (fake *MockClient) SummarizeChatHistoriesCallCount() int
func (*MockClient) SummarizeChatHistoriesCalls ¶
func (fake *MockClient) SummarizeChatHistoriesCalls(stub func(context.Context, string) (*openaia.ChatCompletionResponse, error))
func (*MockClient) SummarizeChatHistoriesReturns ¶
func (fake *MockClient) SummarizeChatHistoriesReturns(result1 *openaia.ChatCompletionResponse, result2 error)
func (*MockClient) SummarizeChatHistoriesReturnsOnCall ¶
func (fake *MockClient) SummarizeChatHistoriesReturnsOnCall(i int, result1 *openaia.ChatCompletionResponse, result2 error)
func (*MockClient) SummarizeOneChatHistory ¶
func (fake *MockClient) SummarizeOneChatHistory(arg1 context.Context, arg2 string) (*openaia.ChatCompletionResponse, error)
func (*MockClient) SummarizeOneChatHistoryArgsForCall ¶
func (fake *MockClient) SummarizeOneChatHistoryArgsForCall(i int) (context.Context, string)
func (*MockClient) SummarizeOneChatHistoryCallCount ¶
func (fake *MockClient) SummarizeOneChatHistoryCallCount() int
func (*MockClient) SummarizeOneChatHistoryCalls ¶
func (fake *MockClient) SummarizeOneChatHistoryCalls(stub func(context.Context, string) (*openaia.ChatCompletionResponse, error))
func (*MockClient) SummarizeOneChatHistoryReturns ¶
func (fake *MockClient) SummarizeOneChatHistoryReturns(result1 *openaia.ChatCompletionResponse, result2 error)
func (*MockClient) SummarizeOneChatHistoryReturnsOnCall ¶
func (fake *MockClient) SummarizeOneChatHistoryReturnsOnCall(i int, result1 *openaia.ChatCompletionResponse, result2 error)
func (*MockClient) SummarizeWithQuestionsAsSimplifiedChinese ¶
func (fake *MockClient) SummarizeWithQuestionsAsSimplifiedChinese(arg1 context.Context, arg2 string, arg3 string, arg4 string) (*openaia.ChatCompletionResponse, error)
func (*MockClient) SummarizeWithQuestionsAsSimplifiedChineseArgsForCall ¶
func (*MockClient) SummarizeWithQuestionsAsSimplifiedChineseCallCount ¶
func (fake *MockClient) SummarizeWithQuestionsAsSimplifiedChineseCallCount() int
func (*MockClient) SummarizeWithQuestionsAsSimplifiedChineseCalls ¶
func (fake *MockClient) SummarizeWithQuestionsAsSimplifiedChineseCalls(stub func(context.Context, string, string, string) (*openaia.ChatCompletionResponse, error))
func (*MockClient) SummarizeWithQuestionsAsSimplifiedChineseReturns ¶
func (fake *MockClient) SummarizeWithQuestionsAsSimplifiedChineseReturns(result1 *openaia.ChatCompletionResponse, result2 error)
func (*MockClient) SummarizeWithQuestionsAsSimplifiedChineseReturnsOnCall ¶
func (fake *MockClient) SummarizeWithQuestionsAsSimplifiedChineseReturnsOnCall(i int, result1 *openaia.ChatCompletionResponse, result2 error)
func (*MockClient) TruncateContentBasedOnTokens ¶
func (fake *MockClient) TruncateContentBasedOnTokens(arg1 string, arg2 int) string
func (*MockClient) TruncateContentBasedOnTokensArgsForCall ¶
func (fake *MockClient) TruncateContentBasedOnTokensArgsForCall(i int) (string, int)
func (*MockClient) TruncateContentBasedOnTokensCallCount ¶
func (fake *MockClient) TruncateContentBasedOnTokensCallCount() int
func (*MockClient) TruncateContentBasedOnTokensCalls ¶
func (fake *MockClient) TruncateContentBasedOnTokensCalls(stub func(string, int) string)
func (*MockClient) TruncateContentBasedOnTokensReturns ¶
func (fake *MockClient) TruncateContentBasedOnTokensReturns(result1 string)
func (*MockClient) TruncateContentBasedOnTokensReturnsOnCall ¶
func (fake *MockClient) TruncateContentBasedOnTokensReturnsOnCall(i int, result1 string)
Click to show internal directories.
Click to hide internal directories.