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

Agent Instructions changes #383

Merged
merged 30 commits into from
Jun 19, 2023
Merged
Changes from 1 commit
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
3ee64b2
Added instruction logic
COLONAYUSH Jun 14, 2023
665a9cd
adding of instructions field
namansleeps2 Jun 15, 2023
dccf5a3
Merge branch 'instruction_logic' of github.com:TransformerOptimus/Sup…
namansleeps2 Jun 15, 2023
ebe04e7
adding of instructions field to send it to backend
namansleeps2 Jun 15, 2023
05b6968
Updated the performance evaluation for instruction
COLONAYUSH Jun 15, 2023
3ffdf1b
Merge branch 'instruction_logic' of github.com:TransformerOptimus/Sup…
namansleeps2 Jun 15, 2023
c2d0a7f
adding of instructions for agent templates also
namansleeps2 Jun 15, 2023
a8dc2c7
adding of instructions for create agent using template
namansleeps2 Jun 15, 2023
343a172
Removed INSTRUCTION Keyword
COLONAYUSH Jun 15, 2023
5d3405b
Made Instruction optional to add
COLONAYUSH Jun 15, 2023
5830d27
Merge branch 'dropdown_changes' of github.com:TransformerOptimus/Supe…
COLONAYUSH Jun 15, 2023
0e9044a
updated super_agi.py
COLONAYUSH Jun 15, 2023
b18a3da
Updated the code
COLONAYUSH Jun 15, 2023
aa58fbc
Updated super_agi
COLONAYUSH Jun 16, 2023
3377a8a
adding it to details page
namansleeps2 Jun 16, 2023
4673671
Added instruction change
COLONAYUSH Jun 16, 2023
15fa4ef
Added changes
COLONAYUSH Jun 16, 2023
fbf90b2
instruction changes
namansleeps2 Jun 16, 2023
5bdd38b
Merge remote-tracking branch 'origin/dropdown_changes' into dropdown_…
namansleeps2 Jun 16, 2023
6ad9e00
check for instructions in marketplace
namansleeps2 Jun 16, 2023
857a46c
Added instruction logic
COLONAYUSH Jun 16, 2023
978759a
Merge branch 'dropdown_changes' of github.com:TransformerOptimus/Supe…
COLONAYUSH Jun 16, 2023
a68e073
Update the GUI
COLONAYUSH Jun 16, 2023
1652a2f
updated controller
COLONAYUSH Jun 16, 2023
91e44a5
Added backward compatibility
COLONAYUSH Jun 16, 2023
83d9db9
Updated the prompt structure
COLONAYUSH Jun 16, 2023
e313d98
updated prompt structure
COLONAYUSH Jun 16, 2023
37e68ea
Update agent_prompt_builder.py
Jun 17, 2023
73507b1
sending of instructions in new run modal
namansleeps2 Jun 19, 2023
b01d727
Merge branch 'dev' into dropdown_changes
Jun 19, 2023
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
Prev Previous commit
Next Next commit
updated controller
  • Loading branch information
COLONAYUSH committed Jun 16, 2023
commit 1652a2f88cb5b5c327ca47b36181c6fb1a69add3
4 changes: 4 additions & 0 deletions superagi/controllers/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,10 +157,14 @@ def get_agent_configuration(agent_id: int,
total_tokens = db.session.query(func.sum(AgentExecution.num_of_tokens)).filter(
AgentExecution.agent_id == agent_id).scalar()


# Construct the JSON response
response = {result.key: result.value for result in results}
print(response["instruction"])
response = merge(response, {"name": agent.name, "description": agent.description,
# Query the AgentConfiguration table for the speci
"goal": eval(response["goal"]),
"instruction": eval(response["instruction"]),
"calls": total_calls,
"tokens": total_tokens,
"constraints": eval(response["constraints"]),
Expand Down