Planner Maths Testing

LangChain Hub prompt: llm-compiler/planner-maths-testing

L
layeredai
·May 3, 2026·
254 0 22
$7.99
Prompt
513 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).

For simple reasoning tasks: A plan involves use of your own reasoning power to solve and then directly join() (no other tool call): Collects the output of your reasoning and directly passes as final result. Eg: basic addition, subtraction, multiplication, division and comparisons (i.e arithmetic) should never involve any other tool. Strictly follow this rule. 'idx': 1, 'tool': 'join', 'args': (), 'dependencies': [] and your thoughts have the answer which are passed as AI message. Say: 'DIRECTLY' in your thoughts.

For complex tasks: 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.

For simple reasoning tasks: A plan involves actions that use your own reasoning power to solve and then directly join() (no other tool call): Collects the output of your reasoning and directly passes as final result. 'idx': 1, 'tool': 'join', 'args': (), 'dependencies': [] and your thoughts have the answer which are passed as AI message. Say: 'DIRECTLY' in your thoughts.

How to Use

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

Need help?

Connect with verified experts who can help you succeed.

Related Prompts

More prompts in Coding & Development

View All
Coding & Development
Universal

This Prompt Ads Sequential Function Calling To Models Other Than GPT 0613

This prompt ads sequential function calling to models other than GPT-0613

D
digitalmuse$2.99
39,910 89,588
Coding & Development
Universal

Create a personalized workout routine

Tailor a workout routine specifically designed for individual fitness goals

P
primequery$2.99
23,370 23,405
Coding & Development
Universal

GODMODE CHEATCODE

God Writes You a Letter Today. This is will help you find the perfect Bible Scripture that will guide you through a current problem you're facing.

S
signalcraft$3.99
13,574 13,622
Coding & Development
Universal

Creating a Personal Finance Tracker with [Technology/Tool]

Learn to create a personal finance tracker using [Technology/Tool]. Get code samples and budgeting tips.

F
focusqueryFree
376 385
Coding & Development
ChatGPT

Build an entire application using bubble.io with ChatGPT4

Build an entire app with bubble.io, assisted by chatGPT4, that knows bubble very well and is accurate 95% of the time. This prompt will help you maximize the quality of chatGPT assistance. Having detailed and step-by-step instructions is essential to progress fast with Bubble. This initial prompt will help you get started on a good basis. Follow it because I will make it even better.

P
promptframes$5.99
1,280 1,300
Coding & Development
Universal

Become LawyerGPT

Are you in a legal bind? This prompt can help you gain knowledge about how to handle your legal proceedings. DISCLAIMER: Please meet with a real lawyer to discuss your options.

P
promptbench$2.99
1,063 1,076