メッセージと設定を整える
呼び出しに使うシステムテキストとモデルへのヒントを設定します。
「メッセージと設定を整える」はCoddyKit上の無料MCP Academyレッスンです。 これはレッスン3/4です。 下記で完全なレッスンを無料で読むことができます。その後、ブラウザ内の組み込みコードエディタと24時間対応のAIチューターでハンズオン演習できます。 これはMCP Academy学習パスの一部であり、ウェブとCoddyKitアプリ全体で進捗が同期されます。 MCP Academyコースには全4レッスンが含まれています。
このレッスンの一部はまだ翻訳されておらず、英語で表示されています。
You Steer the Generation
Beyond the prompt, you can shape the call: a system prompt, model hints, length, and how much past context to include.
Set the System Prompt
Use systemPrompt to set the model’s role or tone for this one call, like telling it to be a terse code reviewer.
"systemPrompt": "You are a concise code reviewer."Stack Multiple Messages
The messages array can hold several turns, letting you give the model a short back-and-forth as context, not just one line.
Suggest a Model with Hints
modelPreferences takes hints — substrings like claude-3-sonnet — that the client may match to an available model.
"hints": [{ "name": "claude-3-sonnet" }]Hints Are Only Advisory
The client makes the final pick. A hint is a suggestion; the host may map it to an equivalent model from another provider.
Fall Back Gracefully
List hints in order of preference. A broad fallback like a bare claude hint catches any Claude model if your first pick is missing.
"hints": [{ "name": "claude-3-sonnet" },
{ "name": "claude" }]Prioritize Intelligence
Set intelligencePriority from 0 to 1. Higher values nudge the client toward more capable, smarter models for hard work.
"intelligencePriority": 0.8Prioritize Speed
Need low latency? Raise speedPriority toward 1 and the client leans on faster models, trading some depth for quickness.
"speedPriority": 0.8Prioritize Cost
Raise costPriority to prefer cheaper models. These three priorities are normalized hints, not hard rules.
"costPriority": 0.3Include Surrounding Context
An includeContext setting lets the request pull in context from MCP servers, so the model sees more than just your text.
Tune Temperature
Where supported, a temperature value shifts replies from focused and deterministic to more varied and creative.
Quick Check
One question on guiding model choice.
Recap
Shape calls with a systemPrompt, layered messages, and modelPreferences — hints plus cost, speed, and intelligence priorities. 🎛️
よくある質問
「メッセージと設定を整える」レッスンは無料ですか?
はい。「メッセージと設定を整える」の完全なテキストはこのウェブで無料で読めます。インタラクティブに演習し(組み込みコードエディタと24時間対応のAIチューター)、MCP Academyコースの残りをアンロックするには、CoddyKit PROにアップグレードしてください。 MCP Academyコースには全4レッスンが含まれています。
「メッセージと設定を整える」で何を学びますか?
呼び出しに使うシステムテキストとモデルへのヒントを設定します。 ブラウザで直接実行するハンズオンコードでMCP Academyを演習し、24時間対応のAIチューターがレッスンを進める中での質問に答えます。
MCP Academyを始めるのに経験は必要ですか?
事前経験は必要ありません。CoddyKitのMCP Academyは初級者から上級者向けに構成されているため、ここから始めるか最初から始めて、自分のペースで進むことができます。 これはレッスン3/4です。
「メッセージと設定を整える」レッスンにはどのくらい時間がかかりますか?
ほとんどのCoddyKitレッスンは約5~10分かかります。各レッスンはコンパクトでインタラクティブなので、着実に進歩し、ウェブとアプリ全体で正確に前回の場所から再開できます。
このMCP Academyレッスンでコードを書いて実行できますか?
はい。すべてのMCP Academyレッスンに組み込みコードエディタが含まれているため、ブラウザでリアルコードを書いて実行し、即座のAIフィードバックを取得できます。ローカル設定は不要です。