Skip to content

Commit

Permalink
update default call formatters
Browse files Browse the repository at this point in the history
  • Loading branch information
breeg554 committed Nov 7, 2024
1 parent 38000a1 commit d0b1893
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 5 deletions.
7 changes: 6 additions & 1 deletion apps/api/lib/buildel/blocks/api_call_tool.ex
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,12 @@ defmodule Buildel.Blocks.ApiCallTool do
}),
call_formatter:
EditorField.call_formatter(%{
default: "{{config.block_name}} API 🖥️: {{config.args}}\n",
default: """
<details>
<summary>API Request</summary>
"{{config.args}}"
</details>
""",
description: "How to format calling of api call through tool interface.",
displayWhen: %{
connections: %{
Expand Down
7 changes: 6 additions & 1 deletion apps/api/lib/buildel/blocks/browser.ex
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,12 @@ defmodule Buildel.Blocks.Browser do
Jason.OrderedObject.new(
call_formatter:
EditorField.call_formatter(%{
default: "{{config.block_name}} Browse 📑: \"{{config.args}}\"\n",
default: """
<details>
<summary>Website scrape...</summary>
"{{config.args}}"
</details>
""",
description: "How to format calling of api call through tool interface.",
displayWhen: %{
connections: %{
Expand Down
7 changes: 6 additions & 1 deletion apps/api/lib/buildel/blocks/document_search.ex
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,12 @@ defmodule Buildel.Blocks.DocumentSearch do
},
call_formatter:
EditorField.call_formatter(%{
default: "Database 📑: Search \"{{config.args}}\"\n",
default: """
<details>
<summary>Database search...</summary>
"{{config.args}}"
</details>
""",
displayWhen: %{
connections: %{
tool_worker: %{
Expand Down
7 changes: 6 additions & 1 deletion apps/api/lib/buildel/blocks/document_tool.ex
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,12 @@ defmodule Buildel.Blocks.DocumentTool do
call_formatter:
EditorField.call_formatter(%{
description: "The formatter to use when retrieving data from DB.",
default: "Database 📑: Document {{config.args}}\n",
default: """
<details>
<summary>Database</summary>
Document "{{config.args}}"
</details>
""",
displayWhen: %{
connections: %{
tool_worker: %{
Expand Down
7 changes: 6 additions & 1 deletion apps/api/lib/buildel/blocks/web_search.ex
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,12 @@ defmodule Buildel.Blocks.BraveSearch do
}),
call_formatter:
EditorField.call_formatter(%{
default: "{{config.block_name}} Search 📑: \"{{config.args}}\"\n",
default: """
<details>
<summary>Web search...</summary>
"{{config.args}}"
</details>
""",
description: "How to format calling of api call through tool interface.",
displayWhen: %{
connections: %{
Expand Down

0 comments on commit d0b1893

Please sign in to comment.