update_agent_session
Updates or registers an agent's active task and state in a PostgreSQL database with thread-safe upsert, ensuring coordination and preventing conflicts.
Instructions
Updates or registers the active task and state of an agent in the database (thread-safe upsert).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| db_name | Yes | ||
| agent_name | Yes | ||
| active_task | Yes | ||
| active_file | No | ||
| status | No | active |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |