bumpy-florist-37019
12/03/2025, 5:32 AMtall-airline-16756
12/03/2025, 5:32 AMtall-airline-16756
12/03/2025, 5:32 AMuser_id, start_time).
• Constrain inputs with enums or schemas where possible
◦ Use enums or schema validators (e.g., zod) for limited-choice parameters to reduce ambiguity and improve parsing.
• Keep parameter formats predictable and machine-friendly
◦ Prefer ISO 8601 for timestamps, canonicalized IDs, and well-defined units (e.g., seconds, bytes). Document expected formats in the parameter description.
• Return structured, meaningful values — not just free text
◦ Return JSON-like objects with explicit fields so the model can reason about next steps. If no response is needed, return None or nothing to complete silently.
• Handle and surface errors clearly
◦ Raise a structured error (e.g., ToolError) with a concise message and, when helpful, an error code or suggested next action.
• Avoid vague or overloaded descriptions and parameters
◦ Don’t pack multiple responsibilities into one tool or use ambiguous parameter names like data without a schema. Split into separate tools or add detailed parameter schemas.
• Favor short, concrete examples in the description if helpful
◦ One or two short examples of valid inputs/outputs can greatly improve correct usage.
If you want, I can:
• Review a specific tool description/schema you have and suggest edits for Qwen/Groq compatibility.
• Provide a short template you can copy for tool descriptions and parameter schemas. Sources: Tool definition and use | LiveKit docs