Skip to content
Prompty

HostPolicyResult

State rewrite produced by the host policy before a model invocation.

---
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
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

The following types are composed within HostPolicyResult: