| Package | Description |
|---|---|
| com.huaweicloud.pangu.dev.sdk.api.llms | |
| com.huaweicloud.pangu.dev.sdk.api.skill.base | |
| com.huaweicloud.pangu.dev.sdk.llms.module |
| Modifier and Type | Method and Description |
|---|---|
<RESP extends LLMResp> |
LLM.ask(List<ConversationMessage> chatMessages,
LLMParamConfig paramConfig)
多轮问答
|
<RESP extends LLMResp> |
LLM.ask(String prompt,
LLMParamConfig paramConfig)
单轮问答
|
<T> T |
LLM.askForObject(String prompt,
LLMParamConfig paramConfig,
Class<T> clazz)
单轮问答
|
| Modifier and Type | Method and Description |
|---|---|
String |
SimpleSkill.execute(Map<String,Object> inputs,
LLMParamConfig param)
自定义参数执行(基于通用Map键值对)
当前仅simpleskill支持, 不暴露在 api接口层
|
| Modifier and Type | Method and Description |
|---|---|
<RESP extends LLMResp> |
AbstractLLM.ask(List<ConversationMessage> chatMessages,
LLMParamConfig paramConfig) |
RESP |
AbstractLLM.ask(String prompt,
LLMParamConfig paramConfig) |
<T> T |
AbstractLLM.askForObject(String prompt,
LLMParamConfig paramConfig,
Class<T> clazz) |
protected LLMRespOpenAI |
OpenAI.getLLMResponse(List<ConversationMessage> chatMessages,
LLMParamConfig paramConfig) |
protected abstract RESP |
AbstractLLM.getLLMResponse(List<ConversationMessage> chatMessages,
LLMParamConfig llmParamConfig)
调用chat接口
|
protected LLMRespGallery |
Gallery.getLLMResponse(List<ConversationMessage> chatMessages,
LLMParamConfig llmParamConfig) |
protected LLMRespPangu |
Pangu.getLLMResponse(List<ConversationMessage> chatMessages,
LLMParamConfig llmParamConfig) |
Copyright © 2024. All rights reserved.