mirror of https://github.com/dapr/dapr-agents.git
floki -> dapr file/code reference change
Signed-off-by: yaron2 <schneider.yaron@live.com>
This commit is contained in:
parent
977268360d
commit
2d52cffd74
|
@ -105,7 +105,7 @@ dapr run --app-id originalwf --dapr-grpc-port 50001 --resources-path components/
|
|||
With `Dapr Agents`, the goal was to simplify workflows while adding flexibility and powerful integrations. I wanted to create a way to track the workflow state, including input, output, and status, while also streamlining monitoring. To achieve this, I built additional `workflow` and `activity` wrappers. The workflow wrapper stays mostly the same as Dapr's original, but the activity wrapper has been extended into a `task wrapper`. This change allows tasks to integrate seamlessly with LLM-based prompts and other advanced capabilities.
|
||||
|
||||
!!! info
|
||||
The same example as before can be written in the following way. While the difference might not be immediately noticeable, this is a straightforward example of task chaining using Python functions. Create a file named `wf_taskchain_floki_activity.py`.
|
||||
The same example as before can be written in the following way. While the difference might not be immediately noticeable, this is a straightforward example of task chaining using Python functions. Create a file named `wf_taskchain_dapr_activity.py`.
|
||||
|
||||
```python
|
||||
from dapr_agents import WorkflowApp
|
||||
|
@ -146,10 +146,10 @@ if __name__ == '__main__':
|
|||
Now, you can run that workflow with the same command with the `Dapr CLI`:
|
||||
|
||||
```bash
|
||||
dapr run --app-id flokiwf --dapr-grpc-port 50001 --resources-path components/ -- python3 wf_taskchain_floki_activity.py
|
||||
dapr run --app-id agentwf --dapr-grpc-port 50001 --resources-path components/ -- python3 wf_taskchain_dapr_activity.py
|
||||
```
|
||||
|
||||

|
||||

|
||||
|
||||
If we inspect the `Workflow State` in the state store, you would see something like this:
|
||||
|
||||
|
|
|
@ -143,7 +143,7 @@ if __name__ == '__main__':
|
|||
Run the workflow with the following command:
|
||||
|
||||
```bash
|
||||
dapr run --app-id flokillmmwf --dapr-grpc-port 50001 --resources-path components/ -- python3 wf_taskchain_openai_floki_llm_request.py
|
||||
dapr run --app-id flokillmmwf --dapr-grpc-port 50001 --resources-path components/ -- python3 wf_taskchain_openai_dapr_llm_request.py
|
||||
```
|
||||
|
||||

|
||||

|
Before Width: | Height: | Size: 134 KiB After Width: | Height: | Size: 134 KiB |
Before Width: | Height: | Size: 127 KiB After Width: | Height: | Size: 127 KiB |
Loading…
Reference in New Issue