Skip to content

Commit

Permalink
updateTextAgent
Browse files Browse the repository at this point in the history
  • Loading branch information
isamu committed Jan 16, 2025
1 parent 8d6d5f8 commit 6949d1e
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 64 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"@graphai/agent_filters": "^0.0.9",
"@graphai/openai_agent": "^0.2.3",
"@graphai/tools_agent": "^0.2.0",
"@graphai/vanilla": "^0.2.7",
"@graphai/vanilla": "^0.2.8",
"@receptron/graphai_vue_cytoscape": "^0.0.16",
"@receptron/text_input_agent_generator": "^0.0.3",
"@vueuse/head": "^2.0.0",
Expand Down
54 changes: 0 additions & 54 deletions src/agents/update_text_agent.ts

This file was deleted.

2 changes: 1 addition & 1 deletion src/graph/markdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const graphMarkdown = {
},
md: {
value: "```\n# hello\n```",
update: ":updateText.resultText.text",
update: ":updateText.text",
},
system: {
agent: "copyAgent",
Expand Down
6 changes: 2 additions & 4 deletions src/views/Marp.vue
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ import * as agents from "@graphai/vanilla";
import { graphMarkdown } from "@/graph/markdown";
import { openAIAgent } from "@graphai/openai_agent";
import updateTextAgent from "../agents/update_text_agent";
// import updateTextAgent from "../agents/update_text_agent";
import { useStreamData } from "@/utils/stream";
Expand Down Expand Up @@ -102,7 +102,6 @@ export default defineComponent({
...agents,
openAIAgent,
textInputAgent,
updateTextAgent,
},
{
agentFilters,
Expand All @@ -126,8 +125,7 @@ export default defineComponent({
}
}
if (nodeId === "updateText" && result) {
console.log(result);
markdown.value = (result as { resultText: { text: string } }).resultText.text;
markdown.value = (result as { text: string }).text;
}
if (nodeId === "llm") {
if (state === "queued") {
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -282,10 +282,10 @@
resolved "https://registry.yarnpkg.com/@graphai/tools_agent/-/tools_agent-0.2.0.tgz#e5bad463991dd912233ce3910e10666a009a0314"
integrity sha512-qspjqIdVCFtqjOKFwJFBkqy46WQ/uKTbHbXzyazaLo17dpTELrr+h0L5+uspTRH4uhJwzvu+n4s9gJYqz8F5NQ==

"@graphai/vanilla@^0.2.7":
version "0.2.7"
resolved "https://registry.yarnpkg.com/@graphai/vanilla/-/vanilla-0.2.7.tgz#49a4360b4f451fd02a2885874444756b752bef05"
integrity sha512-OoVed4Jpj1aoWv1CCwB5GAKZjL9OxbNO5WgmBahZ3OqToaySQZ3332+4aiPB1g5QS9OQvUvtztKhfss0j66SYQ==
"@graphai/vanilla@^0.2.8":
version "0.2.8"
resolved "https://registry.yarnpkg.com/@graphai/vanilla/-/vanilla-0.2.8.tgz#9d1f0059bf190f7b8b2655ddd879cc6f26678419"
integrity sha512-04a/WLFrFPSvu07GeEeAK5aNki5xLVaDJsUfGcAqVbJfmGWITcNz/uPf4uUNvLAPASH4uZuEDUwLpGkv/EfRIw==
dependencies:
"@graphai/agent_utils" "0.0.3"

Expand Down

0 comments on commit 6949d1e

Please sign in to comment.