MCPcopy Index your code

hub / github.com/llm-workflow-engine/llm-workflow-engine / functions

Functions897 in github.com/llm-workflow-engine/llm-workflow-engine

↓ 3 callersMethodcreate_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 callersMethodcustomization_config
(self)
lwe/core/provider.py:442
↓ 3 callersMethodexecute_llm_non_streaming
(self, messages)
lwe/backends/api/request.py:404
↓ 3 callersMethodexecute_tool_call
(self, tool_call)
lwe/backends/api/request.py:450
↓ 3 callersMethodextract_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 callersMethodfull_name
(self, name)
lwe/core/provider_manager.py:22
↓ 3 callersMethodget_by_username
(self, username)
lwe/backends/api/user.py:25
↓ 3 callersMethodget_customization_value
(self, keys)
lwe/core/provider.py:200
↓ 3 callersMethodget_langchain_tool
(self, tool_name)
lwe/core/tool_manager.py:79
↓ 3 callersMethodget_preset_metadata_customizations
(self, preset_name)
lwe/backends/api/request.py:188
↓ 3 callersMethodget_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 callersMethodget_tool_config
(self, tool_name)
lwe/core/tool_manager.py:178
↓ 3 callersMethodget_users
(self, limit=None, offset=None)
lwe/backends/api/user.py:101
↓ 3 callersMethodhandle_non_tool_response
(self, response_message, new_messages)
lwe/backends/api/request.py:436
↓ 3 callersMethodhandle_tool_calls
(self, tool_calls, new_messages)
lwe/backends/api/request.py:425
↓ 3 callersMethodis_langchain_tool
(self, tool_name)
lwe/core/tool_manager.py:75
↓ 3 callersMethodis_system_preset
(self, filepath)
lwe/core/preset_manager.py:169
↓ 3 callersMethodis_system_workflow
(self, filepath)
lwe/core/workflow_manager.py:238
↓ 3 callersMethodlog_tool_call
(self, tool_call)
lwe/backends/api/request.py:444
↓ 3 callersMethodlogin
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 callersMethodmake_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 callersMethodmake_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 callersMethodmessage_from_storage
(self, message)
lwe/backends/api/message.py:32
↓ 3 callersMethodnew_conversation
Start a new conversation.
lwe/backends/api/backend.py:710
↓ 3 callersMethodorm_add_user
(self, username, password, email, default_preset="", preferences=None)
lwe/backends/api/orm.py:185
↓ 3 callersMethodorm_get_user
(self, user_id)
lwe/backends/api/orm.py:237
↓ 3 callersFunctionoutput_response
(response)
lwe/core/util.py:214
↓ 3 callersMethodprepare_config
(self, config)
lwe/backends/api/request.py:126
↓ 3 callersMethodprepare_new_conversation_messages
Prepare new conversation messages. :returns: List of new messages :rtype: list
lwe/backends/api/request.py:250
↓ 3 callersFunctionprint_status_message
(success, message, style=None)
lwe/core/util.py:128
↓ 3 callersMethodprocess_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 callersMethodremove_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 callersMethodrun
(self)
lwe/backends/api/database.py:122
↓ 3 callersMethodrun_migrations
(self)
lwe/backends/api/schema/updater.py:64
↓ 3 callersMethodrun_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 callersMethodset_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 callersMethodset_customization_value
(self, keys, new_value)
lwe/core/provider.py:216
↓ 3 callersMethodset_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 callersMethodset_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 callersMethodsetup_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 callersFunctionsplit_on_delimiter
(string, delimiter=",")
lwe/core/util.py:289
↓ 3 callersMethodtemplate_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 callersMethoduser_found_message
(self, user)
lwe/backends/api/user.py:14
↓ 3 callersMethodwrite_log_context
Write current conversation context to log file if logging is enabled.
lwe/backends/api/backend.py:738
↓ 2 callersMethod_call
Rotate through responses.
lwe/plugins/provider_fake_llm.py:62
↓ 2 callersMethod_delete_conversation
(self, id, label=None)
lwe/core/repl.py:338
↓ 2 callersMethod_delete_current_conversation
(self)
lwe/core/repl.py:352
↓ 2 callersMethod_merge_configs
(self, default, config)
lwe/core/config.py:128
↓ 2 callersMethod_set_prompt
(self, prefix="")
lwe/core/repl.py:281
↓ 2 callersMethodaction_template_show
Display a template. :param template_name: The name of the template. :type template_name: str
lwe/core/repl.py:1042
↓ 2 callersMethodadd_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 callersMethodask
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 callersMethodclean_results
(self, results)
lwe/examples/tools/store_sentiment_and_topics.py:23
↓ 2 callersMethodclose_log
Close the current log file if one is open.
lwe/backends/api/backend.py:770
↓ 2 callersMethodcollect_template_variable_values
(self, template_name, variables=None)
lwe/core/repl.py:210
↓ 2 callersMethodconvert_dict_to_message
Convert an LWE message dictionary to a LangChain message.
lwe/core/provider.py:403
↓ 2 callersMethodcopy_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 callersMethodcreate_engine_and_metadata
(self)
lwe/backends/api/orm.py:103
↓ 2 callersMethoddefault_customizations
(self, defaults=None)
lwe/core/provider.py:150
↓ 2 callersMethoddelete_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 callersFunctiondict_to_pretty_json
(dict_obj)
lwe/core/util.py:209
↓ 2 callersMethoddisplay_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 callersMethodedit_conversation_title
(self, conversation_id, new_title)
lwe/backends/api/conversation.py:47
↓ 2 callersMethodedit_run_template
(self, template_content, suffix="md")
lwe/core/repl.py:201
↓ 2 callersMethodedit_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 callersMethodextract_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 callersMethodformat_responses_content
(self, content_list)
lwe/plugins/provider_chat_openai.py:277
↓ 2 callersMethodget_command_help
(self, command)
lwe/core/repl.py:240
↓ 2 callersMethodget_command_method
(self, command)
lwe/core/repl.py:1408
↓ 2 callersMethodget_conversations
(self, user_id, limit=None, offset=None, order_desc=True)
lwe/backends/api/conversation.py:7
↓ 2 callersMethodget_examples
(self, example_type)
lwe/plugins/examples.py:45
↓ 2 callersMethodget_last_message
(self, conversation_id)
lwe/backends/api/message.py:67
↓ 2 callersMethodget_plugins
(self)
lwe/core/plugin_manager.py:154
↓ 2 callersFunctionget_preset_name
(preset)
lwe/core/util.py:485
↓ 2 callersMethodget_provider_plugins
(self)
lwe/core/provider_manager.py:14
↓ 2 callersMethodget_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 callersMethodget_shell_method
(self, method_string)
lwe/core/repl.py:1414
↓ 2 callersFunctionget_template_user_message
(backend)
tests/system/test_api_backend_template.py:35
↓ 2 callersMethodinit_system_message
Initialize the system message from config.
lwe/backends/api/backend.py:244
↓ 2 callersMethodinitialize_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 callersMethodinitialize_repl
(self, config=None)
lwe/core/repl.py:84
↓ 2 callersMethodinstall_examples
Install example files.
lwe/plugins/examples.py:96
↓ 2 callersMethodinstall_examples_confirm
(self, example_type=None)
lwe/plugins/examples.py:90
↓ 2 callersMethodis_legacy_reasoning_model
(self, model_name)
lwe/plugins/provider_chat_openai.py:272
↓ 2 callersMethodis_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 callersFunctionis_valid_url
(url)
lwe/core/util.py:382
↓ 2 callersMethodlaunch_backend
(self, interactive=True)
lwe/backends/api/repl.py:98
↓ 2 callersFunctionlist_to_completion_hash
(completion_list)
lwe/core/util.py:72
↓ 2 callersFunctionlist_to_markdown_list
(list_obj, indent=2)
lwe/core/util.py:387
↓ 2 callersMethodllm_factory
(self)
lwe/core/provider.py:438
↓ 2 callersMethodload_plugin
(self, plugin_name)
lwe/core/plugin_manager.py:128
↓ 2 callersMethodload_tool
(self, tool_name)
lwe/core/tool_manager.py:43
↓ 2 callersMethodload_tools
(self)
lwe/core/tool_manager.py:116
↓ 2 callersMethodload_workflow
(self, workflow_name)
lwe/core/workflow_manager.py:159
↓ 2 callersMethodmake_llm
(self, args=None)
lwe/core/plugin.py:51
↓ 2 callersMethodmake_profile_dir
(self, base_dir, profile)
lwe/core/config.py:95
↓ 2 callersMethodmake_temp_template_dir
Create directory for temporary templates if it does not exist. :return: None
lwe/core/template_manager.py:316
↓ 2 callersMethodmake_user_template_dirs
Create directories for user templates if they do not exist. :return: None
lwe/core/template_manager.py:306
↓ 2 callersMethodmerge_preset_overrides
(self, config)
lwe/backends/api/request.py:137
↓ 2 callersMethodobject_as_dict
(self, obj)
lwe/backends/api/orm.py:116
← previousnext →101–200 of 897, ranked by callers