MCPcopy Create free account
hub / github.com/53AI/53AIHub / invokeSkillLibraryLLMWithInvoker

Function invokeSkillLibraryLLMWithInvoker

api/service/skill_library_llm.go:42–51  ·  view source on GitHub ↗
(ctx context.Context, invoker skillLibraryLLMInvoker, channel *model.Channel, request *relaymodel.GeneralOpenAIRequest)

Source from the content-addressed store, hash-verified

40}
41
42func invokeSkillLibraryLLMWithInvoker(ctx context.Context, invoker skillLibraryLLMInvoker, channel *model.Channel, request *relaymodel.GeneralOpenAIRequest) (string, error, *relaymodel.Error) {
43 if request == nil {
44 return "", fmt.Errorf("skill library llm request is nil"), nil
45 }
46 request.Stream = false
47 if invoker == nil {
48 return "", fmt.Errorf("skill library llm invoker is nil"), nil
49 }
50 return invoker.CallChatCompletion(ctx, channel, request)
51}

Callers 2

GenerateSkillContentMethod · 0.85
ScanMethod · 0.85

Calls 2

ErrorfMethod · 0.80
CallChatCompletionMethod · 0.65

Tested by

no test coverage detected