Directories
¶
| Path | Synopsis |
|---|---|
|
Package main demonstrates a bash/shell execution tool driven by the model.
|
Package main demonstrates a bash/shell execution tool driven by the model. |
|
Package main demonstrates cancellation and graceful shutdown patterns.
|
Package main demonstrates cancellation and graceful shutdown patterns. |
|
Package main demonstrates extended thinking capabilities with LM Studio.
|
Package main demonstrates extended thinking capabilities with LM Studio. |
|
Package main demonstrates WithForceTool — the LM-Studio-supported way to force a specific function since the OpenAI object form of tool_choice is rejected.
|
Package main demonstrates WithForceTool — the LM-Studio-supported way to force a specific function since the OpenAI object form of tool_choice is rejected. |
|
Package main demonstrates partial message streaming where incremental assistant updates are received as the model generates responses.
|
Package main demonstrates partial message streaming where incremental assistant updates are received as the model generates responses. |
|
internal
|
|
|
Package main demonstrates API cost control with budget limits.
|
Package main demonstrates API cost control with budget limits. |
|
Package main demonstrates how to create calculator tools using MCP servers.
|
Package main demonstrates how to create calculator tools using MCP servers. |
|
Package main demonstrates querying MCP server connection status.
|
Package main demonstrates querying MCP server connection status. |
|
Package main demonstrates a filesystem-backed memory tool for agent state persistence.
|
Package main demonstrates a filesystem-backed memory tool for agent state persistence. |
|
Package main demonstrates LM Studio's /api/v1/models lifecycle surface — read-only operations (ListModelsResponse) only, so this example is safe to run without disturbing the currently-loaded model.
|
Package main demonstrates LM Studio's /api/v1/models lifecycle surface — read-only operations (ListModelsResponse) only, so this example is safe to run without disturbing the currently-loaded model. |
|
Package main demonstrates running multiple Query() calls concurrently.
|
Package main demonstrates running multiple Query() calls concurrently. |
|
Package main demonstrates multi-step LLM orchestration with Go control flow.
|
Package main demonstrates multi-step LLM orchestration with Go control flow. |
|
Package main demonstrates LM Studio's native stateful chat endpoint (/api/v1/chat) — reasoning effort control + previous_response_id continuation without re-sending history.
|
Package main demonstrates LM Studio's native stateful chat endpoint (/api/v1/chat) — reasoning effort control + previous_response_id continuation without re-sending history. |
|
Package main demonstrates configuring system prompts.
|
Package main demonstrates configuring system prompts. |
Click to show internal directories.
Click to hide internal directories.