Documentation
¶
Overview ¶
Package kirocatalog fetches Kiro's model catalog via ListAvailableModels so kirocc can resolve models that shipped after its own release.
The catalog lives on a different host from the streaming API: models come from the control plane at management.<region>.kiro.dev, while completions go to runtime.<region>.kiro.dev.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client fetches model catalogs.
type Model ¶
type Model struct {
ID string
MaxInputTokens int
MaxOutputTokens int
// EffortEnum lists accepted output_config.effort values, low → high. Empty
// when the model does not advertise an effort schema.
EffortEnum []string
}
Model is one model advertised by the catalog, reduced to the fields kirocc uses for resolution.
type Option ¶
type Option func(*Client)
Option configures a Client.
func WithBaseURL ¶
WithBaseURL sets a custom endpoint (for testing).
func WithHTTPClient ¶
WithHTTPClient sets the HTTP client used for catalog requests.
type Request ¶
type Request struct {
Token string
// Region selects the control-plane host. Only a few regions serve one, and a
// token is rejected outside the region that issued it.
Region string
// ProfileARN is required by the API; a request without it fails validation.
// API-key credentials have no profile ARN and therefore cannot fetch.
ProfileARN string
}
Request carries the credential and routing inputs for a catalog fetch.