mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-20 04:02:35 +00:00
Add agentDir parameter to model config functions and OAuth storage
- loadAndMergeModels(agentDir) - loads models.json from agentDir - getAvailableModels(agentDir) - uses agentDir for model discovery - findModel(provider, id, agentDir) - uses agentDir for model lookup - configureOAuthStorage(agentDir) - configures OAuth to use agentDir/oauth.json - createAgentSession calls configureOAuthStorage with options.agentDir - Export configureOAuthStorage from SDK
This commit is contained in:
parent
6d4ff74430
commit
b168a6cae3
4 changed files with 69 additions and 52 deletions
|
|
@ -85,11 +85,12 @@ export {
|
|||
} from "./core/oauth/index.js";
|
||||
// SDK for programmatic usage
|
||||
export {
|
||||
allBuiltInTools,
|
||||
type BuildSystemPromptOptions,
|
||||
buildSystemPrompt,
|
||||
type CreateAgentSessionOptions,
|
||||
type CreateAgentSessionResult,
|
||||
// Configuration
|
||||
configureOAuthStorage,
|
||||
// Factory
|
||||
createAgentSession,
|
||||
// Helpers
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue