"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.toolReadPinnedThreadOutputSchema = exports.toolReadPinnedThreadArgsSchema = exports.TOOL_READ_PINNED_THREAD_DESCRIPTION = void 0;
const zod_1 = require("zod");
const toolSchemaBuilder_1 = require("../toolSchemaBuilder");
exports.TOOL_READ_PINNED_THREAD_DESCRIPTION = `Tool: read_pinned_thread

Purpose:
Read the transcript of a previous conversation that was attached to this thread as context. Use it to understand what the user was trying to achieve in that conversation before answering.

When to use:
- A message in this thread lists a Conversation as attached context and you need its content.
- You were asked to verify or follow up on something that happened in the attached conversation.

Do NOT use:
- For threads that are not attached as context — only pinned conversations are readable.
- Repeatedly for the same threadUuid in one turn — the transcript does not change between calls.

Important:
The attached conversation may predate recent project changes. Verify any claims it contains (available fields, metrics, query results) against the current project instead of trusting them.

Parameters:
- threadUuid: The uuid of the attached conversation, taken from the context note in this thread.
`;
exports.toolReadPinnedThreadArgsSchema = (0, toolSchemaBuilder_1.createToolSchema)()
    .extend({
    threadUuid: zod_1.z
        .string()
        .uuid()
        .describe('Uuid of the pinned conversation to read.'),
})
    .build();
exports.toolReadPinnedThreadOutputSchema = 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'),
            messageCount: zod_1.z.number(),
        }),
        zod_1.z.object({
            status: zod_1.z.literal('error'),
        }),
    ]),
});
//# sourceMappingURL=toolReadPinnedThreadArgs.js.map