MCPcopy Create free account

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

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

↓ 1 callersMethodprepare_messages_for_llm
(self, messages)
lwe/core/provider.py:372
↓ 1 callersMethodprepare_messages_method
(self)
lwe/core/provider.py:357
↓ 1 callersFunctionprint_breaking_changes
()
lwe/backends/api/schema/alembic/versions/4e642f725923_tools_migration.py:69
↓ 1 callersMethodprint_data
(self)
lwe/backends/api/database.py:107
↓ 1 callersFunctionprint_deprecation_warnings
()
lwe/backends/api/schema/alembic/versions/4e642f725923_tools_migration.py:79
↓ 1 callersFunctionprint_directory_deprecation_warnings
()
lwe/backends/api/schema/alembic/versions/4e642f725923_tools_migration.py:51
↓ 1 callersMethodregister
(self, username, email, password, default_preset="", preferences=None)
lwe/backends/api/user.py:45
↓ 1 callersMethodreload_plugin
(self, plugin_name)
lwe/core/plugin_manager.py:52
↓ 1 callersMethodreload_repl
(self)
lwe/core/repl.py:88
↓ 1 callersFunctionremove_and_create_dir
(directory_path)
lwe/core/util.py:253
↓ 1 callersFunctionremove_prefix
(text, prefix)
lwe/core/util.py:293
↓ 1 callersMethodremove_schema
(self)
lwe/backends/api/database.py:54
↓ 1 callersMethodrender_template
Render a template with variable substitutions. :param template_name: The name of the template to render :type template_name:
lwe/core/template_manager.py:110
↓ 1 callersMethodretrieve_old_messages
Retrieve old messages for a conversation. :param conversation_id: Conversation id, defaults to current :type conversation_id
lwe/backends/api/backend.py:576
↓ 1 callersMethodrun_command
(self, command, argument)
lwe/core/repl.py:1435
↓ 1 callersMethodrun_langchain_tool
(self, tool_name, input_data)
lwe/core/tool_manager.py:99
↓ 1 callersFunctionrun_migrations_offline
Run migrations in 'offline' mode. This configures the context with just a URL and not an Engine, though an Engine is acceptable here as w
lwe/backends/api/schema/alembic/env.py:35
↓ 1 callersFunctionrun_migrations_online
Run migrations in 'online' mode. In this scenario we need to create an Engine and associate a connection with the context.
lwe/backends/api/schema/alembic/env.py:59
↓ 1 callersFunctionrun_module
()
lwe/backends/api/workflow/library/lwe_llm.py:151
↓ 1 callersFunctionrun_module
()
lwe/backends/api/workflow/library/lwe_command.py:86
↓ 1 callersFunctionrun_query
(db, query, params=())
lwe/backends/api/workflow/library/lwe_sqlite_query.py:78
↓ 1 callersMethodrun_tool
Run a tool. :param tool_name: Tool name :type tool_name: str :param data: Tool arguments :type data: dict :re
lwe/backends/api/request.py:581
↓ 1 callersMethodsave_file
Save a file to the cache. :param file: The file to save. :param content: The content to save. :return: A tuple conta
lwe/core/cache_manager.py:76
↓ 1 callersMethodsave_preset
(self, preset_name, metadata, customizations, preset_dir=None)
lwe/core/preset_manager.py:132
↓ 1 callersMethodselect_preset
(self, allow_empty=False)
lwe/backends/api/repl.py:115
↓ 1 callersMethodset_available_models
Sets the available models for the provider.
lwe/backends/api/backend.py:57
↓ 1 callersMethodset_backend
(self, backend)
lwe/core/plugin.py:39
↓ 1 callersMethodset_base_shell_completions
(self)
lwe/core/repl.py:137
↓ 1 callersMethodset_config
(self)
lwe/backends/api/schema/updater.py:32
↓ 1 callersMethodset_customizations
(self, customizations)
lwe/core/provider.py:247
↓ 1 callersFunctionset_environment_variables
()
tests/conftest.py:16
↓ 1 callersMethodset_filepath
(self, filepath)
lwe/core/tool.py:20
↓ 1 callersMethodset_return_only
(self, return_only=False)
lwe/backends/api/backend.py:341
↓ 1 callersMethodset_shell
(self, shell)
lwe/core/plugin.py:42
↓ 1 callersMethodset_title
Set conversation title. :param title: New title :type title: str :param conversation_id: Conversation id, defaults t
lwe/backends/api/backend.py:638
↓ 1 callersMethodset_user_prompt
(self, user=None)
lwe/core/repl.py:295
↓ 1 callersMethodset_value
(self, keys, value)
lwe/core/provider.py:233
↓ 1 callersMethodset_workflow_environment
(self)
lwe/core/workflow_manager.py:100
↓ 1 callersMethodshow_backend_config
(self)
lwe/core/repl.py:1254
↓ 1 callersMethodshow_full_config
(self)
lwe/core/repl.py:1349
↓ 1 callersMethodshow_section_config
(self, section, section_data)
lwe/core/repl.py:1331
↓ 1 callersFunctionsnake_to_class
(string)
lwe/core/util.py:248
↓ 1 callersFunctionstore_assistant_message
(backend, conversation, message="test response")
tests/base.py:129
↓ 1 callersFunctionstore_conversation
(backend, title="Conversation")
tests/base.py:145
↓ 1 callersFunctionstore_conversation_thread
(backend, title="Conversation", rounds=1)
tests/base.py:154
↓ 1 callersFunctionstore_conversation_threads
(backend, title="Conversation", rounds=3)
tests/base.py:162
↓ 1 callersFunctionstore_system_message
(backend, conversation, message=constants.SYSTEM_MESSAGE_DEFAULT)
tests/base.py:100
↓ 1 callersFunctionstore_user_message
(backend, conversation, message="test question")
tests/base.py:113
↓ 1 callersFunctionstream_callback
(content)
tests/system/test_api_backend.py:609
↓ 1 callersMethodterminate_stream
(self, _signal, _frame)
lwe/core/repl.py:95
↓ 1 callersFunctiontransform_messages_to_chat_messages
Transform messages to chat messages. :param messages: List of messages :type messages: list :returns: List of chat messages :rty
lwe/core/util.py:398
↓ 1 callersMethodtransform_tools
(self, tools)
lwe/core/provider.py:308
↓ 1 callersFunctiontype_mapping
Map a Python data type to a corresponding JSON type string. Parameters ---------- dtype : type The Python data type to map (
lwe/core/doc_parser.py:11
↓ 1 callersFunctionunderscore_to_dash
(text)
lwe/core/util.py:64
↓ 1 callersMethodupdate_schema
(self)
lwe/backends/api/schema/updater.py:82
↓ 1 callersFunctionupgrade_function_calls_to_tool_calls
()
lwe/backends/api/schema/alembic/versions/4e642f725923_tools_migration.py:94
↓ 1 callersMethodwelcome_message
Print the welcome message :return: None
lwe/backends/api/repl.py:216
↓ 1 callersMethodwrite_log
Write prompt and response to log file if logging is enabled.
lwe/backends/api/backend.py:718
↓ 1 callersMethodwrite_plugin_cache_file
(self, data)
lwe/core/plugin.py:31
↓ 1 callersFunctionwrite_temp_file
(input_data="", suffix=None, prefix=None, dir=None)
lwe/core/util.py:223
Method_
(event)
lwe/core/repl.py:65
Method__call__
Repeat the provided word a number of times. :param word: The word to repeat. :type content: str :param repeats: The
lwe/tools/test_tool.py:8
Method__call__
(self, **kwargs)
lwe/core/tool.py:41
Method__call__
Store the extracted sentiments and topics :param content: The content to reverse. :type content: str :return: A dict
lwe/examples/tools/store_sentiment_and_topics.py:33
Method__call__
Reverse the provided content :param content: The content to reverse. :type content: str :return: A dictionary contai
lwe/examples/tools/reverse_content.py:5
Method__getattr__
(self, _name)
lwe/core/util.py:28
Method__init__
( self, value_type, min_value=None, max_value=None, options=None,
lwe/core/provider.py:17
Method__init__
( self, config_dir=None, data_dir=None, profile=constants.DEFAULT_PROFILE,
lwe/core/config.py:11
Method__init__
Initializes the class with the given configuration. :param config: Configuration settings. If not provided, a default Config object
lwe/core/cache_manager.py:15
Method__init__
(self, config=None)
lwe/core/repl.py:70
Method__init__
(self, config=None)
lwe/core/workflow_manager.py:19
Method__init__
(self, config=None, additional_presets=None)
lwe/core/preset_manager.py:28
Method__init__
(self, config, plugin_manager)
lwe/core/provider_manager.py:8
Method__init__
Initialize the tool cache.
lwe/core/tool_cache.py:9
Method__init__
(self, config=None, cache_manager=None)
lwe/core/plugin.py:12
Method__init__
Initializes the class with the given configuration. :param config: Configuration settings. If not provided, a default Config object
lwe/core/template_manager.py:20
Method__init__
(self, config)
lwe/core/tool.py:13
Method__init__
(self, config=None, additional_tools=None)
lwe/core/tool_manager.py:23
Method__init__
( self, config=None, backend=None, cache_manager=None, search_path=Non
lwe/core/plugin_manager.py:14
Method__init__
(self, config, provider, model_name, tool_cache)
lwe/core/token_manager.py:13
Method__init__
(self, config, args)
lwe/backends/api/database.py:64
Method__init__
(self, config=None)
lwe/backends/api/repl.py:27
Method__init__
(self, config=None)
lwe/backends/api/orm.py:96
Method__init__
(self, config=None, orm=None)
lwe/backends/api/orm.py:121
Method__init__
( self, config, tool_manager, current_user=None, conversation_id=None,
lwe/backends/api/conversation_storage_manager.py:19
Method__init__
Initializes the Backend instance. This method sets up attributes that should only be initialized once. :param config: Optio
lwe/backends/api/backend.py:35
Method__init__
(self, config=None, orm=None)
lwe/backends/api/message.py:13
Method__init__
( self, config=None, provider=None, provider_manager=None, tool_manage
lwe/backends/api/request.py:20
Method__init__
(self, config=None, orm=None)
lwe/backends/api/schema/updater.py:22
Method__init__
(self, **kwargs)
lwe/plugins/provider_chat_openai_compat.py:21
Method__init__
(self, **kwargs)
lwe/plugins/provider_fake_llm.py:146
Method__new__
(cls, name, config=None)
lwe/core/logger.py:7
Method_astream
Rotate through responses.
lwe/plugins/provider_fake_llm.py:118
Method_call
( self, messages: List[BaseMessage], stop: Optional[List[str]] = None, run_man
lwe/plugins/provider_fake_llm.py:153
Method_generate
( self, messages: List[BaseMessage], stop: Optional[List[str]] = None, run_man
lwe/plugins/provider_fake_llm.py:50
Method_identifying_params
(self)
lwe/plugins/provider_fake_llm.py:47
Method_llm_type
Return type of llm.
lwe/plugins/provider_chat_openai_compat.py:17
Method_llm_type
(self)
lwe/plugins/provider_fake_llm.py:43
Method_llm_type
Return type of llm.
lwe/plugins/provider_chat_openai.py:10
Function_set_sqlite_pragma
(conn, _record)
lwe/backends/api/orm.py:21
← previousnext →401–500 of 897, ranked by callers