MCPcopy Create free account

hub / github.com/disler/mermaid-js-ai-agent / functions

Functions53 in github.com/disler/mermaid-js-ai-agent

↓ 14 callersMethodrun
Run a competition between models on a list of prompts. Runs the MinimalChainable.run method for each model for each prompt and evalu
src/mermaid_agent/modules/chain.py:11
↓ 7 callersMethodto_delim_text_file
(name: str, content: List[Union[str, dict, list]])
src/mermaid_agent/modules/chain.py:212
↓ 3 callersFunctionbuild_model
()
src/mermaid_agent/mermaid_agent.py:16
↓ 2 callersFunctionbuild_big_3_models
()
src/mermaid_agent/modules/llm_module.py:51
↓ 2 callersFunctionbuild_file_path
(name: str)
src/mermaid_agent/modules/utils.py:9
↓ 2 callersFunctionevaluator
(outputs: List[str])
src/mermaid_agent/tests/chainable_test.py:354
↓ 2 callersFunctionget_model_name
(model: llm.Model)
src/mermaid_agent/modules/llm_module.py:31
↓ 1 callersFunctionbuild_gemini_duo
()
src/mermaid_agent/modules/llm_module.py:105
↓ 1 callersFunctionbuild_image
(graph, filename)
src/mermaid_agent/modules/mermaid.py:9
↓ 1 callersFunctionbuild_latest_openai
()
src/mermaid_agent/modules/llm_module.py:68
↓ 1 callersFunctionbuild_sonnet_3_5
()
src/mermaid_agent/modules/llm_module.py:35
↓ 1 callersFunctioncurrent_date_time_str
()
src/mermaid_agent/modules/utils.py:33
↓ 1 callersFunctionone_shot_mermaid_agent
(params: OneShotMermaidParams)
src/mermaid_agent/mermaid_agent.py:23
↓ 1 callersFunctionresolution_mermaid_agent
(params: ResolutionMermaidParams)
src/mermaid_agent/mermaid_agent.py:201
↓ 1 callersMethodrun_parallel
Run a competition between models on a list of prompts in parallel. This method is similar to the 'run' method but utilizes parallel
src/mermaid_agent/modules/chain.py:64
↓ 1 callersFunctionsave_image_locally
(img, filename)
src/mermaid_agent/modules/mermaid.py:35
Method__init__
(self, name)
src/mermaid_agent/tests/chainable_test.py:210
Functionbuild_big_3_plus_mini_models
()
src/mermaid_agent/modules/llm_module.py:77
Functionbuild_file_name_session
(name: str, session_id: str)
src/mermaid_agent/modules/utils.py:15
Functionbuild_mini_model
()
src/mermaid_agent/modules/llm_module.py:44
Functionbulk_mermaid_agent
(params: BulkMermaidParams)
src/mermaid_agent/mermaid_agent.py:280
Functionconditional_render
(prompt, context, start_delim="% if", end_delim="% endif")
src/mermaid_agent/modules/llm_module.py:10
Functioncurrent_date_str
()
src/mermaid_agent/modules/utils.py:37
Functiondefault_serializer
(obj)
src/mermaid_agent/modules/utils.py:22
Functiondict_item_diff_by_set
( previous_list: List[Dict], current_list: List[Dict], set_key: str )
src/mermaid_agent/modules/utils.py:41
Functioniterate_mermaid_agent
(params: IterateMermaidParams)
src/mermaid_agent/mermaid_agent.py:294
Functionmain
Entry point for the Mermaid agent CLI.
src/mermaid_agent/main.py:138
Functionmer
Generates a Mermaid chart in one shot.
src/mermaid_agent/main.py:34
Functionmer_bulk
Generates multiple Mermaid charts in one shot.
src/mermaid_agent/main.py:120
Functionmer_iter
Generates a Mermaid chart iteratively, allowing for user refinement.
src/mermaid_agent/main.py:50
Functionmm
(graph, filename)
src/mermaid_agent/modules/mermaid.py:46
Functionmock_callable_prompt
(model, prompt)
src/mermaid_agent/tests/chainable_test.py:18
Functionmock_evaluator
(outputs)
src/mermaid_agent/tests/chainable_test.py:218
Functionmock_get_model_name
(model)
src/mermaid_agent/tests/chainable_test.py:231
Functionparse_markdown_backticks
(str)
src/mermaid_agent/modules/llm_module.py:15
Methodprocess_model
(model)
src/mermaid_agent/modules/chain.py:92
Functionprompt
(model: llm.Model, prompt: str)
src/mermaid_agent/modules/llm_module.py:26
Methodrun
( context: Dict[str, Any], model: Any, callable: Callable, prompts: List[str] )
src/mermaid_agent/modules/chain.py:131
Functionshow_image
(img)
src/mermaid_agent/modules/mermaid.py:39
Functiontest_build_big3_models
()
src/mermaid_agent/tests/llm_test.py:24
Functiontest_build_gemini_duo
()
src/mermaid_agent/tests/llm_test.py:53
Functiontest_chainable_empty_context
()
src/mermaid_agent/tests/chainable_test.py:151
Functiontest_chainable_json_output
()
src/mermaid_agent/tests/chainable_test.py:78
Functiontest_chainable_json_output_with_markdown
()
src/mermaid_agent/tests/chainable_test.py:171
Functiontest_chainable_reference_entire_json_output
()
src/mermaid_agent/tests/chainable_test.py:103
Functiontest_chainable_reference_long_output_value
()
src/mermaid_agent/tests/chainable_test.py:125
Functiontest_chainable_run
()
src/mermaid_agent/tests/chainable_test.py:33
Functiontest_chainable_solo
()
src/mermaid_agent/tests/chainable_test.py:13
Functiontest_chainable_with_output
()
src/mermaid_agent/tests/chainable_test.py:54
Functiontest_fusion_chain_run
()
src/mermaid_agent/tests/chainable_test.py:207
Functiontest_real_fusion_chain_run
()
src/mermaid_agent/tests/chainable_test.py:304
Functiontest_sonnet_3_5_model
()
src/mermaid_agent/tests/llm_test.py:9
Functionto_json_file_pretty
(name: str, content: Union[Dict, List])
src/mermaid_agent/modules/utils.py:21