CoAgent8 - Source API
Preparing search index...
backends/codex/app-server
CodexAppSessionOptions
Interface CodexAppSessionOptions
interface
CodexAppSessionOptions
{
collector
:
{
beginTurn
:
(
id
:
string
)
=>
void
;
initialize
:
(
id
:
string
)
=>
void
;
isTerminal
:
()
=>
boolean
;
line
:
(
raw
:
string
)
=>
void
;
notify
:
(
method
:
string
,
value
:
unknown
)
=>
void
;
snapshot
:
()
=>
{
error
:
ExecutionError
|
undefined
;
initialized
:
boolean
;
interrupted
:
boolean
;
output
:
string
;
terminal
:
boolean
;
threadId
:
string
|
null
;
truncated
:
boolean
;
turnId
:
string
|
null
;
usage
:
|
{
inputTokens
?:
number
;
outputTokens
?:
number
;
source
:
"provider"
;
totalTokens
?:
number
;
}
|
undefined
;
}
;
}
;
cwd
:
string
;
effort
:
string
;
model
:
string
;
onEvent
?:
(
event
:
AdapterEvent
)
=>
void
;
threadId
?:
string
|
null
;
}
Index
Properties
collector
cwd
effort
model
on
Event?
thread
Id?
Properties
collector
collector
:
{
beginTurn
:
(
id
:
string
)
=>
void
;
initialize
:
(
id
:
string
)
=>
void
;
isTerminal
:
()
=>
boolean
;
line
:
(
raw
:
string
)
=>
void
;
notify
:
(
method
:
string
,
value
:
unknown
)
=>
void
;
snapshot
:
()
=>
{
error
:
ExecutionError
|
undefined
;
initialized
:
boolean
;
interrupted
:
boolean
;
output
:
string
;
terminal
:
boolean
;
threadId
:
string
|
null
;
truncated
:
boolean
;
turnId
:
string
|
null
;
usage
:
|
{
inputTokens
?:
number
;
outputTokens
?:
number
;
source
:
"provider"
;
totalTokens
?:
number
;
}
|
undefined
;
}
;
}
Type Declaration
beginTurn
:
(
id
:
string
)
=>
void
initialize
:
(
id
:
string
)
=>
void
isTerminal
:
()
=>
boolean
line
:
(
raw
:
string
)
=>
void
notify
:
(
method
:
string
,
value
:
unknown
)
=>
void
snapshot
:
()
=>
{
error
:
ExecutionError
|
undefined
;
initialized
:
boolean
;
interrupted
:
boolean
;
output
:
string
;
terminal
:
boolean
;
threadId
:
string
|
null
;
truncated
:
boolean
;
turnId
:
string
|
null
;
usage
:
|
{
inputTokens
?:
number
;
outputTokens
?:
number
;
source
:
"provider"
;
totalTokens
?:
number
;
}
|
undefined
;
}
cwd
cwd
:
string
effort
effort
:
string
model
model
:
string
Optional
on
Event
onEvent
?:
(
event
:
AdapterEvent
)
=>
void
Optional
thread
Id
threadId
?:
string
|
null
Thread to resume; a new thread is started when absent.
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
collector
cwd
effort
model
on
Event
thread
Id
CoAgent8 - Source API
Loading...
Thread to resume; a new thread is started when absent.