import { KnowledgeAvailability, KnowledgeDocument } from "./documents.mjs"; import { Effect } from "effect"; import * as Schema from "effect/Schema"; import { ToolError } from "@yolk-sdk/agent/loop"; import { ToolRegistration } from "@yolk-sdk/agent/tools"; //#region src/agent.d.ts /** Declared output of `makeKnowledgeLookupTool`; `structuredContent` is its JSON encoding * (`Schema.toCodecJson`: document dates become ISO strings). */ declare const KnowledgeLookupOutput: Schema.Union; readonly results: Schema.$Array; readonly slug: Schema.Trimmed; readonly title: Schema.Trimmed; readonly purpose: Schema.Trimmed; readonly origin: Schema.Trimmed; readonly content: Schema.Trimmed; readonly status: Schema.Literals; readonly availability: Schema.Literals; readonly summary: Schema.optional; readonly errorMessage: Schema.optional; readonly reviewedAt: Schema.optional; readonly metadata: Schema.optional>; readonly createdAt: Schema.DateTimeUtc; readonly updatedAt: Schema.DateTimeUtc; }>; readonly score: Schema.optionalKey; readonly context: Schema.optionalKey>>; }>>; }>, Schema.Struct<{ readonly operation: Schema.Literal<"get">; readonly document: Schema.Struct<{ readonly id: Schema.brand; readonly slug: Schema.Trimmed; readonly title: Schema.Trimmed; readonly purpose: Schema.Trimmed; readonly origin: Schema.Trimmed; readonly content: Schema.Trimmed; readonly status: Schema.Literals; readonly availability: Schema.Literals; readonly summary: Schema.optional; readonly errorMessage: Schema.optional; readonly reviewedAt: Schema.optional; readonly metadata: Schema.optional>; readonly createdAt: Schema.DateTimeUtc; readonly updatedAt: Schema.DateTimeUtc; }>; }>]>; type KnowledgeLookupOutput = typeof KnowledgeLookupOutput.Type; /** Declared output of `makeKnowledgeManageTool`; `structuredContent` is its JSON encoding. */ declare const KnowledgeManageOutput: Schema.Struct<{ readonly operation: Schema.Literals; readonly document: Schema.Struct<{ readonly id: Schema.String; readonly slug: Schema.String; readonly title: Schema.String; }>; }>; type KnowledgeManageOutput = typeof KnowledgeManageOutput.Type; type KnowledgeTarget = { readonly slug: string; readonly scope?: string; }; type KnowledgeLookupResult = { readonly document: KnowledgeDocument; readonly score?: number; readonly context?: ReadonlyArray<{ readonly content: string; }>; }; type KnowledgeSavedDocument = { readonly id: string; readonly slug: string; readonly title: string; }; type KnowledgeLookupHandlers = { readonly search: (input: { readonly context: Context; readonly query: string; readonly limit?: number; readonly minScore?: number; readonly contextChunks?: number; }) => Effect.Effect, ToolError>; readonly get: (input: { readonly context: Context; readonly id?: string; readonly target?: KnowledgeTarget; }) => Effect.Effect; }; type KnowledgeManageHandlers = { readonly upsert: (input: { readonly context: Context; readonly target: KnowledgeTarget; readonly title: string; readonly purpose: string; readonly origin: string; readonly content: string; readonly availability: KnowledgeAvailability; }) => Effect.Effect; readonly setAvailability: (input: { readonly context: Context; readonly target: KnowledgeTarget; readonly availability: KnowledgeAvailability; }) => Effect.Effect; readonly renameSlug: (input: { readonly context: Context; readonly target: KnowledgeTarget; readonly nextSlug: string; }) => Effect.Effect; readonly delete: (input: { readonly context: Context; readonly target: KnowledgeTarget; }) => Effect.Effect; }; declare const makeKnowledgeLookupTool: (handlers: KnowledgeLookupHandlers, options?: { readonly name?: string; readonly description?: string; }) => ToolRegistration; declare const makeKnowledgeManageTool: (handlers: KnowledgeManageHandlers, options?: { readonly name?: string; readonly description?: string; }) => ToolRegistration; //#endregion export { KnowledgeLookupHandlers, KnowledgeLookupOutput, KnowledgeLookupResult, KnowledgeManageHandlers, KnowledgeManageOutput, KnowledgeSavedDocument, KnowledgeTarget, makeKnowledgeLookupTool, makeKnowledgeManageTool }; //# sourceMappingURL=agent.d.mts.map