mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-08-05 18:22:41 +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"
|
type: Literal["agent_turn_input"] = "agent_turn_input"
|
||||||
|
|
||||||
|
|
||||||
|
class DialogType(BaseModel):
|
||||||
|
# expects List[Message] for messages
|
||||||
|
type: Literal["dialog"] = "dialog"
|
||||||
|
|
||||||
|
|
||||||
ParamType = register_schema(
|
ParamType = register_schema(
|
||||||
Annotated[
|
Annotated[
|
||||||
Union[
|
Union[
|
||||||
|
|
|
@ -9,7 +9,11 @@
|
||||||
#
|
#
|
||||||
# This source code is licensed under the terms described in the LICENSE file in
|
# This source code is licensed under the terms described in the LICENSE file in
|
||||||
# the root directory of this source tree.
|
# 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.apis.datasets import Datasets
|
||||||
from llama_stack.providers.utils.common.data_schema_validator import (
|
from llama_stack.providers.utils.common.data_schema_validator import (
|
||||||
ColumnName,
|
ColumnName,
|
||||||
|
@ -25,7 +29,7 @@ EXPECTED_DATASET_SCHEMA = {
|
||||||
],
|
],
|
||||||
"dialog": [
|
"dialog": [
|
||||||
{
|
{
|
||||||
ColumnName.dialog.value: StringType(),
|
ColumnName.dialog.value: DialogType(),
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue