forked from autogenhub/autogen
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* docs update WIP * getting started guide updated * update getting started guide * clarify github app creation * add webhook secret to getting started guide and gh-flow app * restructure Readme * fix the Organization assumption * add mermaid diagram of the event flow * devtunnel feature to devcontainer * throw all the exceptions and add the history to the prompt * Update github-flow.md * update readme
- Loading branch information
1 parent
36951aa
commit baabd41
Showing
23 changed files
with
294 additions
and
429 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
FROM mcr.microsoft.com/devcontainers/dotnet:8.0 | ||
# Install the xz-utils package | ||
RUN apt-get update && apt-get install -y xz-utils ca-certificates curl gnupg | ||
# RUN apt-get update && apt-get install -y xz-utils ca-certificates curl gnupg | ||
|
||
RUN curl -fsSL https://aka.ms/install-azd.sh | bash | ||
# RUN curl -fsSL https://aka.ms/install-azd.sh | bash | ||
|
||
# RUN curl -sL https://aka.ms/DevTunnelCliInstall | bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
#!/bin/bash | ||
|
||
curl -k https://localhost:8081/_explorer/emulator.pem > ~/emulatorcert.crt | ||
sudo cp ~/emulatorcert.crt /usr/local/share/ca-certificates/ | ||
sudo update-ca-certificates | ||
sleep 10 | ||
# curl -k https://localhost:8081/_explorer/emulator.pem > ~/emulatorcert.crt | ||
# sudo cp ~/emulatorcert.crt /usr/local/share/ca-certificates/ | ||
# sudo update-ca-certificates | ||
# sleep 10 | ||
dotnet restore sk-dev-team.sln | ||
dotnet build util/seed-memory/seed-memory.csproj && dotnet util/seed-memory/bin/Debug/net7.0/seed-memory.dll | ||
# dotnet build util/seed-memory/seed-memory.csproj && dotnet util/seed-memory/bin/Debug/net7.0/seed-memory.dll |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -496,4 +496,5 @@ elsa-core/ | |
sk-azfunc-server/local.settings.json | ||
.azure | ||
temp | ||
|
||
.mono/** | ||
**/values.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
# SemanticKernel Activity Provider for Elsa Workflows 3.x | ||
|
||
The project supports running [Microsoft Semantic Kernel](https://github.com/microsoft/semantic-kernel) Skills as workflows using [Elsa Workflows](https://v3.elsaworkflows.io). You can build the workflows as .NET code or in the visual designer. | ||
To run the designer: | ||
|
||
```bash | ||
> cd WorkflowsApp | ||
> cp .env_example .env | ||
# Edit the .env file to choose your AI model, add your API Endpoint, and secrets. | ||
> . ./.env | ||
> dotnet build | ||
> dotnet run | ||
# Open browser to the URI in the console output | ||
``` | ||
|
||
By Default you can use "admin" and "password" to login. Please review [Workflow Security](https://v3.elsaworkflows.io/docs/installation/aspnet-apps-workflow-server) for into on securing the app, using API tokens, and more. | ||
|
||
To [invoke](https://v3.elsaworkflows.io/docs/guides/invoking-workflows) a workflow, first it must be "Published". If your workflow has a trigger activity, you can use that. When your workflow is ready, click the "Publish" button. You can also execute the workflow using the API. Then, find the Workflow Definition ID. From a command line, you can use "curl": | ||
|
||
```bash | ||
> curl --location 'https://localhost:5001/elsa/api/workflow-definitions/{workflow_definition_id}/execute' \ | ||
--header 'Content-Type: application/json' \ | ||
--header 'Authorization: ApiKey {api_key}' \ | ||
--data '{ | ||
}' | ||
``` | ||
|
||
Once you have the app runing locally, you can login (admin/password - see the [Elsa Workflows](https://v3.elsaworkflows.io) for info about securing). Then you can click "new workflow" to begin building your workflow with semantic kernel skills. | ||
|
||
1. Drag workflow Activity blocks into the designer, and examine the settings. | ||
2. Connect the Activities to specify an order of operations. | ||
3. You can use Workfflow Variables to pass state between activities. | ||
1. Create a Workflow Variable, "MyVariable" | ||
2. Click on the Activity that you want to use to populate the variable. | ||
3. In the Settings box for the Activity, Click "Output" | ||
4. Set the "Output" to the variable chosen. | ||
5. Click the Activity that will use the variable. Click on "Settings". | ||
6. Find the text box representing the variable that you want to populate, in this case usually "input". | ||
7. Click the "..." widget above the text box, and select "javascript" | ||
8. Set the value of the text box to | ||
|
||
```javascript | ||
`${getMyVariable()}` | ||
``` | ||
|
||
9. Run the workflow. | ||
|
||
## Run via codespaces | ||
|
||
The easiest way to run the project is in Codespaces. Codespaces will start a qdrant instance for you. | ||
|
||
1. Create a new codespace from the *code* button on the main branch. | ||
2. Once the code space setup is finished, from the terminal: | ||
|
||
```bash | ||
> cd cli | ||
cli> cp ../WorkflowsApp/.env_example . | ||
# Edit the .env file to choose your AI model, add your API Endpoint, and secrets. | ||
cli> bash .env | ||
cli> dotnet build | ||
cli> dotnet run --file util/ToDoListSamplePrompt.txt do it | ||
``` | ||
|
||
You will find the output in the *output/* directory. |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.