HostPolicyResult
State rewrite produced by the host policy before a model invocation.
Class Diagram
Section titled “Class Diagram”---
title: HostPolicyResult
config:
look: handDrawn
theme: colorful
class:
hideEmptyMembersBox: true
---
classDiagram
class HostPolicyResult {
+Message[] messages
+int32 stablePrefixMessages
+dictionary metadata
}
class Message {
+string role
+ContentPart[] parts
+dictionary metadata
}
HostPolicyResult *-- Message
Properties
Section titled “Properties”| Name | Type | Description |
|---|---|---|
| messages | Message[] | Canonical messages to use for the invocation |
| stablePrefixMessages | int32 | Number of leading messages eligible for provider prefix-cache reuse |
| metadata | dictionary | Opaque host-specific policy metadata |
Composed Types
Section titled “Composed Types”The following types are composed within HostPolicyResult: