-
Notifications
You must be signed in to change notification settings - Fork 635
feat/agent-urgency-logic #116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
feat/agent-urgency-logic #116
Conversation
This commit updates the README.md file to include a new section explaining the "Agent Urgency Logic". The new section, titled "Deciding When to Act: Urgency Score," is added under "Using the Library" -> "TinyPerson." It details: - The purpose of the urgency score mechanism. - The `_calculate_interaction_urgency` method in the `TinyPerson` class. - The `URGENCY_TO_ACT_THRESHOLD` constant in `tinytroupe.control`. - The `handle_agent_action_with_urgency` helper function in `tinytroupe.control`. - A conceptual code example demonstrating usage. The formatting and style of the new section are consistent with the existing README.md content.
|
@felipcsousa please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information.
Contributor License AgreementContribution License AgreementThis Contribution License Agreement (“Agreement”) is agreed to by the party signing below (“You”),
|
feat: Implement agent interaction urgency logic
This commit introduces a new mechanism for me to decide whether to act based on an urgency score.
Key changes:
Added a method to calculate interaction urgency. This method:
Defined an urgency threshold (defaulting to 75).
Added a new utility function to handle my actions with urgency. This function:
act()method is called.This change allows for more nuanced behavior, where I only expend resources to act if the situation is deemed sufficiently urgent. The main simulation loop can now use this new utility function to process my turn.