|
|
4 hónapja | |
|---|---|---|
| .. | ||
| config | 4 hónapja | |
| docs | 4 hónapja | |
| tests | 4 hónapja | |
| CONTEXT_LOADING_COVERAGE.md | 4 hónapja | |
| README.md | 4 hónapja | |
| TEST_REVIEW.md | 4 hónapja | |
Tests for the openagent agent - a universal agent with text-based approval workflow.
OpenAgent uses a text-based approval workflow:
Testing OpenAgent requires multi-turn prompts:
prompts:
- text: "List the files in the current directory"
- text: "Yes, proceed with the plan"
delayMs: 2000
tests/developer/)ctx-*.yaml)tests/business/)tests/edge-case/)cd evals/framework
# Run all openagent tests
npx tsx src/sdk/run-sdk-tests.ts --agent=openagent
# Run specific test pattern
npx tsx src/sdk/run-sdk-tests.ts --agent=openagent --pattern="developer/ctx-*.yaml"
# Debug mode
npx tsx src/sdk/run-sdk-tests.ts --agent=openagent --debug
OpenAgent requires loading context files before execution:
| Task Type | Required Context File | Test |
|---|---|---|
| Code | standards/code.md |
ctx-code-001.yaml |
| Docs | standards/docs.md |
ctx-docs-001.yaml |
| Tests | standards/tests.md |
ctx-tests-001.yaml |
| Review | workflows/review.md |
ctx-review-001.yaml |
| Delegation | workflows/delegation.md |
ctx-delegation-001.yaml |
| Multi-turn | Per-task context | ctx-multi-turn-001.yaml |
From .opencode/agent/openagent.md: