Skip to content

Commit

Permalink
BugFix : Models : updated additional_input (#89)
Browse files Browse the repository at this point in the history
Co-authored-by: vignesh_arivazhagan <[email protected]>
  • Loading branch information
vignesh14052002 and vignesh-arivazhagan authored Jan 29, 2024
1 parent 2b986e0 commit da31fb5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
2 changes: 1 addition & 1 deletion packages/sdk/python/agent_protocol/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@


class Step(APIStep):
additional_properties: Optional[Dict[str, str]] = None
additional_properties: Optional[Dict[str, Any]] = None


class Task(APITask):
Expand Down
14 changes: 3 additions & 11 deletions packages/sdk/python/agent_protocol/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from __future__ import annotations

from enum import Enum
from typing import List, Optional
from typing import List, Optional, Dict, Any

from pydantic import BaseModel, Field

Expand All @@ -25,10 +25,6 @@ class Pagination(BaseModel):
page_size: int = Field(..., description="Number of items per page.", example=25)


class TaskInput(BaseModel):
pass


class Artifact(BaseModel):
artifact_id: str = Field(
...,
Expand Down Expand Up @@ -61,10 +57,6 @@ class ArtifactUpload(BaseModel):
)


class StepInput(BaseModel):
pass


class StepOutput(BaseModel):
pass

Expand All @@ -75,7 +67,7 @@ class TaskRequestBody(BaseModel):
description="Input prompt for the task.",
example="Write 'Washington' to the file 'output.txt'.",
)
additional_input: Optional[TaskInput] = None
additional_input: Optional[Dict[str, Any]] = None


class Task(TaskRequestBody):
Expand All @@ -100,7 +92,7 @@ class StepRequestBody(BaseModel):
description="Input prompt for the step.",
example="Write the words you receive to the file 'output.txt'.",
)
additional_input: Optional[StepInput] = None
additional_input: Optional[Dict[str, Any]] = None


class Status(Enum):
Expand Down

0 comments on commit da31fb5

Please sign in to comment.