mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-10-04 12:07:34 +00:00
Refactor custom tool execution utilities
This commit is contained in:
parent
440d125ea0
commit
ceef117abc
9 changed files with 209 additions and 145 deletions
|
@ -30,6 +30,8 @@ async def get_provider_impl(config: FaissImplConfig, _deps: Dict[Api, ProviderSp
|
|||
return impl
|
||||
|
||||
|
||||
# This should be a broader utility
|
||||
# This should support local file URLs and data URLs also
|
||||
async def content_from_doc(doc: MemoryBankDocument) -> str:
|
||||
if isinstance(doc.content, URL):
|
||||
async with httpx.AsyncClient() as client:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue