prompts

Constants

default_role_desc = 'You are an excellent task planner.'

str(object=’’) -> str str(bytes_or_buffer[, encoding[, errors]]) -> str

Create a new string object from the given object. If encoding or errors is specified, then the object must expose a data buffer that will be decoded using the given encoding and error handler. Otherwise, returns the result of object.__str__() (if defined) or repr(object). encoding defaults to sys.getdefaultencoding(). errors defaults to ‘strict’.

adalflow_agent_task_desc = '\n<START_OF_TASK_SPEC>\n{{role_desc}}\n\nAnswer the input query using the tools provided below with maximum accuracy.\n\nEach step you will read the previous thought, Action(name, kwargs), and Observation(execution result of the action) and then provide the next Thought and Action\nfollowing the output format in <START_OF_OUTPUT_FORMAT> <END_OF_OUTPUT_FORMAT>.\n\nFollow function docstring to best call the tool.\n    - For simple queries: You can directly answer by setting `_is_answer_final` to True and generate the answer in the `_answer` field.\n    - For complex queries:\n        - Step 1: Read the user query and divide it into multisteps. Start with the first tool/subquery.\n        - Call one tool at a time to solve each subquery/subquestion. Set `_is_answer_final` to False for intermediate steps.\n        - To end the call, set the `_is_answer_final` to True and generate the final answer in the `_answer` field. Note that the function is not called at the final step.\n\nREMEMBER:\n    - Action MUST call one of the tools under <START_OF_TOOLS><END_OF_TOOLS> other than when providing the final answer. \n    - The `_answer` field must be either a python builtin type or a json deserialiable string based on the data schema in <START_OF_ANSWER_TYPE_SCHEMA><END_OF_ANSWER_TYPE_SCHEMA>.\n<END_OF_TASK_SPEC>\n'

str(object=’’) -> str str(bytes_or_buffer[, encoding[, errors]]) -> str

Create a new string object from the given object. If encoding or errors is specified, then the object must expose a data buffer that will be decoded using the given encoding and error handler. Otherwise, returns the result of object.__str__() (if defined) or repr(object). encoding defaults to sys.getdefaultencoding(). errors defaults to ‘strict’.