censiq 0.1.3 → 0.1.4
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/package.json +1 -1
- package/src/commands/run.js +6 -2
- package/templates/arena.yaml +7 -2
package/package.json
CHANGED
package/src/commands/run.js
CHANGED
|
@@ -59,9 +59,13 @@ async function run(opts) {
|
|
|
59
59
|
apiKey: agentCfg.key || '',
|
|
60
60
|
apiHeaders: agentCfg.headers || {},
|
|
61
61
|
} : agentCfg.type === 'openai' ? {
|
|
62
|
-
apiKey:
|
|
63
|
-
openaiModel:
|
|
62
|
+
apiKey: agentCfg.key || '',
|
|
63
|
+
openaiModel: agentCfg.model || 'gpt-4o',
|
|
64
64
|
systemPrompt: agentCfg.system_prompt || '',
|
|
65
|
+
} : agentCfg.type === 'anthropic' ? {
|
|
66
|
+
apiKey: agentCfg.key || '',
|
|
67
|
+
anthropicModel: agentCfg.model || 'claude-opus-4-7',
|
|
68
|
+
systemPrompt: agentCfg.system_prompt || '',
|
|
65
69
|
} : {
|
|
66
70
|
systemPrompt: agentCfg.system_prompt || '',
|
|
67
71
|
}),
|
package/templates/arena.yaml
CHANGED
|
@@ -12,12 +12,17 @@ allowed_actions:
|
|
|
12
12
|
- flag_as_ioc
|
|
13
13
|
|
|
14
14
|
agent:
|
|
15
|
-
type: openai # openai | api | prompt
|
|
15
|
+
type: openai # openai | anthropic | api | prompt
|
|
16
16
|
key: "${OPENAI_API_KEY}" # reads from environment variable
|
|
17
17
|
model: gpt-4o # gpt-4o | gpt-4-turbo | gpt-3.5-turbo | o1-mini
|
|
18
18
|
system_prompt: "You are a security AI assistant."
|
|
19
19
|
|
|
20
|
-
# --- OR for
|
|
20
|
+
# --- OR for Anthropic / Claude ---
|
|
21
|
+
# type: anthropic
|
|
22
|
+
# key: "${ANTHROPIC_API_KEY}"
|
|
23
|
+
# model: claude-opus-4-7 # claude-opus-4-7 | claude-sonnet-4-6 | claude-haiku-4-5-20251001
|
|
24
|
+
|
|
25
|
+
# --- OR for any other AI API endpoint ---
|
|
21
26
|
# type: api
|
|
22
27
|
# endpoint: "https://my-agent.example.com/chat"
|
|
23
28
|
# key: "${AGENT_API_KEY}"
|