@odingard/guardian-openai-agents 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +9 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -230,10 +230,15 @@ function buildTool(shared, toolOptions) {
|
|
|
230
230
|
heldSetup: shared.heldSetup
|
|
231
231
|
};
|
|
232
232
|
try {
|
|
233
|
-
const output = await runThroughGuardian(
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
233
|
+
const output = await runThroughGuardian(
|
|
234
|
+
ctx,
|
|
235
|
+
toolName,
|
|
236
|
+
input,
|
|
237
|
+
(approved) => {
|
|
238
|
+
gate.commit();
|
|
239
|
+
return userExecute(approved, runContext, details);
|
|
240
|
+
}
|
|
241
|
+
);
|
|
237
242
|
gate.settle();
|
|
238
243
|
return output;
|
|
239
244
|
} catch (err) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@odingard/guardian-openai-agents",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "OpenAI Agents SDK adapter — route an agent's tool calls through Guardian for a deterministic ALLOW/ASK/DENY decision before anything executes.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Odingard Security LLC",
|