juechafun/Untitled 8.md

18 lines
348 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

```python
# 技能名称SayHello
# 功能根据用户名称说Hell用户名称
def say_hello(user_name: str) -> str:
"""
入参user_name -> 需要对话的用户名称
出参输出hello的结果语句
"""
return f"Hello, {user_name}"
# 对外暴露为Skill入口
SKILLS = {
"say_hello": say_hello
}
```