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

Migrate AgentRunner to Agent Workflow (Python) #502

Open
wants to merge 30 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 23 commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
b4f0767
stg
leehuwuj Feb 11, 2025
bc2d503
raise error if there is no tools
leehuwuj Feb 11, 2025
cbebd03
stg
leehuwuj Feb 12, 2025
5ec1947
support request api
leehuwuj Feb 12, 2025
6d5749d
remove --no-files e2e test for python
leehuwuj Feb 12, 2025
22e4be9
use agent workflow for financial report use case
leehuwuj Feb 12, 2025
6ba5023
migrate form_filling to AgentWorkflow
leehuwuj Feb 13, 2025
0e4ee4a
refactor: chat message content
thucpn Feb 13, 2025
86610e6
rename function in chat-ui
thucpn Feb 14, 2025
8d3db71
Create cool-cars-promise.md
marcusschiesser Feb 17, 2025
5a230be
bump chat-ui
leehuwuj Feb 18, 2025
7e23d77
add new query index and weather card for agent workflows
leehuwuj Feb 18, 2025
0139a11
support source nodes
leehuwuj Feb 18, 2025
dae3249
remove unused function
leehuwuj Feb 18, 2025
798f378
fix empty chunk
leehuwuj Feb 19, 2025
d09ae65
keep the old code for financial report and form-filling
leehuwuj Feb 19, 2025
c7e4696
fix annotation message
leehuwuj Feb 19, 2025
c83fa96
fix mypy
leehuwuj Feb 19, 2025
25144dc
add artifact tool component
leehuwuj Feb 24, 2025
fe5982e
fix render empty div
leehuwuj Feb 24, 2025
1e90a6a
improve typing
leehuwuj Feb 24, 2025
087a45e
Merge remote-tracking branch 'origin' into lee/agent-workflows
leehuwuj Feb 25, 2025
d38eb3c
unify chat.py file
leehuwuj Feb 25, 2025
9fd6d0c
remove multiagent folder (python)
leehuwuj Feb 25, 2025
d0f606d
fix linting
leehuwuj Feb 25, 2025
21b7df1
fix missing import
leehuwuj Feb 25, 2025
c996508
support non-streaming api
leehuwuj Feb 25, 2025
be5870c
update citation prompt
leehuwuj Feb 25, 2025
8004c9f
remove dead code
leehuwuj Feb 25, 2025
b60618a
remove dead code
leehuwuj Feb 25, 2025
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
5 changes: 5 additions & 0 deletions .changeset/cool-cars-promise.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"create-llama": patch
---

Migrate AgentRunner to Agent Workflow (Python)
2 changes: 1 addition & 1 deletion .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
python-version: ["3.11"]
os: [macos-latest, windows-latest, ubuntu-22.04]
frameworks: ["fastapi"]
datasources: ["--no-files", "--example-file", "--llamacloud"]
datasources: ["--example-file", "--llamacloud"]
defaults:
run:
shell: bash
Expand Down
6 changes: 0 additions & 6 deletions helpers/python.ts
Original file line number Diff line number Diff line change
Expand Up @@ -470,12 +470,6 @@ export const installPythonTemplate = async ({
}
}

// Copy engine code
await copy("**", enginePath, {
parents: true,
cwd: path.join(compPath, "engines", "python", engine),
});

// Copy router code
await copyRouterCode(root, tools ?? []);
}
Expand Down
10 changes: 6 additions & 4 deletions questions/datasources.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,12 @@ export const getDataSourceChoices = (
});
}
if (selectedDataSource === undefined || selectedDataSource.length === 0) {
choices.push({
title: "No datasource",
value: "none",
});
if (framework !== "fastapi") {
choices.push({
title: "No datasource",
value: "none",
});
}
choices.push({
title:
process.platform !== "linux"
Expand Down
47 changes: 0 additions & 47 deletions templates/components/engines/python/chat/engine.py

This file was deleted.

21 changes: 0 additions & 21 deletions templates/components/engines/python/chat/node_postprocessors.py

This file was deleted.

55 changes: 0 additions & 55 deletions templates/components/multiagent/python/app/api/routers/chat.py
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

move SourceNodesEvent from multiagents events.py to deep research (then we can remove the file)

This file was deleted.

This file was deleted.

This file was deleted.

Loading
Loading