Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/llm-workflow-engine/llm-workflow-engine
/ functions
Functions
897 in github.com/llm-workflow-engine/llm-workflow-engine
⨍
Functions
897
◇
Types & classes
56
↳
Endpoints
7
↓ 3 callers
Method
create_new_conversation_if_needed
Create new conversation if it doesn't exist. :param title: Conversation title, defaults to None :type title: str, optional
lwe/backends/api/conversation_storage_manager.py:81
↓ 3 callers
Method
customization_config
(self)
lwe/core/provider.py:442
↓ 3 callers
Method
execute_llm_non_streaming
(self, messages)
lwe/backends/api/request.py:404
↓ 3 callers
Method
execute_tool_call
(self, tool_call)
lwe/backends/api/request.py:450
↓ 3 callers
Method
extract_metadata_keys
Extracts specified keys from the metadata. :param keys: Keys to be extracted from the metadata. :type keys: list :pa
lwe/core/template_manager.py:226
↓ 3 callers
Method
full_name
(self, name)
lwe/core/provider_manager.py:22
↓ 3 callers
Method
get_by_username
(self, username)
lwe/backends/api/user.py:25
↓ 3 callers
Method
get_customization_value
(self, keys)
lwe/core/provider.py:200
↓ 3 callers
Method
get_langchain_tool
(self, tool_name)
lwe/core/tool_manager.py:79
↓ 3 callers
Method
get_preset_metadata_customizations
(self, preset_name)
lwe/backends/api/request.py:188
↓ 3 callers
Method
get_token_encoding
Get token encoding for a model. :raises NotImplementedError: If unsupported model :raises Exception: If error getting encodi
lwe/core/token_manager.py:20
↓ 3 callers
Method
get_tool_config
(self, tool_name)
lwe/core/tool_manager.py:178
↓ 3 callers
Method
get_users
(self, limit=None, offset=None)
lwe/backends/api/user.py:101
↓ 3 callers
Method
handle_non_tool_response
(self, response_message, new_messages)
lwe/backends/api/request.py:436
↓ 3 callers
Method
handle_tool_calls
(self, tool_calls, new_messages)
lwe/backends/api/request.py:425
↓ 3 callers
Method
is_langchain_tool
(self, tool_name)
lwe/core/tool_manager.py:75
↓ 3 callers
Method
is_system_preset
(self, filepath)
lwe/core/preset_manager.py:169
↓ 3 callers
Method
is_system_workflow
(self, filepath)
lwe/core/workflow_manager.py:238
↓ 3 callers
Method
log_tool_call
(self, tool_call)
lwe/backends/api/request.py:444
↓ 3 callers
Method
login
Log in as a user :param user: The user to log in as :type user: User :return: A tuple containing the success status
lwe/backends/api/repl.py:375
↓ 3 callers
Method
make_request
Ask the LLM a question, return and optionally stream a response. :param input: The input to be sent to the LLM, can be a string for
lwe/backends/api/backend.py:777
↓ 3 callers
Method
make_temp_template
Create a temporary template. :param template_contents: The contents to be written to the temporary template :type template_c
lwe/core/template_manager.py:328
↓ 3 callers
Method
message_from_storage
(self, message)
lwe/backends/api/message.py:32
↓ 3 callers
Method
new_conversation
Start a new conversation.
lwe/backends/api/backend.py:710
↓ 3 callers
Method
orm_add_user
(self, username, password, email, default_preset="", preferences=None)
lwe/backends/api/orm.py:185
↓ 3 callers
Method
orm_get_user
(self, user_id)
lwe/backends/api/orm.py:237
↓ 3 callers
Function
output_response
(response)
lwe/core/util.py:214
↓ 3 callers
Method
prepare_config
(self, config)
lwe/backends/api/request.py:126
↓ 3 callers
Method
prepare_new_conversation_messages
Prepare new conversation messages. :returns: List of new messages :rtype: list
lwe/backends/api/request.py:250
↓ 3 callers
Function
print_status_message
(success, message, style=None)
lwe/core/util.py:128
↓ 3 callers
Method
process_template_builtin_variables
Process the built-in variables in a template. :param template_name: The name of the template :type template_name: str
lwe/core/template_manager.py:284
↓ 3 callers
Method
remove_temp_template
Remove a temporary template. :param template_name: The name of the temporary template :type template_name: str :retu
lwe/core/template_manager.py:342
↓ 3 callers
Method
run
(self)
lwe/backends/api/database.py:122
↓ 3 callers
Method
run_migrations
(self)
lwe/backends/api/schema/updater.py:64
↓ 3 callers
Method
run_template_setup
Sets up the run of a template. :param template_name: Name of the template to run. :param substitutions: Optional dictionary
lwe/backends/api/backend.py:84
↓ 3 callers
Method
set_current_user
Set the current user. :param user: User object, defaults to None :type user: User, optional :returns: success, prese
lwe/backends/api/backend.py:596
↓ 3 callers
Method
set_customization_value
(self, keys, new_value)
lwe/core/provider.py:216
↓ 3 callers
Method
set_max_submission_tokens
Set the max submission tokens. :param max_submission_tokens: Max submission tokens :type max_submission_tokens: int
lwe/backends/api/backend.py:533
↓ 3 callers
Method
set_model
Set the active model. :param model_name: Name of model :type model_name: str :returns: success, customizations, mess
lwe/backends/api/backend.py:344
↓ 3 callers
Method
setup_request_config
Set up the configuration for the request. :param preset_name: Override preset name :type preset_name: str, optional
lwe/backends/api/request.py:70
↓ 3 callers
Function
split_on_delimiter
(string, delimiter=",")
lwe/core/util.py:289
↓ 3 callers
Method
template_builtin_variables
This method returns a dictionary of built-in variables. :return: A dictionary where the key is the variable name and the value is th
lwe/core/template_manager.py:45
↓ 3 callers
Method
user_found_message
(self, user)
lwe/backends/api/user.py:14
↓ 3 callers
Method
write_log_context
Write current conversation context to log file if logging is enabled.
lwe/backends/api/backend.py:738
↓ 2 callers
Method
_call
Rotate through responses.
lwe/plugins/provider_fake_llm.py:62
↓ 2 callers
Method
_delete_conversation
(self, id, label=None)
lwe/core/repl.py:338
↓ 2 callers
Method
_delete_current_conversation
(self)
lwe/core/repl.py:352
↓ 2 callers
Method
_merge_configs
(self, default, config)
lwe/core/config.py:128
↓ 2 callers
Method
_set_prompt
(self, prefix="")
lwe/core/repl.py:281
↓ 2 callers
Method
action_template_show
Display a template. :param template_name: The name of the template. :type template_name: str
lwe/core/repl.py:1042
↓ 2 callers
Method
add_new_messages_to_conversation
Add new messages to a conversation. :param new_messages: New messages :type new_messages: list :param title: Conversation tit
lwe/backends/api/conversation_storage_manager.py:105
↓ 2 callers
Method
ask
Ask the LLM a question and return response. :param input: The input to be sent to the LLM. :type input: str :request
lwe/backends/api/backend.py:883
↓ 2 callers
Method
clean_results
(self, results)
lwe/examples/tools/store_sentiment_and_topics.py:23
↓ 2 callers
Method
close_log
Close the current log file if one is open.
lwe/backends/api/backend.py:770
↓ 2 callers
Method
collect_template_variable_values
(self, template_name, variables=None)
lwe/core/repl.py:210
↓ 2 callers
Method
convert_dict_to_message
Convert an LWE message dictionary to a LangChain message.
lwe/core/provider.py:403
↓ 2 callers
Method
copy_template
Copies a template file to a new location. :param old_name: The name of the existing template file. :type old_name: str
lwe/core/template_manager.py:166
↓ 2 callers
Method
create_engine_and_metadata
(self)
lwe/backends/api/orm.py:103
↓ 2 callers
Method
default_customizations
(self, defaults=None)
lwe/core/provider.py:150
↓ 2 callers
Method
delete_conversation
Delete a conversation. :param conversation_id: Conversation id, defaults to current :type conversation_id: int, optional :ret
lwe/backends/api/backend.py:626
↓ 2 callers
Function
dict_to_pretty_json
(dict_obj)
lwe/core/util.py:209
↓ 2 callers
Method
display_user
Display user information :param user: The user object to display information for :type user: User :return: None
lwe/backends/api/repl.py:458
↓ 2 callers
Method
edit_conversation_title
(self, conversation_id, new_title)
lwe/backends/api/conversation.py:47
↓ 2 callers
Method
edit_run_template
(self, template_content, suffix="md")
lwe/core/repl.py:201
↓ 2 callers
Method
edit_user
Edit user information :param user: The user object to edit :type user: User :return: A tuple containing the success
lwe/backends/api/repl.py:523
↓ 2 callers
Method
extract_template_run_overrides
Extracts template run overrides from metadata. :param metadata: The metadata from which to extract overrides. :type metadata
lwe/core/template_manager.py:244
↓ 2 callers
Method
format_responses_content
(self, content_list)
lwe/plugins/provider_chat_openai.py:277
↓ 2 callers
Method
get_command_help
(self, command)
lwe/core/repl.py:240
↓ 2 callers
Method
get_command_method
(self, command)
lwe/core/repl.py:1408
↓ 2 callers
Method
get_conversations
(self, user_id, limit=None, offset=None, order_desc=True)
lwe/backends/api/conversation.py:7
↓ 2 callers
Method
get_examples
(self, example_type)
lwe/plugins/examples.py:45
↓ 2 callers
Method
get_last_message
(self, conversation_id)
lwe/backends/api/message.py:67
↓ 2 callers
Method
get_plugins
(self)
lwe/core/plugin_manager.py:154
↓ 2 callers
Function
get_preset_name
(preset)
lwe/core/util.py:485
↓ 2 callers
Method
get_provider_plugins
(self)
lwe/core/provider_manager.py:14
↓ 2 callers
Method
get_raw_template
Retrieve the raw source of a template by its name. :param template_name: The name of the template to retrieve. :type templat
lwe/core/template_manager.py:75
↓ 2 callers
Method
get_shell_method
(self, method_string)
lwe/core/repl.py:1414
↓ 2 callers
Function
get_template_user_message
(backend)
tests/system/test_api_backend_template.py:35
↓ 2 callers
Method
init_system_message
Initialize the system message from config.
lwe/backends/api/backend.py:244
↓ 2 callers
Method
initialize_backend
Initializes the backend with provided or default configuration, and sets up necessary attributes. This method is safe to cal
lwe/backends/api/backend.py:157
↓ 2 callers
Method
initialize_repl
(self, config=None)
lwe/core/repl.py:84
↓ 2 callers
Method
install_examples
Install example files.
lwe/plugins/examples.py:96
↓ 2 callers
Method
install_examples_confirm
(self, example_type=None)
lwe/plugins/examples.py:90
↓ 2 callers
Method
is_legacy_reasoning_model
(self, model_name)
lwe/plugins/provider_chat_openai.py:272
↓ 2 callers
Method
is_tool_response_message
Check if a message is a tool response. :param message: The message :type message: dict :returns: True if tool response
lwe/backends/api/request.py:598
↓ 2 callers
Function
is_valid_url
(url)
lwe/core/util.py:382
↓ 2 callers
Method
launch_backend
(self, interactive=True)
lwe/backends/api/repl.py:98
↓ 2 callers
Function
list_to_completion_hash
(completion_list)
lwe/core/util.py:72
↓ 2 callers
Function
list_to_markdown_list
(list_obj, indent=2)
lwe/core/util.py:387
↓ 2 callers
Method
llm_factory
(self)
lwe/core/provider.py:438
↓ 2 callers
Method
load_plugin
(self, plugin_name)
lwe/core/plugin_manager.py:128
↓ 2 callers
Method
load_tool
(self, tool_name)
lwe/core/tool_manager.py:43
↓ 2 callers
Method
load_tools
(self)
lwe/core/tool_manager.py:116
↓ 2 callers
Method
load_workflow
(self, workflow_name)
lwe/core/workflow_manager.py:159
↓ 2 callers
Method
make_llm
(self, args=None)
lwe/core/plugin.py:51
↓ 2 callers
Method
make_profile_dir
(self, base_dir, profile)
lwe/core/config.py:95
↓ 2 callers
Method
make_temp_template_dir
Create directory for temporary templates if it does not exist. :return: None
lwe/core/template_manager.py:316
↓ 2 callers
Method
make_user_template_dirs
Create directories for user templates if they do not exist. :return: None
lwe/core/template_manager.py:306
↓ 2 callers
Method
merge_preset_overrides
(self, config)
lwe/backends/api/request.py:137
↓ 2 callers
Method
object_as_dict
(self, obj)
lwe/backends/api/orm.py:116
← previous
next →
101–200 of 897, ranked by callers