@@ -104,8 +104,8 @@ const snapshotInterval = 25 * time.Millisecond
104104
105105type ServerConfig struct {
106106 AgentType mf.AgentType
107- AgentIO st.AgentIO
108- Transport Transport
107+ AgentIO st.AgentIO
108+ Transport Transport
109109 Port int
110110 ChatBasePath string
111111 AllowedHosts []string
@@ -274,18 +274,19 @@ func NewServer(ctx context.Context, config ServerConfig) (*Server, error) {
274274 return nil , fmt .Errorf ("PTY transport requires termexec.Process" )
275275 }
276276 conversation = st .NewPTY (ctx , st.PTYConversationConfig {
277- AgentType : config .AgentType ,
278- AgentIO : proc ,
279- Clock : config .Clock ,
280- SnapshotInterval : snapshotInterval ,
281- ScreenStabilityLength : 2 * time .Second ,
282- FormatMessage : formatMessage ,
283- ReadyForInitialPrompt : isAgentReadyForInitialPrompt ,
284- FormatToolCall : formatToolCall ,
285- InitialPrompt : initialPrompt ,
286- Logger : logger ,
287- StatePersistenceConfig : config .StatePersistenceConfig ,
288- }, emitter )}
277+ AgentType : config .AgentType ,
278+ AgentIO : proc ,
279+ Clock : config .Clock ,
280+ SnapshotInterval : snapshotInterval ,
281+ ScreenStabilityLength : 2 * time .Second ,
282+ FormatMessage : formatMessage ,
283+ ReadyForInitialPrompt : isAgentReadyForInitialPrompt ,
284+ FormatToolCall : formatToolCall ,
285+ InitialPrompt : initialPrompt ,
286+ Logger : logger ,
287+ StatePersistenceConfig : config .StatePersistenceConfig ,
288+ }, emitter )
289+ }
289290
290291 // Create temporary directory for uploads
291292 tempDir , err := os .MkdirTemp ("" , "agentapi-uploads-" )
0 commit comments