nonebot-plugin-marshoai/assets/en_dev_api_plugin_func_call_params.md.u__hMe93.js

2 lines
19 KiB
JavaScript
Raw Normal View History

import{_ as t,c as s,ae as e,o as i}from"./chunks/framework.BzDBnRMZ.js";const k=JSON.parse('{"title":"params","description":"","frontmatter":{"title":"params","order":100},"headers":[],"relativePath":"en/dev/api/plugin/func_call/params.md","filePath":"en/dev/api/plugin/func_call/params.md","lastUpdated":null}'),r={name:"en/dev/api/plugin/func_call/params.md"};function n(l,a,o,h,d,p){return i(),s("div",null,a[0]||(a[0]=[e('<h1 id="module-nonebot-plugin-marshoai-plugin-func-call-params" tabindex="-1"><strong>Module</strong> <code>nonebot_plugin_marshoai.plugin.func_call.params</code> <a class="header-anchor" href="#module-nonebot-plugin-marshoai-plugin-func-call-params" aria-label="Permalink to &quot;**Module** `nonebot_plugin_marshoai.plugin.func_call.params`&quot;"></a></h1><h3 id="var-p" tabindex="-1">var <code>P</code> <a class="header-anchor" href="#var-p" aria-label="Permalink to &quot;var `P`&quot;"></a></h3><ul><li><p><strong>Description</strong>: </p></li><li><p><strong>Default</strong>: <code>TypeVar(&#39;P&#39;, bound=&#39;Parameter&#39;)</code></p></li></ul><h3 id="class-paramtypes" tabindex="-1"><em><strong>class</strong></em> <code>ParamTypes</code> <a class="header-anchor" href="#class-paramtypes" aria-label="Permalink to &quot;***class*** `ParamTypes`&quot;"></a></h3><h4 id="attr-string-string" tabindex="-1"><em><strong>attr</strong></em> <code>STRING = &#39;string&#39;</code> <a class="header-anchor" href="#attr-string-string" aria-label="Permalink to &quot;***attr*** `STRING = &#39;string&#39;`&quot;"></a></h4><h4 id="attr-integer-integer" tabindex="-1"><em><strong>attr</strong></em> <code>INTEGER = &#39;integer&#39;</code> <a class="header-anchor" href="#attr-integer-integer" aria-label="Permalink to &quot;***attr*** `INTEGER = &#39;integer&#39;`&quot;"></a></h4><h4 id="attr-array-array" tabindex="-1"><em><strong>attr</strong></em> <code>ARRAY = &#39;array&#39;</code> <a class="header-anchor" href="#attr-array-array" aria-label="Permalink to &quot;***attr*** `ARRAY = &#39;array&#39;`&quot;"></a></h4><h4 id="attr-object-object" tabindex="-1"><em><strong>attr</strong></em> <code>OBJECT = &#39;object&#39;</code> <a class="header-anchor" href="#attr-object-object" aria-label="Permalink to &quot;***attr*** `OBJECT = &#39;object&#39;`&quot;"></a></h4><h4 id="attr-boolean-boolean" tabindex="-1"><em><strong>attr</strong></em> <code>BOOLEAN = &#39;boolean&#39;</code> <a class="header-anchor" href="#attr-boolean-boolean" aria-label="Permalink to &quot;***attr*** `BOOLEAN = &#39;boolean&#39;`&quot;"></a></h4><h4 id="attr-number-number" tabindex="-1"><em><strong>attr</strong></em> <code>NUMBER = &#39;number&#39;</code> <a class="header-anchor" href="#attr-number-number" aria-label="Permalink to &quot;***attr*** `NUMBER = &#39;number&#39;`&quot;"></a></h4><h3 id="class-parameter-basemodel" tabindex="-1"><em><strong>class</strong></em> <code>Parameter(BaseModel)</code> <a class="header-anchor" href="#class-parameter-basemodel" aria-label="Permalink to &quot;***class*** `Parameter(BaseModel)`&quot;"></a></h3><hr><h4 id="func-data-self-dict-str-any" tabindex="-1"><em><strong>func</strong></em> <code>data(self) -&gt; dict[str, Any]</code> <a class="header-anchor" href="#func-data-self-dict-str-any" aria-label="Permalink to &quot;***func*** `data(self) -&gt; dict[str, Any]`&quot;"></a></h4><details><summary><b>Source code</b> or <a href="https://github.com/LiteyukiStudio/nonebot-plugin-marshoai/tree/main/nonebot_plugin_marshoai/plugin/func_call/params.py#L46" target="_blank">View on GitHub</a></summary><div class="language-python vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">python</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">def</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> data</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(self) -&gt; dict[</span><span style="--shiki-ligh