-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathspec.yaml
More file actions
55 lines (52 loc) · 1.7 KB
/
Copy pathspec.yaml
File metadata and controls
55 lines (52 loc) · 1.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
open_agent_spec: "1.5.0"
agent:
name: document-summariser
description: >
Summarises a document into a concise paragraph and structured key points.
Designed to be wrapped by a SKILL.md so interactive coding agents execute
this typed, validated task instead of improvising their own behaviour.
role: analyst
intelligence:
type: llm
engine: openai
model: gpt-4o-mini
# Portability is the point: the contract below is engine-agnostic. Swap the
# two lines above for Anthropic (set ANTHROPIC_API_KEY instead of
# OPENAI_API_KEY) and everything else — schemas, prompts, output shape —
# stays identical:
# engine: anthropic
# model: claude-haiku-4-5-20251001
tasks:
summarise:
description: >
Summarise the supplied text and return a validated, structured result.
prompts:
system: >
You are a precise summarisation assistant. Respond with valid JSON
containing exactly two fields:
"summary" (a concise one-paragraph summary of the text) and
"key_points" (an array of short strings, one per key takeaway).
Return only the JSON object — no markdown fencing, no extra text.
user: "Please summarise the following text:\n\n{text}"
input:
type: object
properties:
text:
type: string
description: The document text to summarise.
required:
- text
output:
type: object
properties:
summary:
type: string
description: A short summary of the document.
key_points:
type: array
items:
type: string
description: Bullet-point key takeaways.
required:
- summary
- key_points