Package index
-
add_text()
- Add text to a prompt
-
add_tools()
- Add function-calling to prompt
-
answer_as_integer()
- Make LLM answer as an integer (between min and max)
-
answer_by_chain_of_thought()
- Set chain of thought mode for a prompt
-
construct_prompt_text()
- Construct prompt text from a prompt object
-
create_llm_feedback()
- Create an llm feedback object
-
create_llm_provider()
- Generic function to assist in creating llm_provider objects
-
create_ollama_llm_provider()
- Create a new Ollama llm_provider instance
-
create_openai_llm_provider()
- Create a new OpenAI llm_provider instance
-
extract_doc_section()
- Extract a specific section from a function's docstring-like documentation block
-
extract_function_docs()
- Extract docstring-documentation from a function
-
get_base_prompt()
- Get base prompt from prompt
-
get_extractions_and_validations()
- Get extractions and validations from a prompt
-
get_prompt_wraps()
- Get prompt wraps from prompt
-
get_prompt_wraps_ordered()
- Extract only prompt wraps and reorder them in order of operations
-
prompt(<character>)
- Method to create a prompt object from a character string
-
prompt(<default>)
- Default method to create a prompt object
-
prompt(<prompt>)
- Method to validate a prompt object
-
prompt()
- Methods to create and manipulate prompt objects
-
prompt_wrap(<default>)
- Default method for prompt_wrap
-
prompt_wrap(<prompt>)
- prompt_wrap method for when a prompt object is supplied
-
prompt_wrap()
- Wrap a prompt with additional functionality
-
prompt_wrap_internal()
- Internal function to append a prompt wrap to a prompt object
-
send_prompt()
- Send a prompt to a LLM provider
-
set_system_prompt()
- Set system prompt
-
validate_chat_history()
- Validate chat history