Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/disler/mermaid-js-ai-agent
/ functions
Functions
53 in github.com/disler/mermaid-js-ai-agent
⨍
Functions
53
◇
Types & classes
11
↓ 14 callers
Method
run
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 callers
Method
to_delim_text_file
(name: str, content: List[Union[str, dict, list]])
src/mermaid_agent/modules/chain.py:212
↓ 3 callers
Function
build_model
()
src/mermaid_agent/mermaid_agent.py:16
↓ 2 callers
Function
build_big_3_models
()
src/mermaid_agent/modules/llm_module.py:51
↓ 2 callers
Function
build_file_path
(name: str)
src/mermaid_agent/modules/utils.py:9
↓ 2 callers
Function
evaluator
(outputs: List[str])
src/mermaid_agent/tests/chainable_test.py:354
↓ 2 callers
Function
get_model_name
(model: llm.Model)
src/mermaid_agent/modules/llm_module.py:31
↓ 1 callers
Function
build_gemini_duo
()
src/mermaid_agent/modules/llm_module.py:105
↓ 1 callers
Function
build_image
(graph, filename)
src/mermaid_agent/modules/mermaid.py:9
↓ 1 callers
Function
build_latest_openai
()
src/mermaid_agent/modules/llm_module.py:68
↓ 1 callers
Function
build_sonnet_3_5
()
src/mermaid_agent/modules/llm_module.py:35
↓ 1 callers
Function
current_date_time_str
()
src/mermaid_agent/modules/utils.py:33
↓ 1 callers
Function
one_shot_mermaid_agent
(params: OneShotMermaidParams)
src/mermaid_agent/mermaid_agent.py:23
↓ 1 callers
Function
resolution_mermaid_agent
(params: ResolutionMermaidParams)
src/mermaid_agent/mermaid_agent.py:201
↓ 1 callers
Method
run_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 callers
Function
save_image_locally
(img, filename)
src/mermaid_agent/modules/mermaid.py:35
Method
__init__
(self, name)
src/mermaid_agent/tests/chainable_test.py:210
Function
build_big_3_plus_mini_models
()
src/mermaid_agent/modules/llm_module.py:77
Function
build_file_name_session
(name: str, session_id: str)
src/mermaid_agent/modules/utils.py:15
Function
build_mini_model
()
src/mermaid_agent/modules/llm_module.py:44
Function
bulk_mermaid_agent
(params: BulkMermaidParams)
src/mermaid_agent/mermaid_agent.py:280
Function
conditional_render
(prompt, context, start_delim="% if", end_delim="% endif")
src/mermaid_agent/modules/llm_module.py:10
Function
current_date_str
()
src/mermaid_agent/modules/utils.py:37
Function
default_serializer
(obj)
src/mermaid_agent/modules/utils.py:22
Function
dict_item_diff_by_set
( previous_list: List[Dict], current_list: List[Dict], set_key: str )
src/mermaid_agent/modules/utils.py:41
Function
iterate_mermaid_agent
(params: IterateMermaidParams)
src/mermaid_agent/mermaid_agent.py:294
Function
main
Entry point for the Mermaid agent CLI.
src/mermaid_agent/main.py:138
Function
mer
Generates a Mermaid chart in one shot.
src/mermaid_agent/main.py:34
Function
mer_bulk
Generates multiple Mermaid charts in one shot.
src/mermaid_agent/main.py:120
Function
mer_iter
Generates a Mermaid chart iteratively, allowing for user refinement.
src/mermaid_agent/main.py:50
Function
mm
(graph, filename)
src/mermaid_agent/modules/mermaid.py:46
Function
mock_callable_prompt
(model, prompt)
src/mermaid_agent/tests/chainable_test.py:18
Function
mock_evaluator
(outputs)
src/mermaid_agent/tests/chainable_test.py:218
Function
mock_get_model_name
(model)
src/mermaid_agent/tests/chainable_test.py:231
Function
parse_markdown_backticks
(str)
src/mermaid_agent/modules/llm_module.py:15
Method
process_model
(model)
src/mermaid_agent/modules/chain.py:92
Function
prompt
(model: llm.Model, prompt: str)
src/mermaid_agent/modules/llm_module.py:26
Method
run
( context: Dict[str, Any], model: Any, callable: Callable, prompts: List[str] )
src/mermaid_agent/modules/chain.py:131
Function
show_image
(img)
src/mermaid_agent/modules/mermaid.py:39
Function
test_build_big3_models
()
src/mermaid_agent/tests/llm_test.py:24
Function
test_build_gemini_duo
()
src/mermaid_agent/tests/llm_test.py:53
Function
test_chainable_empty_context
()
src/mermaid_agent/tests/chainable_test.py:151
Function
test_chainable_json_output
()
src/mermaid_agent/tests/chainable_test.py:78
Function
test_chainable_json_output_with_markdown
()
src/mermaid_agent/tests/chainable_test.py:171
Function
test_chainable_reference_entire_json_output
()
src/mermaid_agent/tests/chainable_test.py:103
Function
test_chainable_reference_long_output_value
()
src/mermaid_agent/tests/chainable_test.py:125
Function
test_chainable_run
()
src/mermaid_agent/tests/chainable_test.py:33
Function
test_chainable_solo
()
src/mermaid_agent/tests/chainable_test.py:13
Function
test_chainable_with_output
()
src/mermaid_agent/tests/chainable_test.py:54
Function
test_fusion_chain_run
()
src/mermaid_agent/tests/chainable_test.py:207
Function
test_real_fusion_chain_run
()
src/mermaid_agent/tests/chainable_test.py:304
Function
test_sonnet_3_5_model
()
src/mermaid_agent/tests/llm_test.py:9
Function
to_json_file_pretty
(name: str, content: Union[Dict, List])
src/mermaid_agent/modules/utils.py:21