mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-08-03 17:29:01 +00:00
address_comment
This commit is contained in:
parent
a3b9bc29c8
commit
af1ba00227
2 changed files with 11 additions and 2 deletions
|
@ -54,6 +54,11 @@ class AgentTurnInputType(BaseModel):
|
|||
type: Literal["agent_turn_input"] = "agent_turn_input"
|
||||
|
||||
|
||||
class DialogType(BaseModel):
|
||||
# expects List[Message] for messages
|
||||
type: Literal["dialog"] = "dialog"
|
||||
|
||||
|
||||
ParamType = register_schema(
|
||||
Annotated[
|
||||
Union[
|
||||
|
|
|
@ -9,7 +9,11 @@
|
|||
#
|
||||
# This source code is licensed under the terms described in the LICENSE file in
|
||||
# the root directory of this source tree.
|
||||
from llama_stack.apis.common.type_system import ChatCompletionInputType, StringType
|
||||
from llama_stack.apis.common.type_system import (
|
||||
ChatCompletionInputType,
|
||||
DialogType,
|
||||
StringType,
|
||||
)
|
||||
from llama_stack.apis.datasets import Datasets
|
||||
from llama_stack.providers.utils.common.data_schema_validator import (
|
||||
ColumnName,
|
||||
|
@ -25,7 +29,7 @@ EXPECTED_DATASET_SCHEMA = {
|
|||
],
|
||||
"dialog": [
|
||||
{
|
||||
ColumnName.dialog.value: StringType(),
|
||||
ColumnName.dialog.value: DialogType(),
|
||||
}
|
||||
],
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue