mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-10-04 04:04:14 +00:00
Add OpenAPI generation utility, update SPEC to reflect latest types
This commit is contained in:
parent
417ba2aea0
commit
1f5eb9ff96
10 changed files with 770 additions and 656 deletions
|
@ -13,7 +13,7 @@ from .datatypes import * # noqa: F403
|
|||
|
||||
class MemoryBanks(Protocol):
|
||||
@webmethod(route="/memory_banks/create")
|
||||
def post_create_memory_bank(
|
||||
def create_memory_bank(
|
||||
self,
|
||||
bank_id: str,
|
||||
bank_name: str,
|
||||
|
@ -33,14 +33,14 @@ class MemoryBanks(Protocol):
|
|||
) -> str: ...
|
||||
|
||||
@webmethod(route="/memory_bank/insert")
|
||||
def post_insert_memory_documents(
|
||||
def insert_memory_documents(
|
||||
self,
|
||||
bank_id: str,
|
||||
documents: List[MemoryBankDocument],
|
||||
) -> None: ...
|
||||
|
||||
@webmethod(route="/memory_bank/update")
|
||||
def post_update_memory_documents(
|
||||
def update_memory_documents(
|
||||
self,
|
||||
bank_id: str,
|
||||
documents: List[MemoryBankDocument],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue