Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/openai/openai-agents-js
/ CustomContext
Interface
CustomContext
examples/basic/dynamic-system-prompt.ts:5–7 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
3
type
Style =
'haiku'
|
'pirate'
|
'robot'
;
4
5
interface
CustomContext {
6
style: Style;
7
}
8
9
function
customInstructions(
10
runContext: RunContext<CustomContext>,
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected