Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add baidu map plugin #219

Merged
merged 4 commits into from
Dec 25, 2024
Merged

feat: add baidu map plugin #219

merged 4 commits into from
Dec 25, 2024

Conversation

CoderSerio
Copy link
Contributor

@CoderSerio CoderSerio commented Dec 19, 2024

Describe what this PR does / why we need it

Baidu Map is also one of the commonly used apps in daily life, so it is necessary to provide some support for it.

Does this pull request fix one issue?

#98

Describe how you did it

With Baidu Map Open APIs

Describe how to verify it

Originally, there was an example here, but I noticed that this part of the file has been moved to another repository. I will also add it to the new one as soon as possible

image

The part of original example:

@GetMapping("/baiduMap-get-address-weather")
public String baiDuMapGetAddressWeatherFunction(String input) {
    return chatClient.prompt()
        .functions("baiDuMapGetAddressWeatherFunction")
        .system("如果用户输入的内容中想询问天气情况,而且还给定了地址,则使用工具获取天气情况,不然提示用户缺少信息")
        .user(input)
        .call()
        .content();
}

Special notes for reviews

@PolarishT
Copy link
Contributor

Hi, this issue should related to #98

@CoderSerio
Copy link
Contributor Author

Hi, this issue should related to #98

Thx noticing me, and I've added it😘

…mplement regional surrounding information retrieval
@CoderSerio
Copy link
Contributor Author

@PolarishT
I've implemented the feature to get detailed information about facilities around a specific address.
And I've retained the ability to retrieve weather information, so both features can be used together.

image

Additionally, I've moved the dirs and files into function-calling from the original plugins

@yuluo-yx
Copy link
Collaborator

yuluo-yx commented Dec 24, 2024 via email

@PolarishT
Copy link
Contributor

统一使用JackSon吧~ 我们和Spring的生态对齐

@CoderSerio
Copy link
Contributor Author

统一使用JackSon吧~ 我们和Spring的生态对齐

看插件怎么定义了,我看用了 fastjson 所以顺带说了一下

稍后我去改一下,辛苦二位的CR!

@CoderSerio
Copy link
Contributor Author

Done. 辛苦大佬们有空再帮忙 CR 看下有没有什么问题。

Copy link
Contributor

@PolarishT PolarishT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@chickenlj chickenlj merged commit 410976a into alibaba:main Dec 25, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants