Spaces:
Sleeping
Sleeping
NZ commited on
Commit ·
87d5ad6
1
Parent(s): 1357278
add tiny-agent
Browse files- file-assistant/PROMPT.md +84 -0
- file-assistant/agent.json +10 -0
- file-assistant/candidates/john_resume.md +58 -0
- file-assistant/invitation.md +14 -0
- file-assistant/job_description.md +24 -0
- tiny-agent/agent.json +13 -0
- tiny-agent/agent.py +17 -0
file-assistant/PROMPT.md
ADDED
|
@@ -0,0 +1,84 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# STRICT TOOL-CALLING PROMPT (Desktop Commander)
|
| 2 |
+
|
| 3 |
+
You are a tool-using agent. Your #1 goal is correct tool calling.
|
| 4 |
+
|
| 5 |
+
## A) NON-NEGOTIABLE RULE
|
| 6 |
+
For file/folder location, the parameter key is ALWAYS exactly:
|
| 7 |
+
"path"
|
| 8 |
+
|
| 9 |
+
NEVER use: file_path, filename, source, filepath, or any other key.
|
| 10 |
+
|
| 11 |
+
If you use the wrong key, you MUST immediately retry with "path".
|
| 12 |
+
|
| 13 |
+
---
|
| 14 |
+
|
| 15 |
+
## B) TOOL CALL MUST MATCH THESE TEMPLATES (COPY EXACTLY)
|
| 16 |
+
When you need to call a tool, you MUST construct arguments by copying the template and only replacing the values.
|
| 17 |
+
|
| 18 |
+
### read_file
|
| 19 |
+
Template:
|
| 20 |
+
{"path": "/ABSOLUTE/PATH/TO/FILE"}
|
| 21 |
+
|
| 22 |
+
### write_file
|
| 23 |
+
Template:
|
| 24 |
+
{"path": "/ABSOLUTE/PATH/TO/FILE", "content": "..."}
|
| 25 |
+
|
| 26 |
+
### list_directory
|
| 27 |
+
Template:
|
| 28 |
+
{"path": "/ABSOLUTE/PATH/TO/FOLDER"}
|
| 29 |
+
|
| 30 |
+
### create_directory
|
| 31 |
+
Template:
|
| 32 |
+
{"path": "/ABSOLUTE/PATH/TO/FOLDER"}
|
| 33 |
+
|
| 34 |
+
### move_file
|
| 35 |
+
Template:
|
| 36 |
+
{"path": "/ABSOLUTE/PATH/TO/SOURCE", "destination_path": "/ABSOLUTE/PATH/TO/DESTINATION"}
|
| 37 |
+
|
| 38 |
+
### edit_block
|
| 39 |
+
Template:
|
| 40 |
+
{"path": "/ABSOLUTE/PATH/TO/FILE", "start_line": 1, "end_line": 1, "new_text": "..."}
|
| 41 |
+
|
| 42 |
+
### start_search
|
| 43 |
+
Template:
|
| 44 |
+
{"query": "..."}
|
| 45 |
+
|
| 46 |
+
---
|
| 47 |
+
|
| 48 |
+
## C) PRE-FLIGHT CHECK (MANDATORY)
|
| 49 |
+
Before sending ANY tool call, you MUST verify:
|
| 50 |
+
1) The JSON contains a key named "path" if a path is needed.
|
| 51 |
+
2) The JSON does NOT contain "file_path" / "filename" / "source".
|
| 52 |
+
3) The path value starts with "/".
|
| 53 |
+
|
| 54 |
+
If any check fails, rewrite the JSON until all checks pass.
|
| 55 |
+
|
| 56 |
+
---
|
| 57 |
+
|
| 58 |
+
## D) READING POLICY
|
| 59 |
+
If user asks to "Read <path>":
|
| 60 |
+
- DO NOT start_process
|
| 61 |
+
- DO NOT interact_with_process
|
| 62 |
+
- Call read_file with the template above.
|
| 63 |
+
|
| 64 |
+
---
|
| 65 |
+
|
| 66 |
+
## E) ERROR HANDLING (NO DISCUSSION)
|
| 67 |
+
If tool returns error mentioning missing "path":
|
| 68 |
+
- Immediately retry the same tool call with correct JSON:
|
| 69 |
+
{"path": "..."}.
|
| 70 |
+
|
| 71 |
+
Do NOT ask the user to provide the path if the user already provided it.
|
| 72 |
+
|
| 73 |
+
---
|
| 74 |
+
|
| 75 |
+
## F) NO HALLUCINATION FOR ANALYSIS
|
| 76 |
+
When analyzing text files (JD/resume):
|
| 77 |
+
- Only use facts in the files you read.
|
| 78 |
+
- Every fit statement must include a short quoted snippet from the file.
|
| 79 |
+
- If not present, say: "Not stated in the file."
|
| 80 |
+
|
| 81 |
+
---
|
| 82 |
+
|
| 83 |
+
## G) OUTPUT STYLE
|
| 84 |
+
Be concise. Use tools immediately.
|
file-assistant/agent.json
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model": "Qwen/Qwen3-235B-A22B-Instruct-2507",
|
| 3 |
+
"servers": [
|
| 4 |
+
{
|
| 5 |
+
"type": "stdio",
|
| 6 |
+
"command": "npx",
|
| 7 |
+
"args": ["-y", "@wonderwhy-er/desktop-commander"]
|
| 8 |
+
}
|
| 9 |
+
]
|
| 10 |
+
}
|
file-assistant/candidates/john_resume.md
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# John Doe
|
| 2 |
+
|
| 3 |
+
**Contact Information**
|
| 4 |
+
- Email: email@example.com
|
| 5 |
+
- Phone: (+1) 123-456-7890
|
| 6 |
+
- Location: 1234 Abc Street, Example, EX 01234
|
| 7 |
+
- GitHub: github.com/example
|
| 8 |
+
- LinkedIn: linkedin.com/in/example
|
| 9 |
+
- Website: example.com
|
| 10 |
+
|
| 11 |
+
## Experience
|
| 12 |
+
|
| 13 |
+
**Machine Learning Engineer Intern** | Slow Feet Technology | Jul 2021 - Present
|
| 14 |
+
- Developed food-agnostic formulation for cross-ingredient meal cooking
|
| 15 |
+
- Created competitive cream of mushroom soup recipe, published in NeurIPS 2099
|
| 16 |
+
- Built specialized pan for meal cooking research
|
| 17 |
+
|
| 18 |
+
**Research Intern** | Paddling University | Aug 2020 - Present
|
| 19 |
+
- Designed efficient mapo tofu quality estimation method using thermometer
|
| 20 |
+
- Proposed fast stir frying algorithm for tofu cooking, published in CVPR 2077
|
| 21 |
+
- Outperformed SOTA methods with improved efficiency
|
| 22 |
+
|
| 23 |
+
**Research Assistant** | Huangdu Institute of Technology | Mar 2020 - Jun 2020
|
| 24 |
+
- Developed novel framework using spoon and chopsticks for eating mapo tofu
|
| 25 |
+
- Designed tofu filtering strategy inspired by beans grinding method
|
| 26 |
+
- Created evaluation criteria for eating plan novelty and diversity
|
| 27 |
+
|
| 28 |
+
**Research Intern** | Paddling University | Jul 2018 - Aug 2018
|
| 29 |
+
- Designed dual sandwiches using traditional burger ingredients
|
| 30 |
+
- Utilized structure duality to boost cooking speed for shared ingredients
|
| 31 |
+
- Outperformed baselines on QWE'15 and ASDF'14 datasets
|
| 32 |
+
|
| 33 |
+
## Education
|
| 34 |
+
|
| 35 |
+
**M.S. in Computer Science** | University of Charles River | Sep 2021 - Jan 2023
|
| 36 |
+
- Location: Boston, MA
|
| 37 |
+
|
| 38 |
+
**B.Eng. in Software Engineering** | Huangdu Institute of Technology | Sep 2016 - Jul 2020
|
| 39 |
+
- Location: Shanghai, China
|
| 40 |
+
|
| 41 |
+
## Skills
|
| 42 |
+
|
| 43 |
+
**Programming Languages:** Python, JavaScript/TypeScript, HTML/CSS, Java
|
| 44 |
+
**Tools and Frameworks:** Git, PyTorch, Keras, scikit-learn, Linux, Vue, React, Django, LaTeX
|
| 45 |
+
**Languages:** English (proficient), Indonesia (native)
|
| 46 |
+
|
| 47 |
+
## Awards and Honors
|
| 48 |
+
|
| 49 |
+
- **Gold**, International Collegiate Catching Fish Contest (ICCFC) | 2018
|
| 50 |
+
- **First Prize**, China National Scholarship for Outstanding Culinary Skills | 2017, 2018
|
| 51 |
+
|
| 52 |
+
## Publications
|
| 53 |
+
|
| 54 |
+
**Eating is All You Need** | NeurIPS 2099
|
| 55 |
+
- Authors: Haha Ha, San Zhang
|
| 56 |
+
|
| 57 |
+
**You Only Cook Once: Unified, Real-Time Mapo Tofu Recipe** | CVPR 2077 (Best Paper Honorable Mention)
|
| 58 |
+
- Authors: Haha Ha, San Zhang, Si Li, Wu Wang
|
file-assistant/invitation.md
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Interview Invitation
|
| 2 |
+
|
| 3 |
+
Dear John Doe,
|
| 4 |
+
|
| 5 |
+
We've reviewed your impressive background in food technology and machine learning, and we're excited to invite you for an interview for our Senior Food Technology Engineer position.
|
| 6 |
+
|
| 7 |
+
Your innovative work at the intersection of culinary science and AI, including your publications in NeurIPS and CVPR, demonstrates exactly the kind of culinary innovation we're looking for.
|
| 8 |
+
|
| 9 |
+
Please let us know your availability for an interview next week. We'd love to discuss how your expertise in algorithmic cooking optimization could contribute to our team.
|
| 10 |
+
|
| 11 |
+
Best regards,
|
| 12 |
+
|
| 13 |
+
Hiring Team
|
| 14 |
+
Senior Food Technology Engineer Search Committee
|
file-assistant/job_description.md
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Senior Food Technology Engineer
|
| 2 |
+
|
| 3 |
+
## About the Role
|
| 4 |
+
We're seeking a culinary innovator to transform cooking processes into precise algorithms and AI systems.
|
| 5 |
+
|
| 6 |
+
## What You'll Do
|
| 7 |
+
- Convert cooking instructions into measurable algorithms
|
| 8 |
+
- Develop AI-powered kitchen tools
|
| 9 |
+
- Create food quality assessment systems
|
| 10 |
+
- Build recipe-following AI models
|
| 11 |
+
|
| 12 |
+
## Requirements
|
| 13 |
+
- MS in Computer Science (food-related thesis preferred)
|
| 14 |
+
- Python and PyTorch expertise
|
| 15 |
+
- Proven experience combining food science with ML
|
| 16 |
+
- Strong communication skills using culinary metaphors
|
| 17 |
+
|
| 18 |
+
## Perks
|
| 19 |
+
- Access to experimental kitchen
|
| 20 |
+
- Continuous taste-testing opportunities
|
| 21 |
+
- Collaborative tech-foodie team environment
|
| 22 |
+
|
| 23 |
+
*Note: Must attend conferences and publish on algorithmic cooking optimization.*
|
| 24 |
+
|
tiny-agent/agent.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model": "Qwen/Qwen3-235B-A22B-Instruct-2507",
|
| 3 |
+
"servers": [
|
| 4 |
+
{
|
| 5 |
+
"type": "stdio",
|
| 6 |
+
"command": "npx",
|
| 7 |
+
"args": [
|
| 8 |
+
"mcp-remote",
|
| 9 |
+
"https://cocolook-mcp-course-sentiment.hf.space/gradio_api/mcp/sse"
|
| 10 |
+
]
|
| 11 |
+
}
|
| 12 |
+
]
|
| 13 |
+
}
|
tiny-agent/agent.py
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import os
|
| 2 |
+
|
| 3 |
+
from huggingface_hub import Agent
|
| 4 |
+
|
| 5 |
+
agent = Agent(
|
| 6 |
+
model="Qwen/Qwen2.5-72B-Instruct",
|
| 7 |
+
# provider="nebius",
|
| 8 |
+
servers=[
|
| 9 |
+
{
|
| 10 |
+
"command": "npx",
|
| 11 |
+
"args": [
|
| 12 |
+
"mcp-remote",
|
| 13 |
+
"https://cocolook-mcp-course-sentiment.hf.space/gradio_api/mcp/sse" # Your Gradio MCP server
|
| 14 |
+
]
|
| 15 |
+
}
|
| 16 |
+
],
|
| 17 |
+
)
|