-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathfile-reader.yaml
More file actions
58 lines (54 loc) · 1.57 KB
/
Copy pathfile-reader.yaml
File metadata and controls
58 lines (54 loc) · 1.57 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
56
57
58
open_agent_spec: "1.5.0"
agent:
name: file-reader
description: >
Reads a file from disk and answers questions about its content.
Demonstrates the native file.read tool — no SDKs, no frameworks.
role: analyst
intelligence:
type: llm
engine: openai
model: gpt-4o-mini
# Declare the tools available to this agent.
tools:
read_file:
type: native
native: file.read
description: "Read the contents of a text file from the local filesystem."
tasks:
summarise:
description: >
Read a file and return a concise summary of its content.
tools:
- read_file
prompts:
system: >
You are a helpful assistant. When asked to summarise a file, use the
read_file tool to fetch its contents first, then respond with valid JSON
containing exactly two fields:
"summary" (a concise one-paragraph summary of the file) 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 file at path: {path}"
input:
type: object
properties:
path:
type: string
description: Path to the file to read.
required:
- path
output:
type: object
properties:
summary:
type: string
description: A short summary of the file contents.
key_points:
type: array
items:
type: string
description: Bullet-point key takeaways.
required:
- summary
- key_points