import { AgentChat, AgentOtel, AgentStore, ID, NewMessage, SendOptions } from "../types-DUs3b5a3.cjs"; import { UIMessage } from "ai"; import * as hono_types0 from "hono/types"; import * as hono_utils_http_status0 from "hono/utils/http-status"; import * as hono_utils_types0 from "hono/utils/types"; import * as hono_hono_base0 from "hono/hono-base"; //#region src/control/index.d.ts /** * To implement your own API bindings, you can use Hono's * `createServerAdapter` to create a server that will * handle requests to the API. * * ```ts * const server = createHTTPServer( * createServerAdapter((req) => { * return api.fetch(req, ); * }) * ); * server.listen(options.port); * ``` */ declare const api: hono_hono_base0.HonoBase<{ Bindings: { chat: AgentChat; store: AgentStore; otlp: AgentOtel; }; }, hono_types0.BlankSchema | hono_types0.MergeSchemaPath<{ "/:key": { $get: { input: { param: { key: string; }; }; output: { error: string; }; outputFormat: "json"; status: 400; } | { input: { param: { key: string; }; }; output: { value: string | undefined; }; outputFormat: "json"; status: 200; }; }; } & { "/:key": { $post: { input: { json: { value: string; }; } & { param: { key: string; }; }; output: { error: string; }; outputFormat: "json"; status: 400; } | { input: { json: { value: string; }; } & { param: { key: string; }; }; output: null; outputFormat: "body"; status: 204; }; }; } & { "/:key": { $delete: { input: { param: { key: string; }; }; output: { error: string; }; outputFormat: "json"; status: 400; } | { input: { param: { key: string; }; }; output: null; outputFormat: "body"; status: 204; }; }; } & { "/": { $get: { input: {}; output: { entries: { key: string; ttl?: number | undefined; }[]; cursor: string | undefined; }; outputFormat: "json"; status: hono_utils_http_status0.ContentfulStatusCode; }; }; }, "/kv"> | hono_types0.MergeSchemaPath<{ "/:key": { $post: { input: { param: { key: string; }; }; output: { error: string; }; outputFormat: "json"; status: 400; } | { input: { param: { key: string; }; }; output: { readonly created: boolean; readonly id: ID; readonly createdAt: string; }; outputFormat: "json"; status: 200; }; }; } & { "/:id": { $get: { input: { param: { id: string; }; }; output: { readonly id: ID; readonly createdAt: string; }; outputFormat: "json"; status: 200; }; }; } & { "/:id/messages": { $get: { input: { param: { id: string; }; }; output: { id: string; role: "system" | "user" | "assistant"; metadata?: hono_utils_types0.JSONValue | undefined; parts: ({ type: "text"; text: string; state?: "streaming" | "done" | undefined; providerMetadata?: { [x: string]: { [x: string]: any; }; } | undefined; } | { type: "reasoning"; text: string; state?: "streaming" | "done" | undefined; providerMetadata?: { [x: string]: { [x: string]: any; }; } | undefined; } | { type: "dynamic-tool"; toolName: string; toolCallId: string; title?: string | undefined; providerExecuted?: boolean | undefined; state: "input-streaming"; input: hono_utils_types0.JSONValue; } | { type: "dynamic-tool"; toolName: string; toolCallId: string; title?: string | undefined; providerExecuted?: boolean | undefined; state: "input-available"; input: hono_utils_types0.JSONValue; callProviderMetadata?: { [x: string]: { [x: string]: any; }; } | undefined; } | { type: "dynamic-tool"; toolName: string; toolCallId: string; title?: string | undefined; providerExecuted?: boolean | undefined; state: "output-available"; input: hono_utils_types0.JSONValue; output: hono_utils_types0.JSONValue; callProviderMetadata?: { [x: string]: { [x: string]: any; }; } | undefined; preliminary?: boolean | undefined; } | { type: "dynamic-tool"; toolName: string; toolCallId: string; title?: string | undefined; providerExecuted?: boolean | undefined; state: "output-error"; input: hono_utils_types0.JSONValue; errorText: string; callProviderMetadata?: { [x: string]: { [x: string]: any; }; } | undefined; } | { type: "source-url"; sourceId: string; url: string; title?: string | undefined; providerMetadata?: { [x: string]: { [x: string]: any; }; } | undefined; } | { type: "source-document"; sourceId: string; mediaType: string; title: string; filename?: string | undefined; providerMetadata?: { [x: string]: { [x: string]: any; }; } | undefined; } | { type: "file"; mediaType: string; filename?: string | undefined; url: string; providerMetadata?: { [x: string]: { [x: string]: any; }; } | undefined; } | { type: "step-start"; } | { type: `tool-${string}`; toolCallId: string; providerExecuted?: boolean | undefined; state: "input-streaming"; input: hono_utils_types0.JSONValue; } | { type: `tool-${string}`; toolCallId: string; providerExecuted?: boolean | undefined; state: "input-available"; input: hono_utils_types0.JSONValue; callProviderMetadata?: { [x: string]: { [x: string]: any; }; } | undefined; } | { type: `tool-${string}`; toolCallId: string; providerExecuted?: boolean | undefined; state: "output-available"; input: hono_utils_types0.JSONValue; output: hono_utils_types0.JSONValue; callProviderMetadata?: { [x: string]: { [x: string]: any; }; } | undefined; preliminary?: boolean | undefined; } | { type: `tool-${string}`; toolCallId: string; providerExecuted?: boolean | undefined; state: "output-error"; input: hono_utils_types0.JSONValue; rawInput?: hono_utils_types0.JSONValue | undefined; errorText: string; callProviderMetadata?: { [x: string]: { [x: string]: any; }; } | undefined; } | { type: `data-${string}`; id?: string | undefined; data: hono_utils_types0.JSONValue; })[]; }[]; outputFormat: "json"; status: 200; }; }; } & { "/:id/sendMessages": { $post: { input: { json: { id: ID; messages: NewMessage[]; options: SendOptions; }; } & { param: { id: string; }; }; output: { error: string; }; outputFormat: "json"; status: 400; } | { input: { json: { id: ID; messages: NewMessage[]; options: SendOptions; }; } & { param: { id: string; }; }; output: null; outputFormat: "body"; status: 204; }; }; } & { "/:id/messages": { $delete: { input: { param: { id: string; }; } & { query: { messages: string | string[]; }; }; output: null; outputFormat: "body"; status: 204; }; }; } & { "/:id/start": { $post: { input: { param: { id: string; }; }; output: null; outputFormat: "body"; status: 204; }; }; } & { "/:id/stop": { $post: { input: { param: { id: string; }; }; output: null; outputFormat: "body"; status: 204; }; }; } & { "/:id": { $delete: { input: { param: { id: string; }; }; output: null; outputFormat: "body"; status: 204; }; }; }, "/chat"> | hono_types0.MergeSchemaPath<{ "/v1/traces": { $post: { input: {}; output: {}; outputFormat: string; status: hono_utils_http_status0.StatusCode; }; }; }, "/otlp">, "/">; //#endregion export { api };