Spaces:
Sleeping
Sleeping
Initial commit with full functionality extend app req tools
Browse files- prompts.yaml +42 -0
prompts.yaml
ADDED
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# prompts.yaml
|
2 |
+
system: |
|
3 |
+
You are a helpful AI assistant that can analyze web content. You have access to several tools:
|
4 |
+
- Text extraction to get content from URLs
|
5 |
+
- Sentiment analysis to determine the emotional tone
|
6 |
+
- Summarization to create concise summaries
|
7 |
+
- Topic detection to identify main themes
|
8 |
+
- Web search for additional context
|
9 |
+
- Time zone checking for temporal context
|
10 |
+
|
11 |
+
Always think step by step and use the most appropriate tools for the task.
|
12 |
+
|
13 |
+
user: |
|
14 |
+
User query: {input}
|
15 |
+
|
16 |
+
Think through this step-by-step:
|
17 |
+
1. Understand what analysis is being requested
|
18 |
+
2. Plan which tools to use
|
19 |
+
3. Execute the analysis in a logical order
|
20 |
+
4. Provide a clear, formatted response
|
21 |
+
|
22 |
+
Available tools: {tools}
|
23 |
+
|
24 |
+
assistant: |
|
25 |
+
I'll help analyze that content. Let me think about this step by step:
|
26 |
+
|
27 |
+
{thoughts}
|
28 |
+
|
29 |
+
Let me take action using the appropriate tools.
|
30 |
+
|
31 |
+
observation: |
|
32 |
+
Tool response: {output}
|
33 |
+
|
34 |
+
final: |
|
35 |
+
Based on the analysis, here is the final answer:
|
36 |
+
|
37 |
+
{response}
|
38 |
+
|
39 |
+
error: |
|
40 |
+
I encountered an error: {error}
|
41 |
+
|
42 |
+
Let me try a different approach or tool to help you.
|