StateStore Class

Definition

A first-class, explicitly-created durable key-value store (spec §2, §4.1).

public class StateStore : System.ClientModel.Primitives.IJsonModel<Azure.AI.AgentServer.Core.Storage.StateStore>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.AgentServer.Core.Storage.StateStore>
type StateStore = class
    interface IJsonModel<StateStore>
    interface IPersistableModel<StateStore>
Public Class StateStore
Implements IJsonModel(Of StateStore), IPersistableModel(Of StateStore)
Inheritance
StateStore
Implements

Properties

Name Description
CreatedAt

Creation time.

Description

Optional free-form description. Mutable via updateStateStore.

Id

Server-assigned, read-only. Not used for addressing (the name is).

ItemTtlSeconds

Store-wide default TTL (seconds) inherited by every item, write-sliding per item. -1 = never expire. Immutable.

Name

Caller-chosen logical name. Unique within [project_id, agent_guid]. May contain / as a hierarchy separator. Immutable.

Object

Always "state_store".

Tags

Optional string-to-string labels. Mutable (replaced wholesale) via updateStateStore.

UpdatedAt

Last metadata-update time.

UserIsolation

Whether item operations are partitioned per resolved user (spec §3). Omitted at create -> false. Immutable.

Methods

Name Description
JsonModelCreateCore(Utf8JsonReader, ModelReaderWriterOptions)
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)
PersistableModelCreateCore(BinaryData, ModelReaderWriterOptions)
PersistableModelWriteCore(ModelReaderWriterOptions)

Operators

Name Description
Explicit(ClientResult to StateStore)

Explicit Interface Implementations

Name Description
IJsonModel<StateStore>.Create(Utf8JsonReader, ModelReaderWriterOptions)
IJsonModel<StateStore>.Write(Utf8JsonWriter, ModelReaderWriterOptions)
IPersistableModel<StateStore>.Create(BinaryData, ModelReaderWriterOptions)
IPersistableModel<StateStore>.GetFormatFromOptions(ModelReaderWriterOptions)
IPersistableModel<StateStore>.Write(ModelReaderWriterOptions)

Applies to