mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-17 17:59:52 +00:00
tracing decorator for apiis
This commit is contained in:
parent
c6b4bf8ada
commit
c2a4850a79
4 changed files with 141 additions and 0 deletions
|
|
@ -16,6 +16,7 @@ from pydantic import BaseModel, Field
|
|||
|
||||
from llama_models.llama3.api.datatypes import * # noqa: F403
|
||||
from llama_stack.apis.memory_banks import * # noqa: F403
|
||||
from llama_stack.distribution.tracing import trace_protocol
|
||||
|
||||
|
||||
@json_schema_type
|
||||
|
|
@ -43,6 +44,7 @@ class MemoryBankStore(Protocol):
|
|||
|
||||
|
||||
@runtime_checkable
|
||||
@trace_protocol
|
||||
class Memory(Protocol):
|
||||
memory_bank_store: MemoryBankStore
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue