mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-08-03 17:29:01 +00:00
llama guard
This commit is contained in:
parent
f58e92f8d3
commit
7c12cda244
1 changed files with 17 additions and 3 deletions
|
@ -9,10 +9,24 @@ import re
|
||||||
from string import Template
|
from string import Template
|
||||||
from typing import Any, Dict, List, Optional
|
from typing import Any, Dict, List, Optional
|
||||||
|
|
||||||
from llama_models.llama3.api.datatypes import * # noqa: F403
|
from llama_models.datatypes import CoreModelId
|
||||||
from llama_stack.apis.inference import * # noqa: F403
|
from llama_models.llama3.api.datatypes import Role
|
||||||
from llama_stack.apis.safety import * # noqa: F403
|
|
||||||
from llama_stack.apis.common.content_types import ImageContentItem, TextContentItem
|
from llama_stack.apis.common.content_types import ImageContentItem, TextContentItem
|
||||||
|
from llama_stack.apis.inference import (
|
||||||
|
ChatCompletionResponseEventType,
|
||||||
|
Inference,
|
||||||
|
Message,
|
||||||
|
UserMessage,
|
||||||
|
)
|
||||||
|
from llama_stack.apis.safety import (
|
||||||
|
RunShieldResponse,
|
||||||
|
Safety,
|
||||||
|
SafetyViolation,
|
||||||
|
ViolationLevel,
|
||||||
|
)
|
||||||
|
|
||||||
|
from llama_stack.apis.shields import Shield
|
||||||
from llama_stack.distribution.datatypes import Api
|
from llama_stack.distribution.datatypes import Api
|
||||||
|
|
||||||
from llama_stack.providers.datatypes import ShieldsProtocolPrivate
|
from llama_stack.providers.datatypes import ShieldsProtocolPrivate
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue