| Package | Description |
|---|---|
| org.noear.solon.ai.chat | |
| org.noear.solon.ai.chat.dialect | |
| org.noear.solon.ai.chat.tool |
| Modifier and Type | Method and Description |
|---|---|
FunctionTool |
ChatConfig.getDefaultTool(String name)
获取单个默认工具(即每次请求都会带上)
|
FunctionTool |
ChatOptions.tool(String name)
工具获取
|
| Modifier and Type | Method and Description |
|---|---|
Collection<FunctionTool> |
ChatConfig.getDefaultTools()
获取所有默认工具(即每次请求都会带上)
|
Collection<FunctionTool> |
ChatOptions.tools()
所有工具
|
| Modifier and Type | Method and Description |
|---|---|
void |
ChatConfig.addDefaultTools(FunctionTool tool)
添加默认工具(即每次请求都会带上)
|
ChatModel.Builder |
ChatModel.Builder.defaultToolsAdd(FunctionTool tool)
默认工具添加(即每次请求都会带上)
|
ChatOptions |
ChatOptions.toolsAdd(FunctionTool tool)
工具添加
|
| Modifier and Type | Method and Description |
|---|---|
void |
ChatConfig.addDefaultTools(Collection<FunctionTool> toolColl)
添加默认工具(即每次请求都会带上)
|
ChatModel.Builder |
ChatModel.Builder.defaultToolsAdd(Iterable<FunctionTool> toolColl)
默认工具添加(即每次请求都会带上)
|
void |
ChatConfig.setDefaultTools(Map<String,FunctionTool> tools)
设置默认工具(用于属性提示)
|
ChatOptions |
ChatOptions.toolsAdd(Iterable<FunctionTool> toolColl)
工具添加
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
AbstractChatDialect.buildReqToolsNodeDo(org.noear.snack.ONode n,
Collection<FunctionTool> tools) |
| Modifier and Type | Class and Description |
|---|---|
class |
FunctionToolDesc
函数工具描述(相当于构建器)
|
class |
MethodFunctionTool
方法构建的函数工具
|
class |
RefererFunctionTool
引用的函数工具(用于 mcp 场景)
|
| Modifier and Type | Method and Description |
|---|---|
Collection<FunctionTool> |
ToolProvider.getTools()
获取工具
|
Collection<FunctionTool> |
MethodToolProvider.getTools() |
| Modifier and Type | Method and Description |
|---|---|
static org.noear.snack.ONode |
ToolSchemaUtil.buildToolParametersNode(FunctionTool func,
List<FunctionToolParam> funcParams,
org.noear.snack.ONode parametersNode)
构建工具参数节点
|
Copyright © 2025. All rights reserved.