Table of Contents

Method GetState

Namespace
LMKit.Agents.Planning
Assembly
LM-Kit.NET.dll

GetState<T>(string, T)

Retrieves a value from the context state.

public T GetState<T>(string key, T defaultValue = default)

Parameters

key string

The state key.

defaultValue T

The default value if the key is not found.

Returns

T

The stored value, or the default if not found.

Type Parameters

T

The expected type of the value.