Add plugin: Bilibili Video Info Fetching

This commit is contained in:
Sheng Fan
2024-04-06 17:23:14 +08:00
parent aea5bedb68
commit 5a6e386440
4 changed files with 164 additions and 0 deletions

View File

@@ -293,9 +293,11 @@ export class AgentApi {
const tools = [];
// configure the right tool for web searching
if (useTools.includes("web-search")) tools.push(searchTool);
// console.log(customTools);
// include tools included in this project
customTools.forEach((customTool) => {
if (customTool) {
if (useTools.includes(customTool.name)) {
@@ -304,6 +306,7 @@ export class AgentApi {
}
});
// include tools from Langchain community
useTools.forEach((toolName) => {
if (toolName) {
var tool = langchainTools[