pub async fn create_gibwork_task(
agent: &SolanaAgentKit,
title: &str,
content: &str,
requirements: &str,
tags: Vec<String>,
token_mint_address: &str,
token_amount: u64,
payer: Option<Pubkey>,
) -> Result<GibworkCreateTaskResponse, Box<dyn Error>>Expand description
Create a new task on Gibwork
§Arguments
agent- SolanaAgentKit instancetitle- Title of the taskcontent- Description of the taskrequirements- Requirements to complete the tasktags- List of tags associated with the tasktoken_mint_address- Token mint address for paymenttoken_amount- Payment amount for the taskpayer- Optional payer address (defaults to agent’s wallet address)
§Returns
Object containing task creation transaction and generated taskId