Skip to content

Optional agents.yaml file #110

@EvilFreelancer

Description

@EvilFreelancer

As user I want to describe a single config.yaml with all settings of my agents and their tools, then use it from any folders, but for the right now I have an error:

(.venv) pasha@pasha-lt:~/Repository/nn-nlp/sgr-agent-core$ python sgr_deep_research --config-file examples/agents_with_disabled_reporting/config.yaml 
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/storage/Repository/nn-nlp/sgr-agent-core/sgr_deep_research/__main__.py", line 23, in <module>
    main()
    ~~~~^^
  File "/storage/Repository/nn-nlp/sgr-agent-core/sgr_deep_research/__main__.py", line 17, in main
    config.definitions_from_yaml(args.agents_file)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
  File "/storage/Repository/nn-nlp/sgr-agent-core/sgr_agent_core/agent_config.py", line 85, in definitions_from_yaml
    raise FileNotFoundError(f"Agents definitions file not found: {agents_yaml_path}")
FileNotFoundError: Agents definitions file not found: agents.yaml

Need to make agents.yaml file optional.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions