Interface IAgentState
Interface for managing the state of an agent.
Methods
ReadStateAsync(CancellationToken)
Reads the current state of the agent asynchronously.
Parameters
cancellationToken
CancellationToken A token to cancel the operation.
Returns
- Value
Task <AgentState > A task that represents the asynchronous read operation. The task result contains the current state of the agent.
WriteStateAsync(AgentState, string, CancellationToken)
Writes the specified state of the agent asynchronously.
ValueTask<string> WriteStateAsync(AgentState state, string eTag, CancellationToken cancellationToken = default)
Parameters
state
AgentState The state to write.
eTag
stringThe ETag for concurrency control.
cancellationToken
CancellationToken A token to cancel the operation.