Skip to content

Instantly share code, notes, and snippets.

View Shulyaka's full-sized avatar

Denis Shulyaka Shulyaka

  • Hellas Planitia, Hellas quadrangle, Iapygia
View GitHub Profile
@Shulyaka
Shulyaka / review.py
Created January 13, 2024 09:37
Interaction of two AI agents
#!/usr/bin/env python3
"""
This is an example of a team work of two OpenAI Assistants. They have been given a task to review a test of a new employee candidate. The 'Reviewer' (aka Junior hiring manager) is given the instructions to review the test, and the 'Supervisor' (aka Senior hiring manager) is given the instructions to guide the Reviewer throug the process, to ask him to review section by section, and to check his work. User and Reviewer only talk to Supervisor and not to each other.
As of Jan 2024, it is not perfect and the AI Agents do make mistakes and still require human intervention to complete the task correctly. Howewer this approach significantly reduces the number of interventions required and provides better results because of self-check. The downside is the number of tokens required is several times greater than with a single agent approach.
The instructions are very custom and thus not included. But here is an example:
```supervisor_instructions.md
You are a senior hiring manager of a te

server:

turris-cagen new_ca password_agent gen_ca gen_server shulyaka.org.ru
turris-cagen switch password_agent gen_client denis
turris-cagen-status password_agent

copy /etc/lighttpd/conf.d/password_agent.conf copy /www/cgi-bin/password_agent.sh copy /etc/config/password_agent copy /etc/init.d/password_agent

@Shulyaka
Shulyaka / gist:ac11ff8abaa7e0106e4d5b53b87cc2e1
Last active April 16, 2018 16:20
Install fedora to cloudatcost server (work in progress)
lvreduce -l -291 -f /dev/centos/root #512
pvresize --setphysicalvolumesize 8577 /dev/sda2 #7689
fdisk /dev/sda
d
n
+8582M