Skip to content

CallableAgentInfo

Namespace AgentPrism · Assembly AgentPrism.Core.dll

The summary of a callable sub-agent, reported to the model.

public readonly struct CallableAgentInfo : IEquatable<CallableAgentInfo>

IEquatable<CallableAgentInfo>

object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

The summary of a callable sub-agent, reported to the model.

public CallableAgentInfo(string Name, string? Description, int Version)

Name string

Agent name.

Description string?

Description of what it does.

Version int

Version of the sub-agent’s definition. 0 when not found in the catalog. Enters the cache key of the calling agent’s compiled copy: a sub-agent’s description is embedded in the text sent to the model, so the caller must be recompiled when the sub-agent is updated.

Description of what it does.

public string? Description { get; init; }

string?

Agent name.

public string Name { get; init; }

string

Version of the sub-agent’s definition. 0 when not found in the catalog. Enters the cache key of the calling agent’s compiled copy: a sub-agent’s description is embedded in the text sent to the model, so the caller must be recompiled when the sub-agent is updated.

public int Version { get; init; }

int

Deconstruct(out string, out string?, out int)

Section titled “ Deconstruct(out string, out string?, out int)”
public void Deconstruct(out string Name, out string? Description, out int Version)

Name string

Description string?

Version int

public override bool Equals(object obj)

obj object

bool

public bool Equals(CallableAgentInfo other)

other CallableAgentInfo

bool

public override int GetHashCode()

int

public override string ToString()

string

operator ==(CallableAgentInfo, CallableAgentInfo)

Section titled “ operator ==(CallableAgentInfo, CallableAgentInfo)”
public static bool operator ==(CallableAgentInfo left, CallableAgentInfo right)

left CallableAgentInfo

right CallableAgentInfo

bool

operator !=(CallableAgentInfo, CallableAgentInfo)

Section titled “ operator !=(CallableAgentInfo, CallableAgentInfo)”
public static bool operator !=(CallableAgentInfo left, CallableAgentInfo right)

left CallableAgentInfo

right CallableAgentInfo

bool