@agentforge/testing 0.6.4 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +6 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -18486,7 +18486,7 @@ var sampleData = {
|
|
|
18486
18486
|
toolCalls: [
|
|
18487
18487
|
{ name: "calculator", args: { operation: "add", a: 2, b: 2 } },
|
|
18488
18488
|
{ name: "search", args: { query: "weather forecast" } },
|
|
18489
|
-
{ name: "
|
|
18489
|
+
{ name: "get-time", args: {} }
|
|
18490
18490
|
],
|
|
18491
18491
|
/**
|
|
18492
18492
|
* Sample tool results
|
|
@@ -18494,7 +18494,7 @@ var sampleData = {
|
|
|
18494
18494
|
toolResults: [
|
|
18495
18495
|
{ name: "calculator", result: "4" },
|
|
18496
18496
|
{ name: "search", result: "Weather forecast: Sunny, 72\xB0F" },
|
|
18497
|
-
{ name: "
|
|
18497
|
+
{ name: "get-time", result: "2026-01-06T12:00:00Z" }
|
|
18498
18498
|
]
|
|
18499
18499
|
};
|
|
18500
18500
|
var calculatorTool = toolBuilder().name("calculator").description("Performs basic arithmetic operations").category(ToolCategory.UTILITY).schema(
|
|
@@ -18527,10 +18527,10 @@ var searchTool = toolBuilder().name("search").description("Searches for informat
|
|
|
18527
18527
|
2. Result 2
|
|
18528
18528
|
3. Result 3`;
|
|
18529
18529
|
}).build();
|
|
18530
|
-
var timeTool = toolBuilder().name("
|
|
18530
|
+
var timeTool = toolBuilder().name("get-time").description("Gets the current time").category(ToolCategory.UTILITY).schema(z.object({ _dummy: z.string().optional().describe("Dummy field") })).implement(async () => {
|
|
18531
18531
|
return (/* @__PURE__ */ new Date()).toISOString();
|
|
18532
18532
|
}).build();
|
|
18533
|
-
var weatherTool = toolBuilder().name("
|
|
18533
|
+
var weatherTool = toolBuilder().name("get-weather").description("Gets weather information for a location").category(ToolCategory.WEB).schema(
|
|
18534
18534
|
z.object({
|
|
18535
18535
|
location: z.string().describe("City or location name"),
|
|
18536
18536
|
units: z.enum(["celsius", "fahrenheit"]).optional().describe("Temperature units")
|
|
@@ -18538,7 +18538,7 @@ var weatherTool = toolBuilder().name("get_weather").description("Gets weather in
|
|
|
18538
18538
|
).implement(async ({ location, units = "celsius" }) => {
|
|
18539
18539
|
return `Weather in ${location}: Sunny, 22\xB0${units === "celsius" ? "C" : "F"}`;
|
|
18540
18540
|
}).build();
|
|
18541
|
-
var fileReaderTool = toolBuilder().name("
|
|
18541
|
+
var fileReaderTool = toolBuilder().name("read-file").description("Reads content from a file").category(ToolCategory.FILE_SYSTEM).schema(
|
|
18542
18542
|
z.object({
|
|
18543
18543
|
path: z.string().describe("File path")
|
|
18544
18544
|
})
|
|
@@ -18546,7 +18546,7 @@ var fileReaderTool = toolBuilder().name("read_file").description("Reads content
|
|
|
18546
18546
|
return `Content of ${path2}:
|
|
18547
18547
|
Sample file content here...`;
|
|
18548
18548
|
}).build();
|
|
18549
|
-
var databaseQueryTool = toolBuilder().name("
|
|
18549
|
+
var databaseQueryTool = toolBuilder().name("query-database").description("Queries a database").category(ToolCategory.DATABASE).schema(
|
|
18550
18550
|
z.object({
|
|
18551
18551
|
query: z.string().describe("SQL query")
|
|
18552
18552
|
})
|