Repository navigation
Expand file tree
/
Copy pathagent_tools.json
More file actions
63 lines (63 loc) · 2.41 KB
/
Copy pathagent_tools.json
File metadata and controls
63 lines (63 loc) · 2.41 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
59
60
61
62
63
[
{
"name": "koha_catalog_api",
"description": "Search the library's Koha catalog for titles matching filters. Returns real catalog records only. Never fabricate results not returned by this tool.",
"input_schema": {
"type": "object",
"properties": {
"query": {"type": "string", "description": "Free-text subject/title/author query."},
"age_band": {"type": "string", "enum": ["early_reader", "middle_grade", "young_adult", "adult"]},
"format": {"type": "string", "enum": ["print", "large_print", "audio", "ebook"]},
"exclude_topics": {"type": "array", "items": {"type": "string"}}
},
"required": ["query"]
}
},
{
"name": "koha_availability",
"description": "Check real-time availability for a catalog record_id. Returns available | checked_out | on_hold and expected return date when known.",
"input_schema": {
"type": "object",
"properties": {
"record_id": {"type": "string", "description": "A record_id returned by koha_catalog_api. Do not invent one."}
},
"required": ["record_id"]
}
},
{
"name": "koha_place_hold",
"description": "Place a hold on a title. For patrons under 13, requires a guardian_token (guardian-mediated). Never call without an explicit patron/guardian confirmation.",
"input_schema": {
"type": "object",
"properties": {
"record_id": {"type": "string"},
"patron_token": {"type": "string", "description": "Session patron token; never store or log it."},
"guardian_token": {"type": "string", "description": "Required only for under-13 patrons."}
},
"required": ["record_id", "patron_token"]
}
},
{
"name": "patron_kiosk_ui",
"description": "Render a recommendation list or message on the patron-facing kiosk screen.",
"input_schema": {
"type": "object",
"properties": {
"items": {"type": "array", "items": {"type": "object"}},
"message": {"type": "string"}
}
}
},
{
"name": "librarian_terminal",
"description": "Escalate to a human librarian for anything outside book discovery (fines, account lockouts, complaints, policy exceptions). Hands off the session; does not resolve the issue itself.",
"input_schema": {
"type": "object",
"properties": {
"reason": {"type": "string"},
"summary": {"type": "string"}
},
"required": ["reason"]
}
}
]