@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.cjs
CHANGED
|
@@ -18488,7 +18488,7 @@ var sampleData = {
|
|
|
18488
18488
|
toolCalls: [
|
|
18489
18489
|
{ name: "calculator", args: { operation: "add", a: 2, b: 2 } },
|
|
18490
18490
|
{ name: "search", args: { query: "weather forecast" } },
|
|
18491
|
-
{ name: "
|
|
18491
|
+
{ name: "get-time", args: {} }
|
|
18492
18492
|
],
|
|
18493
18493
|
/**
|
|
18494
18494
|
* Sample tool results
|
|
@@ -18496,7 +18496,7 @@ var sampleData = {
|
|
|
18496
18496
|
toolResults: [
|
|
18497
18497
|
{ name: "calculator", result: "4" },
|
|
18498
18498
|
{ name: "search", result: "Weather forecast: Sunny, 72\xB0F" },
|
|
18499
|
-
{ name: "
|
|
18499
|
+
{ name: "get-time", result: "2026-01-06T12:00:00Z" }
|
|
18500
18500
|
]
|
|
18501
18501
|
};
|
|
18502
18502
|
var calculatorTool = core.toolBuilder().name("calculator").description("Performs basic arithmetic operations").category(core.ToolCategory.UTILITY).schema(
|
|
@@ -18529,10 +18529,10 @@ var searchTool = core.toolBuilder().name("search").description("Searches for inf
|
|
|
18529
18529
|
2. Result 2
|
|
18530
18530
|
3. Result 3`;
|
|
18531
18531
|
}).build();
|
|
18532
|
-
var timeTool = core.toolBuilder().name("
|
|
18532
|
+
var timeTool = core.toolBuilder().name("get-time").description("Gets the current time").category(core.ToolCategory.UTILITY).schema(zod.z.object({ _dummy: zod.z.string().optional().describe("Dummy field") })).implement(async () => {
|
|
18533
18533
|
return (/* @__PURE__ */ new Date()).toISOString();
|
|
18534
18534
|
}).build();
|
|
18535
|
-
var weatherTool = core.toolBuilder().name("
|
|
18535
|
+
var weatherTool = core.toolBuilder().name("get-weather").description("Gets weather information for a location").category(core.ToolCategory.WEB).schema(
|
|
18536
18536
|
zod.z.object({
|
|
18537
18537
|
location: zod.z.string().describe("City or location name"),
|
|
18538
18538
|
units: zod.z.enum(["celsius", "fahrenheit"]).optional().describe("Temperature units")
|
|
@@ -18540,7 +18540,7 @@ var weatherTool = core.toolBuilder().name("get_weather").description("Gets weath
|
|
|
18540
18540
|
).implement(async ({ location, units = "celsius" }) => {
|
|
18541
18541
|
return `Weather in ${location}: Sunny, 22\xB0${units === "celsius" ? "C" : "F"}`;
|
|
18542
18542
|
}).build();
|
|
18543
|
-
var fileReaderTool = core.toolBuilder().name("
|
|
18543
|
+
var fileReaderTool = core.toolBuilder().name("read-file").description("Reads content from a file").category(core.ToolCategory.FILE_SYSTEM).schema(
|
|
18544
18544
|
zod.z.object({
|
|
18545
18545
|
path: zod.z.string().describe("File path")
|
|
18546
18546
|
})
|
|
@@ -18548,7 +18548,7 @@ var fileReaderTool = core.toolBuilder().name("read_file").description("Reads con
|
|
|
18548
18548
|
return `Content of ${path2}:
|
|
18549
18549
|
Sample file content here...`;
|
|
18550
18550
|
}).build();
|
|
18551
|
-
var databaseQueryTool = core.toolBuilder().name("
|
|
18551
|
+
var databaseQueryTool = core.toolBuilder().name("query-database").description("Queries a database").category(core.ToolCategory.DATABASE).schema(
|
|
18552
18552
|
zod.z.object({
|
|
18553
18553
|
query: zod.z.string().describe("SQL query")
|
|
18554
18554
|
})
|