-
Notifications
You must be signed in to change notification settings - Fork 3
/
guide_lib_list.ai.yaml
45 lines (44 loc) · 1.37 KB
/
guide_lib_list.ai.yaml
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
---
version: 0.0.1
type: lib
description: |-
List all urls for the AI Guide
input:
- file
output:
type: 'object'
properties:
summary:
type: 'string'
description: extract the summary part from the content.
files:
type: 'array'
items:
type: 'object'
properties:
filepath:
type: 'string'
description: the file path from the markdown link.
title:
type: 'string'
description: the title from markdown link
description:
type: 'string'
description: the description for the link
instruction: |-
- Extract all links with title and description base on the markdown links from it
- Output summary and links list
file: "README.md"
---
# - system: |-
# - Summarize the following file provided by the user in detail, capturing the key points and essence of it.
# - Extract all links with title and description base on the markdown links in the file
# - Output JSON format, following the JSON schema:
# {{output}}
# ---
# [[@file({{__dirname + file}})]]
# - user: Output all urls with title in markdown format from the README.md
# - assistant: "[[urls:temperature=0.01]]"
# - -> summary(file={{__dirname + file}}, content)
- -> summary(file={{__dirname + file}}, instruction) -> json(output=output)
# - $|echo: ["summary", "links[0]"]