Documentation
¶
Overview ¶
Package bob is the agent for IBM Bob: the Bob IDE and Bob Shell. Its init() registers it in the agent package's default registry, so a host needs only a blank import:
import _ "github.com/rossoctl/context-guru/agent/bob"
This is a library package. It never imports a host. imports_test.go enforces that.
Index ¶
Constants ¶
const ModelPath = "/inference/v1/chat/completions"
ModelPath is Bob's model route. It is the only route Bob owns.
Variables ¶
This section is empty.
Functions ¶
func BackendCounts ¶ added in v0.7.4
BackendCounts is /stats' bob_backend: how many replies on Bob's model route got each label.
func ResetBackendForTest ¶ added in v0.7.4
func ResetBackendForTest()
ResetBackendForTest forgets the shapes logged so far. For TESTS only.
Types ¶
type Bob ¶
Bob overrides only where it differs from the neutral agent.
func (Bob) ModelTarget ¶
func (Bob) ModelTarget() agent.ModelTarget
ModelTarget sends the host's own calls to Bob's model path: Bob serves chat on no other path. Bob takes the key as `Authorization: Apikey <key>`, the way the Bob client sends it.