MCPcopy Create free account

hub / github.com/SamuelSchmidgall/AgentLaboratory / functions

Functions190 in github.com/SamuelSchmidgall/AgentLaboratory

↓ 25 callersFunctionextract_prompt
(text, word)
utils.py:235
↓ 16 callersFunctionquery_model
(model_str, prompt, system_prompt, openai_api_key=None, gemini_api_key=None, anthropic_api_key=None, tries=5,
inference.py:35
↓ 16 callersMethodset_agent_attr
Set attribute for all agents @param attr: (str) agent attribute @param obj: (object) object attribute @return: None
ai_lab_repo.py:115
↓ 10 callersMethodinference
(self, research_topic, phase, step, feedback="", temp=None)
agents.py:247
↓ 9 callersMethodreset_agents
Reset all agent states @return: None
ai_lab_repo.py:128
↓ 8 callersMethodhuman_in_loop
Get human feedback for phase output @param phase: (str) current phase @param phase_prod: (str) current phase result @
ai_lab_repo.py:547
↓ 5 callersMethod__init__
(self, model="gpt-4o-mini", notes=None, max_steps=100, openai_api_key=None)
agents.py:205
↓ 5 callersFunctionexecute_code
(code_str, timeout=600, MAX_LEN=1000)
tools.py:306
↓ 5 callersFunctionget_score
(outlined_plan, latex, reward_model_llm, reviewer_type=None, attempts=3, openai_api_key=None)
agents.py:36
↓ 5 callersMethodreset
(self)
agents.py:279
↓ 5 callersFunctionsave_to_file
Utility function to save data as plain text.
utils.py:186
↓ 4 callersMethodsystem_prompt
Produce a system prompt for the mle-solver to solve ml problems @param commands: (bool) whether to use command prompt @return
mlesolver.py:422
↓ 3 callersMethod_normalize
(self, arr)
tools.py:81
↓ 3 callersMethodfind_papers_by_str
(self, query, N=20)
tools.py:229
↓ 3 callersFunctionget_score
(outlined_plan, code, code_return, REWARD_MODEL_LLM, attempts=3, openai_api_key=None)
mlesolver.py:141
↓ 3 callersFunctionremove_figures
Remove a directory if it exists.
utils.py:168
↓ 3 callersMethodretrieve_full_paper_text
(self, query, MAX_LEN=50000)
tools.py:262
↓ 3 callersFunctionupdate_papers_from_uploads
()
app.py:25
↓ 2 callersMethod__init__
(self)
papersolver.py:48
↓ 2 callersMethodadd_review
(self, review, arx_eng, agentrxiv=False, GLOBAL_AGENTRXIV=None)
agents.py:714
↓ 2 callersMethodclean_text
(text)
papersolver.py:326
↓ 2 callersMethodclean_text
(text)
mlesolver.py:245
↓ 2 callersFunctioncode_repair
(code, error, ctype, REPAIR_LLM, openai_api_key=None)
mlesolver.py:166
↓ 2 callersFunctioncompile_latex
(latex_code, output_path, compile=True, timeout=30)
utils.py:127
↓ 2 callersMethodformat_review
(self)
agents.py:733
↓ 2 callersMethodgenerate_code_lines
Generate well-formatted code lines with line numbers @param code: (list) list of code line strings @return: (str) code lines
mlesolver.py:453
↓ 2 callersFunctionlast_boxed_only_string
(string)
utils.py:312
↓ 2 callersMethodparse_command
(self, *args)
papersolver.py:77
↓ 2 callersMethodparse_command
(self, *args)
mlesolver.py:126
↓ 2 callersMethodperform_research
Loop through all research phases @return: None
ai_lab_repo.py:139
↓ 2 callersMethodprocess_command
Take command from language model and execute if valid @param model_resp: (str) language model output @return: (tuple) tuple c
papersolver.py:399
↓ 2 callersMethodprocess_command
Take command from language model and execute if valid @param model_resp: (str) language model output @return: (tuple) tuple c
mlesolver.py:329
↓ 2 callersFunctionremove_boxed
(s)
utils.py:298
↓ 2 callersFunctionremove_directory
Remove a directory if it exists.
utils.py:174
↓ 2 callersMethodretrieve_full_text
(self, arxiv_id)
ai_lab_repo.py:597
↓ 2 callersMethodrole_description
(self)
agents.py:289
↓ 2 callersFunctionrun_app
(port=5000)
app.py:159
↓ 2 callersMethodsave_state
Save state for phase @param phase: (str) phase string @return: None
ai_lab_repo.py:106
↓ 2 callersMethodset_model
(self, model)
ai_lab_repo.py:102
↓ 2 callersFunctionstrip_string
(string)
utils.py:414
↓ 2 callersMethodsystem_prompt
Produce a system prompt for the paper-solver @param commands: (bool) whether to use command prompt @return: (str) system prom
papersolver.py:481
↓ 1 callersMethod__init__
(self)
mlesolver.py:87
↓ 1 callersMethod_common_code_errors
Some general tips to avoid common code errors, also TF has many errors so we avoid this and ask to use pytorch @return: (str) common
mlesolver.py:533
↓ 1 callersMethod_process_query
Process query string to fit within MAX_QUERY_LENGTH while preserving as much information as possible
tools.py:205
↓ 1 callersFunctionclean_answer
(s)
utils.py:293
↓ 1 callersMethodclean_text
Fix minor corrections :return: (str) corrected text
agents.py:234
↓ 1 callersMethodcommand_descriptions
(self, phase)
agents.py:292
↓ 1 callersMethodcommand_descriptions
Provide command descriptions @return: (str) command descriptions
papersolver.py:552
↓ 1 callersMethodcommand_descriptions
Provide command descriptions @return: (str) command descriptions
mlesolver.py:545
↓ 1 callersMethodcontext
(self, phase)
agents.py:283
↓ 1 callersFunctioncurr_cost_est
()
inference.py:12
↓ 1 callersMethoddata_preparation
Perform data preparation phase @return: (bool) whether to repeat the phase
ai_lab_repo.py:343
↓ 1 callersMethoddocstring
(self)
papersolver.py:54
↓ 1 callersMethoddocstring
(self)
mlesolver.py:91
↓ 1 callersMethodexecute_command
(self, *args)
papersolver.py:63
↓ 1 callersMethodexecute_command
(self, *args)
mlesolver.py:99
↓ 1 callersFunctionextract_json_between_markers
(llm_output)
agents.py:7
↓ 1 callersFunctionfix_a_slash_b
(string)
utils.py:374
↓ 1 callersFunctionfix_fracs
(string)
utils.py:342
↓ 1 callersFunctionfix_sqrt
(string)
utils.py:399
↓ 1 callersMethodgen_initial_code
(self)
mlesolver.py:250
↓ 1 callersMethodgen_initial_report
(self)
papersolver.py:330
↓ 1 callersMethodgenerate_dataset_descr_prompt
Generate description prompt for kaggle dataset @param data_loader: (DataLoader) data loader @return: (str) description prompt
mlesolver.py:504
↓ 1 callersMethodgenerate_paper_lines
Generate well-formatted code lines with line numbers @param code: (list) list of code line strings @return: (str) code lines
papersolver.py:470
↓ 1 callersMethodgenerate_readme
(self)
agents.py:304
↓ 1 callersMethodhistory_str
Well-formatted history string @return: (str) history string
mlesolver.py:407
↓ 1 callersMethodinitial_solve
Initialize the solver and get an initial set of papers and a return @return: None
papersolver.py:306
↓ 1 callersMethodinitial_solve
Initialize the solver and get an initial set of code and a return @return: None
mlesolver.py:225
↓ 1 callersMethodinitialize_server
(self)
ai_lab_repo.py:584
↓ 1 callersFunctionis_equiv
(str1, str2, verbose=False)
utils.py:276
↓ 1 callersMethodliterature_review
Perform literature review phase @return: (bool) whether to repeat the phase
ai_lab_repo.py:465
↓ 1 callersMethodmatches_command
(self, cmd_str)
papersolver.py:72
↓ 1 callersMethodmatches_command
(self, cmd_str)
mlesolver.py:122
↓ 1 callersMethodnum_papers
()
ai_lab_repo.py:594
↓ 1 callersFunctionparse_arguments
()
ai_lab_repo.py:653
↓ 1 callersFunctionparse_yaml
(yaml_file_loc)
ai_lab_repo.py:666
↓ 1 callersMethodphase_prompt
(self, phase)
agents.py:286
↓ 1 callersMethodphase_prompt
Describe system role and general tips for mle-solver @return: (str) system role
papersolver.py:568
↓ 1 callersMethodphase_prompt
Describe system role and general tips for mle-solver @return: (str) system role
mlesolver.py:512
↓ 1 callersMethodplan_formulation
Perform plan formulation phase @return: (bool) whether to repeat the phase
ai_lab_repo.py:414
↓ 1 callersMethodread_pdf_pypdf2
(pdf_path)
ai_lab_repo.py:604
↓ 1 callersMethodreflect_code
Provide a reflection on produced behavior for next execution @return: (str) language model-produced reflection
mlesolver.py:319
↓ 1 callersMethodreflection
Reflect on your future plans and next steps to improve the code @param reflect_prompt: (str) reflection prompt @param code_st
mlesolver.py:494
↓ 1 callersFunctionremove_right_units
(string)
utils.py:389
↓ 1 callersMethodreport_refinement
Perform report refinement phase @return: (bool) whether to repeat the phase
ai_lab_repo.py:207
↓ 1 callersMethodreport_writing
Perform report writing phase @return: (bool) whether to repeat the phase
ai_lab_repo.py:240
↓ 1 callersMethodresults_interpretation
Perform results interpretation phase @return: (bool) whether to repeat the phase
ai_lab_repo.py:274
↓ 1 callersMethodresults_str
Provide results as list of results in human-readable format. :param results: (list(dict)) list of results from search :return
tools.py:157
↓ 1 callersMethodretrieve_ds
Retrieves the top N datasets matching the query, weighted by likes and downloads. :param query: The search query string. :par
tools.py:88
↓ 1 callersMethodrole_description
(self)
agents.py:361
↓ 1 callersMethodrole_description
(self)
agents.py:711
↓ 1 callersMethodrole_description
Provide role description @return: (str) role description
papersolver.py:560
↓ 1 callersMethodrole_description
Provide role description @return: (str) role description
mlesolver.py:525
↓ 1 callersMethodrun_server
(self, port)
ai_lab_repo.py:649
↓ 1 callersMethodrunning_experiments
Perform running experiments phase @return: (bool) whether to repeat the phase
ai_lab_repo.py:310
↓ 1 callersMethodsearch_agentrxiv
(self, search_query, num_papers)
ai_lab_repo.py:613
↓ 1 callersMethodsolve
(self)
papersolver.py:269
↓ 1 callersMethodsolve
(self)
mlesolver.py:276
Method__init__
(self, model="gpt-4o-mini", notes=None, openai_api_key=None)
agents.py:185
Method__init__
(self, model="gpt4omini", notes=None, max_steps=100, openai_api_key=None)
agents.py:300
next →1–100 of 190, ranked by callers