Skip to content

[WIP] Agentic-Hypnotoad: AI agent that generates meshes#210

Open
bendudson wants to merge 8 commits intomasterfrom
automation
Open

[WIP] Agentic-Hypnotoad: AI agent that generates meshes#210
bendudson wants to merge 8 commits intomasterfrom
automation

Conversation

@bendudson
Copy link
Contributor

@bendudson bendudson commented Mar 3, 2026

Plug Hypnotoad into your favorite LLM. What could possibly go wrong?

from hypnotoad import agent

geqdsk_file = "/path/to/geqdsk.file"
ENDPOINT_URL = "https://llm.server/v1"
API_KEY = "abdefghijklmnopqrstuvwxyz"
MODEL = "gpt-5-mini"

hypnotoad_agent = agent.HypnotoadAgent(geqdsk_file, base_url=ENDPOINT_URL,
                                           api_key=API_KEY, model=MODEL)

Console / script interface:

hypnotoad_agent.chat("Generate a mesh, adjusting settings until a mesh is successfully generated.")

Jupyter notebook wrapper for nicer output:

hypnotoad_agent.chat_nb("Generate a mesh, adjusting settings until a mesh is successfully generated.")

Plot last mesh:

hypnotoad_agent.plot_last_mesh()
  • Tests added
  • Updated manual
  • Updated doc/whats-new.md with a summary of the changes

Validates settings using OptionsFactory WithMeta schema.
Reports any issues along with suggested fixes.
Initial version of an AI agent to run Hypnotoad.
String split across lines but the `f` was missing from the second
line.
@bendudson bendudson changed the title Agentic-Hypnotoad: AI agent that generates meshes [WIP] Agentic-Hypnotoad: AI agent that generates meshes Mar 3, 2026
Now has two arguments, passing possible options first.
Provide warnings and hints to guide changes to nx values.
Capture the header line from the geqdsk file.
Some inconsistency in ax vs axis keywords
Uses FAISS and an embedding model to perform semantic search.
Experience database provides a tool to search when finding
solutions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant