Documentation
¶
Overview ¶
Package api contains generated net/http server bindings for the HTTP contract.
Package api provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.8.0 DO NOT EDIT.
Index ¶
- Constants
- func GetSpec() (swagger *openapi3.T, err error)
- func GetSpecJSON() ([]byte, error)
- func GetSwagger() (*openapi3.T, error)deprecated
- func Handler(si ServerInterface) http.Handler
- func HandlerFromMux(si ServerInterface, m ServeMux) http.Handler
- func HandlerFromMuxWithBaseURL(si ServerInterface, m ServeMux, baseURL string) http.Handler
- func HandlerWithOptions(si ServerInterface, options StdHTTPServerOptions) http.Handler
- func OpenAPIJSON() ([]byte, error)
- func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error)
- type BrowseMemories200JSONResponse
- type BrowseMemories400JSONResponse
- type BrowseMemoriesParams
- type BrowseMemoriesRequestObject
- type BrowseMemoriesResponseObject
- type CostEstimate
- type Cursor
- type DeleteMemory204Response
- type DeleteMemory404JSONResponse
- type DeleteMemoryRequestObject
- type DeleteMemoryResponseObject
- type DerivedContent
- type DuplicateMemory
- type Error
- type GetLiveness200JSONResponse
- type GetLivenessRequestObject
- type GetLivenessResponseObject
- type GetMemory200JSONResponse
- type GetMemory404JSONResponse
- type GetMemoryContent200AsteriskResponse
- type GetMemoryContent200ResponseHeaders
- type GetMemoryContent404JSONResponse
- type GetMemoryContent500JSONResponse
- type GetMemoryContent507JSONResponse
- type GetMemoryContentRequestObject
- type GetMemoryContentResponseObject
- type GetMemoryRequestObject
- type GetMemoryResponseObject
- type GetReadiness200JSONResponse
- type GetReadinessRequestObject
- type GetReadinessResponseObject
- type GetRebuildStatus200JSONResponse
- type GetRebuildStatus200ResponseHeaders
- type GetRebuildStatus404JSONResponse
- type GetRebuildStatus404ResponseHeaders
- type GetRebuildStatusRequestObject
- type GetRebuildStatusResponseObject
- type HealthResponse
- type HealthResponseStatus
- type ImportContext
- type ImportContextInput
- type ImportMemory201JSONResponse
- type ImportMemory400JSONResponse
- type ImportMemory409JSONResponse
- type ImportMemory413JSONResponse
- type ImportMemory500JSONResponse
- type ImportMemoryMultipartRequestBody
- type ImportMemoryRequestObject
- type ImportMemoryResponseObject
- type ImportMultipart
- type InvalidParamFormatError
- type Limit
- type MemoryDetail
- type MemoryId
- type MemoryPage
- type MemorySummary
- type MiddlewareFunc
- type RebuildMemory202JSONResponse
- type RebuildMemory202ResponseHeaders
- type RebuildMemory400TextResponse
- type RebuildMemory404JSONResponse
- type RebuildMemory409JSONResponse
- type RebuildMemory409ResponseHeaders
- type RebuildMemory503JSONResponse
- type RebuildMemoryJSONRequestBody
- type RebuildMemoryRequestObject
- type RebuildMemoryResponseObject
- type RebuildRequest
- type RebuildStatus
- type RequiredHeaderError
- type RequiredParamError
- type SearchExcerptPart
- type SearchHit
- type SearchLimit
- type SearchMemories200JSONResponse
- type SearchMemories200ResponseHeaders
- type SearchMemories400JSONResponse
- type SearchMemories400ResponseHeaders
- type SearchMemoriesParams
- type SearchMemoriesRequestObject
- type SearchMemoriesResponseObject
- type SearchPage
- type SearchQuery
- type SearchQueryPlan
- type ServeMux
- type ServerInterface
- type ServerInterfaceWrapper
- func (siw *ServerInterfaceWrapper) BrowseMemories(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) DeleteMemory(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetLiveness(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetMemory(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetMemoryContent(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetReadiness(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetRebuildStatus(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ImportMemory(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) RebuildMemory(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) SearchMemories(w http.ResponseWriter, r *http.Request)
- type Statistics
- type StdHTTPServerOptions
- type StrictHTTPServerOptions
- type StrictHandlerFunc
- type StrictMiddlewareFunc
- type StrictServerInterface
- type TokenUsage
- type TooManyValuesForParamError
- type UnderstandingAttempt
- type UnderstandingAttemptState
- type UnderstandingDetails
- type UnderstandingDetailsStatus
- type UnderstandingDiagnostics
- type UnderstandingRun
- type UnescapedCookieParamError
- type UnmarshalingParamError
Constants ¶
const ServerUrlLocalMemorydServer = "/api/v0"
ServerUrlLocalMemorydServer defines the Server URL for Local memoryd server
Variables ¶
This section is empty.
Functions ¶
func GetSpec ¶
GetSpec returns the OpenAPI specification corresponding to the generated code in this file. External references in the spec are resolved through PathToRawSpec; externally-referenced files must be embedded in their corresponding Go packages (via the import-mapping feature). URL-based external refs are not supported.
func GetSpecJSON ¶
GetSpecJSON returns the raw JSON bytes of the embedded OpenAPI specification: decompressed but not unmarshaled. External references are not resolved here; the bytes are the spec exactly as embedded by codegen. The result is cached at package init time, so repeated calls are cheap.
func GetSwagger
deprecated
func Handler ¶
func Handler(si ServerInterface) http.Handler
Handler creates http.Handler with routing matching OpenAPI spec.
func HandlerFromMux ¶
func HandlerFromMux(si ServerInterface, m ServeMux) http.Handler
HandlerFromMux creates http.Handler with routing matching OpenAPI spec based on the provided mux.
func HandlerFromMuxWithBaseURL ¶
func HandlerFromMuxWithBaseURL(si ServerInterface, m ServeMux, baseURL string) http.Handler
func HandlerWithOptions ¶
func HandlerWithOptions(si ServerInterface, options StdHTTPServerOptions) http.Handler
HandlerWithOptions creates http.Handler with additional options
func OpenAPIJSON ¶
OpenAPIJSON serializes the specification embedded in the generated bindings.
Types ¶
type BrowseMemories200JSONResponse ¶
type BrowseMemories200JSONResponse MemoryPage
func (BrowseMemories200JSONResponse) VisitBrowseMemoriesResponse ¶
func (response BrowseMemories200JSONResponse) VisitBrowseMemoriesResponse(w http.ResponseWriter) error
type BrowseMemories400JSONResponse ¶
type BrowseMemories400JSONResponse Error
func (BrowseMemories400JSONResponse) VisitBrowseMemoriesResponse ¶
func (response BrowseMemories400JSONResponse) VisitBrowseMemoriesResponse(w http.ResponseWriter) error
type BrowseMemoriesParams ¶
type BrowseMemoriesParams struct {
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`
}
BrowseMemoriesParams defines parameters for BrowseMemories.
type BrowseMemoriesRequestObject ¶
type BrowseMemoriesRequestObject struct {
Params BrowseMemoriesParams
}
type BrowseMemoriesResponseObject ¶
type BrowseMemoriesResponseObject interface {
VisitBrowseMemoriesResponse(w http.ResponseWriter) error
}
type CostEstimate ¶
type CostEstimate struct {
AmountUsd float64 `json:"amount_usd"`
Basis string `json:"basis"`
PricingDate *string `json:"pricing_date,omitempty"`
PricingUrl *string `json:"pricing_url,omitempty"`
}
CostEstimate defines model for CostEstimate.
type DeleteMemory204Response ¶
type DeleteMemory204Response struct {
}
func (DeleteMemory204Response) VisitDeleteMemoryResponse ¶
func (response DeleteMemory204Response) VisitDeleteMemoryResponse(w http.ResponseWriter) error
type DeleteMemory404JSONResponse ¶
type DeleteMemory404JSONResponse Error
func (DeleteMemory404JSONResponse) VisitDeleteMemoryResponse ¶
func (response DeleteMemory404JSONResponse) VisitDeleteMemoryResponse(w http.ResponseWriter) error
type DeleteMemoryRequestObject ¶
type DeleteMemoryRequestObject struct {
MemoryId MemoryId `json:"memoryId"`
}
type DeleteMemoryResponseObject ¶
type DeleteMemoryResponseObject interface {
VisitDeleteMemoryResponse(w http.ResponseWriter) error
}
type DerivedContent ¶
type DerivedContent struct {
BlobHash string `json:"blob_hash"`
ByteSize int64 `json:"byte_size"`
// Content Literal UTF-8 text content.
Content string `json:"content"`
ContentType string `json:"content_type"`
Id openapi_types.UUID `json:"id"`
// Provenance Optional opaque plugin-defined JSON metadata.
Provenance interface{} `json:"provenance,omitempty"`
// Scope Optional opaque plugin-defined JSON metadata.
Scope interface{} `json:"scope,omitempty"`
}
DerivedContent Independent text artifact belonging to its containing Run.
type DuplicateMemory ¶
type DuplicateMemory struct {
Id openapi_types.UUID `json:"id"`
}
DuplicateMemory defines model for DuplicateMemory.
type Error ¶
type Error struct {
// Code Example: memory_not_found
Code string `json:"code"`
Details *map[string]interface{} `json:"details,omitempty"`
// ExistingMemory Present on a duplicate import conflict so clients can recover.
ExistingMemory *DuplicateMemory `json:"existing_memory,omitempty"`
Message string `json:"message"`
}
Error defines model for Error.
type GetLiveness200JSONResponse ¶
type GetLiveness200JSONResponse HealthResponse
func (GetLiveness200JSONResponse) VisitGetLivenessResponse ¶
func (response GetLiveness200JSONResponse) VisitGetLivenessResponse(w http.ResponseWriter) error
type GetLivenessRequestObject ¶
type GetLivenessRequestObject struct {
}
type GetLivenessResponseObject ¶
type GetLivenessResponseObject interface {
VisitGetLivenessResponse(w http.ResponseWriter) error
}
type GetMemory200JSONResponse ¶
type GetMemory200JSONResponse MemoryDetail
func (GetMemory200JSONResponse) VisitGetMemoryResponse ¶
func (response GetMemory200JSONResponse) VisitGetMemoryResponse(w http.ResponseWriter) error
type GetMemory404JSONResponse ¶
type GetMemory404JSONResponse Error
func (GetMemory404JSONResponse) VisitGetMemoryResponse ¶
func (response GetMemory404JSONResponse) VisitGetMemoryResponse(w http.ResponseWriter) error
type GetMemoryContent200AsteriskResponse ¶
type GetMemoryContent200AsteriskResponse struct {
Body io.Reader
Headers GetMemoryContent200ResponseHeaders
ContentType string
ContentLength int64
}
func (GetMemoryContent200AsteriskResponse) VisitGetMemoryContentResponse ¶
func (response GetMemoryContent200AsteriskResponse) VisitGetMemoryContentResponse(w http.ResponseWriter) error
type GetMemoryContent404JSONResponse ¶
type GetMemoryContent404JSONResponse Error
func (GetMemoryContent404JSONResponse) VisitGetMemoryContentResponse ¶
func (response GetMemoryContent404JSONResponse) VisitGetMemoryContentResponse(w http.ResponseWriter) error
type GetMemoryContent500JSONResponse ¶
type GetMemoryContent500JSONResponse Error
func (GetMemoryContent500JSONResponse) VisitGetMemoryContentResponse ¶
func (response GetMemoryContent500JSONResponse) VisitGetMemoryContentResponse(w http.ResponseWriter) error
type GetMemoryContent507JSONResponse ¶
type GetMemoryContent507JSONResponse Error
func (GetMemoryContent507JSONResponse) VisitGetMemoryContentResponse ¶
func (response GetMemoryContent507JSONResponse) VisitGetMemoryContentResponse(w http.ResponseWriter) error
type GetMemoryContentRequestObject ¶
type GetMemoryContentRequestObject struct {
MemoryId MemoryId `json:"memoryId"`
}
type GetMemoryContentResponseObject ¶
type GetMemoryContentResponseObject interface {
VisitGetMemoryContentResponse(w http.ResponseWriter) error
}
type GetMemoryRequestObject ¶
type GetMemoryRequestObject struct {
MemoryId MemoryId `json:"memoryId"`
}
type GetMemoryResponseObject ¶
type GetMemoryResponseObject interface {
VisitGetMemoryResponse(w http.ResponseWriter) error
}
type GetReadiness200JSONResponse ¶
type GetReadiness200JSONResponse HealthResponse
func (GetReadiness200JSONResponse) VisitGetReadinessResponse ¶
func (response GetReadiness200JSONResponse) VisitGetReadinessResponse(w http.ResponseWriter) error
type GetReadinessRequestObject ¶
type GetReadinessRequestObject struct {
}
type GetReadinessResponseObject ¶
type GetReadinessResponseObject interface {
VisitGetReadinessResponse(w http.ResponseWriter) error
}
type GetRebuildStatus200JSONResponse ¶
type GetRebuildStatus200JSONResponse struct {
Body RebuildStatus
Headers GetRebuildStatus200ResponseHeaders
}
func (GetRebuildStatus200JSONResponse) VisitGetRebuildStatusResponse ¶
func (response GetRebuildStatus200JSONResponse) VisitGetRebuildStatusResponse(w http.ResponseWriter) error
type GetRebuildStatus200ResponseHeaders ¶
type GetRebuildStatus200ResponseHeaders struct {
CacheControl *string
}
type GetRebuildStatus404JSONResponse ¶
type GetRebuildStatus404JSONResponse struct {
Body Error
Headers GetRebuildStatus404ResponseHeaders
}
func (GetRebuildStatus404JSONResponse) VisitGetRebuildStatusResponse ¶
func (response GetRebuildStatus404JSONResponse) VisitGetRebuildStatusResponse(w http.ResponseWriter) error
type GetRebuildStatus404ResponseHeaders ¶
type GetRebuildStatus404ResponseHeaders struct {
CacheControl *string
}
type GetRebuildStatusRequestObject ¶
type GetRebuildStatusRequestObject struct {
RebuildId openapi_types.UUID `json:"rebuildId"`
}
type GetRebuildStatusResponseObject ¶
type GetRebuildStatusResponseObject interface {
VisitGetRebuildStatusResponse(w http.ResponseWriter) error
}
type HealthResponse ¶
type HealthResponse struct {
Status HealthResponseStatus `json:"status"`
Version *string `json:"version,omitempty"`
}
HealthResponse defines model for HealthResponse.
type HealthResponseStatus ¶
type HealthResponseStatus string
HealthResponseStatus defines model for HealthResponse.Status.
const (
Ok HealthResponseStatus = "ok"
)
Defines values for HealthResponseStatus.
func (HealthResponseStatus) Valid ¶
func (e HealthResponseStatus) Valid() bool
Valid indicates whether the value is a known member of the HealthResponseStatus enum.
type ImportContext ¶
type ImportContext struct {
FilesystemCreatedAt *time.Time `json:"filesystem_created_at,omitempty"`
FilesystemModifiedAt *time.Time `json:"filesystem_modified_at,omitempty"`
FullPath *string `json:"full_path,omitempty"`
OriginalFilename string `json:"original_filename"`
RelativePath *string `json:"relative_path,omitempty"`
}
ImportContext Stored provenance from the first successful import.
type ImportContextInput ¶
type ImportContextInput struct {
FilesystemCreatedAt *time.Time `json:"filesystem_created_at,omitempty"`
FilesystemModifiedAt *time.Time `json:"filesystem_modified_at,omitempty"`
FullPath *string `json:"full_path,omitempty"`
RelativePath *string `json:"relative_path,omitempty"`
}
ImportContextInput Optional client-observed provenance sent as one application/json multipart part. The original filename comes from the Blob part. Omitted values remain unknown; malformed timestamps reject the import.
type ImportMemory201JSONResponse ¶
type ImportMemory201JSONResponse MemorySummary
func (ImportMemory201JSONResponse) VisitImportMemoryResponse ¶
func (response ImportMemory201JSONResponse) VisitImportMemoryResponse(w http.ResponseWriter) error
type ImportMemory400JSONResponse ¶
type ImportMemory400JSONResponse Error
func (ImportMemory400JSONResponse) VisitImportMemoryResponse ¶
func (response ImportMemory400JSONResponse) VisitImportMemoryResponse(w http.ResponseWriter) error
type ImportMemory409JSONResponse ¶
type ImportMemory409JSONResponse Error
func (ImportMemory409JSONResponse) VisitImportMemoryResponse ¶
func (response ImportMemory409JSONResponse) VisitImportMemoryResponse(w http.ResponseWriter) error
type ImportMemory413JSONResponse ¶
type ImportMemory413JSONResponse Error
func (ImportMemory413JSONResponse) VisitImportMemoryResponse ¶
func (response ImportMemory413JSONResponse) VisitImportMemoryResponse(w http.ResponseWriter) error
type ImportMemory500JSONResponse ¶
type ImportMemory500JSONResponse Error
func (ImportMemory500JSONResponse) VisitImportMemoryResponse ¶
func (response ImportMemory500JSONResponse) VisitImportMemoryResponse(w http.ResponseWriter) error
type ImportMemoryMultipartRequestBody ¶
type ImportMemoryMultipartRequestBody = ImportMultipart
ImportMemoryMultipartRequestBody defines body for ImportMemory for multipart/form-data ContentType.
type ImportMemoryResponseObject ¶
type ImportMemoryResponseObject interface {
VisitImportMemoryResponse(w http.ResponseWriter) error
}
type ImportMultipart ¶
type ImportMultipart struct {
// File One Blob of at most 100 MiB with a nonblank filename in
// Content-Disposition. The server detects its Media Type from content
// first and may fall back to a valid, specific part Content-Type.
File openapi_types.File `json:"file"`
// ImportContext Optional client-observed provenance sent as one application/json
// multipart part. The original filename comes from the Blob part. Omitted
// values remain unknown; malformed timestamps reject the import.
ImportContext *ImportContextInput `json:"import_context,omitempty"`
}
ImportMultipart defines model for ImportMultipart.
type InvalidParamFormatError ¶
func (*InvalidParamFormatError) Error ¶
func (e *InvalidParamFormatError) Error() string
func (*InvalidParamFormatError) Unwrap ¶
func (e *InvalidParamFormatError) Unwrap() error
type MemoryDetail ¶
type MemoryDetail struct {
// ContentUrl Relative URL of the content download endpoint.
ContentUrl *string `json:"content_url,omitempty"`
// ImportContext Stored provenance from the first successful import.
ImportContext ImportContext `json:"import_context"`
Memory MemorySummary `json:"memory"`
Understanding UnderstandingDetails `json:"understanding"`
}
MemoryDetail defines model for MemoryDetail.
type MemoryPage ¶
type MemoryPage struct {
Items []MemorySummary `json:"items"`
NextCursor *string `json:"next_cursor,omitempty"`
}
MemoryPage defines model for MemoryPage.
type MemorySummary ¶
type MemorySummary struct {
// BlobHash Canonical SHA-256 Blobref of the immutable Blob.
BlobHash string `json:"blob_hash"`
ByteSize int64 `json:"byte_size"`
Id openapi_types.UUID `json:"id"`
ImportedAt time.Time `json:"imported_at"`
MediaType string `json:"media_type"`
OriginalCreatedAt *time.Time `json:"original_created_at,omitempty"`
OriginalFilename string `json:"original_filename"`
OriginalModifiedAt *time.Time `json:"original_modified_at,omitempty"`
}
MemorySummary defines model for MemorySummary.
type RebuildMemory202JSONResponse ¶
type RebuildMemory202JSONResponse struct {
Body RebuildStatus
Headers RebuildMemory202ResponseHeaders
}
func (RebuildMemory202JSONResponse) VisitRebuildMemoryResponse ¶
func (response RebuildMemory202JSONResponse) VisitRebuildMemoryResponse(w http.ResponseWriter) error
type RebuildMemory202ResponseHeaders ¶
type RebuildMemory202ResponseHeaders struct {
CacheControl *string
}
type RebuildMemory400TextResponse ¶
type RebuildMemory400TextResponse string
func (RebuildMemory400TextResponse) VisitRebuildMemoryResponse ¶
func (response RebuildMemory400TextResponse) VisitRebuildMemoryResponse(w http.ResponseWriter) error
type RebuildMemory404JSONResponse ¶
type RebuildMemory404JSONResponse Error
func (RebuildMemory404JSONResponse) VisitRebuildMemoryResponse ¶
func (response RebuildMemory404JSONResponse) VisitRebuildMemoryResponse(w http.ResponseWriter) error
type RebuildMemory409JSONResponse ¶
type RebuildMemory409JSONResponse struct {
Body RebuildStatus
Headers RebuildMemory409ResponseHeaders
}
func (RebuildMemory409JSONResponse) VisitRebuildMemoryResponse ¶
func (response RebuildMemory409JSONResponse) VisitRebuildMemoryResponse(w http.ResponseWriter) error
type RebuildMemory409ResponseHeaders ¶
type RebuildMemory409ResponseHeaders struct {
CacheControl *string
}
type RebuildMemory503JSONResponse ¶
type RebuildMemory503JSONResponse Error
func (RebuildMemory503JSONResponse) VisitRebuildMemoryResponse ¶
func (response RebuildMemory503JSONResponse) VisitRebuildMemoryResponse(w http.ResponseWriter) error
type RebuildMemoryJSONRequestBody ¶
type RebuildMemoryJSONRequestBody = RebuildRequest
RebuildMemoryJSONRequestBody defines body for RebuildMemory for application/json ContentType.
type RebuildMemoryRequestObject ¶
type RebuildMemoryRequestObject struct {
MemoryId MemoryId `json:"memoryId"`
Body *RebuildMemoryJSONRequestBody
}
type RebuildMemoryResponseObject ¶
type RebuildMemoryResponseObject interface {
VisitRebuildMemoryResponse(w http.ResponseWriter) error
}
type RebuildRequest ¶
type RebuildRequest struct {
// UserNote Optional owner guidance; null reuses the saved note, empty string clears it.
UserNote *string `json:"user_note,omitempty"`
}
RebuildRequest defines model for RebuildRequest.
type RebuildStatus ¶
type RebuildStatus struct {
Attempt UnderstandingAttempt `json:"attempt"`
MemoryId openapi_types.UUID `json:"memory_id"`
StatusUrl string `json:"status_url"`
}
RebuildStatus defines model for RebuildStatus.
type RequiredHeaderError ¶
func (*RequiredHeaderError) Error ¶
func (e *RequiredHeaderError) Error() string
func (*RequiredHeaderError) Unwrap ¶
func (e *RequiredHeaderError) Unwrap() error
type RequiredParamError ¶
type RequiredParamError struct {
ParamName string
}
func (*RequiredParamError) Error ¶
func (e *RequiredParamError) Error() string
type SearchExcerptPart ¶
SearchExcerptPart defines model for SearchExcerptPart.
type SearchHit ¶
type SearchHit struct {
Excerpt []SearchExcerptPart `json:"excerpt"`
// MatchTier 0 for complete whole-word/stem matches; 1 for fragment-dependent matches. Lower tiers sort first.
MatchTier int `json:"match_tier"`
Memory MemorySummary `json:"memory"`
// Score SQLite BM25 from the word index for tier 0 and trigram index for tier 1. When no indexed fragments match, tier 1 falls back to word-index BM25 or 0. Lower scores sort first within each match tier; ties sort by Memory ID. Scores from different indexes are not comparable across tiers.
Score float64 `json:"score"`
}
SearchHit defines model for SearchHit.
type SearchMemories200JSONResponse ¶
type SearchMemories200JSONResponse struct {
Body SearchPage
Headers SearchMemories200ResponseHeaders
}
func (SearchMemories200JSONResponse) VisitSearchMemoriesResponse ¶
func (response SearchMemories200JSONResponse) VisitSearchMemoriesResponse(w http.ResponseWriter) error
type SearchMemories200ResponseHeaders ¶
type SearchMemories200ResponseHeaders struct {
CacheControl *string
}
type SearchMemories400JSONResponse ¶
type SearchMemories400JSONResponse struct {
Body Error
Headers SearchMemories400ResponseHeaders
}
func (SearchMemories400JSONResponse) VisitSearchMemoriesResponse ¶
func (response SearchMemories400JSONResponse) VisitSearchMemoriesResponse(w http.ResponseWriter) error
type SearchMemories400ResponseHeaders ¶
type SearchMemories400ResponseHeaders struct {
CacheControl *string
}
type SearchMemoriesParams ¶
type SearchMemoriesParams struct {
Query SearchQuery `form:"query" json:"query"`
Limit *SearchLimit `form:"limit,omitempty" json:"limit,omitempty"`
Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`
}
SearchMemoriesParams defines parameters for SearchMemories.
type SearchMemoriesRequestObject ¶
type SearchMemoriesRequestObject struct {
Params SearchMemoriesParams
}
type SearchMemoriesResponseObject ¶
type SearchMemoriesResponseObject interface {
VisitSearchMemoriesResponse(w http.ResponseWriter) error
}
type SearchPage ¶
type SearchPage struct {
Items []SearchHit `json:"items"`
NextCursor *string `json:"next_cursor,omitempty"`
QueryPlan SearchQueryPlan `json:"query_plan"`
Total int64 `json:"total"`
}
SearchPage defines model for SearchPage.
type SearchQueryPlan ¶
SearchQueryPlan defines model for SearchQueryPlan.
type ServeMux ¶
type ServeMux interface {
HandleFunc(pattern string, handler func(http.ResponseWriter, *http.Request))
http.Handler
}
ServeMux is an abstraction of http.ServeMux.
type ServerInterface ¶
type ServerInterface interface {
// GetLiveness Check whether the process is alive
// (GET /livez)
GetLiveness(w http.ResponseWriter, r *http.Request)
// BrowseMemories Browse committed Memories
// (GET /memories)
BrowseMemories(w http.ResponseWriter, r *http.Request, params BrowseMemoriesParams)
// ImportMemory Durably import one Blob as a Memory
// (POST /memories/import)
ImportMemory(w http.ResponseWriter, r *http.Request)
// SearchMemories Search committed Memories
// (GET /memories/search)
SearchMemories(w http.ResponseWriter, r *http.Request, params SearchMemoriesParams)
// DeleteMemory Delete one Memory and its Blob
// (DELETE /memories/{memoryId})
DeleteMemory(w http.ResponseWriter, r *http.Request, memoryId MemoryId)
// GetMemory Get committed Memory details
// (GET /memories/{memoryId})
GetMemory(w http.ResponseWriter, r *http.Request, memoryId MemoryId)
// GetMemoryContent Download and verify a Memory's immutable Blob
// (GET /memories/{memoryId}/content)
GetMemoryContent(w http.ResponseWriter, r *http.Request, memoryId MemoryId)
// RebuildMemory Request a Memory Rebuild
// (POST /memories/{memoryId}/rebuild)
RebuildMemory(w http.ResponseWriter, r *http.Request, memoryId MemoryId)
// GetReadiness Check whether the server can accept requests
// (GET /readyz)
GetReadiness(w http.ResponseWriter, r *http.Request)
// GetRebuildStatus Poll a retained process-local Rebuild
// (GET /rebuild-status/{rebuildId})
GetRebuildStatus(w http.ResponseWriter, r *http.Request, rebuildId openapi_types.UUID)
}
ServerInterface represents all server handlers.
func NewStrictHandler ¶
func NewStrictHandler(ssi StrictServerInterface, middlewares []StrictMiddlewareFunc) ServerInterface
func NewStrictHandlerWithOptions ¶
func NewStrictHandlerWithOptions(ssi StrictServerInterface, middlewares []StrictMiddlewareFunc, options StrictHTTPServerOptions) ServerInterface
type ServerInterfaceWrapper ¶
type ServerInterfaceWrapper struct {
Handler ServerInterface
HandlerMiddlewares []MiddlewareFunc
ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
}
ServerInterfaceWrapper converts contexts to parameters.
func (*ServerInterfaceWrapper) BrowseMemories ¶
func (siw *ServerInterfaceWrapper) BrowseMemories(w http.ResponseWriter, r *http.Request)
BrowseMemories operation middleware
func (*ServerInterfaceWrapper) DeleteMemory ¶
func (siw *ServerInterfaceWrapper) DeleteMemory(w http.ResponseWriter, r *http.Request)
DeleteMemory operation middleware
func (*ServerInterfaceWrapper) GetLiveness ¶
func (siw *ServerInterfaceWrapper) GetLiveness(w http.ResponseWriter, r *http.Request)
GetLiveness operation middleware
func (*ServerInterfaceWrapper) GetMemory ¶
func (siw *ServerInterfaceWrapper) GetMemory(w http.ResponseWriter, r *http.Request)
GetMemory operation middleware
func (*ServerInterfaceWrapper) GetMemoryContent ¶
func (siw *ServerInterfaceWrapper) GetMemoryContent(w http.ResponseWriter, r *http.Request)
GetMemoryContent operation middleware
func (*ServerInterfaceWrapper) GetReadiness ¶
func (siw *ServerInterfaceWrapper) GetReadiness(w http.ResponseWriter, r *http.Request)
GetReadiness operation middleware
func (*ServerInterfaceWrapper) GetRebuildStatus ¶
func (siw *ServerInterfaceWrapper) GetRebuildStatus(w http.ResponseWriter, r *http.Request)
GetRebuildStatus operation middleware
func (*ServerInterfaceWrapper) ImportMemory ¶
func (siw *ServerInterfaceWrapper) ImportMemory(w http.ResponseWriter, r *http.Request)
ImportMemory operation middleware
func (*ServerInterfaceWrapper) RebuildMemory ¶
func (siw *ServerInterfaceWrapper) RebuildMemory(w http.ResponseWriter, r *http.Request)
RebuildMemory operation middleware
func (*ServerInterfaceWrapper) SearchMemories ¶
func (siw *ServerInterfaceWrapper) SearchMemories(w http.ResponseWriter, r *http.Request)
SearchMemories operation middleware
type Statistics ¶
type Statistics struct {
Usage *TokenUsage `json:"usage,omitempty"`
}
Statistics defines model for Statistics.
type StdHTTPServerOptions ¶
type StdHTTPServerOptions struct {
BaseURL string
BaseRouter ServeMux
Middlewares []MiddlewareFunc
ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
}
type StrictHTTPServerOptions ¶
type StrictHTTPServerOptions struct {
RequestErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
ResponseErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
}
type StrictHandlerFunc ¶
type StrictMiddlewareFunc ¶
type StrictMiddlewareFunc func(f StrictHandlerFunc, operationID string) StrictHandlerFunc
type StrictServerInterface ¶
type StrictServerInterface interface {
// GetLiveness Check whether the process is alive
// (GET /livez)
GetLiveness(ctx context.Context, request GetLivenessRequestObject) (GetLivenessResponseObject, error)
// BrowseMemories Browse committed Memories
// (GET /memories)
BrowseMemories(ctx context.Context, request BrowseMemoriesRequestObject) (BrowseMemoriesResponseObject, error)
// ImportMemory Durably import one Blob as a Memory
// (POST /memories/import)
ImportMemory(ctx context.Context, request ImportMemoryRequestObject) (ImportMemoryResponseObject, error)
// SearchMemories Search committed Memories
// (GET /memories/search)
SearchMemories(ctx context.Context, request SearchMemoriesRequestObject) (SearchMemoriesResponseObject, error)
// DeleteMemory Delete one Memory and its Blob
// (DELETE /memories/{memoryId})
DeleteMemory(ctx context.Context, request DeleteMemoryRequestObject) (DeleteMemoryResponseObject, error)
// GetMemory Get committed Memory details
// (GET /memories/{memoryId})
GetMemory(ctx context.Context, request GetMemoryRequestObject) (GetMemoryResponseObject, error)
// GetMemoryContent Download and verify a Memory's immutable Blob
// (GET /memories/{memoryId}/content)
GetMemoryContent(ctx context.Context, request GetMemoryContentRequestObject) (GetMemoryContentResponseObject, error)
// RebuildMemory Request a Memory Rebuild
// (POST /memories/{memoryId}/rebuild)
RebuildMemory(ctx context.Context, request RebuildMemoryRequestObject) (RebuildMemoryResponseObject, error)
// GetReadiness Check whether the server can accept requests
// (GET /readyz)
GetReadiness(ctx context.Context, request GetReadinessRequestObject) (GetReadinessResponseObject, error)
// GetRebuildStatus Poll a retained process-local Rebuild
// (GET /rebuild-status/{rebuildId})
GetRebuildStatus(ctx context.Context, request GetRebuildStatusRequestObject) (GetRebuildStatusResponseObject, error)
}
StrictServerInterface represents all server handlers.
type TokenUsage ¶
type TokenUsage struct {
CacheWriteInputTokens *int64 `json:"cache_write_input_tokens,omitempty"`
CachedInputTokens *int64 `json:"cached_input_tokens,omitempty"`
InputTokens *int64 `json:"input_tokens,omitempty"`
OutputTokens *int64 `json:"output_tokens,omitempty"`
ReasoningOutputTokens *int64 `json:"reasoning_output_tokens,omitempty"`
TotalTokens *int64 `json:"total_tokens,omitempty"`
}
TokenUsage defines model for TokenUsage.
type TooManyValuesForParamError ¶
func (*TooManyValuesForParamError) Error ¶
func (e *TooManyValuesForParamError) Error() string
type UnderstandingAttempt ¶
type UnderstandingAttempt struct {
CompletedAt *time.Time `json:"completed_at,omitempty"`
Diagnostics *UnderstandingDiagnostics `json:"diagnostics,omitempty"`
Id openapi_types.UUID `json:"id"`
// PluginId Configured plugin ID; empty when no plugin is selected.
PluginId string `json:"plugin_id"`
QueuedAt time.Time `json:"queued_at"`
StartedAt *time.Time `json:"started_at,omitempty"`
Status UnderstandingAttemptState `json:"status"`
}
UnderstandingAttempt defines model for UnderstandingAttempt.
type UnderstandingAttemptState ¶
type UnderstandingAttemptState string
UnderstandingAttemptState defines model for UnderstandingAttemptState.
const ( UnderstandingAttemptStateDone UnderstandingAttemptState = "done" UnderstandingAttemptStateFailed UnderstandingAttemptState = "failed" UnderstandingAttemptStateQueued UnderstandingAttemptState = "queued" UnderstandingAttemptStateRunning UnderstandingAttemptState = "running" )
Defines values for UnderstandingAttemptState.
func (UnderstandingAttemptState) Valid ¶
func (e UnderstandingAttemptState) Valid() bool
Valid indicates whether the value is a known member of the UnderstandingAttemptState enum.
type UnderstandingDetails ¶
type UnderstandingDetails struct {
// ActiveRun The last complete successful Run; failed attempts do not replace it.
ActiveRun *UnderstandingRun `json:"active_run"`
LatestAttempt *UnderstandingAttempt `json:"latest_attempt"`
Status UnderstandingDetailsStatus `json:"status"`
// StatusUrl Process-local polling URL; absent for durable history after restart.
StatusUrl *string `json:"status_url,omitempty"`
// UserNote Latest saved owner guidance for this Memory; empty when absent or cleared.
UserNote string `json:"user_note"`
}
UnderstandingDetails defines model for UnderstandingDetails.
type UnderstandingDetailsStatus ¶
type UnderstandingDetailsStatus string
UnderstandingDetailsStatus defines model for UnderstandingDetails.Status.
const ( UnderstandingDetailsStatusDone UnderstandingDetailsStatus = "done" UnderstandingDetailsStatusFailed UnderstandingDetailsStatus = "failed" UnderstandingDetailsStatusNotStarted UnderstandingDetailsStatus = "not_started" UnderstandingDetailsStatusQueued UnderstandingDetailsStatus = "queued" UnderstandingDetailsStatusRunning UnderstandingDetailsStatus = "running" )
Defines values for UnderstandingDetailsStatus.
func (UnderstandingDetailsStatus) Valid ¶
func (e UnderstandingDetailsStatus) Valid() bool
Valid indicates whether the value is a known member of the UnderstandingDetailsStatus enum.
type UnderstandingDiagnostics ¶
type UnderstandingDiagnostics struct {
Error string `json:"error"`
ExitCode *int `json:"exit_code,omitempty"`
// Stderr Captured plugin diagnostics; may contain private source content.
Stderr string `json:"stderr"`
// Stdout Captured plugin stdout, including invalid protocol output.
Stdout string `json:"stdout"`
}
UnderstandingDiagnostics defines model for UnderstandingDiagnostics.
type UnderstandingRun ¶
type UnderstandingRun struct {
Artifacts []DerivedContent `json:"artifacts"`
AttemptId openapi_types.UUID `json:"attempt_id"`
CompletedAt time.Time `json:"completed_at"`
// CostEstimate Optional API-equivalent estimate, not subscription charges.
CostEstimate *CostEstimate `json:"cost_estimate,omitempty"`
CreatedAt time.Time `json:"created_at"`
Id openapi_types.UUID `json:"id"`
PluginId string `json:"plugin_id"`
PluginVersion string `json:"plugin_version"`
SourceBlobref string `json:"source_blobref"`
// Statistics Optional plugin-reported Run totals.
Statistics *Statistics `json:"statistics,omitempty"`
// UserNote Owner guidance captured by this successful Run; empty when absent.
UserNote string `json:"user_note"`
Warnings []string `json:"warnings"`
}
UnderstandingRun defines model for UnderstandingRun.
type UnescapedCookieParamError ¶
func (*UnescapedCookieParamError) Error ¶
func (e *UnescapedCookieParamError) Error() string
func (*UnescapedCookieParamError) Unwrap ¶
func (e *UnescapedCookieParamError) Unwrap() error
type UnmarshalingParamError ¶
func (*UnmarshalingParamError) Error ¶
func (e *UnmarshalingParamError) Error() string
func (*UnmarshalingParamError) Unwrap ¶
func (e *UnmarshalingParamError) Unwrap() error