UNPKG

@adonis-agora/agent

Version:

Governed, durable-backed AI agent (chat + tool-calling + governance) for AdonisJS — part of the Agora ecosystem.

133 lines • 14.7 kB
export * from './action-proposal-approval.js'; export * from './action-proposal-executor.js'; export { onActionProposalAdmitted } from './action-proposal-listeners.js'; export * from './action-proposal-outcome.js'; export * from './action-proposal-receipt.js'; export * from './action-proposal-service.js'; export * from './action-proposal-text.js'; export * from './action-proposal-worker.js'; export * from './spi/action-proposal-outcome-store.js'; export * from './spi/background-actor-resolver.js'; export declare const VERSION = "0.89.2"; export { configure } from '../configure.js'; export * from './action-proposal-discovery.js'; export { prepareActionProposal } from './action-proposal-preparation.js'; export * from './action-proposal-transitions.js'; export * from './actor-labels.js'; export type { AuthActorResolverOptions } from './actor-resolver.js'; export { AuthActorResolver, HeaderActorResolver, resolveActorResolver, UnconfiguredActorResolver, } from './actor-resolver.js'; export type { AgentDeps } from './agent-deps.js'; export { utcDay } from './agent-deps.js'; export type { AgentDepsFactoryConfig } from './agent-deps-factory.js'; export { AgentDepsFactory, delegateToolName, normalizeDelegateEdge, registerDelegateTools, } from './agent-deps-factory.js'; export { type AgentLoopDeps, type AgentLoopHooks, type AgentLoopResult, APPROVAL_EXPIRED_REASON, DEFAULT_MAX_AGENT_APPEARANCES, exposeStreamErrorDetails, MAX_DELEGATION_DEPTH, outcomeFrame, QuotaExceededError, RUN_FAILED_MESSAGE, RunCancelledError, runAgentLoop, type SettledTask, settleAll, streamErrorCode, streamErrorFrame, withBuiltInTools, } from './agent-loop.js'; export { AgentRegistry } from './agent-registry.js'; export type { ChatParams } from './agent-service.js'; export { AgentService, type AgentServiceOptions, AttachmentInventoryError, AttachmentRefusedError, ChatQueueError, type ChatSendMode, type ChatSendOptions, type ChatSendResult, type QueuedSend, RegenerateNeedsThreadError, UnknownAgentError, } from './agent-service.js'; export type { AiToolMeta, AiToolOptions, BrandedFunctionalTool, DefineToolObjectOptions, DefineToolOptions, FunctionalTool, ToolClass, } from './ai-tool-ref.js'; export { AGENT_TOOL_BRAND, AI_TOOL_META_KEY, AiTool, defineTool, isBrandedFunctionalTool, readAiToolMeta, toolNameFromClass, } from './ai-tool-ref.js'; export { type AnonymousActorOptions, AnonymousActorResolver, } from './anonymous-actor-resolver.js'; export { type AttachmentLimits, DEFAULT_ALLOWED_ATTACHMENT_CONTENT_TYPES, DEFAULT_MAX_ATTACHMENT_BYTES, } from './attachment-limits.js'; export { ClosedToolAuthorizer, DefaultToolAuthorizer } from './authorizer.js'; export * from './base-tool.js'; export { ChatQueueService, type ChatQueueServiceOptions, isThreadTurn, type QueuedTurn, type QueuedTurnStarter, type QueuePlan, type QueueSettleOutcome, } from './chat-queue-service.js'; export type { ConfirmTokenSubject } from './confirm-token.js'; export { canonicalJson, confirmTokenExpiry, DEFAULT_CONFIRM_TTL_MS, hashConfirmToken, InMemoryConfirmTokenStore, signConfirmToken, verifyConfirmToken, } from './confirm-token.js'; export type { ConfirmedToolDone, ConfirmedToolMessages, ConfirmedToolOptions, ConfirmedToolOutcome, ConfirmedToolPreview, ConfirmedToolResult, ConfirmedToolSteps, ConfirmFields, } from './confirmed-tool.js'; export { CONFIRM_JSON_SCHEMA_PROPERTIES, ConfirmTokenError, defineConfirmedTool, withConfirmFields, } from './confirmed-tool.js'; export { danglingToolCallIds, RUN_ENDED_BEFORE_TOOL_CALL, settleDanglingToolCalls, type ToolCallOutcome, UNFINISHED_TOOL_CALL, } from './dangling-tool-calls.js'; export type { DataToolConfig, DataToolResult, GroupTableAccessConfig, QueryRunner, SqlParserLike, SqlValidationResult, TableAccessPolicy, TenantScopeConfig, } from './data/index.js'; export { dataTool, GroupTableAccessPolicy, injectLimit, loadSqlParser, SqlValidationError, SqlValidator, TenantScopeRewriter, } from './data/index.js'; export { RunNotActiveError, settleDeadRun } from './dead-run.js'; export type { ActorDirectoryFactory, AgentConfig, AttachmentStagingContext, AttachmentStagingFactory, DefaultAgentOptions, EmbeddingFactory, GovernanceQueriesContext, GovernanceQueriesFactory, LucidGovernanceConfig, LucidPricingConfig, LucidStoreConfig, LucidTokenSinkConfig, MemoryActorDirectoryConfig, MemoryRetrieverConfig, MemoryStoreConfig, ModelFactory, PgVectorRetrieverConfig, PricingContext, PricingFactory, RedisTokenSinkConfig, RetrieverContext, RetrieverFactory, SinkFactory, StoreContext, StoreFactory, TokenSinkFactory, } from './define_config.js'; export { actorDirectories, attachmentStores, defineConfig, governanceQueries, pricingStores, retrievers, stores, streamTransports, tokenSinks, } from './define_config.js'; export * from './delegation.js'; export * from './diagnostics.js'; export { type AgentIntake, ASK_TOOL_DESCRIPTION, ASK_TOOL_NAME, type AskToolInput, askInputSchema, askToolDefinition, DEFAULT_INTAKE_PREAMBLE, type ElicitationOption, type ElicitationOutcome, type ElicitationQuestion, type ElicitationReply, type ElicitationRequest, type ElicitationResult, type HumanReply, HumanReplyMismatchError, isHumanDecision, MAX_ASK_QUESTIONS, normalizeElicitationReply, renderElicitationAnswers, resolveElicitation, settleElicitation, } from './elicitation.js'; export { ELICITATION_INPUT_TYPES, type ElicitationInput, type ElicitationInputType, isTypedQuestion, questionOptions, readElicitationInput, readElicitationQuestions, validateElicitationAnswer, validateElicitationValue, } from './elicitation-input.js'; export { type AgentEngine, type AgentEngineContext, type AgentEngineFactory, assertRunnable, } from './engine.js'; export { AgentGenui, type GenuiFactory, type GenuiFactoryContext, type GenuiSetup, } from './genui/factory.js'; export type { GenuiCallRow, GenuiDayRow, GenuiErrorCategory, GenuiErrorRow, GenuiFrameTimes, GenuiLatency, GenuiOutOfLoopCall, GenuiStats, GenuiStepFacts, GenuiToolModelRow, GenuiValidity, RecordGenuiCallInput, } from './genui-telemetry.js'; export { classifyGenuiError, GenuiRunRecorder, GenuiTurnTelemetry, genuiRowsInRange, observeGenuiFrames, scrubGenuiError, summarizeGenuiCalls, } from './genui-telemetry.js'; export type { AgentGovernanceAuthorize, GovernanceGateVerdict } from './governance-gate.js'; export { evaluateGovernanceGate } from './governance-gate.js'; export * from './history-window.js'; export { InProcessTokenStreamSink } from './in-process-sink.js'; export { LucidTokenStreamSink, type LucidTokenStreamSinkOptions, } from './lucid-token-stream-sink.js'; export { type BuildMemoryBlockInput, buildMemoryBlock, DEFAULT_MAX_FACT_CHARS, DEFAULT_MAX_MEMORIES, type ForgetMemoryInput, type ListMemoriesInput, type MemoryAuthor, type MemoryConfig, type MemoryDigest, type MemoryDigestEntry, type MemoryFact, type MemoryForgetRequest, type MemoryOrigin, type MemoryProvider, type MemoryRecord, type MemoryVerdict, type MemoryWriteOutcome, type MemoryWriteRequest, memoryForgetVerdict, memoryWriteVerdict, type OfferMemoriesInput, type OverriddenMemory, offerMemories, REMEMBER_TOOL_DESCRIPTION, REMEMBER_TOOL_NAME, type RememberToolInput, type ResolveMemoryDigestInput, rememberInputSchema, rememberToolDefinition, resolveMemoryDigest, type SearchMemoriesInput, type StoreMemoryInput, type WriteMemoryInput, writeMemory, } from './memory.js'; export * from './message-timestamps.js'; export * from './negotiated-tool-ui.js'; export type { OwnershipVerdict } from './ownership.js'; export { evaluateOwnership } from './ownership.js'; export type { CursorPage, CursorParams } from './pagination.js'; export { type PartialJson, parsePartialJson } from './partial-json.js'; export * from './personas.js'; export * from './pricing/bedrock.js'; export * from './pricing/boot-pricing.js'; export * from './pricing/models-dev.js'; export * from './pricing/resolve.js'; export { createFrameBuffer, createIncrementalGate, type FrameBuffer, type GateRejection, gateTail, type IncrementalGate, type OutputGateMode, type OutputGateResult, releaseGatedFrames, resolveGateLookback, resolveOutputGateMode, runInputProcessors, runOutputProcessors, } from './processors.js'; export * from './rag/index.js'; export type { FacetHit, QdrantClientLike, QdrantCondition, QdrantFieldCondition, QdrantFilter, QdrantIsEmptyCondition, QdrantMetric, QdrantPoint, QdrantStoreOptions, } from './rag/qdrant-store.js'; export { buildQdrantFilter, chunkIdToPointId, decodeScrollCursor, encodeScrollCursor, QdrantRetriever, QdrantStore, } from './rag/qdrant-store.js'; export * from './rag-media/index.js'; export type { RedisStreamClient } from './redis-stream-client.js'; export { RedisTokenStreamSink, type RedisTokenStreamSinkOptions, } from './redis-token-stream-sink.js'; export { isReplayIntegrityError } from './replay-integrity.js'; export type { Latency, RunFailureCodeRow, RunMetrics, RunMetricsSample, } from './run-metrics.js'; export { summarizeLatency, summarizeRunMetrics } from './run-metrics.js'; export { InlineAgentRunner } from './runners/inline-agent-runner.js'; export { actorScope, buildSkillsBlock, compositeSkillProvider, DEFAULT_MAX_SKILLS, defaultScopeResolver, GLOBAL_SCOPE, type ListSkillsInput, type LoadSkillInput, loadSkill, offerSkills, resolveSkillCatalog, type ScopeContext, type ScopeResolver, SKILL_TOOL_DESCRIPTION, SKILL_TOOL_NAME, type Skill, type SkillAuthor, type SkillCatalogEntry, type SkillContext, type SkillLoadOutcome, type SkillOffer, type SkillProvider, type SkillSummary, type SkillsConfig, type SkillToolInput, type SkillWriteRequest, type SkillWriteVerdict, skillInputSchema, skillToolDefinition, skillWriteVerdict, staticSkillProvider, tenantScope, } from './skills.js'; export * from './spi/action-proposal-store.js'; export * from './spi/action-proposal-worker-store.js'; export * from './spi/actor-directory.js'; export * from './spi/actor-resolver.js'; export * from './spi/agent-runner.js'; export * from './spi/agent-store.js'; export { type ApprovalDecisionRef, type ApprovalPolicy, type ApprovalRequirement, type ApprovalRules, type ApprovalThreadRef, type ApprovalToolRef, approvalRules, DefaultApprovalPolicy, defaultCanDecide, mayDecideApproval, REQUESTER_APPROVER, type ToolCallApprovalColumns, type ToolCallApprovalState, toApprovalPolicy, toolCallApprovalFromRow, } from './spi/approval-policy.js'; export * from './spi/attachment-staging.js'; export * from './spi/chat-queue.js'; export * from './spi/confirm-token-store.js'; export * from './spi/embedding-provider.js'; export * from './spi/governance-queries.js'; export * from './spi/history-window.js'; export { findCatalogModel, type ModelCatalog, type ModelCatalogEntry, type ModelCatalogProviderGroup, type ModelCatalogQuery, type ModelCatalogView, ModelNotAllowedError, staticModelCatalog, toModelCatalog, withSelectedModel, } from './spi/model-catalog.js'; export * from './spi/model-provider.js'; export * from './spi/pricing-store.js'; export * from './spi/processors.js'; export * from './spi/protocol-adapter.js'; export { exhaustedWindow, isQuotaProvider, type QuotaBlock, QuotaBlockedError, type QuotaPeriod, type QuotaProvider, type QuotaQuery, type QuotaReport, type QuotaWarning, type QuotaWindow, quotaPeriodRange, quotaUsedRatio, quotaWarning, } from './spi/quota-provider.js'; export * from './spi/quota-store.js'; export * from './spi/reranker.js'; export * from './spi/retriever.js'; export type { RolesPolicy as ToolAuthorizer } from './spi/roles-policy.js'; export * from './spi/roles-policy.js'; export * from './spi/token-stream-sink.js'; export * from './spi/tool.js'; export { AgentSseEncoder, frameToEvents, parseStreamCursor } from './sse.js'; export type { QdrantRetrieverConfig } from './stores/factory.js'; export { lucidStoreConnection } from './stores/factory.js'; export { type LedgerQuotaOptions, LedgerQuotaProvider, type QuotaLimits, type QuotaWindowLimits, } from './stores/ledger-quota-provider.js'; export type { LucidAgentStoreOptions, LucidClientLike, LucidDatabaseLike, LucidInsertBuilderLike, LucidQueryBuilderLike, LucidRawBindings, LucidRawRunner, } from './stores/lucid.js'; export { LucidAgentStore } from './stores/lucid.js'; export type { LucidConfirmTokenStoreOptions } from './stores/lucid-confirm-tokens.js'; export { LucidConfirmTokenStore } from './stores/lucid-confirm-tokens.js'; export { LucidGovernanceQueries } from './stores/lucid-governance-queries.js'; export { LucidPricingStore } from './stores/lucid-pricing.js'; export { AGENT_TABLES, channelStateTableStatements, createAgentTables, createTableStatements, dropAgentTables, dropTableStatements, ensureAgentTables, ensureChannelStateTable, ensureStreamFrameTable, schemaRunner, streamFrameTableStatement, } from './stores/lucid-schema.js'; export type { AgentApprovalRequest, AgentApprovalSettlement, AgentStreamErrorCode, AgentStreamEvent, AgentUiComponent, } from './stream-events.js'; export { DEFAULT_STRUCTURED_OUTPUT_INSTRUCTION, extractJson, repairInstruction, type StructuredOutcome, StructuredOutputError, validateStructured, } from './structured-output.js'; export type { RegisteredTool, ToolsBarrel } from './tool-discovery.js'; export { discoverTools, registerFunctionalTool, registerToolExport, registerToolsFromBarrel, } from './tool-discovery.js'; export * from './tool-filters.js'; export type { ToolCatalogEntry, ToolConfirmation, ToolPresentation, ToolPresentationTone, ToolResultField, ToolResultView, } from './tool-presentation.js'; export { ALL_AGENTS, DEFAULT_CONFIRM_VERB, fillPresentationTemplate, fillToolConfirmation, humanizeToolName, readPresentationPath, resolveToolConfirmation, } from './tool-presentation.js'; export { ClosedRolesPolicy, DefaultRolesPolicy, type EmptyRoles, type InvokeOptions, type PrepareOptions, type RolesPolicyOptions, ToolDisabledError, ToolForbiddenError, ToolInputDriftError, ToolInputInvalidError, ToolNotFoundError, ToolPreflightDeniedError, type ToolPreparationResult, ToolRegistry, } from './tool-registry.js'; export type { ComponentPresentation, ToolResultPresentation } from './tool-result-presentation.js'; export type { InvokeWithTransientRetryOptions, ToolTransientRetryOptions, ToolTransientRetrySetting, } from './tool-retry.js'; export { DEFAULT_TOOL_TRANSIENT_RETRY_ATTEMPTS, DEFAULT_TOOL_TRANSIENT_RETRY_BACKOFF_MS, invokeWithTransientRetry, isTransientToolError, } from './tool-retry.js'; export { createNoopEmitUi, createUiCollector, type EmitUi, mergeUi, type UiCollector, unwrapToolStepOutput, wrapToolStepOutput, } from './tool-ui.js'; export { type ObservedTurnFrames, observeTurnFrames, type TurnFrameSummary, withTurnFrames, } from './turn-frames.js'; export * from './types.js'; export * from './ui-capabilities.js'; //# sourceMappingURL=index.d.ts.map