Skip to content

Commit

Permalink
fix(agents-api): Fix default_settings being null
Browse files Browse the repository at this point in the history
Signed-off-by: Diwank Singh Tomer <[email protected]>
  • Loading branch information
creatorrr committed Sep 17, 2024
1 parent b5f51a6 commit d200a35
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 8 deletions.
22 changes: 22 additions & 0 deletions agents-api/agents_api/models/agent/list_agents.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ def list_agents(
created_at,
updated_at,
metadata,
default_settings,
instructions,
] := input[developer_id],
*agents {{
Expand All @@ -86,6 +87,27 @@ def list_agents(
metadata,
instructions,
}},
*agent_default_settings {{
agent_id: id,
frequency_penalty,
presence_penalty,
length_penalty,
repetition_penalty,
top_p,
temperature,
min_p,
preset,
}},
default_settings = {{
"frequency_penalty": frequency_penalty,
"presence_penalty": presence_penalty,
"length_penalty": length_penalty,
"repetition_penalty": repetition_penalty,
"top_p": top_p,
"temperature": temperature,
"min_p": min_p,
"preset": preset,
}},
{metadata_filter_str}
:limit $limit
Expand Down
10 changes: 2 additions & 8 deletions agents-api/tests/test_execution_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -497,14 +497,8 @@ async def _(
activity for activity in activities_scheduled if activity
]

try:
future = handle.result()
breakpoint()
await future
except BaseException as exc:
print("exc", exc)
breakpoint()
raise
future = handle.result()
await future

assert "wait_for_input_step" in activities_scheduled

Expand Down

0 comments on commit d200a35

Please sign in to comment.