agents.research.storm.exampleΒΆ

Example demonstrating how to use the STORM agent to generate. a comprehensive Wikipedia-style article on a given topic.

FunctionsΒΆ

main()

Main entry point for the script.

run_storm_agent(topic[, output_file, ...])

Run the STORM agent on a given topic.

setup_environment()

Set up required environment variables.

Module ContentsΒΆ

agents.research.storm.example.main()ΒΆ

Main entry point for the script.

Return type:

None

async agents.research.storm.example.run_storm_agent(topic, output_file=None, num_perspectives=3, max_turns=5, verbose=False)ΒΆ

Run the STORM agent on a given topic.

Parameters:
  • topic (str) – The topic to research and write about

  • output_file (str | None) – Optional file path to save the generated article

  • num_perspectives (int) – Number of perspectives to interview

  • max_turns (int) – Maximum number of conversation turns per interview

  • verbose (bool) – Whether to enable verbose logging

agents.research.storm.example.setup_environment()ΒΆ

Set up required environment variables.

Return type:

None