import{_ as i,c as a,ae as n,o as t}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(k,s,l,p,r,d){return t(),a("div",null,s[0]||(s[0]=[n(`

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='获取当前时间,日期和星期')
async def get_current_time() -> str:
    current_time = DateTime.now().strftime('%Y.%m.%d %H:%M:%S')
    current_weekday = DateTime.now().weekday()
    weekdays = ['星期一', '星期二', '星期三', '星期四', '星期五', '星期六', '星期日']
    current_weekday_name = weekdays[current_weekday]
    current_lunar_date = DateTime.now().to_lunar().date_hanzify()[5:]
    time_prompt = f'现在的时间是 {current_time}{current_weekday_name},农历 {current_lunar_date}。'
    return time_prompt
`,6)]))}const o=i(e,[["render",h]]);export{g as __pageData,o as default};