> For the complete documentation index, see [llms.txt](https://docs.agentipy.fun/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.agentipy.fun/tools/create-gibwork-task.md).

# Create Gibwork Task

The `Create Gibwork Task` tool is part of AgentiPy, used for creating tasks on the Gibwork platform (api2.gib.work). These tasks are initiated on the Solana blockchain and can involve token rewards for completion.

## Functionality

This tool is implemented in the `GibworkManager` class.

### Key Methods:

* `create_gibwork_task(agent: SolanaAgentKit, title: str, content: str, requirements: str, tags: list[str], token_mint_address: PublicKey, token_amount: int) -> GibworkCreateTaskResponse`:
  * Constructs a payload with task details: `title`, `content` (description of the task), `requirements`, `tags` (list of keywords), `payer` (agent's wallet address), and `token` information (mint address and amount for rewards).
  * Makes a POST request to the Gibwork API (`https://api2.gib.work/tasks/public/transaction`) to get a serialized transaction.
  * Deserializes the transaction, signs it with the agent's wallet.
  * Sends and confirms the transaction on the Solana network.
  * Returns a `GibworkCreateTaskResponse` containing the status, task ID, and transaction signature.

**Note:** This tool interacts with an external API (Gibwork) and the Solana blockchain. It requires a valid `SolanaAgentKit` setup with a funded wallet. The `token_mint_address` and `token_amount` must correspond to tokens held by the agent's wallet.

## Source Code

You can find the source code for this tool on GitHub: <https://github.com/niceberginc/agentipy/blob/main/agentipy/tools/create_gibwork.py>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.agentipy.fun/tools/create-gibwork-task.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
