Planner Maths

LangChain Hub prompt: llm-compiler/planner-maths

M
metawriter
·May 3, 2026·
262 0 49
$6.99
Prompt
369 words

Given a user query, If the query is simple reasoning, you should solve it by yourself directly and only for complex tasks, create a plan to solve it with the utmost parallelizability; never over-divide the steps (minimize the number of parallel tasks delegated when it can be handled simply). A plan should comprise an action from the following {num_tools} types: {tool_descriptions} {num_tools}. join(): Collects and combines results from prior actions.

  • An LLM agent is called upon invoking join() to either finalize the user query or wait until the plans are executed.
  • join should always be the last action in the plan, and will be called in two scenarios: (a) if the answer can be determined by gathering the outputs from tasks to generate the final response. (b) if the answer cannot be determined in the planning phase before you execute the plans. Guidelines:
  • Each action described above contains input/output types and description.
    • You must strictly adhere to the input and output types for each action.
    • The action descriptions contain the guidelines. You MUST strictly follow those guidelines when you use the actions.
  • Each action in the plan should strictly be one of the above types. Follow the Python conventions for each action.
  • Each action MUST have a unique ID, which is strictly increasing.
  • Inputs for actions can either be constants or outputs from preceding actions. In the latter case, use the format $id to denote the ID of the previous action whose output will be the input.
  • Always call join as the last action in the plan. Say '' after you call join
  • Ensure the plan maximizes parallelizability.
  • Only use the provided action types. If a query cannot be addressed using these, invoke the join action for the next steps.
  • Never introduce new actions other than the ones provided.

Remember, ONLY respond with the task list in the correct format! E.g.: idx. tool(arg_name=args) Do not forget to add dependencies for tasks using the defined format, use the format $id to denote the ID of the previous action whose output will be the input. REMEMBER: If the query is simple reasoning, you should solve it by yourself directly.

How to Use

Use with LangChain: hub.pull("llm-compiler/planner-maths")

Need help?

Connect with verified experts who can help you succeed.

Related Prompts

More prompts in Productivity & Workflow

View All
Productivity & Workflow
Universal

This Is A Prompt For Retrieval Augmented Generation. It Is Useful For Chat, QA, Or Other Applications That Rely On Passing Context To An LLM.

This is a prompt for retrieval-augmented-generation. It is useful for chat, QA, or other applications that rely on passing context to an LLM.

P
promptalchemyFree
31,980,219 389,806
Productivity & Workflow
Universal

Calculate BMI, export exercise and eating schedule

Calculate BMI body metric with explaination, then build 2 plans: 1 for exercise 2 for daily nutrition meals. Add detail KPI, budget estimate and checklist for shopping, with new input below: 1. your gender, age, weight & height (with unit name): {male, 27, 65kg, 1m65} 2. additional health goals & condition: {not sick, using cigarette}

S
schemawriter$1.99
6,544 6,581
Productivity & Workflow
Universal

Gym Routine Creation - Work Out Regiment

Generate a custom gym routine for yourself. Be as specific as possible when describing your goals, experience, and equipment. The more information you provide, the better ChatGPT will be able to understand your needs.

A
aiblueprint$1.99
5,188 5,189
Productivity & Workflow
Universal

Personalized Workout Plan Creation

Are you in need of a virtual assistant to craft the perfect personalized workout plan for you? Meet ChatGPT, your AI-powered language model ready to create workout routines tailored to your fitness goals, preferences, and limitations. ChatGPT can assist anyone from beginners to advanced athletes in reaching their fitness objectives in a fun and customized manner. Begin by supplying ChatGPT with comprehensive information about your fitness goals, current fitness level, workout preferences, and any health conditions or injuries. The more details you provide, the better ChatGPT can adapt your workout plan to your specific needs and aspirations. Regularly communicate with ChatGPT to monitor your progress, receive feedback on your form and technique, and modify your workout plan as necessary. ChatGPT can also deliver motivational messages and encouragement to keep you on track and inspired. Feel free to ask ChatGPT for variations or modifications to your workout plan if you find certain

P
promptstack$1.99
5,091 5,102
Productivity & Workflow
Universal

Growth Mindset Guru

Have ChatGPT offer you heaps of encouraging Growth Mindset advice for your child, using creative analogies where possible.

S
schemawriterFree
1,537 1,546
Productivity & Workflow
ChatGPT

A Prompt Designed For Creating Question/answer Pairs That Can Be Used Downstream For Finetuning LLMs On Question/answering Over Documents.

A prompt designed for creating question/answer pairs that can be used downstream for finetuning LLMs on question/answering over documents.

A
aicanvas$1.99
3,257 20,905