MCPcopy Create free account

hub / github.com/GoodStartLabs/AI_Diplomacy / types & classes

Types & classes474 in github.com/GoodStartLabs/AI_Diplomacy

↓ 64 callersClassGame
Game class. Properties: - **combat**: - Dictionary of dictionaries containing the strength of every attack on a location
diplomacy/engine/game.py:48
↓ 61 callersClassGameError
Represents a game error
diplomacy/utils/errors.py:40
↓ 47 callersClassOrder
Class to convert order from string representation to dictionary (webdiplomacy.net) representation
diplomacy/integration/webdiplomacy_net/orders.py:127
↓ 45 callersClassMapError
Represents a map error
diplomacy/utils/errors.py:30
↓ 43 callersClassToken
Contains the representation of a token
diplomacy/daide/tokens.py:25
↓ 32 callersClassMap
Map Class Properties: - **abbrev**: Contains the power abbreviation, otherwise defaults to first letter of PowerName e.g.
diplomacy/engine/map.py:33
↓ 25 callersClassSortedDict
Dict with sorted keys.
diplomacy/utils/sorted_dict.py:21
↓ 24 callersClassNotifier
Server notifier class.
diplomacy/server/notifier.py:23
↓ 23 callersClassSortedSet
Sorted set (sorted values, each value appears once).
diplomacy/utils/sorted_set.py:24
↓ 12 callersClassPowerEnum
models.py:24
↓ 11 callersClassMyJsonable
Example of class derived from Jsonable.
diplomacy/utils/tests/test_jsonable.py:25
↓ 9 callersClassGamePhaseData
Small class to represent data for a game phase: phase name, state, orders, orders results and messages for this phase.
diplomacy/utils/game_phase_data.py:26
↓ 9 callersClassOrderResult
Represents an order result
diplomacy/utils/order_results.py:26
↓ 8 callersClassFuture
diplomacy/web/src/diplomacy/utils/future.js:18
↓ 8 callersClassPriorityDict
Priority Dictionary Implementation
diplomacy/utils/priority_dict.py:24
↓ 8 callersClassServer
Represents a server to receive DAIDE communications
diplomacy/daide/server.py:27
↓ 7 callersClassMyStringable
Example of Stringable class. As instances of such class may be used as dict keys, class should define a proper __hash__().
diplomacy/utils/tests/test_parsing.py:24
↓ 5 callersClassError
Represents an error
diplomacy/utils/errors.py:27
↓ 5 callersClassMessage
Message class. Properties: - **sender**: message sender name: either SYSTEM or a power name. - **recipient**: message recip
diplomacy/engine/message.py:49
↓ 4 callersClassOptionalValueType
Type checker that allows None as default value.
diplomacy/utils/parsing.py:266
↓ 4 callersClassPhase
ai_diplomacy/game_history.py:22
↓ 4 callersClassQueue
diplomacy/web/src/diplomacy/utils/queue.js:19
↓ 4 callersClassString
A string contained between parentheses Syntax (Text)
diplomacy/daide/clauses.py:231
↓ 4 callersClassVersion1
A Jsonable with fields a, b, c, d. NB: To parse a dict from Version22 to Version1, modified fields a and c must be convertible in Version1.
diplomacy/utils/tests/test_jsonable_changes.py:29
↓ 3 callersClassClaudeClient
For 'claude-3-5-sonnet-20241022', 'claude-3-5-haiku-20241022', etc.
ai_diplomacy/clients.py:882
↓ 3 callersClassDeepSeekClient
For DeepSeek R1 'deepseek-reasoner'
ai_diplomacy/clients.py:973
↓ 3 callersClassDiplomacyException
Diplomacy network code exception.
diplomacy/utils/exceptions.py:19
↓ 3 callersClassDiplomacyMessage
Diplomacy message sent/received by/from the server
diplomacy/daide/messages.py:166
↓ 3 callersClassGameAnalyzer
Analyzes Diplomacy game data for key strategic moments
analyze_game_moments.py:62
↓ 3 callersClassGameHistory
ai_diplomacy/game_history.py:83
↓ 3 callersClassGeminiClient
For 'gemini-1.5-flash' or other Google Generative AI models.
ai_diplomacy/clients.py:931
↓ 3 callersClassOpenAIClient
Async client for OpenAI-compatible chat-completion endpoints.
ai_diplomacy/clients.py:782
↓ 3 callersClassOpenAIResponsesClient
For OpenAI o3-pro model using the new Responses API endpoint. This client makes direct HTTP requests to the v1/responses endpoint.
ai_diplomacy/clients.py:1047
↓ 3 callersClassPower
Power Class Properties: - **abbrev** - Contains the abbrev of the power (i.e. the first letter of the power name) (e.g. 'F' for FRA
diplomacy/engine/power.py:29
↓ 3 callersClassServerGame
ServerGame class. Properties: - **server**: (optional) server (Server object) that handles this game. - **omniscient_userna
diplomacy/server/server_game.py:24
↓ 3 callersClassStdError
Represents a standard error
diplomacy/utils/errors.py:50
↓ 3 callersClassSynchronizedData
Small class used to store and sort data to synchronize for a game. Properties: - **timestamp** (int): timestamp of related data to
diplomacy/server/request_manager_utils.py:27
↓ 3 callersClass_Deadline
(internal) Deadline value, defined by a start time and a delay, such that deadline = start time + delay.
diplomacy/server/scheduler.py:37
↓ 2 callersClassCaseData
Helper class to store test data.
diplomacy/tests/network/test_real_game.py:137
↓ 2 callersClassDiplomacyAgent
Represents a stateful AI agent playing as a specific power in Diplomacy. It holds the agent's goals, relationships, and private journal,
ai_diplomacy/agent.py:29
↓ 2 callersClassExpectedData
Expected data for a power in a game.
diplomacy/tests/network/test_real_game.py:106
↓ 2 callersClassExpectedMessages
Expected list of messages sent and received by a power name.
diplomacy/tests/network/test_real_game.py:68
↓ 2 callersClassGameIdCountryId
Tuple (game_id, country_id)
diplomacy/integration/webdiplomacy_net/utils.py:51
↓ 2 callersClassMessage
ai_diplomacy/game_history.py:15
↓ 2 callersClassNetworkGame
NetworkGame class. Properties: - **channel**: associated :class:`diplomacy.client.channel.Channel` object. - **notification
diplomacy/client/network_game.py:74
↓ 2 callersClassOpenRouterClient
For OpenRouter models, with default being 'openrouter/quasar-alpha'
ai_diplomacy/clients.py:1154
↓ 2 callersClassStatisticalGameAnalyzer
Production-ready analyzer for AI Diplomacy game statistics. This class handles comprehensive statistical analysis of AI Diplomacy games,
analysis/statistical_game_analysis.py:66
↓ 2 callersClassStringableCode
Represents a stringable version of a code (with an optional message)
diplomacy/utils/common.py:225
↓ 2 callersClassTogetherAIClient
Client for Together AI models. Model names should be passed without the 'together-' prefix.
ai_diplomacy/clients.py:1230
↓ 2 callersClassValidationConfig
analysis/validation.py:97
↓ 2 callersClass_ErrParser
experiment_runner.py:270
↓ 2 callersClass_ImmediateTask
(internal) Represents a task intended to be processed as soon as possible the first time, and then scheduled as a normal task for next times.
diplomacy/server/scheduler.py:89
↓ 2 callersClass_MessageWrittenCallback
Helper class representing callback to call on a connection when a request is written in a websocket.
diplomacy/client/connection.py:515
↓ 1 callersClassChannel
Channel - Represents an authenticated connection over a physical socket
diplomacy/client/channel.py:87
↓ 1 callersClassClientCommsSimulator
Represents a client's comms
diplomacy/daide/tests/test_daide_game.py:65
↓ 1 callersClassClientsCommsSimulator
Represents multi clients's communications
diplomacy/daide/tests/test_daide_game.py:278
↓ 1 callersClassCommonKeyException
Common key error.
diplomacy/utils/exceptions.py:29
↓ 1 callersClassConfiguration
config.py:9
↓ 1 callersClassConnection
Connection class. The connection class should not be initiated directly, but through the connect method .. code-block:: python
diplomacy/client/connection.py:52
↓ 1 callersClassConnectionHandler
ConnectionHandler class. Properties: - **server**: server object representing running server.
diplomacy/daide/connection_handler.py:32
↓ 1 callersClassDaideRequest
Represents a DAIDE request.
diplomacy/daide/requests.py:43
↓ 1 callersClassDaideUser
DAIDE user class
diplomacy/server/user.py:39
↓ 1 callersClassEnumerationType
Type checker for a set of allowed basic values.
diplomacy/utils/parsing.py:463
↓ 1 callersClassEquilateralTriangle
Helper class that represent an equilateral triangle. Used to compute intersection of a line with a side of convoy symbol, which is an equilat
diplomacy/utils/equilateral_triangle.py:31
↓ 1 callersClassErrorCode
Enumeration of error codes for error messages
diplomacy/daide/messages.py:35
↓ 1 callersClassErrorMessage
Error message sent/received by/from the server
diplomacy/daide/messages.py:215
↓ 1 callersClassExpectedPhase
Helper class to manage data from an expected phase.
diplomacy/tests/network/test_real_game.py:43
↓ 1 callersClassExtractedData
Helper class to store extra data collected while parsing SVG file. Properties: - name: class name of parsed SVG component - extra: d
diplomacy/web/svg_to_react.py:75
↓ 1 callersClassGameInstancesSet
Game Instances Set class.
diplomacy/client/game_instances_set.py:29
↓ 1 callersClassGameMoment
Represents a key moment in the game
analyze_game_moments.py:37
↓ 1 callersClassInterruptionHandler
Helper class used to save server when a system interruption signal is sent (e.g. KeyboardInterrupt).
diplomacy/server/server.py:151
↓ 1 callersClassLie
Represents a detected lie in diplomatic communications
analyze_game_moments.py:51
↓ 1 callersClassModelSpec
ai_diplomacy/clients.py:1397
↓ 1 callersClassOrderSplitter
Splits an order into its components
diplomacy/utils/splitter.py:60
↓ 1 callersClassPrefix
ai_diplomacy/clients.py:1422
↓ 1 callersClassPrimitiveType
Type checker for a primitive type.
diplomacy/utils/parsing.py:509
↓ 1 callersClassRenderer
Renderer object responsible for rendering a game state to svg
diplomacy/engine/renderer.py:39
↓ 1 callersClassRepresentationMessage
Representation message sent from the server
diplomacy/daide/messages.py:145
↓ 1 callersClassRequestFutureContext
Helper class to store a context around a request (with future for response management, related connection and optional related game).
diplomacy/client/response_managers.py:31
↓ 1 callersClassRequestsOpenAIClient
Synchronous `requests`-based client for any OpenAI-compatible API. Wrapped in `asyncio.to_thread` so call-sites remain async.
ai_diplomacy/clients.py:1289
↓ 1 callersClassScheduler
(public) Scheduler class.
diplomacy/server/scheduler.py:127
↓ 1 callersClassSchedulerEvent
Scheduler event class. Properties: - **time_unit**: unit time (in seconds) used by scheduler (time between 2 tasks checkings).
diplomacy/utils/scheduler_event.py:21
↓ 1 callersClassSequenceOfPrimitivesType
Type checker for a set of allowed basic types.
diplomacy/utils/parsing.py:489
↓ 1 callersClassSequenceType
Type checker for sequence-like objects.
diplomacy/utils/parsing.py:277
↓ 1 callersClassServer
Server class.
diplomacy/server/server.py:196
↓ 1 callersClassStringableType
Type checker for a class that can be converted to a string with str(obj) and converted from a string with cls.from_string(str_val) or cls(str
diplomacy/utils/parsing.py:341
↓ 1 callersClassUser
User class.
diplomacy/server/user.py:22
↓ 1 callersClassUsers
Users class. Properties: - **users**: dictionary mapping usernames to User object.s - **administrators**: set of administra
diplomacy/server/users.py:39
↓ 1 callersClassVersion20
Version1 with removed fields b and d. NB: To parse a dict from Version20 to Version1, removed fields b and d must be optional in Version1.
diplomacy/utils/tests/test_jsonable_changes.py:48
↓ 1 callersClassVersion21
Version1 with added fields e and f. NB: To parse a dict from Version1 to Version21, added fields e and f must be optional in Version21.
diplomacy/utils/tests/test_jsonable_changes.py:62
↓ 1 callersClassVersion22
Version1 with modified types for a and c. NB: To parse a dict from Version1 to Version22, modified fields a and c must be convertible
diplomacy/utils/tests/test_jsonable_changes.py:84
↓ 1 callersClassVersion3
Version 1 with a modified, b removed, e added. To parse a dict between Version3 and Version1: - a must be convertible in both ve
diplomacy/utils/tests/test_jsonable_changes.py:103
↓ 1 callersClass_Reconnection
Class performing reconnection work for a given connection. Class properties: - connection: Connection object to reconnect.
diplomacy/client/connection.py:361
↓ 1 callersClass_ServerBackend
Class representing tornado objects used to run a server. Properties: - **port**: (integer) port where server runs. - **appl
diplomacy/server/server.py:175
↓ 1 callersClass_Task
(internal) Task class used by scheduler to order scheduled data. It allows auto-rescheduling of a task after it was processed, until either:
diplomacy/server/scheduler.py:61
Class
diplomacy/web/src/diplomacy/client/request_future_context.js:23
Class
diplomacy/web/src/diplomacy/client/game_instance_set.js:20
Class
diplomacy/web/src/diplomacy/client/connection.js:30
Class
diplomacy/web/src/diplomacy/client/connection.js:123
Class
diplomacy/web/src/diplomacy/client/connection.js:202
next →1–100 of 474, ranked by callers