MCPcopy Create free account
hub / github.com/astercloud/aster / CacheControlBlock

Struct CacheControlBlock

pkg/types/content.go:109–115  ·  view source on GitHub ↗

CacheControlBlock 缓存控制块 用于 Prompt Caching 功能

Source from the content-addressed store, hash-verified

107// CacheControlBlock 缓存控制块
108// 用于 Prompt Caching 功能
109type CacheControlBlock struct {
110 // Type 缓存类型: "ephemeral"
111 Type string `json:"type"`
112
113 // Content 被缓存的内容
114 Content ContentBlock `json:"content"`
115}
116
117func (c *CacheControlBlock) IsContentBlock() {}
118

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected