import { PiFragmentConfig, PiWorkflowsService } from "./types.js"; import * as _fragno_dev_core0 from "@fragno-dev/core"; import * as _fragno_dev_db0 from "@fragno-dev/db"; import { FragnoPublicConfigWithDatabase } from "@fragno-dev/db"; import * as _fragno_dev_db_schema0 from "@fragno-dev/db/schema"; import * as zod from "zod"; import * as zod_v4_core0 from "zod/v4/core"; import * as _standard_schema_spec0 from "@standard-schema/spec"; import * as _fragno_dev_db_fragment_definition_builder0 from "@fragno-dev/db/fragment-definition-builder"; //#region src/pi/factory.d.ts type PiFragmentServices = { workflows: PiWorkflowsService; }; declare function createPiFragment(config: PiFragmentConfig, options: FragnoPublicConfigWithDatabase, services: PiFragmentServices): _fragno_dev_core0.FragnoInstantiatedFragment; metadata: zod.ZodOptional; tags: zod.ZodOptional>; steeringMode: zod.ZodOptional>; }, zod_v4_core0.$strip>, zod.ZodObject<{ id: zod.ZodString; name: zod.ZodNullable; status: zod.ZodEnum<{ active: "active"; paused: "paused"; errored: "errored"; terminated: "terminated"; complete: "complete"; waiting: "waiting"; }>; agent: zod.ZodString; workflowInstanceId: zod.ZodNullable; steeringMode: zod.ZodEnum<{ all: "all"; "one-at-a-time": "one-at-a-time"; }>; metadata: zod.ZodNullable; tags: zod.ZodArray; createdAt: zod.ZodDate; updatedAt: zod.ZodDate; }, zod_v4_core0.$strip>, "AGENT_NOT_FOUND" | "WORKFLOWS_REQUIRED" | "WORKFLOW_CREATE_FAILED", string, _fragno_dev_db0.DatabaseRequestContext<_fragno_dev_db0.HooksMap>>, _fragno_dev_core0.FragnoRouteConfig<"GET", "/sessions", _standard_schema_spec0.StandardSchemaV1 | undefined, zod.ZodArray; status: zod.ZodEnum<{ active: "active"; paused: "paused"; errored: "errored"; terminated: "terminated"; complete: "complete"; waiting: "waiting"; }>; agent: zod.ZodString; workflowInstanceId: zod.ZodNullable; steeringMode: zod.ZodEnum<{ all: "all"; "one-at-a-time": "one-at-a-time"; }>; metadata: zod.ZodNullable; tags: zod.ZodArray; createdAt: zod.ZodDate; updatedAt: zod.ZodDate; }, zod_v4_core0.$strip>>, string, "limit", _fragno_dev_db0.DatabaseRequestContext<_fragno_dev_db0.HooksMap>>, _fragno_dev_core0.FragnoRouteConfig<"GET", "/sessions/:sessionId", _standard_schema_spec0.StandardSchemaV1 | undefined, zod.ZodObject<{ id: zod.ZodString; name: zod.ZodNullable; status: zod.ZodEnum<{ active: "active"; paused: "paused"; errored: "errored"; terminated: "terminated"; complete: "complete"; waiting: "waiting"; }>; agent: zod.ZodString; workflowInstanceId: zod.ZodNullable; steeringMode: zod.ZodEnum<{ all: "all"; "one-at-a-time": "one-at-a-time"; }>; metadata: zod.ZodNullable; tags: zod.ZodArray; createdAt: zod.ZodDate; updatedAt: zod.ZodDate; workflow: zod.ZodObject<{ status: zod.ZodEnum<{ active: "active"; paused: "paused"; errored: "errored"; terminated: "terminated"; complete: "complete"; waiting: "waiting"; }>; error: zod.ZodOptional>; output: zod.ZodOptional; }, zod_v4_core0.$strip>; messages: zod.ZodArray; content: zod.ZodUnion; text: zod.ZodString; textSignature: zod.ZodOptional; }, zod_v4_core0.$strip>, zod.ZodObject<{ type: zod.ZodLiteral<"thinking">; thinking: zod.ZodString; thinkingSignature: zod.ZodOptional; }, zod_v4_core0.$strip>, zod.ZodObject<{ type: zod.ZodLiteral<"image">; data: zod.ZodString; mimeType: zod.ZodString; }, zod_v4_core0.$strip>, zod.ZodObject<{ type: zod.ZodLiteral<"toolCall">; id: zod.ZodString; name: zod.ZodString; arguments: zod.ZodRecord; thoughtSignature: zod.ZodOptional; }, zod_v4_core0.$strip>]>>]>; timestamp: zod.ZodNumber; }, zod_v4_core0.$strip>, zod.ZodObject<{ role: zod.ZodLiteral<"assistant">; content: zod.ZodArray; text: zod.ZodString; textSignature: zod.ZodOptional; }, zod_v4_core0.$strip>, zod.ZodObject<{ type: zod.ZodLiteral<"thinking">; thinking: zod.ZodString; thinkingSignature: zod.ZodOptional; }, zod_v4_core0.$strip>, zod.ZodObject<{ type: zod.ZodLiteral<"image">; data: zod.ZodString; mimeType: zod.ZodString; }, zod_v4_core0.$strip>, zod.ZodObject<{ type: zod.ZodLiteral<"toolCall">; id: zod.ZodString; name: zod.ZodString; arguments: zod.ZodRecord; thoughtSignature: zod.ZodOptional; }, zod_v4_core0.$strip>]>>; api: zod.ZodString; provider: zod.ZodString; model: zod.ZodString; usage: zod.ZodObject<{ input: zod.ZodNumber; output: zod.ZodNumber; cacheRead: zod.ZodNumber; cacheWrite: zod.ZodNumber; totalTokens: zod.ZodNumber; cost: zod.ZodObject<{ input: zod.ZodNumber; output: zod.ZodNumber; cacheRead: zod.ZodNumber; cacheWrite: zod.ZodNumber; total: zod.ZodNumber; }, zod_v4_core0.$strip>; }, zod_v4_core0.$strip>; stopReason: zod.ZodString; errorMessage: zod.ZodOptional; timestamp: zod.ZodNumber; }, zod_v4_core0.$strip>, zod.ZodObject<{ role: zod.ZodLiteral<"toolResult">; toolCallId: zod.ZodString; toolName: zod.ZodString; content: zod.ZodArray; text: zod.ZodString; textSignature: zod.ZodOptional; }, zod_v4_core0.$strip>, zod.ZodObject<{ type: zod.ZodLiteral<"thinking">; thinking: zod.ZodString; thinkingSignature: zod.ZodOptional; }, zod_v4_core0.$strip>, zod.ZodObject<{ type: zod.ZodLiteral<"image">; data: zod.ZodString; mimeType: zod.ZodString; }, zod_v4_core0.$strip>, zod.ZodObject<{ type: zod.ZodLiteral<"toolCall">; id: zod.ZodString; name: zod.ZodString; arguments: zod.ZodRecord; thoughtSignature: zod.ZodOptional; }, zod_v4_core0.$strip>]>>; details: zod.ZodOptional; isError: zod.ZodBoolean; timestamp: zod.ZodNumber; }, zod_v4_core0.$strip>]>>; trace: zod.ZodArray; }, zod_v4_core0.$strip>>; summaries: zod.ZodArray; summary: zod.ZodNullable; }, zod_v4_core0.$strip>>; }, zod_v4_core0.$strip>, "WORKFLOWS_REQUIRED" | "SESSION_NOT_FOUND" | "WORKFLOW_INSTANCE_MISSING", string, _fragno_dev_db0.DatabaseRequestContext<_fragno_dev_db0.HooksMap>>, _fragno_dev_core0.FragnoRouteConfig<"POST", "/sessions/:sessionId/messages", zod.ZodObject<{ text: zod.ZodString; done: zod.ZodOptional; steeringMode: zod.ZodOptional>; }, zod_v4_core0.$strip>, zod.ZodObject<{ status: zod.ZodEnum<{ active: "active"; paused: "paused"; errored: "errored"; terminated: "terminated"; complete: "complete"; waiting: "waiting"; }>; }, zod_v4_core0.$strip>, "WORKFLOWS_REQUIRED" | "SESSION_NOT_FOUND" | "WORKFLOW_INSTANCE_MISSING", string, _fragno_dev_db0.DatabaseRequestContext<_fragno_dev_db0.HooksMap>>], _fragno_dev_db0.ImplicitDatabaseDependencies<_fragno_dev_db_schema0.Schema & Record<"id", _fragno_dev_db_schema0.IdColumn<"varchar(128)", string | _fragno_dev_db_schema0.FragnoId | null, _fragno_dev_db_schema0.FragnoId>> & Record<"name", _fragno_dev_db_schema0.Column<"string", string | null, string | null>> & Record<"agent", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"status", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"workflowInstanceId", _fragno_dev_db_schema0.Column<"string", string | null, string | null>> & Record<"steeringMode", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"metadata", _fragno_dev_db_schema0.Column<"json", unknown, unknown>> & Record<"tags", _fragno_dev_db_schema0.Column<"json", unknown, unknown>> & Record<"createdAt", _fragno_dev_db_schema0.Column<"timestamp", (_fragno_dev_db0.DbNow | Date) | null, Date>> & Record<"updatedAt", _fragno_dev_db_schema0.Column<"timestamp", (_fragno_dev_db0.DbNow | Date) | null, Date>>, Record, Record> & Record<"idx_session_status", _fragno_dev_db_schema0.Index] & _fragno_dev_db_schema0.AnyColumn[], readonly ["status"]>> & Record<"idx_session_created", _fragno_dev_db_schema0.Index] & _fragno_dev_db_schema0.AnyColumn[], readonly ["createdAt"]>>>>>>, _fragno_dev_core0.BoundServices<{}>, _fragno_dev_db0.DatabaseServiceContext<_fragno_dev_db0.HooksMap>, _fragno_dev_db0.DatabaseRequestContext<_fragno_dev_db0.HooksMap>, _fragno_dev_db_fragment_definition_builder0.DatabaseRequestStorage, FragnoPublicConfigWithDatabase>; //#endregion export { createPiFragment }; //# sourceMappingURL=factory.d.ts.map