-
Notifications
You must be signed in to change notification settings - Fork 19
A2rchi settings #410
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
A2rchi settings #410
Conversation
| # max_tools=3, | ||
| # ) | ||
| # return [todolist_middleware, llmtoolselector_middleware] | ||
| def _build_static_middleware(self) -> List[Callable]: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should drop this, this wasn't working
| def _filter_middleware(self, middleware: Sequence[Callable]) -> List[Callable]: | ||
| enabled = self.pipeline_config.get("middleware", {}).get("enabled") | ||
| if not enabled: | ||
| return list(middleware) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if not enabled, return empty?
| config_template = self.env.get_template(BASE_CONFIG_TEMPLATE) | ||
| config_rendered = config_template.render(verbosity=context.plan.verbosity, **updated_config) | ||
| static_template = self.env.get_template(BASE_STATIC_CONFIG_TEMPLATE) | ||
| static_rendered = static_template.render(verbosity=context.plan.verbosity, **updated_config) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe here we should validate the options?
e.g. tools passed should be a subset of the existing ones in src/a2rchi/pipelines/tools/init.py
| @@ -0,0 +1,241 @@ | |||
| name: {{ name | default("default", true) }} | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you delete the old basic-config.yaml ?
src/utils/config_loader.py
Outdated
|
|
||
| config["_config_path"] = config_path | ||
|
|
||
| config["a2rchi"] = load_a2rchi_settings(config) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
load_agent_settings?
src/utils/config_loader.py
Outdated
| with open(CONFIGS_PATH+f"{name}.yaml", "r") as f: | ||
| config_path = CONFIGS_PATH + f"{name}.yaml" | ||
| with open(config_path, "r") as f: | ||
| config = yaml.load(f, Loader=yaml.FullLoader) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why are we still loading from yaml? I thought the point was to red from postgres
src/utils/settings_store.py
Outdated
| TABLE_MCP_SERVER_OPTIONS = "a2rchi_mcp_server_options" | ||
|
|
||
|
|
||
| def load_a2rchi_settings(config: Dict) -> Dict: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this replace load_config?
| conn.close() | ||
|
|
||
|
|
||
| def compose_a2rchi_settings( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if the UI will modify the settings, will it go through this function? Should this perform validation too?
Summary
What changed (by area)
Breaking/compat notes
settings.yaml.