Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BugFix : Models : updated additional_input #89

Merged
merged 5 commits into from
Jan 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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