Skip to content

Commit 6506e09

Browse files
authored
Merge pull request #74 from WorkflowAI/guillaume/feedbacktoken
Add feedback token
2 parents 426383b + 290e1b4 commit 6506e09

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "workflowai"
3-
version = "0.6.0"
3+
version = "0.6.1"
44
description = "Python SDK for WorkflowAI"
55
authors = ["Guillaume Aquilina <[email protected]>"]
66
readme = "README.md"

workflowai/core/client/_models.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ class RunResponse(BaseModel):
129129
tool_calls: Optional[list[ToolCall]] = None
130130
tool_call_requests: Optional[list[ToolCallRequest]] = None
131131

132+
feedback_token: Optional[str] = None
133+
132134
def to_domain(
133135
self,
134136
task_id: str,
@@ -151,6 +153,7 @@ def to_domain(
151153
cost_usd=self.cost_usd,
152154
tool_calls=safe_map_list(self.tool_calls, tool_call_to_domain),
153155
tool_call_requests=safe_map_list(self.tool_call_requests, tool_call_request_to_domain),
156+
feedback_token=self.feedback_token,
154157
)
155158

156159

workflowai/core/domain/run.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ class Run(BaseModel, Generic[AgentOutput]):
4646
description="An error that occurred during the run. Only provided if the run failed.",
4747
)
4848

49+
feedback_token: Optional[str] = None
50+
4951
_agent: Optional["_AgentBase[AgentOutput]"] = None
5052

5153
def __eq__(self, other: object) -> bool:

0 commit comments

Comments
 (0)