AIAgent Properties |
The AIAgent type exposes the following members.
| Name | Description | |
|---|---|---|
| Configuration | The configuration used to build this agent. | |
| EffectiveTitle | Title when set, otherwise the first user message truncated to 100 characters. | |
| LastChatUsage | Token and call usage of the last Chat(String, ICancelOperation, ReportExecutionLog, ReportExecutionLog, Int32, ActionString) exchange (summed over all model round-trips of the tool loop). | |
| MessageCount | Number of messages currently in the conversation (including the system prompt when present). | |
| Messages | Full conversation history, including the system prompt (if any), all user turns, and all agent replies. Exposed so callers can inspect or serialise it. | |
| TotalUsage | Cumulative token and call usage of the whole conversation, including title generation. Reset by Clear. |