ContextCandidate
A context contribution before filtering, ranking, and packing.
Class Diagram
Section titled “Class Diagram”---
title: ContextCandidate
config:
look: handDrawn
theme: colorful
class:
hideEmptyMembersBox: true
---
classDiagram
class ContextCandidate {
+string id
+string source
+Message[] messages
+dictionary metadata
}
class Message {
+string role
+ContentPart[] parts
+dictionary metadata
}
ContextCandidate *-- Message
Yaml Example
Section titled “Yaml Example”id: memory:project-plansource: memoryProperties
Section titled “Properties”| Name | Type | Description |
|---|---|---|
| id | string | Stable candidate identifier |
| source | string | Host-defined source of the candidate |
| messages | Message[] | Messages contributed by the candidate |
| metadata | dictionary | Opaque host-specific candidate metadata |
Composed Types
Section titled “Composed Types”The following types are composed within ContextCandidate: