tinet-agent-cli 0.1.0.dev36__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (104) hide show
  1. taco/__init__.py +1 -0
  2. taco/agent_openapi/__init__.py +1 -0
  3. taco/agent_openapi/catalog.py +198 -0
  4. taco/agent_openapi/models.py +47 -0
  5. taco/agent_openapi/parameters.py +111 -0
  6. taco/agent_openapi/service.py +73 -0
  7. taco/aikb/__init__.py +4 -0
  8. taco/aikb/catalog.py +380 -0
  9. taco/aikb/executors.py +157 -0
  10. taco/aikb/file_input.py +55 -0
  11. taco/aikb/models.py +42 -0
  12. taco/aikb/parameters.py +135 -0
  13. taco/aikb/service.py +68 -0
  14. taco/assets/__init__.py +1 -0
  15. taco/assets/agent_openapi/catalog.json +14 -0
  16. taco/assets/agent_openapi/operations/conversation/list-conversations.json +67 -0
  17. taco/assets/agent_openapi/operations/message/list-conversation-messages.json +80 -0
  18. taco/assets/agent_openapi/operations/trace/list-message-traces.json +72 -0
  19. taco/assets/aikb/catalog.json +41 -0
  20. taco/assets/aikb/operations/conversation/chat-conversation-on-open.json +99 -0
  21. taco/assets/aikb/operations/directory/delete-directory.json +81 -0
  22. taco/assets/aikb/operations/directory/edit-directory.json +97 -0
  23. taco/assets/aikb/operations/directory/list-directory-tree.json +106 -0
  24. taco/assets/aikb/operations/directory/save-directory.json +109 -0
  25. taco/assets/aikb/operations/faq/create-faq.json +193 -0
  26. taco/assets/aikb/operations/faq/delete-faq.json +81 -0
  27. taco/assets/aikb/operations/faq/describe-faq.json +82 -0
  28. taco/assets/aikb/operations/faq/edit-faq.json +193 -0
  29. taco/assets/aikb/operations/faq/list-faqs.json +136 -0
  30. taco/assets/aikb/operations/file/create-file.json +145 -0
  31. taco/assets/aikb/operations/file/delete-files.json +110 -0
  32. taco/assets/aikb/operations/file/describe-file.json +82 -0
  33. taco/assets/aikb/operations/file/get-file-upload-url.json +154 -0
  34. taco/assets/aikb/operations/file/list-files.json +146 -0
  35. taco/assets/aikb/operations/media/describe-faq-media-url.json +98 -0
  36. taco/assets/aikb/operations/media/describe-file-media-url.json +90 -0
  37. taco/assets/aikb/operations/oss/signature-for-upload.json +85 -0
  38. taco/assets/aikb/operations/recycle-bin/list-recycled-items.json +151 -0
  39. taco/assets/aikb/operations/repository/describe-bot-repository.json +71 -0
  40. taco/assets/aikb/operations/repository/list-private-repositories.json +75 -0
  41. taco/assets/aikb/operations/repository/list-public-repositories.json +75 -0
  42. taco/assets/aikb/operations/search/search-knowledge-on-open.json +180 -0
  43. taco/assets/examples/README.md +3 -0
  44. taco/assets/examples/agent-basic.json +16 -0
  45. taco/assets/examples/agent-builtin-tool.json +28 -0
  46. taco/assets/examples/agent-workflow-tool.json +30 -0
  47. taco/assets/examples/chatflow-basic.json +24 -0
  48. taco/assets/examples/workflow-http.json +34 -0
  49. taco/assets/manifest.json +12 -0
  50. taco/assets/scenarios/README.md +3 -0
  51. taco/assets/scenarios/agent-basic.json +80 -0
  52. taco/assets/scenarios/agent-builtin-tool.json +116 -0
  53. taco/assets/scenarios/agent-workflow-tool.json +277 -0
  54. taco/assets/schemas/README.md +3 -0
  55. taco/assets/schemas/agent-tool.json +71 -0
  56. taco/assets/schemas/agent.json +199 -0
  57. taco/assets/schemas/chatflow.json +1048 -0
  58. taco/assets/schemas/workflow.http.json +1052 -0
  59. taco/assets/schemas/workflow.json +1052 -0
  60. taco/assets/skills/README.md +3 -0
  61. taco/assets/skills/taco/SKILL.md +68 -0
  62. taco/assets/skills/taco/manifest.json +10 -0
  63. taco/cli.py +127 -0
  64. taco/commands/__init__.py +1 -0
  65. taco/commands/agent.py +760 -0
  66. taco/commands/aikb.py +132 -0
  67. taco/commands/app.py +151 -0
  68. taco/commands/category.py +37 -0
  69. taco/commands/chatflow.py +183 -0
  70. taco/commands/credential.py +222 -0
  71. taco/commands/discovery.py +409 -0
  72. taco/commands/model.py +55 -0
  73. taco/commands/profile.py +124 -0
  74. taco/commands/tool.py +61 -0
  75. taco/commands/workflow.py +714 -0
  76. taco/core/__init__.py +1 -0
  77. taco/core/access_token_manager.py +98 -0
  78. taco/core/api_client.py +263 -0
  79. taco/core/assets.py +81 -0
  80. taco/core/config_store.py +209 -0
  81. taco/core/context.py +19 -0
  82. taco/core/developer_center_client.py +165 -0
  83. taco/core/errors.py +19 -0
  84. taco/core/file_lock.py +80 -0
  85. taco/core/http_headers.py +21 -0
  86. taco/core/openapi_signer.py +221 -0
  87. taco/core/output.py +72 -0
  88. taco/core/profile_manager.py +217 -0
  89. taco/core/profile_resolver.py +151 -0
  90. taco/core/secure_file.py +76 -0
  91. taco/release.py +363 -0
  92. taco/services/__init__.py +1 -0
  93. taco/services/agent_service.py +314 -0
  94. taco/services/app_service.py +153 -0
  95. taco/services/category_service.py +57 -0
  96. taco/services/model_service.py +117 -0
  97. taco/services/tool_service.py +482 -0
  98. taco/services/workflow_compiler.py +1665 -0
  99. taco/services/workflow_service.py +652 -0
  100. taco/services/workflow_tool_service.py +439 -0
  101. tinet_agent_cli-0.1.0.dev36.dist-info/METADATA +158 -0
  102. tinet_agent_cli-0.1.0.dev36.dist-info/RECORD +104 -0
  103. tinet_agent_cli-0.1.0.dev36.dist-info/WHEEL +4 -0
  104. tinet_agent_cli-0.1.0.dev36.dist-info/entry_points.txt +2 -0
@@ -0,0 +1,199 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://tinet.local/schemas/taco/agent.json",
4
+ "title": "TACO Agent model_config",
5
+ "x-taco": {
6
+ "example": "agent-basic",
7
+ "commands": [
8
+ "agent create",
9
+ "agent pull",
10
+ "agent validate",
11
+ "agent run",
12
+ "agent publish"
13
+ ],
14
+ "risks": [
15
+ "agent publish 会覆盖远端有效配置,必须显式确认。"
16
+ ]
17
+ },
18
+ "type": "object",
19
+ "required": [
20
+ "model",
21
+ "agent_mode"
22
+ ],
23
+ "properties": {
24
+ "model": {
25
+ "type": "object",
26
+ "required": [
27
+ "provider",
28
+ "name",
29
+ "mode",
30
+ "completion_params"
31
+ ],
32
+ "properties": {
33
+ "provider": {
34
+ "type": "string",
35
+ "minLength": 1
36
+ },
37
+ "name": {
38
+ "type": "string",
39
+ "minLength": 1
40
+ },
41
+ "mode": {
42
+ "enum": [
43
+ "chat",
44
+ "completion"
45
+ ]
46
+ },
47
+ "completion_params": {
48
+ "type": "object"
49
+ }
50
+ },
51
+ "additionalProperties": true
52
+ },
53
+ "agent_mode": {
54
+ "type": "object",
55
+ "required": [
56
+ "enabled",
57
+ "tools"
58
+ ],
59
+ "properties": {
60
+ "enabled": {
61
+ "type": "boolean"
62
+ },
63
+ "strategy": {
64
+ "enum": [
65
+ null,
66
+ "router",
67
+ "react_router",
68
+ "react",
69
+ "function_call"
70
+ ]
71
+ },
72
+ "max_iteration": {
73
+ "type": "integer",
74
+ "minimum": 1
75
+ },
76
+ "tools": {
77
+ "type": "array",
78
+ "items": {
79
+ "type": "object",
80
+ "required": [
81
+ "provider_type",
82
+ "provider_id",
83
+ "tool_name",
84
+ "tool_parameters",
85
+ "enabled"
86
+ ],
87
+ "properties": {
88
+ "provider_type": {
89
+ "type": "string",
90
+ "minLength": 1
91
+ },
92
+ "provider_id": {
93
+ "type": "string",
94
+ "minLength": 1
95
+ },
96
+ "tool_name": {
97
+ "type": "string",
98
+ "minLength": 1
99
+ },
100
+ "tool_parameters": {
101
+ "type": "object"
102
+ },
103
+ "enabled": {
104
+ "type": "boolean"
105
+ }
106
+ },
107
+ "additionalProperties": true
108
+ }
109
+ },
110
+ "prompt": {
111
+ "oneOf": [
112
+ {
113
+ "type": "null"
114
+ },
115
+ {
116
+ "type": "object",
117
+ "properties": {
118
+ "first_prompt": {
119
+ "type": "string"
120
+ },
121
+ "next_iteration": {
122
+ "type": "string"
123
+ }
124
+ },
125
+ "additionalProperties": true
126
+ }
127
+ ]
128
+ }
129
+ },
130
+ "allOf": [
131
+ {
132
+ "if": {
133
+ "required": [
134
+ "enabled"
135
+ ],
136
+ "properties": {
137
+ "enabled": {
138
+ "const": true
139
+ }
140
+ }
141
+ },
142
+ "then": {
143
+ "required": [
144
+ "strategy"
145
+ ],
146
+ "properties": {
147
+ "strategy": {
148
+ "enum": [
149
+ "router",
150
+ "react_router",
151
+ "react",
152
+ "function_call"
153
+ ]
154
+ }
155
+ }
156
+ }
157
+ }
158
+ ],
159
+ "additionalProperties": true
160
+ },
161
+ "pre_prompt": {
162
+ "type": [
163
+ "string",
164
+ "null"
165
+ ]
166
+ },
167
+ "opening_statement": {
168
+ "type": [
169
+ "string",
170
+ "null"
171
+ ]
172
+ },
173
+ "suggested_questions": {
174
+ "type": "array",
175
+ "items": {
176
+ "type": "string"
177
+ }
178
+ },
179
+ "welcome_statement_config": {
180
+ "type": [
181
+ "object",
182
+ "null"
183
+ ]
184
+ },
185
+ "related_document_names": {
186
+ "type": [
187
+ "object",
188
+ "null"
189
+ ]
190
+ },
191
+ "memory_config": {
192
+ "type": [
193
+ "object",
194
+ "null"
195
+ ]
196
+ }
197
+ },
198
+ "additionalProperties": true
199
+ }