Skip to content

Commit

Permalink
event_agent_generator
Browse files Browse the repository at this point in the history
  • Loading branch information
isamu committed Jan 17, 2025
1 parent 4d8b89c commit e4bf803
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"@graphai/openai_agent": "^0.2.3",
"@graphai/tools_agent": "^0.2.0",
"@graphai/vanilla": "^0.2.9",
"@receptron/event_agent_generator": "^0.0.1",
"@receptron/graphai_vue_cytoscape": "^0.0.16",
"@receptron/text_input_agent_generator": "^0.0.3",
"@vueuse/head": "^2.0.0",
"core-js": "^3.40.0",
"graphai": "^0.6.19",
Expand Down
4 changes: 2 additions & 2 deletions src/views/Chat.vue
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ import { openAIAgent } from "@graphai/openai_agent";
import { useStreamData } from "@/utils/stream";
import { useCytoscape } from "@receptron/graphai_vue_cytoscape";
import { textInputAgentGenerator, InputPromises } from "@receptron/text_input_agent_generator";
import { textInputAgentGenerator, InputEvents } from "@receptron/event_agent_generator";
export default defineComponent({
name: "HomePage",
Expand All @@ -86,7 +86,7 @@ export default defineComponent({
// input
const userInput = ref("");
const inputPromises = ref<InputPromises>([]);
const inputPromises = ref<InputEvents>([]);
const { textInputAgent, submit } = textInputAgentGenerator(inputPromises.value);
const callSubmit = () => {
submit(inputPromises.value[0].id, userInput.value, () => {
Expand Down
4 changes: 2 additions & 2 deletions src/views/GoogleMap.vue
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ import { toolsAgent } from "@graphai/tools_agent";
import { useStreamData } from "@/utils/stream";
import { useCytoscape } from "@receptron/graphai_vue_cytoscape";
import { textInputAgentGenerator, InputPromises } from "@receptron/text_input_agent_generator";
import { textInputAgentGenerator, InputEvents } from "@receptron/event_agent_generator";
type ToolResult = { tool_calls: { id: string; name: string; arguments: unknown }[] };
type MessageResult = { message: { content: string } };
Expand Down Expand Up @@ -114,7 +114,7 @@ export default defineComponent({
// input
const userInput = ref("");
const inputPromises = ref<InputPromises>([]);
const inputPromises = ref<InputEvents>([]);
const { textInputAgent, submit } = textInputAgentGenerator(inputPromises.value);
const callSubmit = () => {
submit(inputPromises.value[0].id, userInput.value, () => {
Expand Down
4 changes: 2 additions & 2 deletions src/views/Marp.vue
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ import { openAIAgent } from "@graphai/openai_agent";
import { useStreamData } from "@/utils/stream";
import { useCytoscape } from "@receptron/graphai_vue_cytoscape";
import { textInputAgentGenerator, InputPromises } from "@receptron/text_input_agent_generator";
import { textInputAgentGenerator, InputEvents } from "@receptron/event_agent_generator";
import MarkdownIt from "markdown-it";
Expand All @@ -69,7 +69,7 @@ export default defineComponent({
// input
const userInput = ref("");
const inputPromises = ref<InputPromises>([]);
const inputPromises = ref<InputEvents>([]);
const { textInputAgent, submit } = textInputAgentGenerator(inputPromises.value);
const callSubmit = () => {
submit(inputPromises.value[0].id, userInput.value, () => {
Expand Down
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,11 @@
resolved "https://registry.yarnpkg.com/@pkgjs/parseargs/-/parseargs-0.11.0.tgz#a77ea742fab25775145434eb1d2328cf5013ac33"
integrity sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==

"@receptron/event_agent_generator@^0.0.1":
version "0.0.1"
resolved "https://registry.yarnpkg.com/@receptron/event_agent_generator/-/event_agent_generator-0.0.1.tgz#0c7f50d198192825b5ccb4794e3cf8ab04e4b875"
integrity sha512-PJsW8UonYYsTeEH/oUfG7VtMamk9cXOWOnPC1I8gu5YgmP7HNjejBpVWZGSuH5rqQtmttncvV/lEkZYFL+OHRQ==

"@receptron/graphai_vue_cytoscape@^0.0.16":
version "0.0.16"
resolved "https://registry.yarnpkg.com/@receptron/graphai_vue_cytoscape/-/graphai_vue_cytoscape-0.0.16.tgz#e5e54743b1b80e00db7f26c86dbd7f1ec4321448"
Expand Down

0 comments on commit e4bf803

Please sign in to comment.