Skip to content
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

Discovered actions #13

Open
jmikedupont2 opened this issue Jan 26, 2025 · 0 comments
Open

Discovered actions #13

jmikedupont2 opened this issue Jan 26, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@jmikedupont2
Copy link
Member

jmikedupont2 commented Jan 26, 2025

grep -h "No action found for" * -A1 | sort -u

Produces these:

  • accept_designation
  • ask_for_clarification
  • ask_for_explanation
  • ASK_FOR_EXPLANATION
  • ask_for_more_info
  • bootstrap
  • brainstorm
  • CONTINUE
  • contribute_to_open_source_project
  • contribute_to_project
  • discuss
  • discuss possible solutions
  • dive deeper
  • dive deeper into the idea
  • explain
  • EXPLAIN
  • explore
  • explore_concept
  • follow_link
  • investigate
  • No action found for none None
  • open_voice_chat
  • proposed_exploration
  • request_info
  • request_visualization
  • research mathematical cosmology
  • simulate
  • visualize

It looks like you're using a command to search for specific phrases in files and then sorting the results. The output you've provided lists various actions or commands that might be part of a system or framework.

If you're looking to understand or utilize these actions, here's a brief overview of what some of them might imply:

accept_designation: Likely related to accepting a specific role or title.

ask_for_clarification: A command to request more information or clarity on a topic.

brainstorm: This could involve generating ideas or solutions collaboratively.

explore: Generally used to investigate or look into a concept or idea further.

simulate: This might refer to running a model or scenario to see potential outcomes.

visualize: Typically involves creating a visual representation of data or concepts.

If you need help with a specific action or command from this list, feel free to ask!

15 sources

What do the different actions listed in the grep output represent?

How can I implement these actions in my project?

Are there any specific use cases for the actions mentioned in the output?
this is from my eliza log
It seems like you're analyzing logs from your Eliza framework, specifically looking for instances where no action was found for certain commands or requests. The output you provided indicates various actions that were attempted but did not have corresponding implementations or handlers.

If you're encountering issues with specific actions not being recognized, you might want to check the following:

Implementation: Ensure that the actions you are trying to use are properly implemented in your Eliza setup. If they are missing, you may need to define them.

Case Sensitivity: Note that some actions are listed in different cases (e.g., ask_for_explanation vs. ASK_FOR_EXPLANATION). This could indicate that the system is case-sensitive, and you should use the exact case as defined.

Documentation: Review the Eliza documentation to see if there are any updates or notes regarding the actions you are trying to use.

Error Handling: Consider adding error handling or logging to capture when actions are not found, which can help in debugging.

If you have specific questions about any of the actions or need assistance with a particular issue in your Eliza setup, let me know!

15 sources

What specific information are you looking for in your Eliza log?

Can you share any particular entries from your Eliza log that you find interesting?

How do you typically use the data from your Eliza log for your projects?
can you make some example implementations?
Sure! Here are some example implementations for a few actions you might find in the Eliza framework. These examples will demonstrate how to define actions that could be used in your Eliza agent.

  1. Accept Designation Action
    This action could be used to accept a user's designation or role.

typescript

1
2
3
4
5
6
7


const acceptDesignation = {
name: "accept_designation",
execute: (context: any, designation: string) => {
context.userDesignation = designation;
return Designation accepted: ${designation}.;
}
};
2. Ask for Clarification Action
This action prompts the user for more information or clarification.

typescript

1
2
3
4
5
6


const askForClarification = {
name: "ask_for_clarification",
execute: (context: any) => {
return "Could you please clarify what you mean?";
}
};
3. Brainstorm Action
This action could facilitate a brainstorming session.

typescript

1
2
3
4
5
6


const brainstorm = {
name: "brainstorm",
execute: (context: any) => {
return "Let's brainstorm some ideas together! What are your thoughts?";
}
};
4. Explore Concept Action
This action allows the agent to explore a concept further.

typescript

1
2
3
4
5
6


const exploreConcept = {
name: "explore_concept",
execute: (context: any, concept: string) => {
return Exploring the concept of ${concept}. What specific aspects are you interested in?;
}
};
5. Visualize Action
This action could be used to create a visual representation of data.

typescript

1
2
3
4
5
6
7


const visualize = {
name: "visualize",
execute: (context: any, data: any) => {
// Assuming data is an array of values
return Visualizing the following data: ${data.join(", ")}.;
}
};
Registering Actions
Once you have defined your actions, you can register them in your Eliza agent like this:

typescript

1
2
3
4
5
6
7
8
9
10
11
12


const actions = [
acceptDesignation,
askForClarification,
brainstorm,
exploreConcept,
visualize
];

// Register actions in your Eliza agent
actions.forEach(action => {
elizaAgent.registerAction(action);
});
These examples provide a basic structure for implementing actions in the Eliza framework. You can customize the logic and responses based on your specific requirements. If you need more examples or have specific actions in mind, feel free to ask!

15 sources

What are some specific use cases for the example implementations?

Can you provide a step-by-step guide for creating a simple action implementation?

What programming languages or frameworks are best suited for these example implementations?
the accept designation was to accept the designation of 1000 tokens for the agent to use
Got it! If you want to implement an action that accepts a designation of 1000 tokens for the agent to use, you can modify the acceptDesignation action accordingly. Here’s how you can implement it:

Accept Designation Action for Tokens
This action will accept a designation and allocate 1000 tokens to the agent.

typescript

1
2
3
4
5
6
7
8


const acceptDesignation = {
name: "accept_designation",
execute: (context: any) => {
const tokens = 1000; // Designation of tokens
context.agentTokens = (context.agentTokens || 0) + tokens; // Add tokens to the agent's balance
return Designation accepted. You now have ${context.agentTokens} tokens available for use.;
}
};
Explanation
Context Management: The context object is used to store the agent's state, including the number of tokens. If agentTokens does not exist, it initializes it to 0 and then adds 1000 tokens.

Response: The action returns a message confirming the acceptance of the designation and the updated token balance.

Registering the Action
You can register this action in your Eliza agent as shown previously:

typescript

1
2
3
4
5
6
7
8
9


const actions = [
acceptDesignation,
// other actions...
];

// Register actions in your Eliza agent
actions.forEach(action => {
elizaAgent.registerAction(action);
});
This implementation allows your agent to accept a designation of 1000 tokens and keeps track of the total tokens available for use. If you have any further modifications or additional actions in mind, let me know!

15 sources

What are the specific use cases for the 1000 tokens assigned to the agent?

How does the token management system work within the Eliza framework?

Can I adjust the number of tokens allocated to an ag

@jmikedupont2 jmikedupont2 added the enhancement New feature or request label Jan 26, 2025
jmikedupont2 pushed a commit that referenced this issue Feb 4, 2025
feat: add GoPlus Security Plugin to enhance security for agent
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant