custom-engine
Agent skill fromalibaba/skill-up
This directory is a minimal skill-up fixture that exercises the **Custom
How to install custom-engine
install custom-engine
# install the skill-up pack with the skills CLI
npx skills add alibaba/skill-up# or add only this skill to Claude Code: copy the folder
e2e/testdata/custom-engine/
# into
~/.claude/skills/custom-engine/ (all projects)
.claude/skills/custom-engine/ (one project)
1# Custom Engine e2e fixture23This directory is a minimal skill-up fixture that exercises the **Custom4Engine** local and http transports end-to-end. It is consumed by5`e2e/custom_engine_test.go`.67`agent.sh` + `evals/eval.yaml` cover the **local** transport: `agent.sh` is a8deterministic stand-in for a real custom agent that reads the `SessionInput`9JSON the framework writes to `${input_file}` and emits a fixed `SessionResult`10on stdout. The case asserts that `final_message` flows from the agent's stdout11into the report.1213`evals/eval-http.yaml` exercises the **http** transport against the same14`hello.yaml` case. `TestPipeline_CustomEngine_HTTPTransport` starts an15in-process `httptest` server, points `${CUSTOM_AGENT_ENDPOINT}` at it, and16asserts the posted `SessionInput` reaches the server and the returned17`SessionResult` flows into the report — so the http stand-in agent lives in the18test rather than in `agent.sh`.1920The `eval-stateful-*.yaml` fixtures exercise opt-in stateful conversations for21both transports, including session-ID propagation, per-turn post-conditions,22capture, substitution, and a final response that needs no continuation ID.
Excerpt shown under the repository's Apache-2.0 license.
