A basic web client for Neuro SAN agent-networks integrated with Neuro SAN Studio. This is a simple example showing how to connect to a neuro-san server and interact with it.
# Installs neuro-san and its dependencies. Assumes you have credentials.
pip install -r requirements.txtStart the application with:
python -m neuro_san_web_client.appThen go to http://127.0.0.1:5001 in your browser.
- Expand the
Configurationtab at the bottom of the interface to connect to the neuro-san server host and port - Choose an Agent Network Name, e.g.
industry/telco_network_support.hoconThis Agent Network Name MUST match the name of an agent network served by the neuro-san server, i.e. it is activated in itsregistries/manifest.hoconfile.Warning:
app.pyassumes the neuro-san server serves files from aneuro-san-studiofolder at the same level as this folder. If that's not the case, please update thePATH_TO_NEURO_SAN_REGISTRIESvariable inapp.pyaccordingly. - Click
Update. A html diagram of the agent network will be automatically generated in theneuro_san_web_client/staticdirectory. - Type your message in the chat box and press 'Send' to interact with the agent network.
- Optional: open the
Agent Network Diagramtab to visualize the interactions between the agents. - Optional: open the
Agent Communicationstab to see the messages exchanged between the agents.
Generate an HTML diagram of agents based on a .hocon file containing an agent network configuration:
python -m neuro_san_web_client.agents_diagram_builder --input_file <path_to_hocon_file>There is also an optional --output_file <path_to_output_file> argument to specify the output file.
By default, if no --output_file argument is specified,
the .html file is automatically generated in the web client's static directory.
For example, for a industry/telco_network_support.hocon file:
python -m neuro_san_web_client.agents_diagram_builder --input_file /Users/username/workspace/neuro-san-studio/registries/industry/telco_network_support.hoconis equivalent to:
python -m neuro_san_web_client.agents_diagram_builder --input_file /Users/username/workspace/neuro-san-studio/registries/industry/telco_network_support.hocon --output_file ./neuro_san_web_client/static/industry/telco_network_support.html