Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix(agents-api): Fix prompt step #472

Merged
merged 1 commit into from
Aug 29, 2024
Merged

Conversation

creatorrr
Copy link
Contributor

@creatorrr creatorrr commented Aug 28, 2024

Signed-off-by: Diwank Tomer diwank@julep.ai


🚀 This description was created by Ellipsis for commit 236679b

Summary:

Refactored prompt_step and acompletion functions for better prompt handling and settings management, improved error handling, and added a new test file.

Key points:

  • Refactored prompt_step in agents-api/agents_api/activities/task_steps/prompt_step.py to handle prompts and settings more effectively.
  • Updated acompletion in agents-api/agents_api/clients/litellm.py to manage messages and settings.
  • Improved error handling in agents-api/agents_api/routers/tasks/get_execution_details.py by printing error details.
  • Adjusted formatting in agents-api/agents_api/dependencies/developer_id.py for better readability.
  • Added agents-api/tests/sample_tasks/simple_prompt.yaml for testing prompt functionality.

Generated with ❤️ by ellipsis.dev

Signed-off-by: Diwank Tomer <diwank@julep.ai>
Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

❌ Changes requested. Reviewed everything up to 236679b in 12 seconds

More details
  • Looked at 223 lines of code in 5 files
  • Skipped 0 files when reviewing.
  • Skipped posting 0 drafted comments based on config settings.

Workflow ID: wflow_6Zo6ItXPF7D0Nclz


Want Ellipsis to fix these issues? Tag @ellipsis-dev in a comment. You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

@@ -15,7 +15,11 @@
async def get_execution_details(execution_id: UUID4) -> Execution:
try:
return get_execution_query(execution_id=execution_id)
except AssertionError:
except AssertionError as e:
print("-" * 100)
Copy link
Contributor

Choose a reason for hiding this comment

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

Replace print statements with a proper logging mechanism for better control over log levels and outputs.

@whiterabbit1983 whiterabbit1983 merged commit 0fc131c into dev-tasks Aug 29, 2024
2 of 5 checks passed
@whiterabbit1983 whiterabbit1983 deleted the x/fix-prompt-step branch August 29, 2024 13:16
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants