2025-04-02 15:45:33 +00:00
|
|
|
|
<template>
|
|
|
|
|
<view >
|
|
|
|
|
<!-- index.wxml -->
|
|
|
|
|
<agent-ui :agentConfig="agentConfig"></agent-ui>
|
|
|
|
|
</view>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
2025-04-05 08:12:09 +00:00
|
|
|
|
import agentUi from '@/components/agent-ui/index.vue';
|
2025-04-02 15:45:33 +00:00
|
|
|
|
|
|
|
|
|
// index.js
|
|
|
|
|
export default {
|
|
|
|
|
components: {
|
|
|
|
|
// navigationBar,
|
|
|
|
|
agentUi
|
|
|
|
|
},
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
agentConfig: {
|
|
|
|
|
type: 'bot',
|
|
|
|
|
// 值为'bot'或'model'。当type='bot'时,botId必填;当type='model'时,modelName和model必填
|
|
|
|
|
botId: 'bot-3e561e60',
|
|
|
|
|
// agent id
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
methods: {}
|
|
|
|
|
};
|
|
|
|
|
</script>
|
|
|
|
|
<style></style>
|