dataflow.connect4_api¶
Attributes¶
Classes¶
API for Connect4 agent. |
|
Request to make a move in Connect4. |
|
Request to create new Connect4 game. |
|
Response for Connect4 game. |
Functions¶
|
Run the Connect4 API server. |
Module Contents¶
- class dataflow.connect4_api.Connect4API¶
Bases:
haive.dataflow.api.game_agent.GenericAgentAPI
[haive_games.connect4.agent.Connect4Agent
,haive_games.connect4.config.Connect4AgentConfig
]API for Connect4 agent.
- class dataflow.connect4_api.Connect4MoveRequest(/, **data: Any)¶
Bases:
pydantic.BaseModel
Request to make a move in Connect4.
- Parameters:
data (Any)
- class dataflow.connect4_api.Connect4Request(/, **data: Any)¶
Bases:
pydantic.BaseModel
Request to create new Connect4 game.
- Parameters:
data (Any)
- first_player: Literal['red', 'yellow'] = 'red'¶
- class dataflow.connect4_api.Connect4Response(/, **data: Any)¶
Bases:
haive.dataflow.api.game_agent.AgentResponseBase
Response for Connect4 game.
- Parameters:
data (Any)
- dataflow.connect4_api.run()¶
Run the Connect4 API server.
- dataflow.connect4_api.connect4_api¶
- dataflow.connect4_api.logger¶