-
Notifications
You must be signed in to change notification settings - Fork 142
Expand file tree
/
Copy pathchat.json
More file actions
157 lines (157 loc) · 5 KB
/
Copy pathchat.json
File metadata and controls
157 lines (157 loc) · 5 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
{
"name": "Cypress-register-agent",
"description": "Cypress Flow template",
"use_case": "REGISTER_AGENT",
"version": {
"template": "1.0.0",
"compatibility": ["2.12.0", "3.0.0"]
},
"workflows": {
"provision": {
"user_params": {},
"nodes": [
{
"id": "create_connector_1",
"type": "create_connector",
"previous_node_inputs": {},
"user_inputs": {
"version": "1",
"name": "Claude instant runtime Connector",
"protocol": "aws_sigv4",
"description": "The connector to BedRock service for claude model",
"actions": [
{
"headers": {
"x-amz-content-sha256": "required",
"content-type": "application/json"
},
"method": "POST",
"request_body": "{\"prompt\":\"${parameters.prompt}\", \"max_tokens_to_sample\":${parameters.max_tokens_to_sample}, \"temperature\":${parameters.temperature}, \"anthropic_version\":\"${parameters.anthropic_version}\" }",
"action_type": "predict",
"url": "http://127.0.0.1:3000"
}
],
"credential": {
"access_key": "<key>",
"secret_key": "<value>"
},
"parameters": {
"endpoint": "bedrock-runtime.us-west-2.amazonaws.com",
"content_type": "application/json",
"auth": "Sig_V4",
"max_tokens_to_sample": "8000",
"service_name": "bedrock",
"temperature": "0.0001",
"response_filter": "$.completion",
"region": "us-west-2",
"anthropic_version": "bedrock-2023-05-31"
}
}
},
{
"id": "register_model_2",
"type": "register_remote_model",
"previous_node_inputs": {
"create_connector_1": "connector_id"
},
"user_inputs": {
"description": "test model",
"deploy": true,
"name": "claude-instant"
}
},
{
"id": "list_index_tool",
"type": "create_tool",
"previous_node_inputs": {},
"user_inputs": {
"type": "ListIndexTool",
"name": "ListIndexTool",
"description": "Use this tool to get OpenSearch index information: (health, status, index, uuid, primary count, replica count, docs.count, docs.deleted, store.size, primary.store.size).",
"parameters": {
"index": ".kibana"
}
}
},
{
"id": "sub_agent",
"type": "register_agent",
"previous_node_inputs": {
"list_index_tool": "tools",
"register_model_2": "model_id"
},
"user_inputs": {
"parameters": {},
"app_type": "chatbot",
"name": "Cypress test sub Agent",
"description": "this is a test agent",
"llm.parameters": {
"max_iteration": "5",
"stop_when_no_tool_found": "true",
"response_filter": "$.completion"
},
"memory": {
"type": "conversation_index"
},
"type": "conversational"
}
},
{
"id": "agent_tool",
"type": "create_tool",
"previous_node_inputs": {
"sub_agent": "agent_id"
},
"user_inputs": {
"description": "Agent Tool",
"include_output_in_agent_response": true,
"type": "AgentTool",
"parameters": {
"max_iteration": "5"
},
"name": "AgentTool"
}
},
{
"id": "ml_model_tool",
"type": "create_tool",
"previous_node_inputs": {
"register_model_2": "model_id"
},
"user_inputs": {
"parameters": {
"prompt": "You are an AI that only speaks JSON"
},
"description": "A general tool to answer any question.",
"alias": "language_model_tool",
"include_output_in_agent_response": true,
"name": "QuestionSuggestor",
"type": "MLModelTool"
}
},
{
"id": "os_chat",
"type": "register_agent",
"previous_node_inputs": {
"agent_tool": "tools",
"register_model_2": "model_id",
"ml_model_tool": "tools"
},
"user_inputs": {
"parameters": {
"prompt": "Answer the question as best you can."
},
"app_type": "chatbot",
"name": "Cypress test agent",
"description": "this is the root agent",
"tools_order": ["agent_tool", "ml_model_tool"],
"memory": {
"type": "conversation_index"
},
"type": "flow"
}
}
]
}
}
}