Done ! 403WebShell
403Webshell
Server IP : 46.105.57.169  /  Your IP : 216.73.216.67
Web Server : Apache
System : Linux webm002.cluster120.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User : verseaumee ( 152031)
PHP Version : 8.5.7
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/verseaumee/blueversionx/wp-content/plugins/ai-engine/classes/data/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/verseaumee/blueversionx/wp-content/plugins/ai-engine/classes/data/function-call.php
<?php

/**
* Value object representing a function call request from an AI model
*/
class Meow_MWAI_Data_FunctionCall {
  public string $id;
  public string $name;
  public string $arguments;

  public function __construct( string $id, string $name, string $arguments ) {
    $this->id = $id;
    $this->name = $name;
    $this->arguments = $arguments;
  }

  /**
  * Create from OpenAI tool call format
  */
  public static function from_tool_call( array $toolCall ): self {
    return new self(
      $toolCall['id'],
      $toolCall['function']['name'],
      $toolCall['function']['arguments']
    );
  }

  /**
  * Create from Anthropic tool use format
  */
  public static function from_tool_use( array $toolUse ): self {
    return new self(
      $toolUse['id'],
      $toolUse['name'],
      json_encode( $toolUse['input'] )
    );
  }

  /**
  * Get arguments as JSON string
  */
  public function get_arguments_json(): string {
    return $this->arguments;
  }

  /**
  * Get arguments as array
  */
  public function get_arguments_array(): array {
    return json_decode( $this->arguments, true ) ?? [];
  }
}

Youez - 2016 - github.com/yon3zu
LinuXploit