Skip to main content

Crate kcode_intelligence_router

Crate kcode_intelligence_router 

Source
Expand description

Typed, in-process intelligence operations for Kennedy.

This crate has no HTTP router, health endpoint, provider catalog, or JSON request dispatch. Callers choose exact models and bind every provider call to a user before invoking it.

Structs§

AgentTurn
AnnotationRequest
AnnotationResponse
Config
Construction inputs for the intelligence library.
DailyUsage
Totals calculated by opening every receipt for the requested UTC day.
DailyUsageKey
One grouping key in a linearly calculated daily report.
Document
DocumentExtraction
Error
A bounded, transport-independent intelligence failure.
FetchRequest
FetchResponse
ImageRequest
One direct image creation or reference-image modification request.
ImageResponse
One generated image normalized across providers.
Intelligence
Media
ResolvedAgentModel
Exact provider model and capacity selected for an agent request.
RuntimeModel
The configured Kennedy model, returned directly instead of through a catalog endpoint.
SearchRequest
SearchResponse
StructuredAudioRequest
One structured Gemini audio call with exact model and accounting attribution.
StructuredAudioResponse
TextGenerationRequest
One tool-free Codex text generation call.
TextGenerationResponse
TokenUsage
The four token categories Kennedy accounts independently.
TranscriptionRequest
TranscriptionResponse
UsageReceipt
Durable evidence for one completed provider call.
UserIntelligence
An intelligence handle that cannot make a provider call without user attribution.
WebSource

Enums§

AgentProvider
Provider selected for one resolved agent model.
ErrorKind
Broad failure category for callers that need to choose retry or user feedback.
MediaKind
Metering
Provider metering returned by one call.
ReasoningEffort
Maximum model reasoning effort.

Functions§

open

Type Aliases§

Result