Skip to content

Helper repository for VESSL AI hacking contents on 250219 Agentic AI Hacknight

Notifications You must be signed in to change notification settings

vessl-ai/250219-agentic-ai-hacknight

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Prerequisites

  1. uv cli and playwright is needed.
brew install uv
uv pip install playwright
uv run playwright install
  1. Enable X Developer account. - Link. This will make you a new project and app.

  2. Setup app's user authentication settings alt text alt text

  3. Acquire credentials:

  • client_id
  • client_secret

Initial Setup

  1. Install the required packages by running the following command in the terminal:
uv sync
  1. Export OpenAI credentials:

To make one, go to https://platform.openai.com/account/api-keys

export OPENAI_API_KEY=<your_openai_api_key>
  1. Run the following command to test if the agent is working:
uv run x_posting_agent/agent.py

Add X tools and post something fun

1. Writing config

If you have run this, you will see the .secrets.toml file has been generated.

Add the X tokens to the .secrets.toml file:

[auth.x]
client_id = "<your_client_id>"
client_secret = "<your_client_secret>"

2. Add tools

Go to 01_x_posting_agent/x_posting_agent/agent.py#L55:

    with PocketLangchain(
        tools=[
            # Add your tools here
            #"https://github.com/vessl-ai/hyperpocket/tree/main/xxx",
        ],

You can add the following tools:

Run again and play with the agent.

Add predefined tools to your agent and build some cool stuff

You can see the list of Hyperpocket managed tools in https://github.com/vessl-ai/hyperpocket/tree/main/tools.

  1. Create your directory as <TEAMNAME_AGENTNAME> and copy upper example(x_posting_agent) into it.

  2. Tune system prompt and add tools to the agent.

  1. Run the agent and see the magic.

Create your own tools and add them to the agent

To add a custom tool, follow the docs https://vessl-ai.github.io/hyperpocket/tools/using-function-tools.html

About

Helper repository for VESSL AI hacking contents on 250219 Agentic AI Hacknight

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages