mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-10-04 20:14:13 +00:00
Bring agentic system api to toolchain
Add adapter dependencies and resolve adapters using a topological sort
This commit is contained in:
parent
b0e5340645
commit
be19b22391
31 changed files with 2740 additions and 25 deletions
|
@ -144,7 +144,11 @@ def prompt_for_config(
|
|||
nested_type = get_non_none_type(field_type)
|
||||
print(f"Entering sub-configuration for {field_name}:")
|
||||
config_data[field_name] = prompt_for_config(nested_type, existing_value)
|
||||
elif inspect.isclass(field_type) and issubclass(field_type, BaseModel):
|
||||
elif (
|
||||
inspect.isclass(field_type)
|
||||
and issubclass(field_type, BaseModel)
|
||||
and len(field_type.__fields__) > 0
|
||||
):
|
||||
print(f"\nEntering sub-configuration for {field_name}:")
|
||||
config_data[field_name] = prompt_for_config(
|
||||
field_type,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue