| Modifier and Type | Field and Description |
|---|---|
protected LinkedHashMap<String,Tool> |
AbstractAgent.toolMap |
| Modifier and Type | Method and Description |
|---|---|
Tool |
AbstractAgent.getTool(String toolId) |
| Modifier and Type | Method and Description |
|---|---|
void |
AbstractAgent.addTool(Tool tool) |
protected String |
AbstractAgent.toolExecute(Tool tool,
String inputJson) |
protected void |
AbstractAgent.toolExecute(Tool tool,
String inputJson,
AgentSession agentSession) |
| Modifier and Type | Method and Description |
|---|---|
Tool |
Agent.getTool(String toolId)
获取一个工具
|
| Modifier and Type | Method and Description |
|---|---|
void |
Agent.addTool(Tool tool)
为Agent添加工具
|
| Modifier and Type | Method and Description |
|---|---|
List<Tool> |
ToolRetriever.search(String query)
工具检索
|
List<Tool> |
ToolRetriever.search(String query,
int topK)
工具检索
|
List<Tool> |
ToolRetriever.search(String query,
int topK,
float scoreThreshold)
工具检索
|
List<Tool> |
ToolRetriever.search(String query,
String dsl)
工具检索
|
| Modifier and Type | Method and Description |
|---|---|
void |
ToolRetriever.addTools(List<Tool> tools)
工具入库
|
| Modifier and Type | Class and Description |
|---|---|
class |
DynamicTool
可以动态组装的Tool
|
class |
StaticTool<INPUT,OUTPUT>
静态工具,通过预先编码的工具实现,不支持动态的组装与修改
|
| Modifier and Type | Method and Description |
|---|---|
List<Tool> |
ToolProvider.provide(List<RetrievedTool> retrievedTools,
String query)
提供对应toolId的实例
|
| Modifier and Type | Method and Description |
|---|---|
List<Tool> |
AbstractToolRetriever.search(String query) |
List<Tool> |
AbstractToolRetriever.search(String query,
int topK) |
List<Tool> |
AbstractToolRetriever.search(String query,
int topK,
float scoreThreshold) |
List<Tool> |
CSSToolRetriever.search(String query,
String dsl) |
List<Tool> |
ToolRetrieverImpl.search(String query,
String dsl) |
| Modifier and Type | Method and Description |
|---|---|
void |
CSSToolRetriever.addTools(List<Tool> tools) |
void |
ToolRetrieverImpl.addTools(List<Tool> tools) |
| Modifier and Type | Method and Description |
|---|---|
List<Tool> |
InMemoryToolProvider.provide(List<RetrievedTool> retrievedTools,
String query) |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
InMemoryToolProvider.add(List<Tool> tools)
添加工具
|
| Modifier and Type | Class and Description |
|---|---|
class |
PanguUnifyTool
PanguUnify的固定的工具
|
class |
UnifyPythonInterpreter
unify使用的python_interpreter工具
|
class |
UnifyWebSearch
unify使用的web_search工具
|
Copyright © 2024. All rights reserved.