"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.toolGetKnowledgeDocumentContentOutputSchema = exports.toolGetKnowledgeDocumentContentArgsSchema = exports.TOOL_GET_KNOWLEDGE_DOCUMENT_CONTENT_DESCRIPTION = void 0;
const zod_1 = require("zod");
const toolSchemaBuilder_1 = require("../toolSchemaBuilder");
exports.TOOL_GET_KNOWLEDGE_DOCUMENT_CONTENT_DESCRIPTION = `Tool: get_knowledge_document_content

Purpose:
Read the full text content of a single knowledge document by its uuid. Use this after list_knowledge_documents has surfaced a document whose summary looks relevant to the current task.

When to use:
- A summary from list_knowledge_documents indicates the document contains information you need.
- The user explicitly asks you to read a specific document.

Do NOT use:
- Before calling list_knowledge_documents — you need a uuid first.
- Repeatedly for the same uuid in one turn — the content does not change between calls.

Parameters:
- documentUuid: The uuid of the document to read, taken from a previous list_knowledge_documents result.
`;
exports.toolGetKnowledgeDocumentContentArgsSchema = (0, toolSchemaBuilder_1.createToolSchema)()
    .extend({
    documentUuid: zod_1.z
        .string()
        .uuid()
        .describe('Uuid of the document to read.'),
})
    .build();
exports.toolGetKnowledgeDocumentContentOutputSchema = zod_1.z.object({
    result: zod_1.z.string(),
    metadata: zod_1.z.discriminatedUnion('status', [
        zod_1.z.object({
            status: zod_1.z.literal('success'),
            name: zod_1.z.string(),
            contentSizeBytes: zod_1.z.number(),
        }),
        zod_1.z.object({
            status: zod_1.z.literal('error'),
        }),
    ]),
});
//# sourceMappingURL=toolGetKnowledgeDocumentContentArgs.js.map