import{_ as i,c as a,ae as t,o as n}from"./chunks/framework.BzDBnRMZ.js";const g=JSON.parse('{"title":"index","description":"","frontmatter":{"title":"index","order":100,"collapsed":true},"headers":[],"relativePath":"en/dev/api/plugins_test/marshoai_basic/index.md","filePath":"en/dev/api/plugins_test/marshoai_basic/index.md","lastUpdated":null}'),e={name:"en/dev/api/plugins_test/marshoai_basic/index.md"};function h(l,s,p,r,k,d){return n(),a("div",null,s[0]||(s[0]=[t('

Module nonebot_plugin_marshoai.plugins_test.marshoai_basic


@on_function_call(description='获取当前时间,日期和星期')

async func get_current_time() -> str

Description: 获取当前的时间和日期

Source code or View on GitHub
python
@on_function_call(description='获取当前时间,日期和星期')\nasync def get_current_time() -> str:\n    current_time = DateTime.now()\n    time_prompt = '现在的时间是 {}{}{}。'.format(current_time.strftime('%Y.%m.%d %H:%M:%S'), weekdays[current_time.weekday()], current_time.chinesize.date_hanzify('农历{干支年}{生肖}{月份}{数序日}'))\n    return time_prompt
',6)]))}const c=i(e,[["render",h]]);export{g as __pageData,c as default};