Table of Contents

Method ToString

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

ToString()

Returns the persona as the string representation of this identity.

public override string ToString()

Returns

string

The persona, or an empty string if no persona is defined.

Examples

Using ToString for display:

using LMKit.Agents;

var identity = new AgentIdentity("Research Analyst", "Analyze data and trends.");

// Implicit ToString in string context
Console.WriteLine($"Active agent: {identity}");
// Output: Active agent: Research Analyst