Skip to content

Commit

Permalink
memory banks list
Browse files Browse the repository at this point in the history
  • Loading branch information
yanxi0830 committed Oct 10, 2024
1 parent b109233 commit 3418d7b
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions src/llama_stack_client/lib/cli/memory_banks/list.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,12 @@ def _run_memory_banks_list_cmd(self, args: argparse.Namespace):
)

headers = [
"Identifier",
"Provider ID",
"Memory Bank Type",
"Provider Type",
"Provider Config",
"embedding_model",
"chunk_size_in_tokens",
"overlap_size_in_tokens",
]

memory_banks_list_response = client.memory_banks.list()
Expand All @@ -53,9 +56,12 @@ def _run_memory_banks_list_cmd(self, args: argparse.Namespace):
for bank_spec in memory_banks_list_response:
rows.append(
[
bank_spec.bank_type,
bank_spec.provider_config.provider_type,
json.dumps(bank_spec.provider_config.config, indent=4),
bank_spec.identifier,
bank_spec.provider_id,
bank_spec.type,
bank_spec.embedding_model,
bank_spec.chunk_size_in_tokens,
bank_spec.overlap_size_in_tokens,
]
)

Expand Down

0 comments on commit 3418d7b

Please sign in to comment.