Harden backend contracts and documentation
This commit is contained in:
21
doc.go
21
doc.go
@@ -2,9 +2,10 @@
|
||||
// prompt-defined LLM workflows.
|
||||
//
|
||||
// Applications construct an [Engine] with [NewEngine], select filesystem or
|
||||
// in-memory sources with options, and call [Engine.Prepare] or [Engine.Run].
|
||||
// Concrete repositories, validators, and the built-in OpenAI-compatible client
|
||||
// remain internal implementation details.
|
||||
// in-memory sources and optional engine-scoped [Backend] registrations, and
|
||||
// call [Engine.Prepare] or [Engine.Run]. Concrete registries, repositories,
|
||||
// validators, and the built-in OpenAI-compatible client remain internal
|
||||
// implementation details.
|
||||
//
|
||||
// # Concurrency and ownership
|
||||
//
|
||||
@@ -12,11 +13,11 @@
|
||||
// or [ArtifactReader] can therefore receive concurrent calls and must be safe
|
||||
// for that use.
|
||||
//
|
||||
// NewEngine copies in-memory profiles. Prepare and Run copy request maps,
|
||||
// slices, pointer values, and JSON-compatible extra parameters before using
|
||||
// them. Returned values and values passed to extension interfaces are likewise
|
||||
// isolated from engine state. Callers own those copies and may mutate them
|
||||
// after the call that supplied or returned them.
|
||||
// NewEngine copies in-memory profiles and backend definitions. Prepare and Run
|
||||
// copy request maps, slices, pointer values, and JSON-compatible extra
|
||||
// parameters before using them. Returned values and values passed to extension
|
||||
// interfaces are likewise isolated from engine state. Callers own those copies
|
||||
// and may mutate them after the call that supplied or returned them.
|
||||
//
|
||||
// # Security and sensitive data
|
||||
//
|
||||
@@ -42,8 +43,8 @@
|
||||
// [GenerateResponse], [ExecutionTargetPresence], and the string value types
|
||||
// used by those values.
|
||||
//
|
||||
// Construction values, including [Config], [RunRequest], [ArtifactRef],
|
||||
// [ExecutionTargetOverride], [Profile], and
|
||||
// Construction values, including [Config], [Backend], [RunRequest],
|
||||
// [ArtifactRef], [ExecutionTargetOverride], [Profile], and
|
||||
// [OpenAICompatibleProfileConfig], do not have stable JSON representations.
|
||||
// Direct API keys are nevertheless excluded from JSON for every public value.
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user