-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathagent.yaml
More file actions
81 lines (81 loc) · 2.7 KB
/
agent.yaml
File metadata and controls
81 lines (81 loc) · 2.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
apiVersion: adl.dev/v1
kind: Agent
metadata:
name: documentation-agent
description: A2A agent server that provides Context7-style documentation capabilities for your agents
version: 0.2.25
spec:
capabilities:
streaming: true
pushNotifications: false
stateTransitionHistory: true
card:
url: "http://localhost:8080"
documentationUrl: "https://docs.inference-gateway.com"
protocolVersion: "0.3.0"
preferredTransport: "JSONRPC"
defaultInputModes:
- text
defaultOutputModes:
- text
agent:
provider: ""
model: ""
systemPrompt: |
You are an intelligent documentation retrieval assistant that specializes in finding and fetching relevant documentation from Context7-compatible sources. You can resolve library names to their proper identifiers and retrieve targeted documentation based on specific topics or requirements.
maxTokens: 4096
temperature: 0.7
skills:
- id: resolve_library_id
name: resolve_library_id
description: "Resolves library name to Context7-compatible library ID and returns matching libraries"
tags:
- docs
- libraries
schema:
type: object
properties:
libraryName:
type: string
description: "Library name to search for and retrieve a Context7-compatible library ID"
required:
- libraryName
inject:
- logger
- id: get_library_docs
name: get_library_docs
description: "Fetches up-to-date documentation for a library using Context7-compatible library ID"
tags:
- docs
- libraries
schema:
type: object
properties:
context7CompatibleLibraryID:
type: string
description: "Exact Context7-compatible library ID (e.g., '/mongodb/docs', '/vercel/next.js', '/supabase/supabase') retrieved from resolve_library_id or directly from user query in the format '/org/project' or '/org/project/version'"
tokens:
type: number
description: "Maximum number of tokens of documentation to retrieve (default: 10000). Higher values provide more context but consume more tokens"
topic:
type: string
description: "Topic to focus documentation on (e.g., 'hooks', 'routing')"
required:
- context7CompatibleLibraryID
inject:
- logger
server:
port: 8080
debug: false
language:
go:
module: "github.com/inference-gateway/documentation-agent"
version: "1.25.5"
scm:
provider: github
url: "https://github.com/inference-gateway/documentation-agent"
github_app: true
issue_templates: true
sandbox:
flox:
enabled: true