Documentation
¶
Overview ¶
Package agentenkit is a durable runtime for AI agent runs, as a library.
It does not own your prompts, models, or tools; goai does. It owns the lifecycle of a run: that a run outlives the request that started it, survives a worker dying mid-step, can be stopped, parked for a human, resumed exactly where it stopped, nested, metered, and watched by several people at once.
This is the Go port of the TypeScript agentenkit package, file for file:
ports/ the four ports you implement, the admin store, every DTO core/ the behaviors (engine, loop, HITL, subagents, follow, admin reads) adapters/ memory, inline, sqlite, postgres, redis, qstash, upstash admin/ memory, sqlite, postgres operational stores
This root package re-exports the public surface, the way index.ts does, and holds SetupAgentCore (runtime.ts). Adapters are imported from their own packages so a program only compiles the drivers it uses.
Index ¶
- Constants
- Variables
- func Ptr[T any](v T) *T
- type AdminAPI
- func (a *AdminAPI) GetRun(ctx context.Context, runID string) (*RunDetail, error)
- func (a *AdminAPI) GetThread(ctx context.Context, threadID string) (*ThreadDetail, error)
- func (a *AdminAPI) ListRuns(ctx context.Context, filter RunFilter) ([]RunRecord, error)
- func (a *AdminAPI) ListRunsByThread(ctx context.Context, threadID string) ([]RunRecord, error)
- func (a *AdminAPI) ListSteps(ctx context.Context, runID string) ([]StepRecord, error)
- func (a *AdminAPI) ListThreads(ctx context.Context, filter AdminThreadFilter) ([]ThreadSummary, error)
- func (a *AdminAPI) Overview(ctx context.Context, since *time.Time) (AdminOverview, error)
- func (a *AdminAPI) Stats(ctx context.Context, r StatsRange) (RunStats, error)
- type AdminOverview
- type AdminStore
- type AdminThread
- type AdminThreadFilter
- type AdminThreadStore
- type AgentConfig
- type AgentCore
- func (c *AgentCore) AdminStore() AdminStore
- func (c *AgentCore) Close() error
- func (c *AgentCore) Config() AgentConfig
- func (c *AgentCore) CreateGenerateTextAgent(spec GenerateTextAgentSpec) *AgentHandle
- func (c *AgentCore) CreateStreamTextAgent(spec StreamTextAgentSpec) *AgentHandle
- func (c *AgentCore) DeleteThread(ctx context.Context, threadID string, state AgentRunState) (DeleteThreadResult, error)
- func (c *AgentCore) GetAgent(name string) *AgentHandle
- func (c *AgentCore) GetThreadSnapshot(ctx context.Context, threadID string, state AgentRunState) (*ThreadSnapshot, error)
- func (c *AgentCore) GetThreadUsage(ctx context.Context, threadID string, state AgentRunState) (*ThreadUsage, error)
- func (c *AgentCore) ListThreads(ctx context.Context, state AgentRunState) ([]ThreadDTO, error)
- func (c *AgentCore) Ports(state AgentRunState) RuntimePorts
- func (c *AgentCore) ReclaimStuckRuns(ctx context.Context, olderThan time.Duration) (ReclaimReport, error)
- func (c *AgentCore) ResolveModel(modelName string) (ResolvedModel, error)
- type AgentEvent
- type AgentHandle
- type AgentKind
- type AgentRunState
- type Approval
- type Attachment
- type BillingCheck
- type BillingStage
- type BoundStorage
- type ContentPart
- type ContextUsage
- type Cost
- type DeleteThreadResult
- type EnqueueOptions
- type EventBus
- type EventPublisher
- type EventStore
- type EventStream
- type EventsAPI
- func (e *EventsAPI) Follow(ctx context.Context, threadID string, opts FollowStateOptions) (*EventStream, error)
- func (e *EventsAPI) PublishEvent(ctx context.Context, threadID, typ string, payload any, ...) (AgentEvent, error)
- func (e *EventsAPI) SSE(ctx context.Context, threadID string, opts SSEStateOptions) (*SSEStream, error)
- func (e *EventsAPI) Since(ctx context.Context, threadID string, sinceSeq int64, state AgentRunState) ([]AgentEvent, error)
- func (e *EventsAPI) Subscribe(ctx context.Context, threadID string, handler func(AgentEvent)) (func() error, error)
- type ExecuteFunc
- type ExecuteInput
- type ExecuteOutcome
- type ExecutionState
- type FinalizeInput
- type FollowOptions
- type FollowStateOptions
- type GenerateTextAgentSpec
- type HITLAPI
- type HandleJobResult
- type HitlCtx
- type HitlFrame
- type HitlResponse
- type JobKind
- type Kv
- type LoopInput
- type LoopOutcome
- type MessageDTO
- type MessageRole
- type MessageScope
- type MessageStore
- type NestedDescriptor
- type NewAdminThread
- type NewMessage
- type NewRunRecord
- type NewStepRecord
- type NewUsage
- type ParkInput
- type ParkRequest
- type PendingHitl
- type Percentiles
- type Policy
- type PrepareStepFunc
- type Pricer
- type PricerFunc
- type ProviderOptions
- type PublishOptions
- type PublishStateOptions
- type Queue
- type QueueStats
- type QueuedJob
- type ReclaimReport
- type RegisteredAgent
- type ResolvedModel
- type RespondInput
- type RespondResult
- type ResumeInfo
- type RunBudget
- type RunDetail
- type RunFilter
- type RunFinishInfo
- type RunInput
- type RunJob
- type RunLedger
- type RunPatch
- type RunRecord
- type RunResult
- type RunStats
- type RunStore
- type RuntimeOptions
- type RuntimePorts
- type SSEOptions
- type SSEStateOptions
- type SSEStream
- type Semaphore
- type SetOptions
- type SettleFunc
- type StatsRange
- type StepCall
- type StepRecord
- type StepResult
- type StepStore
- type StepToolCall
- type StopOptions
- type StopResult
- type Storage
- type StorageContext
- type StreamTextAgentSpec
- type SubagentCtx
- type SubagentProfile
- type SubagentsConfig
- type SystemFunc
- type ThreadDTO
- type ThreadDetail
- type ThreadInit
- type ThreadSnapshot
- type ThreadStart
- type ThreadStore
- type ThreadSummary
- type ThreadUsage
- type TokenAttribution
- type Tool
- type ToolContext
- type UsageFilter
- type UsageKind
- type UsageLine
- type UsageOutcome
- type UsageStore
- type UsageTotals
- type WorkerAPI
Constants ¶
const ( KindStep = ports.KindStep KindCompaction = ports.KindCompaction UsageFinished = ports.UsageFinished UsageAborted = ports.UsageAborted UsageErrored = ports.UsageErrored StateIdle = ports.StateIdle StateQueued = ports.StateQueued StateRunning = ports.StateRunning StateWaitingForInput = ports.StateWaitingForInput StateCancelled = ports.StateCancelled StateCompleted = ports.StateCompleted StateFailed = ports.StateFailed RoleUser = ports.RoleUser RoleAssistant = ports.RoleAssistant RoleSystem = ports.RoleSystem RoleTool = ports.RoleTool KindStreamText = ports.KindStreamText KindGenerateText = ports.KindGenerateText JobDispatch = ports.JobDispatch JobRetry = ports.JobRetry JobRedrive = ports.JobRedrive JobResume = ports.JobResume JobExpiry = ports.JobExpiry JobReclaim = ports.JobReclaim PriorityLow = ports.PriorityLow BillingAtDispatch = ports.BillingAtDispatch BillingAtPickup = ports.BillingAtPickup RefusedActiveRun = ports.RefusedActiveRun RefusedQueueFull = ports.RefusedQueueFull RefusedBilling = ports.RefusedBilling )
const ( OutcomeExecuted = core.OutcomeExecuted OutcomeLockConflict = core.OutcomeLockConflict OutcomeStale = core.OutcomeStale OutcomeLockLost = core.OutcomeLockLost HITLParked = core.HITLParked ReasonApproval = core.ReasonApproval HITLTTL = core.HITLTTL ContextTokenCeiling = core.ContextTokenCeiling ContextSummaryType = core.ContextSummaryType DefaultModel = core.DefaultModel )
Variables ¶
var ( ErrQueueFull = ports.ErrQueueFull ErrPayloadTooLarge = ports.ErrPayloadTooLarge ErrDuplicateJob = ports.ErrDuplicateJob ErrUnsupported = ports.ErrUnsupported )
Errors a queue answers with, so a host can tell them apart.
var ( // MainAgent scopes a message listing to the main agent's stream. MainAgent = ports.MainAgent // AgentScope scopes a message listing to one nested run's stream. AgentScope = ports.AgentScope // DefaultConfig returns the shipped defaults. DefaultConfig = ports.DefaultConfig // ResolveConfig validates a config. ResolveConfig = ports.ResolveConfig // WrapTool lifts a plain goai tool into the platform's Tool. WrapTool = ports.WrapTool // WrapTools lifts several goai tools. WrapTools = ports.WrapTools // BindStorage attaches a run's context to every storage method once. BindStorage = ports.BindStorage // MergeProviderOptions is a shallow per-provider merge. MergeProviderOptions = ports.MergeProviderOptions )
var ( Execute = core.Execute ExecuteStep = core.ExecuteStep ExecuteWithPolicy = core.ExecuteWithPolicy Finalize = core.Finalize RunLoop = core.RunLoop IsParked = core.IsParked MarkRequiresConfirmation = core.MarkRequiresConfirmation RequireConfirmation = core.RequireConfirmation FollowEvents = core.FollowEvents ToSSEStream = core.ToSSEStream SSEFrame = core.SSEFrame SSEHeaders = core.SSEHeaders ContextWithRunID = core.ContextWithRunID RunIDFromContext = core.RunIDFromContext ClaimRun = core.ClaimRun ClaimRunAs = core.ClaimRunAs UserContent = core.UserContent CurrentRunID = core.CurrentRunID RunIDKey = core.RunIDKey RedriveKey = core.RedriveKey AttemptsKey = core.AttemptsKey IsActive = core.IsActive StateKey = core.StateKey SeqKey = core.SeqKey RunLockKey = core.RunLockKey NewID = core.NewID CountTokens = core.CountTokens AttributeTokens = core.AttributeTokens Respond = core.Respond ParkForApproval = core.ParkForApproval ParkForInput = core.ParkForInput AsParkRequest = core.AsParkRequest LoadPendingHitl = core.LoadPendingHitl LoadOpenHitls = core.LoadOpenHitls WithHitl = core.WithHitl HitlKey = core.HitlKey ReclaimIfOrphaned = core.ReclaimIfOrphaned ContextBudget = core.ContextBudget ContextUsageOf = core.ContextUsage CompactContext = core.CompactContext NewSemaphore = core.NewSemaphore RunNestedAgent = core.RunNestedAgent SpawnSubagentTool = core.SpawnSubagentTool Run = core.Run Stop = core.Stop StopRun = core.StopRun DeleteThread = core.DeleteThread RunStateFromContext = core.RunStateFromContext ContextWithRunState = core.ContextWithRunState WithRunState = core.WithRunState MarkPromptCaching = core.MarkPromptCaching SystemCacheMessage = core.SystemCacheMessage ChunkPayload = core.ChunkPayload ContentFromMessage = core.ContentFromMessage MessageFromDTO = core.MessageFromDTO MessagesFromDTOs = core.MessagesFromDTOs RepairDanglingToolCalls = core.RepairDanglingToolCalls ParseContent = core.ParseContent TextContent = core.TextContent PartsContent = core.PartsContent Publish = core.Publish PublishNotice = core.PublishNotice PublishEvent = core.PublishEvent WithPublishEvent = core.WithPublishEvent ToolContextFrom = core.ToolContextFrom ApprovalFromContext = core.ApprovalFromContext PublisherFromContext = core.PublisherFromContext ReservedEventTypes = core.ReservedEventTypes SetThreadState = core.SetThreadState Summarise = core.Summarise )
var ErrUnknownAgent = errors.New("agentenkit: no agent registered for this job")
ErrUnknownAgent is a job for an agent this process has not registered, with no default handle to fall back on. It is an error rather than a quiet refusal: the queue keeps the job and retries it, so a process that registers its agents a moment after it starts consuming heals on its own, and one that never does leaves a dead row and a log line, not silence.
Functions ¶
Types ¶
type AdminAPI ¶
type AdminAPI struct {
// contains filtered or unexported fields
}
AdminAPI reads operational history (§2.9). Everything here comes from the platform's OWN store; it never reads the caller's database.
func (*AdminAPI) ListRunsByThread ¶
ListRunsByThread: every run on a thread, newest first.
func (*AdminAPI) ListThreads ¶
func (a *AdminAPI) ListThreads(ctx context.Context, filter AdminThreadFilter) ([]ThreadSummary, error)
ListThreads: threads with their runs rolled up.
type AdminThreadFilter ¶
type AdminThreadFilter = ports.AdminThreadFilter
Ports: the interfaces users implement.
type AdminThreadStore ¶
type AdminThreadStore = ports.AdminThreadStore
Ports: the interfaces users implement.
type AgentCore ¶
type AgentCore struct {
// HITL answers approvals and heals orphans (§2.5).
HITL *HITLAPI
// Events replays and tails a thread (§2.2).
Events *EventsAPI
// Admin reads operational history (§2.9).
Admin *AdminAPI
// Worker is the queue dispatch side (§2.8).
Worker *WorkerAPI
// contains filtered or unexported fields
}
AgentCore is the bound platform: ports plus behaviors (§3.3).
func SetupAgentCore ¶
func SetupAgentCore(ctx context.Context, opts RuntimeOptions) (*AgentCore, error)
SetupAgentCore binds the ports to the core behaviors (§3.3). This is the package's public entry point: the only place where anything is wired.
Operational history is the platform's own (§2.9). Nothing configured means SQLite on disk, opened here, eagerly: a store that cannot be opened is a startup error you see immediately, rather than a surprise on the first run.
func (*AgentCore) AdminStore ¶
func (c *AgentCore) AdminStore() AdminStore
AdminStore is the operational store in use.
func (*AgentCore) CreateGenerateTextAgent ¶
func (c *AgentCore) CreateGenerateTextAgent(spec GenerateTextAgentSpec) *AgentHandle
CreateGenerateTextAgent registers a generate-text handle under spec.Name.
func (*AgentCore) CreateStreamTextAgent ¶
func (c *AgentCore) CreateStreamTextAgent(spec StreamTextAgentSpec) *AgentHandle
CreateStreamTextAgent registers a stream-text handle under spec.Name (§4).
func (*AgentCore) DeleteThread ¶
func (c *AgentCore) DeleteThread(ctx context.Context, threadID string, state AgentRunState) (DeleteThreadResult, error)
DeleteThread deletes a thread and everything that follows it (§3.2). Refused while a run is active; Stop first.
func (*AgentCore) GetAgent ¶
func (c *AgentCore) GetAgent(name string) *AgentHandle
GetAgent resolves a registered handle by name, or nil.
func (*AgentCore) GetThreadSnapshot ¶
func (c *AgentCore) GetThreadSnapshot(ctx context.Context, threadID string, state AgentRunState) (*ThreadSnapshot, error)
GetThreadSnapshot is one call for UIs: thread + messages + runs + the unfinished run's events. Nil when the thread is gone.
func (*AgentCore) GetThreadUsage ¶
func (c *AgentCore) GetThreadUsage(ctx context.Context, threadID string, state AgentRunState) (*ThreadUsage, error)
GetThreadUsage is tokens spent so far and the §2.6 context load. Nil when the thread is gone.
func (*AgentCore) ListThreads ¶
ListThreads lists threads most recent first. Takes the run state (§2.10) so a tenant-scoped Storage can filter; a read has no dispatch ticket.
func (*AgentCore) Ports ¶
func (c *AgentCore) Ports(state AgentRunState) RuntimePorts
Ports returns the ports bundle for reads on behalf of no particular run, or for a run when state is given.
func (*AgentCore) ReclaimStuckRuns ¶ added in v0.3.0
func (c *AgentCore) ReclaimStuckRuns(ctx context.Context, olderThan time.Duration) (ReclaimReport, error)
ReclaimStuckRuns is the backstop for a run that nothing is working on (§2.5, §2.8): a QUEUED or RUNNING record older than olderThan whose lock nobody holds and whose job the queue no longer has is re-dispatched, and an ended record older than olderThan whose settle never ran is settled. Call it from a periodic job. It needs the run's recorded state to scope storage (RecordPayloads), and skips records without one.
func (*AgentCore) ResolveModel ¶
func (c *AgentCore) ResolveModel(modelName string) (ResolvedModel, error)
ResolveModel resolves a registry key to the identity and provider instance used by execution, compaction and usage attribution.
type AgentRunState ¶
type AgentRunState = ports.AgentRunState
Ports: the interfaces users implement.
type BillingStage ¶ added in v0.3.0
type BillingStage = ports.BillingStage
Types: the DTOs that cross the ports.
type DeleteThreadResult ¶
type DeleteThreadResult = ports.DeleteThreadResult
Ports: the interfaces users implement.
type EnqueueOptions ¶
type EnqueueOptions = ports.EnqueueOptions
Ports: the interfaces users implement.
type EventsAPI ¶
type EventsAPI struct {
// contains filtered or unexported fields
}
EventsAPI replays and tails a thread (§2.2).
func (*EventsAPI) Follow ¶
func (e *EventsAPI) Follow(ctx context.Context, threadID string, opts FollowStateOptions) (*EventStream, error)
Follow is replay then live, as one sequence, with the cursor discipline already applied (§2.2). Cancel ctx, or the subscription outlives the client.
func (*EventsAPI) PublishEvent ¶
func (e *EventsAPI) PublishEvent(ctx context.Context, threadID, typ string, payload any, opts PublishStateOptions) (AgentEvent, error)
PublishEvent publishes an event of your own on a thread, from anywhere on the server: a webhook, a cron job, a route. Tools get the same thing bound to their thread through ToolContext.PublishEvent. Durable by default; Notice sends a bus-only notice. Platform event types are refused.
func (*EventsAPI) SSE ¶
func (e *EventsAPI) SSE(ctx context.Context, threadID string, opts SSEStateOptions) (*SSEStream, error)
SSE is Follow, encoded as Server-Sent Events. Serve it with ServeHTTP or WriteTo.
func (*EventsAPI) Since ¶
func (e *EventsAPI) Since(ctx context.Context, threadID string, sinceSeq int64, state AgentRunState) ([]AgentEvent, error)
Since is the raw replay: every event after the cursor.
type ExecutionState ¶
type ExecutionState = ports.ExecutionState
Types: the DTOs that cross the ports.
type FollowStateOptions ¶
type FollowStateOptions struct {
FollowOptions
State AgentRunState
}
FollowStateOptions carries the run state alongside the follow options.
type GenerateTextAgentSpec ¶
type GenerateTextAgentSpec = ports.GenerateTextAgentSpec
Ports: the interfaces users implement.
type HITLAPI ¶
type HITLAPI struct {
// contains filtered or unexported fields
}
HITLAPI answers approvals (§2.5).
func (*HITLAPI) ReclaimIfOrphaned ¶
func (h *HITLAPI) ReclaimIfOrphaned(ctx context.Context, threadID string, state AgentRunState) (bool, error)
ReclaimIfOrphaned re-dispatches a thread whose approvals all expired.
func (*HITLAPI) Respond ¶
func (h *HITLAPI) Respond(ctx context.Context, input RespondInput) (RespondResult, error)
Respond records an answer and resumes the run through the queue. Scoped like the run it resumes (§2.10). An orphaned wait is healed first; if reclamation claims the thread, the response is rejected as late.
type HandleJobResult ¶
type HandleJobResult struct {
Accepted bool `json:"accepted"`
Reason string `json:"reason,omitempty"`
}
HandleJobResult says whether a job was accepted.
type NestedDescriptor ¶
type NestedDescriptor = ports.NestedDescriptor
Types: the DTOs that cross the ports.
type NewAdminThread ¶
type NewAdminThread = ports.NewAdminThread
Ports: the interfaces users implement.
type NewStepRecord ¶
type NewStepRecord = ports.NewStepRecord
Ports: the interfaces users implement.
type ParkRequest ¶ added in v0.2.1
type ParkRequest = core.ParkRequest
Core: behaviors, all ports-only.
type PrepareStepFunc ¶
type PrepareStepFunc = ports.PrepareStepFunc
Ports: the interfaces users implement.
type ProviderOptions ¶
type ProviderOptions = ports.ProviderOptions
Types: the DTOs that cross the ports.
type PublishStateOptions ¶
type PublishStateOptions struct {
PublishOptions
State AgentRunState
}
PublishStateOptions carries the run state alongside the publish options.
type QueueStats ¶ added in v0.3.0
type QueueStats = ports.QueueStats
Ports: the interfaces users implement.
type ReclaimReport ¶ added in v0.3.0
type ReclaimReport struct {
// Checked is how many open run records the sweep looked at.
Checked int `json:"checked"`
// Redispatched is how many runs went back on the queue or were moved
// to their record's end state.
Redispatched int `json:"redispatched"`
// Settled is how many ended runs had their settle run late.
Settled int `json:"settled"`
// Errors is how many runs the sweep could not act on.
Errors int `json:"errors"`
}
ReclaimReport is what a stuck-run sweep did.
type RespondResult ¶
type RespondResult = ports.RespondResult
Ports: the interfaces users implement.
type RunFinishInfo ¶
type RunFinishInfo = ports.RunFinishInfo
Ports: the interfaces users implement.
type RuntimeOptions ¶
type RuntimeOptions = ports.RuntimeOptions
Ports: the interfaces users implement.
type SSEStateOptions ¶
type SSEStateOptions struct {
SSEOptions
State AgentRunState
}
SSEStateOptions carries the run state alongside the SSE options.
type StopOptions ¶ added in v0.2.3
type StopOptions = core.StopOptions
Core: behaviors, all ports-only.
type StorageContext ¶
type StorageContext = ports.StorageContext
Ports: the interfaces users implement.
type StreamTextAgentSpec ¶
type StreamTextAgentSpec = ports.StreamTextAgentSpec
Ports: the interfaces users implement.
type SubagentProfile ¶
type SubagentProfile = ports.SubagentProfile
Ports: the interfaces users implement.
type SubagentsConfig ¶
type SubagentsConfig = ports.SubagentsConfig
Ports: the interfaces users implement.
type ThreadSnapshot ¶
type ThreadSnapshot = ports.ThreadSnapshot
Ports: the interfaces users implement.
type TokenAttribution ¶
type TokenAttribution = core.TokenAttribution
Core: behaviors, all ports-only.
type WorkerAPI ¶
type WorkerAPI struct {
// contains filtered or unexported fields
}
WorkerAPI is the queue dispatch side of the platform (§2.8).
func (*WorkerAPI) HandleDeadJob ¶ added in v0.3.0
HandleDeadJob is what a queue calls when it gives up on a job (§2.8): the run behind it is failed with the reason, so its thread does not read QUEUED or RUNNING for ever and its spend is settled. A job whose run has already moved on (a newer run, a stop, a finished run) is left alone.
Directories
¶
| Path | Synopsis |
|---|---|
|
adapters
|
|
|
inline
Package inline holds an in-process queue that actually dispatches (§2.8).
|
Package inline holds an in-process queue that actually dispatches (§2.8). |
|
memory
Package memory holds the in-memory adapters: a full implementation used by the test suite, and a template for custom adapters.
|
Package memory holds the in-memory adapters: a full implementation used by the test suite, and a template for custom adapters. |
|
postgres
Package postgres holds a complete Storage over Postgres (§3.2): the production storage adapter, the Go stand-in for the TypeScript package's PrismaStorage.
|
Package postgres holds a complete Storage over Postgres (§3.2): the production storage adapter, the Go stand-in for the TypeScript package's PrismaStorage. |
|
postgres/pgxlisten
Package pgxlisten is the postgres bus's Listener over pgx v5: one dedicated connection that LISTENs and hands every notification over.
|
Package pgxlisten is the postgres bus's Listener over pgx v5: one dedicated connection that LISTENs and hands every notification over. |
|
qstash
Package qstash holds the reference Queue adapter over Upstash QStash HTTP queues, talking to the REST API directly.
|
Package qstash holds the reference Queue adapter over Upstash QStash HTTP queues, talking to the REST API directly. |
|
redis
Package redis holds the reference Kv and EventBus adapters over Redis (github.com/redis/go-redis/v9).
|
Package redis holds the reference Kv and EventBus adapters over Redis (github.com/redis/go-redis/v9). |
|
sqlite
Package sqlite holds a complete Storage over SQLite (§3.2): every table the platform needs, created on construction.
|
Package sqlite holds a complete Storage over SQLite (§3.2): every table the platform needs, created on construction. |
|
upstash
Package upstash holds the reference Kv and EventBus adapters over the Upstash Redis REST API.
|
Package upstash holds the reference Kv and EventBus adapters over the Upstash Redis REST API. |
|
Package admin picks the operational store SetupAgentCore uses when none is configured (§2.9).
|
Package admin picks the operational store SetupAgentCore uses when none is configured (§2.9). |
|
memory
Package memory holds operational history in memory: tests, and a template.
|
Package memory holds operational history in memory: tests, and a template. |
|
migrate
Package migrate applies the platform's OWN schema to the admin store (§2.9), from numbered .sql files.
|
Package migrate applies the platform's OWN schema to the admin store (§2.9), from numbered .sql files. |
|
postgres
Package postgres holds operational history in Postgres (§2.9): the production store, reached through AGENTIC_KIT_ADMIN_DATABASE_URL.
|
Package postgres holds operational history in Postgres (§2.9): the production store, reached through AGENTIC_KIT_ADMIN_DATABASE_URL. |
|
sqlite
Package sqlite holds operational history in SQLite (§2.9): the development store.
|
Package sqlite holds operational history in SQLite (§2.9): the development store. |
|
Package core holds the platform's behaviors.
|
Package core holds the platform's behaviors. |
|
Package ports holds the contract between the platform and the code around it: the four ports a caller implements (Storage, EventBus, Queue, Kv), the platform's own AdminStore, and every DTO that crosses those boundaries.
|
Package ports holds the contract between the platform and the code around it: the four ports a caller implements (Storage, EventBus, Queue, Kv), the platform's own AdminStore, and every DTO that crosses those boundaries. |
|
Package pricing holds the pricers that ship with the platform (§4).
|
Package pricing holds the pricers that ship with the platform (§4). |