mirror of
https://github.com/Hopiu/llm.git
synced 2026-03-16 20:50:25 +00:00
Show tool_instances on logging.md, refs #1089
This commit is contained in:
parent
6bab712cdd
commit
eddcf480e3
1 changed files with 7 additions and 1 deletions
|
|
@ -295,7 +295,7 @@ cog.out("```sql\n")
|
|||
for table in (
|
||||
"conversations", "schemas", "responses", "responses_fts", "attachments", "prompt_attachments",
|
||||
"fragments", "fragment_aliases", "prompt_fragments", "system_fragments", "tools",
|
||||
"tool_responses", "tool_calls", "tool_results"
|
||||
"tool_responses", "tool_calls", "tool_results", "tool_instances"
|
||||
):
|
||||
schema = db[table].schema
|
||||
cog.out(format(cleanup_sql(schema)))
|
||||
|
|
@ -406,6 +406,12 @@ CREATE TABLE "tool_results" (
|
|||
[tool_call_id] TEXT,
|
||||
[instance_id] INTEGER REFERENCES [tool_instances]([id])
|
||||
);
|
||||
CREATE TABLE [tool_instances] (
|
||||
[id] INTEGER PRIMARY KEY,
|
||||
[plugin] TEXT,
|
||||
[name] TEXT,
|
||||
[arguments] TEXT
|
||||
);
|
||||
```
|
||||
<!-- [[[end]]] -->
|
||||
`responses_fts` configures [SQLite full-text search](https://www.sqlite.org/fts5.html) against the `prompt` and `response` columns in the `responses` table.
|
||||
|
|
|
|||
Loading…
Reference in a new issue