Table of Contents

Method FromJson

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

FromJson(string)

Reads a state written by ToJson(), by this release or an earlier one.

public static AgentRunState FromJson(string json)

Parameters

json string

The JSON text.

Returns

AgentRunState

The state, migrated to CurrentSchemaVersion.

Exceptions

ArgumentNullException

Thrown when json is null or empty.

AgentRunStateVersionException

Thrown when the state was written by a newer release.

JsonException

Thrown when the text is not a run state.

Share