12 lines
438 B
C#
12 lines
438 B
C#
using MAF1.Agents.FileCity;
|
|||
|
|
using MAF1.PluginContract;
|
||
|
|
using MAF1.Utils;
|
||
|
|
|
||
|
|
PluginRequest request = await PluginStdio.ReadRequestAsync();
|
||
|
|
PluginStdio.ApplyCredentialsToEnvironment(request.Credentials);
|
||
|
|
|
||
|
|
AgentFactory factory = new(AgentFactory.Load(PluginStdio.LoadHostConfiguration()));
|
||
|
|
var result = await FileCityAgent.RunAsync(FileCityAgent.Create(factory), request.Inputs);
|
||
|
|
await PluginStdio.WriteOutputsAsync(result.Outputs);
|
||
|
|
return 0;
|