refactor: unify tool reason requirements
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { toolReason } from "../tool-reason.js";
|
||||
import { tool } from "../tool.js";
|
||||
import { getInternalBridgeConfig } from "../internalBridge.js";
|
||||
import { proposedTaskActionSchema } from "../../src/product/operational-task-contract.js";
|
||||
@@ -7,7 +8,7 @@ export default tool({
|
||||
args: {
|
||||
request_id: tool.schema.string().describe("Stable UUID idempotency key for this proposal"),
|
||||
kind: tool.schema.enum(["create_work_order", "issue_command"]),
|
||||
reason: tool.schema.string(),
|
||||
reason: toolReason.describe("One concise sentence explaining the business basis for this proposed action."),
|
||||
payload: tool.schema.union([
|
||||
tool.schema.object({
|
||||
title: tool.schema.string(),
|
||||
|
||||
Reference in New Issue
Block a user