Stevenic / agentm-py

A library of "Micro Agents" that make it easy to add reliable intelligence to any application.
MIT License
8 stars 3 forks source link

[Subtask] Adapt sortList function to Python #12

Closed debuggerone closed 2 months ago

debuggerone commented 2 months ago

Subtask Overview

This subtask involves adapting the sortList function from JavaScript to Python, utilizing Python's sorting capabilities and ensuring the function behaves as expected in the Python environment.

Tasks

Acceptance Criteria

Stevenic commented 2 months ago

This component is a) super expensive to use request & token wise b) not overly stable at sorting. I would almost never recommend using this in a production environment but it's an interesting tech demo. We should probably consider removing it though so people aren't tempted to use it. There are better approaches to having AI help you with sorting.

debuggerone commented 2 months ago

Maybe add that to the settings - where you explicitely have to activate the option "use expensive functions"

debuggerone commented 2 months ago

Screenshot from 2024-09-11 12-21-00

I am using batch requests which is at least pretty fast... and it works yay!

debuggerone commented 2 months ago

err ok, last line did not work..

Screenshot from 2024-09-11 12-46-57

now it does