https://github.com/agenty/agenty.scripting
A replication of Agenty scripting library in C# to test and debug pre-processing and post-processing scripts locally
https://github.com/agenty/agenty.scripting
api csharp dotnet
Last synced: 2 months ago
JSON representation
A replication of Agenty scripting library in C# to test and debug pre-processing and post-processing scripts locally
- Host: GitHub
- URL: https://github.com/agenty/agenty.scripting
- Owner: Agenty
- License: mit
- Created: 2019-04-21T07:46:12.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T05:28:36.000Z (over 3 years ago)
- Last Synced: 2025-10-04T03:09:15.345Z (10 months ago)
- Topics: api, csharp, dotnet
- Language: C#
- Homepage: https://www.agenty.com/docs/scripting
- Size: 22.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Agenty.scripting
A replication of [Agenty scripting](https://www.agenty.com/docs/scripting) library in `C#` to test and debug pre-processing and post-processing scripts locally
```
Install-Package Agenty.scripting
```
## Post-processing
```
// Set your api key
Agenty.ApiKey = "AGENTY_API_KEY";
// Get agent result as DataTable
var table = Agenty.Cloud.GetAgentResult("");
// Write your code here to test
// Print the table for preview locally
table.Dump();
// Set the result back to agent
//table.SetAgentResult();
```
## Replace example
```
// Set your api key
Agenty.ApiKey = "AGENTY_API_KEY";
// Get agent result as DataTable
var table = Agenty.Cloud.GetAgentResult("");
// Write your code here to test
foreach(DataRow row in table.Rows)
{
row["Field1"] = row["Field1"].ToString().Replace("abc", "xyz");
}
// Print the table for preview locally
table.Dump();
// Set the result back to agent
//table.SetAgentResult();
```