mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-10-09 21:18:38 +00:00
re-work tool definitions, fix FastAPI issues, fix tool regressions
This commit is contained in:
parent
8d14d4228b
commit
8efe614719
11 changed files with 144 additions and 104 deletions
|
@ -12,9 +12,6 @@ from typing import Dict, List
|
|||
from llama_models.llama3.api.datatypes import * # noqa: F403
|
||||
from llama_toolchain.agentic_system.api import * # noqa: F403
|
||||
|
||||
# TODO: this is symptomatic of us needing to pull more tooling related utilities
|
||||
from llama_toolchain.tools.builtin import interpret_content_as_attachment
|
||||
|
||||
|
||||
class CustomTool:
|
||||
"""
|
||||
|
@ -94,9 +91,6 @@ class SingleMessageCustomTool(CustomTool):
|
|||
tool_name=tool_call.tool_name,
|
||||
content=response_str,
|
||||
)
|
||||
if attachment := interpret_content_as_attachment(response_str):
|
||||
message.content = attachment
|
||||
|
||||
return [message]
|
||||
|
||||
@abstractmethod
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue