pub struct SessionMetadataGetContextAttributionResultContextAttributionEntriesItem {
pub attributes: Option<HashMap<String, String>>,
pub id: String,
pub kind: String,
pub label: String,
pub parent_id: Option<String>,
pub tokens: i64,
}Fields§
§attributes: Option<HashMap<String, String>>Supplementary per-entry metadata (e.g. messageCount, role, evictable, pluginSource). Values are stringified; parse as needed and ignore unrecognized keys.
id: StringIdentifier for this entry, formed by joining its kind and source name (e.g. tool:bash, skill:tmux, toolDefinition:bash); unique within the snapshot. Use it to match the same entry across snapshots, to correlate with other APIs (skill/agent/MCP registries), and as the parentId target for nesting. Distinct from the human-facing label.
kind: StringSource category for this entry. Not a closed set — tolerate unknown values. Known values today: skill, subagent, mcpServer, tool, system, toolDefinition, plugin.
label: StringHuman-readable display label, e.g. bash or skill: tmux. Presentation-only; may be localized/reformatted without notice — do not key off it.
parent_id: Option<String>Optional id of the parent entry: e.g. a plugin entry parenting its skill/mcpServer entries, or the system entry parenting toolDefinition entries. Omitted for top-level entries.
tokens: i64Token count currently in context attributable to this entry.
Trait Implementations§
Source§impl Clone for SessionMetadataGetContextAttributionResultContextAttributionEntriesItem
impl Clone for SessionMetadataGetContextAttributionResultContextAttributionEntriesItem
Source§fn clone(
&self,
) -> SessionMetadataGetContextAttributionResultContextAttributionEntriesItem
fn clone( &self, ) -> SessionMetadataGetContextAttributionResultContextAttributionEntriesItem
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more