From de0ab335f1ec7d8531973e0604878bdb3c2fe625 Mon Sep 17 00:00:00 2001 From: hosted-fornet Date: Mon, 4 Nov 2024 14:22:39 -0800 Subject: [PATCH] mfa: fix chapter 1 api/ section --- src/my_first_app/chapter_1.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/my_first_app/chapter_1.md b/src/my_first_app/chapter_1.md index def35e4d..0b61f2de 100644 --- a/src/my_first_app/chapter_1.md +++ b/src/my_first_app/chapter_1.md @@ -211,9 +211,10 @@ You can read more about `ProcessId`s [here](../system/process/processes.md#overv ### `api/` The `api/` directory is an optional directory where packages can declare their public API. -Other packages can then mark a package as a dependency in their `metadata.json` and +Other packages can then mark a package as a dependency in their `metadata.json` to include those types and functions defined therein. +The API is useful for composability and for LLM agents as definitions of "tools" for programatic access. -For further reading, see discussion in [WIT APIs](../system/process/wit_apis.md), and [`kit view-api`](../kit/view-api.md). +For further reading, see discussion in [WIT APIs](../system/process/wit_apis.md), [the package APIs recipe](../cookbook/package_apis.md), [the package APIs (with workers) recipe](../cookbook/package_apis_workers.md), and [`kit view-api`](../kit/view-api.md). ## Building the Package