From 424806fc04ac0f42c01f0b687d348c37f9235c1a Mon Sep 17 00:00:00 2001 From: isamu Date: Thu, 16 Jan 2025 09:40:55 +0900 Subject: [PATCH] fix line error --- llm_agents/tools_agent/tests/run_tools.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/llm_agents/tools_agent/tests/run_tools.ts b/llm_agents/tools_agent/tests/run_tools.ts index 90881471..251a96e4 100644 --- a/llm_agents/tools_agent/tests/run_tools.ts +++ b/llm_agents/tools_agent/tests/run_tools.ts @@ -1,7 +1,7 @@ import "dotenv/config"; import { toolsAgent } from "@/index"; -import { AgentFunction, AgentFunctionInfo, AgentFunctionInfoDictionary, defaultTestContext, agentInfoWrapper } from "graphai"; +import { AgentFunction, AgentFunctionInfo, defaultTestContext, agentInfoWrapper } from "graphai"; import * as vanilla_agents from "@graphai/vanilla"; import { openAIAgent } from "@graphai/openai_agent"; @@ -23,8 +23,8 @@ const lightAgent = agentInfoWrapper(lightFunc); const main = async (agentInfo: AgentFunctionInfo) => { const { agent, samples, inputs: inputSchema } = agentInfo; for await (const sampleKey of samples.keys()) { - const { params, inputs, result, graph } = samples[sampleKey]; - const actual = await agent({ + const { params, inputs } = samples[sampleKey]; + await agent({ ...defaultTestContext, params, inputSchema,