ChildRunApproval
AgentPrism.Core.dllDetermines whether a response carries a tool call pending approval.
public static class ChildRunApprovalInheritance
Section titled “Inheritance”Inherited Members
Section titled “Inherited Members”object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Remarks
Section titled “Remarks”The detection is kept in one place because it has more than one consumer:
ChildAgentInvoker returns an understandable error message to
the caller, RunRecordingAgent closes the sub-run as
Failed. If written separately in two places, one would change and
the other would fall behind.
The MCP and A2A external call handlers in
AgentPrism.AspNetCore use the same detection too (the second
application of the same rule: it is not an external caller, it cannot give
approval). This is why the type is public.
Methods
Section titled “Methods”Describe(IEnumerable<ChatMessage>)
Section titled “ Describe(IEnumerable<ChatMessage>)”Searches the messages for a tool call pending approval.
public static string? Describe(IEnumerable<ChatMessage> messages)Parameters
Section titled “Parameters”messages IEnumerable<ChatMessage>
Response messages.
Returns
Section titled “Returns”Names of tools pending approval; null when there are none.
Describe(IEnumerable<AIContent>)
Section titled “ Describe(IEnumerable<AIContent>)”Searches the contents for a tool call pending approval.
public static string? Describe(IEnumerable<AIContent> contents)Parameters
Section titled “Parameters”contents IEnumerable<AIContent>
Response contents.
Returns
Section titled “Returns”Names of tools pending approval; null when there are none.