Function create_gibwork_task

Source
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 instance
  • title - Title of the task
  • content - Description of the task
  • requirements - Requirements to complete the task
  • tags - List of tags associated with the task
  • token_mint_address - Token mint address for payment
  • token_amount - Payment amount for the task
  • payer - Optional payer address (defaults to agent’s wallet address)

§Returns

Object containing task creation transaction and generated taskId