Skip to content

Commit c501f3b

Browse files
Merge pull request #211 from restackio/bump80
Bump restack_ai 0.0.80
2 parents c95731d + cea45ea commit c501f3b

File tree

105 files changed

+207
-171
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

105 files changed

+207
-171
lines changed

agent_apis/pyproject.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,15 @@ name = "openai_greet"
33
version = "0.0.1"
44
description = "A simple example to greet a person using OpenAI"
55
authors = [{ name = "Restack Team", email = "[email protected]" }]
6-
requires-python = ">=3.10,<3.13"
6+
requires-python = ">=3.10,<3.14"
77
readme = "README.md"
88
dependencies = [
99
"pydantic>=2.10.6",
1010
"watchfiles>=1.0.4",
1111
"python-dotenv==1.0.1",
1212
"openai>=1.61.0",
1313
"aiohttp>=3.11.12",
14-
"restack-ai>=0.0.78",
15-
]
14+
"restack-ai>=0.0.80",]
1615

1716
[project.scripts]
1817
dev = "src.services:watch_services"

agent_apis/requirements.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,13 @@ python-dotenv==1.0.1
6969
# via
7070
# openai-greet (pyproject.toml)
7171
# restack-ai
72-
restack-ai==0.0.62
72+
restack-ai==0.0.80
7373
# via openai-greet (pyproject.toml)
7474
sniffio==1.3.1
7575
# via
7676
# anyio
7777
# openai
78-
temporalio==1.9.0
78+
temporalio==1.10.0
7979
# via restack-ai
8080
tqdm==4.67.1
8181
# via openai
@@ -87,6 +87,7 @@ typing-extensions==4.12.2
8787
# openai
8888
# pydantic
8989
# pydantic-core
90+
# restack-ai
9091
# temporalio
9192
watchfiles==1.0.4
9293
# via openai-greet (pyproject.toml)

agent_apis/src/workflows/multistep.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ async def run(self, workflow_input: WorkflowInputParams) -> dict:
2222
# Step 1 get weather data
2323
try:
2424
weather_data = await workflow.step(
25-
weather, start_to_close_timeout=timedelta(seconds=120)
25+
function=weather, start_to_close_timeout=timedelta(seconds=120)
2626
)
2727
except Exception as e:
2828
error_message = f"Error during weather: {e}"

agent_chat/pyproject.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,14 @@ name = "agent_chat"
33
version = "0.0.1"
44
description = "An agent chat for Restack"
55
authors = [{ name = "Restack Team", email = "[email protected]" }]
6-
requires-python = ">=3.10,<3.13"
6+
requires-python = ">=3.10,<3.14"
77
readme = "README.md"
88
dependencies = [
99
"pydantic>=2.10.6",
1010
"watchfiles>=1.0.4",
1111
"python-dotenv==1.0.1",
1212
"openai>=1.61.0",
13-
"restack-ai>=0.0.78",
14-
]
13+
"restack-ai>=0.0.80",]
1514

1615
[project.scripts]
1716
dev = "src.services:watch_services"

agent_chat/requirements.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,13 @@ python-dotenv==1.0.1
6767
# via
6868
# agent-chat (pyproject.toml)
6969
# restack-ai
70-
restack-ai==0.0.62
70+
restack-ai==0.0.80
7171
# via agent-chat (pyproject.toml)
7272
sniffio==1.3.1
7373
# via
7474
# anyio
7575
# openai
76-
temporalio==1.9.0
76+
temporalio==1.10.0
7777
# via restack-ai
7878
tqdm==4.67.1
7979
# via openai
@@ -85,6 +85,7 @@ typing-extensions==4.12.2
8585
# openai
8686
# pydantic
8787
# pydantic-core
88+
# restack-ai
8889
# temporalio
8990
watchfiles==1.0.4
9091
# via agent-chat (pyproject.toml)
File renamed without changes.
File renamed without changes.

human_loop/README.md renamed to agent_humanloop/README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
# Restack AI - Human in the loop
1+
# Restack AI - Agent with human in the loop
22

3-
This repository contains an example for Human in the loop with Restack.
4-
It demonstrates how to set up a basic workflow and functions.
3+
This repository contains an example Agent with human in the loop with Restack.
4+
It demonstrates how to set up a basic Agent and functions.
55

66
## Prerequisites
77

@@ -46,23 +46,23 @@ pip install -e .
4646
python -c "from src.services import watch_services; watch_services()"
4747
```
4848

49-
## Run workflows
49+
## Run agents
5050

5151
### from UI
5252

53-
You can run workflows from the UI by clicking the "Run" button.
53+
You can run agents from the UI by clicking the "Run" button.
5454

55-
![Run workflows from UI](./screenshot-quickstart.png)
55+
![Run agents from UI](./screenshot-quickstart.png)
5656

5757
### from API
5858

59-
You can run workflows from the API by using the generated endpoint:
59+
You can run agents from the API by using the generated endpoint:
6060

61-
`POST http://localhost:6233/api/workflows/HumanLoopWorkflow`
61+
`POST http://localhost:6233/api/agents/AgentHumanLoop`
6262

6363
### from any client
6464

65-
You can run workflows with any client connected to Restack, for example:
65+
You can run agents with any client connected to Restack, for example:
6666

6767
If using uv:
6868

@@ -73,10 +73,10 @@ uv run schedule
7373
If using pip:
7474

7575
```bash
76-
python -c "from schedule_workflow import run_schedule_workflow; run_schedule_workflow()"
76+
python -c "from schedule_agent import run_schedule_agent; run_schedule_agent()"
7777
```
7878

79-
executes `schedule_workflow.py` which will connect to Restack and execute the `HumanLoopWorkflow` workflow.
79+
executes `schedule_agent.py` which will connect to Restack and execute the `AgentHumanLoop` agent.
8080

8181
## Deploy on Restack Cloud
8282

human_loop/pyproject.toml renamed to agent_humanloop/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ name = "human_loop"
33
version = "0.0.1"
44
description = "A simple example to get started with human-in-the-loop using the restack-ai python library"
55
authors = [{ name = "Restack Team", email = "[email protected]" }]
6-
requires-python = ">=3.10,<3.13"
6+
requires-python = ">=3.10,<3.14"
77
readme = "README.md"
88
dependencies = [
99
"pydantic>=2.10.6",
10-
"restack-ai==0.0.62",
10+
"restack-ai==0.0.80",
1111
"watchfiles>=1.0.4",
1212
"python-dotenv==1.0.1",
1313
]

human_loop/requirements.txt renamed to agent_humanloop/requirements.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@ python-dotenv==1.0.1
4646
# via
4747
# human-loop (pyproject.toml)
4848
# restack-ai
49-
restack-ai==0.0.62
49+
restack-ai==0.0.80
5050
# via human-loop (pyproject.toml)
5151
sniffio==1.3.1
5252
# via anyio
53-
temporalio==1.9.0
53+
temporalio==1.10.0
5454
# via restack-ai
5555
types-protobuf==5.29.1.20241207
5656
# via temporalio
@@ -59,6 +59,7 @@ typing-extensions==4.12.2
5959
# anyio
6060
# pydantic
6161
# pydantic-core
62+
# restack-ai
6263
# temporalio
6364
watchfiles==1.0.4
6465
# via human-loop (pyproject.toml)

0 commit comments

Comments
 (0)