Skip to main content

Web client demo interface for neuro-san

Project description

Neuro SAN Web Client

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.

Installation

# Installs neuro-san and its dependencies. Assumes you have credentials.
pip install -r requirements.txt

Start the web client

Start the application with:

python -m neuro_san_web_client.app

Then go to http://127.0.0.1:5001 in your browser.

Usage

  1. Expand the Configuration tab at the bottom of the interface to connect to the neuro-san server host and port
  2. Choose an Agent Network Name, e.g. industry/telco_network_support.hocon This Agent Network Name MUST match the name of an agent network served by the neuro-san server, i.e. it is activated in its registries/manifest.hocon file.

    Warning: app.py assumes the neuro-san server serves files from a neuro-san-studio folder at the same level as this folder. If that's not the case, please update the PATH_TO_NEURO_SAN_REGISTRIES variable in app.py accordingly.

  3. Click Update. A html diagram of the agent network will be automatically generated in the neuro_san_web_client/static directory.
  4. Type your message in the chat box and press 'Send' to interact with the agent network.
  5. Optional: open the Agent Network Diagram tab to visualize the interactions between the agents.
  6. Optional: open the Agent Communications tab to see the messages exchanged between the agents.

Manually generating an HTML agent network diagram

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.hocon

is 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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

neuro_san_web_client-0.1.13.tar.gz (117.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

neuro_san_web_client-0.1.13-py3-none-any.whl (113.2 kB view details)

Uploaded Python 3

File details

Details for the file neuro_san_web_client-0.1.13.tar.gz.

File metadata

  • Download URL: neuro_san_web_client-0.1.13.tar.gz
  • Upload date:
  • Size: 117.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for neuro_san_web_client-0.1.13.tar.gz
Algorithm Hash digest
SHA256 389447904e408d35575914af354392bd721f86df7ae385d240056132c9942930
MD5 f1b339e1e47d769197a3ea64db6c72e0
BLAKE2b-256 c8e513e55dc9b7c1a7371ee4c459f203f28ee55e620a31617e98dd3398fadcaf

See more details on using hashes here.

Provenance

The following attestation bundles were made for neuro_san_web_client-0.1.13.tar.gz:

Publisher: publish.yml on cognizant-ai-lab/neuro-san-web-client

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file neuro_san_web_client-0.1.13-py3-none-any.whl.

File metadata

File hashes

Hashes for neuro_san_web_client-0.1.13-py3-none-any.whl
Algorithm Hash digest
SHA256 65a3b862a474954c8c51bf9e1da5a62082e1a7981b6f0f276c9056e137df33bf
MD5 4decdef510c607e9aa0b05119fef9e9f
BLAKE2b-256 6f73b22a68c945295dddf484a3e3b2a08420fda5098370018fb7355763b50495

See more details on using hashes here.

Provenance

The following attestation bundles were made for neuro_san_web_client-0.1.13-py3-none-any.whl:

Publisher: publish.yml on cognizant-ai-lab/neuro-san-web-client

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page