Open
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”),
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.