diff --git a/docs/logging.md b/docs/logging.md index b7550be..b93d870 100644 --- a/docs/logging.md +++ b/docs/logging.md @@ -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 +); ``` `responses_fts` configures [SQLite full-text search](https://www.sqlite.org/fts5.html) against the `prompt` and `response` columns in the `responses` table.