rokojori_action_library/Tools/mcp/ToolCallOutcome.cs

23 lines
400 B
C#

#if TOOLS
namespace Rokojori.Tools
{
public class ToolCallOutcome
{
public string text;
public bool isError;
public static ToolCallOutcome Ok( string text )
{
return new ToolCallOutcome{ text = text, isError = false };
}
public static ToolCallOutcome Error( string text )
{
return new ToolCallOutcome{ text = text, isError = true };
}
}
}
#endif