This commit is contained in:
2025-12-27 22:47:15 +08:00
parent 8f17366bd3
commit 8112ddbce6
9 changed files with 209 additions and 70 deletions

View File

@@ -1,6 +1,7 @@
using System;
using System.Collections.Generic;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using Verse;
namespace WulaFallenEmpire.EventSystem.AI.Tools
@@ -11,7 +12,8 @@ namespace WulaFallenEmpire.EventSystem.AI.Tools
public abstract string Description { get; }
public abstract string UsageSchema { get; } // XML schema description
public abstract string Execute(string args);
public virtual string Execute(string args) => "Error: Synchronous execution not supported for this tool.";
public virtual Task<string> ExecuteAsync(string args) => Task.FromResult(Execute(args));
/// <summary>
/// Helper method to parse XML arguments into a dictionary.